(b.tv_sec * 1000000 + b.tv_usec)) \
/ 1000)
-static int dpms_running_state = DPMS_SETTING_DONE;
static bool lcd_paneloff_mode = false;
static bool lcd_on_broadcasted = true;
static struct timeval lcd_on_timeval;
}
/* FIXME: This function is deprecated, should be fixed after plugin refactoring */
-void display_panel_set_dpms_running_state(int val)
-{
- dpms_running_state = val;
-}
-
-/* FIXME: This function is deprecated, should be fixed after plugin refactoring */
int display_panel_get_dpms_state(void)
{
int ret;
//if (val == DISPLAY_ON && ambient_get_state())
// return DPMS_OFF;
- if (dpms_running_state != DPMS_SETTING_DONE)
- return dpms_running_state;
-
switch (val) {
case DISPLAY_ON:
return DPMS_ON;
void __display_panel_register_dpms_checklist(int mode, void (*checker)(void), const char *caller);
#define display_panel_register_dpms_checklist(mode, checker) __display_panel_register_dpms_checklist(mode, checker, __func__)
-void display_panel_set_dpms_running_state(int val);
#endif /* __DISPLAY_PANEL_H__ */