On a quite freshly installed gentoo i wanted to enable hibernation.
The basic xfce installation did show a "hibernate" button, which let the computer shut down in a "hibernaty" way. But upon restart it would go to the normal login.
I then followed the "hibernate and suspend"-wiki (and i also recompiled the kernel after these changes).
Now, when i type 'pm-hibernate' in terminal, the screen goes dark for a short moment, but the computer does not hibernate - the session continues as if i hadn't typed "pm-hibernate"
In the file "/var/log/pm-suspend.log", after a long list of successful "Running hooks", there is
Code: Select all
Running hook /usr/lib64/pm-utils/sleep.d/99video hibernate hibernate:
/usr/lib64/pm-utils/sleep.d/99video hibernate hibernate: success.
Mon Aug 29 14:52:19 CEST 2016: performing hibernate
s2disk: Could not stat the resume device file. Reason: No such file or directory
Mon Aug 29 14:52:20 CEST 2016: Awake.
Mon Aug 29 14:52:20 CEST 2016: Running hooks for thaw
Running hook /usr/lib64/pm-utils/sleep.d/99video thaw hibernate:
/usr/lib64/pm-utils/sleep.d/99video thaw hibernate: success.
But i *did* set the swap partition /dev/sda3 for hibernation in the kernel config
Code: Select all
#
# Power management and ACPI options
#
CONFIG_ARCH_HIBERNATION_HEADER=y
# CONFIG_SUSPEND is not set
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
CONFIG_PM_STD_PARTITION="/dev/sda3"
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
CONFIG_PM_AUTOSLEEP=y
# CONFIG_PM_WAKELOCKS is not set
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
Code: Select all
GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/sda3"If i understand correctly, OpenRC-users should use upower-pm-utils.
But apparently xfce wants upower, too:
Code: Select all
jody@aim-pteropus ~ $ equery depends upower
* These packages depend on upower:
xfce-base/xfce4-session-4.12.1 (upower ? >=sys-power/upower-0.9.23)
xfce-base/xfce4-settings-4.12.0 (upower ? >=sys-power/upower-0.9.23)
xfce-extra/xfce4-power-manager-1.5.2 (>=sys-power/upower-0.99.0)
jody@aim-pteropus ~ $ equery depends upower-pm-utils
* These packages depend on upower-pm-utils:
xfce-base/xfce4-session-4.12.1 (upower ? sys-power/upower-pm-utils)
xfce-base/xfce4-settings-4.12.0 (upower ? sys-power/upower-pm-utils)
jody@aim-pteropus ~ $ equery depends pm-utils
* These packages depend on pm-utils:
sys-auth/consolekit-1.1.0 (pm-utils ? sys-power/pm-utils)
sys-power/upower-pm-utils-0.9.23-r2 (kernel_linux ? >=sys-power/pm-utils-1.4.1-r2)
xfce-base/xfce4-session-4.12.1 (upower ? sys-power/pm-utils)
xfce-extra/xfce4-power-manager-1.5.2 (sys-power/pm-utils)
Code: Select all
jody@aim-pteropus ~ $ emerge --ask xfce-extra/xfce4-power-manager
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] sys-power/upower-0.99.4 USE="introspection -doc -ios (-selinux)"
[ebuild N ] xfce-extra/xfce4-power-manager-1.5.2 USE="policykit -debug -networkmanager -systemd" XFCE_PLUGINS="power"
[blocks B ] sys-power/upower ("sys-power/upower" is blocking sys-power/upower-pm-utils-0.9.23-r2)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(sys-power/upower-0.99.4:0/3::gentoo, ebuild scheduled for merge) pulled in by
>=sys-power/upower-0.99.0 required by (xfce-extra/xfce4-power-manager-1.5.2:0/0::gentoo, ebuild scheduled for merge)
(sys-power/upower-pm-utils-0.9.23-r2:0/0::gentoo, installed) pulled in by
sys-power/upower-pm-utils required by @selectedThank You
jody


