Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]In new XFCE installation: "Can hibernate: False
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Thu Dec 11, 2014 9:09 am    Post subject: [SOLVED]In new XFCE installation: "Can hibernate: False Reply with quote

Hi
I have freshly installed my computer with kernel 3.16.5, lightDM and xfce (4.10.1).
Code:
Linux aim-triops.uzh.ch 3.16.5-gentoo #1 SMP Tue Dec 9 15:23:52 CET 2014 x86_64 Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz GenuineIntel GNU/Linux


On the "Log Out"-dialog i have "Log Out", "Restart", "Shut Down" and "Suspend", but no "Hibernate" (which was there in my previous installation).

Here's 'xfce4-power-manager --dump'
Code:
---------------------------------------------------
       Xfce power manager version 1.3.0
With policykit support
Without network manager support
With DPMS support
---------------------------------------------------
Can suspend: True
Can hibernate: False
Can spin down hard disks: True
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Authorized to spin down hard disks: True
Has battery: False
Has brightness panel: False
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: False

I guess my problem is the line "Can hibernate: False"

But i have set it before i built the kernel:
Code:
 ~ $ grep HIBER /usr/src/linux-3.16.5-gentoo/.config
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_HIBERNATION_HEADER=y
CONFIG_HIBERNATE_CALLBACKS=y
CONFIG_HIBERNATION=y
 ~ $ grep sda  /usr/src/linux-3.16.5-gentoo/.config
CONFIG_PM_STD_PARTITION="/dev/sda3"

(sda3 is my swap partition)
I also specified the resume in grub (GRUB Legacy):
Code:
 ~ $ cat /boot/grub/grub.conf
default 0
timeout 3
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.16.5
root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-3.16.5-gentoo root=/dev/sda4 resume=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-3.16.5-gentoo


I have pm-utils and upower-pm-utils installed:
Code:
 ~ $ eix pm-util | grep -e Installed -e "\[I\]"
[I] sys-power/pm-utils
     Installed versions:  1.4.1-r6(05:32:37 PM 12/10/2014)(alsa -debug -ntp VIDEO_CARDS="-intel -radeon")
[I] sys-power/upower-pm-utils
     Installed versions:  0.9.23-r2(04:54:49 PM 12/09/2014)(introspection -ios KERNEL="linux -FreeBSD")
jody@aim-triops ~ $


The contents of my '.xinitrc ' are simply "exec startxfce4"

How can i bring back Hibernate on my logout-dialog?

Thank You
Jody


Last edited by jody on Wed Dec 17, 2014 9:56 am; edited 1 time in total
Back to top
View user's profile Send private message
SDNick484
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 231

PostPosted: Fri Dec 12, 2014 1:22 am    Post subject: Reply with quote

Try switching your .xinitrc to this: exec ck-launch-session startxfce4

Also, make sure hibernate is a polkit option. i.e., you should see the following in /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla:
Code:
[Hibernate]
Identity=unix-group:users
Action=org.freedesktop.upower.hibernate
ResultAny=yes
ResultInactive=yes
ResultActive=yes


If it's not there, try adding it then restart dbus.

It's interesting that Suspend and Shutdown are alllowed; I would have thought those would be blocked too.

For the record, I see the following:
Code:
$ xfce4-power-manager --dump
---------------------------------------------------
       Xfce power manager version 1.4.2
With policykit support
Without network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: True
Back to top
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Mon Dec 15, 2014 9:29 am    Post subject: Reply with quote

Hi
i changed my .xinitrc to
Code:
exec ck-launch-session startxfce4

but i have no file '/etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla'

Actually i don't even have the subdirectory 'localauthority':
Code:
 ~ $ ls  /etc/polkit-1         
rules.d


The changed .xinitrc didn't change things: there is still no "Hibernate" in my LogOut dialog.

