power - add some debug printfs for info on what is going on

This commit is contained in:
Carsten Haitzler 2023-01-17 09:08:28 +00:00
parent 53a21b1b0d
commit 5c4f26f251
2 changed files with 3 additions and 0 deletions

View File

@ -365,8 +365,10 @@ _e_powersave_event_update_free(void *data EINA_UNUSED, void *event)
else mode = powersave_mode;
free(event);
printf("PWSAVE: update free...\n");
if (mode > E_POWERSAVE_MODE_LOW)
{
printf("PWSAVE: low pwr hib=%i sus=%i\n", powersave_deferred_hibernate, powersave_deferred_suspend);
if (powersave_deferred_hibernate)
e_sys_action_do(E_SYS_HIBERNATE, NULL);
else if (powersave_deferred_suspend)

View File

@ -936,6 +936,7 @@ _battery_update(int full, int time_left, int time_full, Eina_Bool have_battery,
(battery_config->suspend_below > 0) &&
(full < battery_config->suspend_below))
{
printf("battery %i suspend below %i\n", full, battery_config->suspend_below);
if (battery_config->suspend_method == SUSPEND)
e_sys_action_do(E_SYS_SUSPEND, NULL);
else if (battery_config->suspend_method == HIBERNATE)