if (!display_conf.timeout_enable)
return;
+ if (pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)
+ return;
+
_I("Reset timeout(%d ms).", timeout);
if (timeout_src_id != 0) {
g_source_remove(timeout_src_id);
/* enter next state directly */
states[pm_cur_state].trans(EVENT_TIMEOUT);
} else {
+ if (pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)
+ return 0;
+
st->action(st->timeout);
}
}
return -EINVAL;
}
- if (pm_cur_state != S_SLEEP && !(pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)) {
+ if (pm_cur_state != S_SLEEP) {
if (pm_cur_state == S_NORMAL &&
lcdon_tv.tv_sec != 0) {
gettimeofday(&now_tv, NULL);
if (!display_conf.timeout_enable)
return;
+ if (pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)
+ return;
+
_I("Reset timeout(%d ms).", timeout);
if (timeout_src_id != 0) {
g_source_remove(timeout_src_id);
/* enter next state directly */
states[pm_cur_state].trans(EVENT_TIMEOUT);
} else {
+ if (pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)
+ return 0;
+
st->action(st->timeout);
}
}
return -EINVAL;
}
- if (pm_cur_state != S_SLEEP && !(pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)) {
+ if (pm_cur_state != S_SLEEP) {
if (pm_cur_state == S_NORMAL &&
lcdon_tv.tv_sec != 0) {
gettimeofday(&now_tv, NULL);
if (!display_conf.timeout_enable)
return;
- _I("Reset timeout(%d ms).", timeout);
+ if (pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)
+ return;
+
+ _I("Reset timeout(%d ms) pm_cur_state(%d).", timeout, pm_cur_state);
if (timeout_src_id != 0) {
g_source_remove(timeout_src_id);
timeout_src_id = 0;
/* enter next state directly */
states[pm_cur_state].trans(EVENT_TIMEOUT);
} else {
+ if (pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)
+ return 0;
+
st->action(st->timeout);
}
}
return -EINVAL;
}
- if (pm_cur_state != S_SLEEP && !(pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)) {
+ if (pm_cur_state != S_SLEEP) {
if (pm_cur_state == S_NORMAL &&
lcdon_tv.tv_sec != 0) {
gettimeofday(&now_tv, NULL);
if (!display_conf.timeout_enable)
return;
+ if (pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)
+ return;
+
_I("Reset timeout(%d ms).", timeout);
if (timeout_src_id != 0) {
g_source_remove(timeout_src_id);
/* enter next state directly */
states[pm_cur_state].trans(EVENT_TIMEOUT);
} else {
+ if (pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)
+ return 0;
+
st->action(st->timeout);
}
}
return -EINVAL;
}
- if (pm_cur_state != S_SLEEP && !(pm_cur_state == S_LCDOFF && display_conf.sleep_support == false)) {
+ if (pm_cur_state != S_SLEEP) {
if (pm_cur_state == S_NORMAL &&
lcdon_tv.tv_sec != 0) {
gettimeofday(&now_tv, NULL);