I just noticed that manual hibernation also doesn't work properly:
when i do
Code:
sudo pm-hibernate
, it starts as usual (black screen with blinking cursor), but a few seconds later my Desktop is back again.
Here are the contents of /var/log/messages for this action:
Code:
Dec 15 09:38:34 aim-triops sudo:     jody : TTY=pts/3 ; PWD=/home/jody ; USER=root ; COMMAND=/usr/sbin/pm-hibernate
Dec 15 09:38:34 aim-triops sudo: pam_unix(sudo:session): session opened for user root by jody(uid=0)
Dec 15 09:38:38 aim-triops kernel: PM: Syncing filesystems ... done.
Dec 15 09:38:38 aim-triops kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Dec 15 09:38:38 aim-triops kernel: PM: Preallocating image memory... done (allocated 572880 pages)
Dec 15 09:38:38 aim-triops kernel: PM: Allocated 2291520 kbytes in 0.40 seconds (5728.80 MB/s)
Dec 15 09:38:38 aim-triops kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Dec 15 09:38:38 aim-triops kernel: Suspending console(s) (use no_console_suspend to debug)
Dec 15 09:38:38 aim-triops kernel: i8042 aux 00:04: System wakeup disabled by ACPI
Dec 15 09:38:38 aim-triops kernel: serial 00:03: disabled
Dec 15 09:38:38 aim-triops kernel: serial 00:02: disabled
Dec 15 09:38:38 aim-triops kernel: PM: freeze of devices complete after 208.904 msecs
Dec 15 09:38:38 aim-triops kernel: PM: late freeze of devices complete after 0.251 msecs
Dec 15 09:38:38 aim-triops kernel: PM: noirq freeze of devices complete after 1.104 msecs
Dec 15 09:38:38 aim-triops kernel: ACPI: Preparing to enter system sleep state S4
Dec 15 09:38:38 aim-triops kernel: PM: Saving platform NVS memory
Dec 15 09:38:38 aim-triops kernel: Disabling non-boot CPUs ...
Dec 15 09:38:38 aim-triops kernel: kvm: disabling virtualization on CPU1
Dec 15 09:38:38 aim-triops kernel: smpboot: CPU 1 is now offline
Dec 15 09:38:38 aim-triops kernel: kvm: disabling virtualization on CPU2
Dec 15 09:38:38 aim-triops kernel: smpboot: CPU 2 is now offline
Dec 15 09:38:38 aim-triops kernel: kvm: disabling virtualization on CPU3
Dec 15 09:38:38 aim-triops kernel: smpboot: CPU 3 is now offline
Dec 15 09:38:38 aim-triops kernel: kvm: disabling virtualization on CPU4
Dec 15 09:38:38 aim-triops kernel: smpboot: CPU 4 is now offline
Dec 15 09:38:38 aim-triops kernel: kvm: disabling virtualization on CPU5
Dec 15 09:38:38 aim-triops kernel: smpboot: CPU 5 is now offline
Dec 15 09:38:38 aim-triops kernel: kvm: disabling virtualization on CPU6
Dec 15 09:38:38 aim-triops kernel: smpboot: CPU 6 is now offline
Dec 15 09:38:38 aim-triops kernel: kvm: disabling virtualization on CPU7
Dec 15 09:38:38 aim-triops kernel: smpboot: CPU 7 is now offline
Dec 15 09:38:38 aim-triops kernel: kvm: disabling virtualization on CPU8
Dec 15 09:38:38 aim-triops kernel: smpboot: CPU 8 is now offline
Dec 15 09:38:38 aim-triops kernel: kvm: disabling virtualization on CPU9
Dec 15 09:38:38 aim-triops kernel: smpboot: CPU 9 is now offline
Dec 15 09:38:38 aim-triops kernel: kvm: disabling virtualization on CPU10
Dec 15 09:38:38 aim-triops kernel: smpboot: CPU 10 is now offline
Dec 15 09:38:38 aim-triops kernel: kvm: disabling virtualization on CPU11
Dec 15 09:38:38 aim-triops kernel: smpboot: CPU 11 is now offline
Dec 15 09:38:38 aim-triops kernel: PM: Creating hibernation image:
Dec 15 09:38:38 aim-triops kernel: PM: Need to copy 570369 pages
Dec 15 09:38:38 aim-triops kernel: PM: Hibernation image created (570369 pages copied)
Dec 15 09:38:38 aim-triops kernel: PM: Restoring platform NVS memory
Dec 15 09:38:38 aim-triops kernel: Enabling non-boot CPUs ...
Dec 15 09:38:38 aim-triops kernel: x86: Booting SMP configuration:
Dec 15 09:38:38 aim-triops kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
Dec 15 09:38:38 aim-triops kernel: kvm: enabling virtualization on CPU1
Dec 15 09:38:38 aim-triops kernel: CPU1 is up
Dec 15 09:38:38 aim-triops kernel: smpboot: Booting Node 0 Processor 2 APIC 0x4
Dec 15 09:38:38 aim-triops kernel: kvm: enabling virtualization on CPU2
Dec 15 09:38:38 aim-triops kernel: CPU2 is up
Dec 15 09:38:38 aim-triops kernel: smpboot: Booting Node 0 Processor 3 APIC 0x10
Dec 15 09:38:38 aim-triops kernel: kvm: enabling virtualization on CPU3
Dec 15 09:38:38 aim-triops kernel: CPU3 is up
Dec 15 09:38:38 aim-triops kernel: smpboot: Booting Node 0 Processor 4 APIC 0x12
Dec 15 09:38:38 aim-triops kernel: kvm: enabling virtualization on CPU4
Dec 15 09:38:38 aim-triops kernel: CPU4 is up
Dec 15 09:38:38 aim-triops kernel: smpboot: Booting Node 0 Processor 5 APIC 0x14
Dec 15 09:38:38 aim-triops kernel: kvm: enabling virtualization on CPU5
Dec 15 09:38:38 aim-triops kernel: CPU5 is up
Dec 15 09:38:38 aim-triops kernel: smpboot: Booting Node 0 Processor 6 APIC 0x1
Dec 15 09:38:38 aim-triops kernel: kvm: enabling virtualization on CPU6
Dec 15 09:38:38 aim-triops kernel: CPU6 is up
Dec 15 09:38:38 aim-triops kernel: smpboot: Booting Node 0 Processor 7 APIC 0x3
Dec 15 09:38:38 aim-triops kernel: kvm: enabling virtualization on CPU7
Dec 15 09:38:38 aim-triops kernel: CPU7 is up
Dec 15 09:38:38 aim-triops kernel: smpboot: Booting Node 0 Processor 8 APIC 0x5
Dec 15 09:38:38 aim-triops kernel: kvm: enabling virtualization on CPU8
Dec 15 09:38:38 aim-triops kernel: CPU8 is up
Dec 15 09:38:38 aim-triops kernel: smpboot: Booting Node 0 Processor 9 APIC 0x11
Dec 15 09:38:38 aim-triops kernel: kvm: enabling virtualization on CPU9
Dec 15 09:38:38 aim-triops kernel: CPU9 is up
Dec 15 09:38:38 aim-triops kernel: smpboot: Booting Node 0 Processor 10 APIC 0x13
Dec 15 09:38:38 aim-triops kernel: kvm: enabling virtualization on CPU10
Dec 15 09:38:38 aim-triops kernel: CPU10 is up
Dec 15 09:38:38 aim-triops kernel: smpboot: Booting Node 0 Processor 11 APIC 0x15
Dec 15 09:38:38 aim-triops kernel: kvm: enabling virtualization on CPU11
Dec 15 09:38:38 aim-triops kernel: CPU11 is up
Dec 15 09:38:38 aim-triops kernel: ACPI: Waking up from system sleep state S4
Dec 15 09:38:38 aim-triops kernel: PM: noirq thaw of devices complete after 0.352 msecs
Dec 15 09:38:38 aim-triops kernel: PM: early thaw of devices complete after 0.270 msecs
Dec 15 09:38:38 aim-triops kernel: e1000e 0000:05:00.0: irq 43 for MSI/MSI-X
Dec 15 09:38:38 aim-triops kernel: e1000e 0000:06:00.0: irq 44 for MSI/MSI-X
Dec 15 09:38:38 aim-triops kernel: e1000e 0000:05:00.0: irq 45 for MSI/MSI-X
Dec 15 09:38:38 aim-triops kernel: e1000e 0000:06:00.0: irq 54 for MSI/MSI-X
Dec 15 09:38:38 aim-triops kernel: e1000e 0000:05:00.0: irq 55 for MSI/MSI-X
Dec 15 09:38:38 aim-triops kernel: e1000e 0000:06:00.0: irq 56 for MSI/MSI-X
Dec 15 09:38:38 aim-triops kernel: serial 00:02: activated
Dec 15 09:38:38 aim-triops kernel: serial 00:03: activated
Dec 15 09:38:38 aim-triops kernel: snd_hda_intel 0000:00:1b.0: irq 58 for MSI/MSI-X
Dec 15 09:38:38 aim-triops kernel: e1000e: enp5s0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None
Dec 15 09:38:38 aim-triops kernel: PM: thaw of devices complete after 475.506 msecs
Dec 15 09:38:38 aim-triops kernel: PM: Cannot find swap device, try swapon -a.
Dec 15 09:38:38 aim-triops kernel: PM: Cannot get swap writer
Dec 15 09:38:38 aim-triops kernel: ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Dec 15 09:38:38 aim-triops kernel: ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
Dec 15 09:38:38 aim-triops kernel: ata3.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata3.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata4.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata4.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata4.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Dec 15 09:38:38 aim-triops kernel: ata3.00: ACPI cmd c6/00:10:00:00:00:a0 (SET MULTIPLE MODE) succeeded
Dec 15 09:38:38 aim-triops kernel: ata3.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Dec 15 09:38:38 aim-triops kernel: ata4.00: configured for UDMA/100
Dec 15 09:38:38 aim-triops kernel: ata3.00: configured for UDMA/133
Dec 15 09:38:38 aim-triops kernel: Restarting tasks ... done.
Dec 15 09:38:38 aim-triops kernel: ata2.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Dec 15 09:38:38 aim-triops kernel: ata2.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Dec 15 09:38:38 aim-triops kernel: ata1.00: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Dec 15 09:38:38 aim-triops kernel: ata1.01: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Dec 15 09:38:38 aim-triops kernel: ata2.01: ACPI cmd ef/03:45:00:00:00:b0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata2.01: ACPI cmd ef/03:0c:00:00:00:b0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata2.01: ACPI cmd c6/00:10:00:00:00:b0 (SET MULTIPLE MODE) succeeded
Dec 15 09:38:38 aim-triops kernel: ata2.01: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Dec 15 09:38:38 aim-triops kernel: ata1.01: ACPI cmd ef/03:45:00:00:00:b0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata1.01: ACPI cmd ef/03:0c:00:00:00:b0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata1.01: ACPI cmd c6/00:10:00:00:00:b0 (SET MULTIPLE MODE) succeeded
Dec 15 09:38:38 aim-triops kernel: ata1.01: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Dec 15 09:38:38 aim-triops kernel: ata2.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata2.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata2.00: ACPI cmd c6/00:10:00:00:00:a0 (SET MULTIPLE MODE) succeeded
Dec 15 09:38:38 aim-triops kernel: ata2.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Dec 15 09:38:38 aim-triops kernel: ata1.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
Dec 15 09:38:38 aim-triops kernel: ata1.00: ACPI cmd c6/00:10:00:00:00:a0 (SET MULTIPLE MODE) succeeded
Dec 15 09:38:38 aim-triops kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
Dec 15 09:38:38 aim-triops kernel: ata1.00: configured for UDMA/100
Dec 15 09:38:38 aim-triops kernel: ata1.01: configured for UDMA/133
Dec 15 09:38:38 aim-triops kernel: ata2.00: configured for UDMA/133
Dec 15 09:38:38 aim-triops kernel: ata2.01: configured for UDMA/133
Dec 15 09:38:38 aim-triops sudo: pam_unix(sudo:session): session closed for user root

