! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Hibernate can't be disabled without active swap.
Status:
RESOLVED: FIXED
Product:
Xfce4-power-manager
Component:
General

Comments

Description Raphael Groner 2012-09-11 19:31:48 CEST
When I close the lid, the power manager tries to go to hibernation. But it only locks the screen. After I relogin, I can see a popup message "no swap space available". In settings, I can't save the new action to be "standby" or "nothing". It seems to be ignored and the hibernate mode stays active.
Comment 1 Raphael Groner 2012-09-11 20:16:23 CEST
$ xfconf-query -c xfce4-power-manager -lv
/xfce4-power-manager/brightness-level-on-battery  50
/xfce4-power-manager/brightness-on-ac             120
/xfce4-power-manager/brightness-on-battery        90
/xfce4-power-manager/critical-power-action        1
/xfce4-power-manager/dpms-on-ac-off               11
/xfce4-power-manager/dpms-on-ac-sleep             10
/xfce4-power-manager/hibernate-button-action      3
/xfce4-power-manager/inactivity-on-ac             20
/xfce4-power-manager/inactivity-on-battery        15
/xfce4-power-manager/lid-action-on-ac             2
/xfce4-power-manager/lid-action-on-battery        2
/xfce4-power-manager/power-button-action          3
/xfce4-power-manager/show-tray-icon               3
/xfce4-power-manager/sleep-button-action          1
/xfce4-power-manager/spin-down-on-ac              true
Comment 2 Raphael Groner 2012-09-11 20:48:44 CEST
Work around done with
$ xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/lid-action-on-battery -s 1

It seems that the settings GUI doesn't change any value though hibernate options aren't available any more (maybe due to upower feedback). The use case is that the user then just closes the dialog again and nothing is stored to xfconf.

So maybe change the GUI logic to mark the settings that were set to hibernate mode to be changed and then stored to xfconf by enforcement.
Comment 3 Raphael Groner 2012-10-02 15:15:27 CEST
I am working on a patch. Therefore, I need to refactor xfpm-settings.c, it turns out that it can be reduced for about 500 lines of code.

Are there already any bindings for xfconf to connect them directly to Gtk widgets?
Comment 4 Harald Judt 2014-11-19 21:12:18 CET
Retry with current version.

Bug #9287

Reported by:
Raphael Groner
Reported on: 2012-09-11
Last modified on: 2014-11-19

People

Assignee:
Ali Abdallah
CC List:
1 user

Version

Attachments

Additional information