ret = vconf_get_int(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, &timeout);
if (ret == 0) {
if (vconf_set_int(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, 300) < 0)
- printf("Failed to set LCDNORMAL timeout.\n");
+ printf("Failed to set LCDNORMAL timeout, %d.\n", vconf_get_ext_errno());
}
stop_udev();
printf("Success: %d, Fail: %d\n", success, fail);
start_udev();
- if (ret == 0)
- vconf_set_int(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, timeout);
+ if (ret == 0) {
+ if (vconf_set_int(VCONFKEY_SETAPPL_LCD_TIMEOUT_NORMAL, timeout) < 0)
+ printf("Failed to restore LCDNORMAL timeout, %d.\n", vconf_get_ext_errno());
+ }
}
static void brightness_init(void *data)