So the question is why it immediately starts up again.
Another problem seems to be " kernel: PM: Cannot find swap device, try swapon -a."

Furthermore, after the manul pm-hibernate, the network (enp5s0) doesn't work anymore, and '/etc/init.d/net.enp5s0 restart' hangs forever.

Any ideas what might be wrong here?
Back to top
View user's profile Send private message
SDNick484
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 231

PostPosted: Tue Dec 16, 2014 1:33 am    Post subject: Reply with quote

When I get home from work, I'll check what provides the polkit localauthority file (I don't think I created it manually).

As for your larger issue of hibernate not working, you may want to check out Ubuntu's DebuggingKernelHibernate wiki (I personally don't use hibernate, but I did use the equivalent wiki entry for Suspend and was able to solve my issue). The first thing to check though would be whether your swap device is created and configured correctly. Make sure swap is present and mounted; also make sure you're not using an encrypted swap device.
Back to top
View user's profile Send private message
jody
l33t
l33t


Joined: 16 Oct 2007
Posts: 668
Location: Switzerland

PostPosted: Wed Dec 17, 2014 9:56 am    Post subject: Reply with quote

The "Hibernate" option now has been added to the LogOut dialog!
- i did 'emerge --sync' and 'emerge --update --newuse --deep @world'
- i changed .xinitrc to 'exec ck-launch-session startxfce4'
- rebooted
- "Hibernate" is here and works properly!

EDIT:
Strangely enough, ' xfce4-power-manager --dump' still denies hibernatability:
Code:
---------------------------------------------------
       Xfce power manager version 1.3.0
With policykit support
Without network manager support
With DPMS support
---------------------------------------------------
Can suspend: True
Can hibernate: False
Can spin down hard disks: True
Authorized to suspend: True
Authorized to hibernate: True
Authorized to shutdown: True
Authorized to spin down hard disks: True
Has battery: False
Has brightness panel: False
Has power button: True
Has hibernate button: True
Has sleep button: True
Has LID: False

and, also, I still don't have a ' /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla'....

Jody
Back to top
View user's profile Send private message
SDNick484
Apprentice
Apprentice


Joined: 05 Dec 2005
Posts: 231

PostPosted: Thu Dec 18, 2014 4:34 am    Post subject: Reply with quote

Well it looks like /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla was not from a package so I'm not sure how/when I set it up. Either way, glad this is all resolved for you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum