Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hibernate for KDE 4.6
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
brandsmeier
n00b
n00b


Joined: 26 Sep 2004
Posts: 14

PostPosted: Thu Jul 21, 2011 7:33 am    Post subject: hibernate for KDE 4.6 Reply with quote

How do I get hibernate to work in KDE 4.6?

I followed to Gentoo Power Management Guide to set up hibernation using hibernate-script with the method swusp (I don't have tuxonice sources).
The hibernate is working
* from the console with no X server running
* from the console with an X server running, but not logged in
* from a running gnome X-session
so everything works, except with KDE 4.6.

I also noticed that KDE has its own method for hibernate, but both the hibernate-script and the hibernate button in KDE fail to hibernate the laptop. The problem is, that the system simply does not shut down. The screen gets blank, with a cursor flashing at the top left. In this state the laptop stays forever.

When I hibernate with any of the other methods, I still see the same screen, but at some point the PC goes off. From KDE it never goes of, and more funny I can actually switch between my consoles with Ctrl+Alt+number (I cannot do this with any of the working hibernations). Unfortunately the keys are otherwise turned on, so I cannot type anything in any of the running bash logins, nor make a new login. I also can't switch back to the graphical user interface.


With KDE 4.4 (and HAL) it actually worked before. With KLDE 4.6 and upwer / policykit it doesn't work. My hibernate-script is `sys-power/hibernate-script-2.0-r1 USE="-vim-syntax"`. The hibernate-script configuration is as shipped from gentoo (I actually had some little changes, but I removed them for the sake of debugging). About he configuration of KDE's hibernate, I have no clue how to configure it.

My kernel is properly configured as described in the Gentoo Power Management Guide.

Do you have any idea what is going wrong? How can I further debug the issues? Are there alternatives to get hibernate working from KDE?

I can also give you info from my /var/log/hibernate.log

A successful hibernate & restart looks like this:
Code:

Starting suspend at Wed Jul 20 21:14:19 CEST 2011
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureSysfsPowerStateCapable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [59] Executing RemountXFSBootRO ...
hibernate: [89] Executing SaveKernelModprobe ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [98] Executing CheckRunlevel ...
hibernate: [99] Executing DoSysfsPowerStateSuspend ...
hibernate: Activating sysfs power state disk ...
hibernate: [90] Executing ModulesLoad ...
hibernate: [89] Executing RestoreKernelModprobe ...
hibernate: [85] Executing XHacksResumeHook2 ...
hibernate: [70] Executing ClockRestore ...
hibernate: [70] Executing ClockRestore ...
hibernate: [59] Executing RemountXFSBootRW ...
hibernate: [11] Executing XHacksResumeHook1 ...
hibernate: [01] Executing NoteLastResume ...
hibernate: [01] Executing LockFilePut ...
Resumed at Wed Jul 20 21:16:04 CEST 2011


An unsuccessful hibernate & restart looks like this:
Code:

Starting suspend at Wed Jul 20 21:03:26 CEST 2011
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureSysfsPowerStateCapable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [59] Executing RemountXFSBootRO ...
hibernate: [89] Executing SaveKernelModprobe ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [98] Executing CheckRunlevel ...
hibernate: [99] Executing DoSysfsPowerStateSuspend ...
hibernate: Activating sysfs power state disk ...

Both logs look fine for me, there only seems the reboot part missing. But I have to killl the computer by hand, as he does not switch of. And on the reboot he does not load the image.

Thanks for any help
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2007

PostPosted: Thu Jul 21, 2011 4:00 pm    Post subject: Re: hibernate for KDE 4.6 Reply with quote

brandsmeier wrote:
How do I get hibernate to work in KDE 4.6?

I followed to Gentoo Power Management Guide to set up hibernation using hibernate-script with the method swusp (I don't have tuxonice sources).
I have hibernation working on my KDE 4.6 system. I originally followed the power management guide but had conflicts with laptop-mode, so I took almost everything out, and found it worked at least as well. The key is using KDE power management (that was the power devil thingy in 4.4, but AFAIK it's now integrated into the basic KDE setup) and enabling laptop-mode in the kernel. I use neither hibernate-script nor the laptop-mode tools, just pm-tools and KDE.
brandsmeier wrote:
The hibernate is working
* from the console with no X server running
* from the console with an X server running, but not logged in
* from a running gnome X-session
so everything works, except with KDE 4.6.
I only ever hibernate by closing the laptop lid, and with a KDE session running; not sure what would happen in your scenarios.
brandsmeier wrote:
I also noticed that KDE has its own method for hibernate, but both the hibernate-script and the hibernate button in KDE fail to hibernate the laptop. The problem is, that the system simply does not shut down. The screen gets blank, with a cursor flashing at the top left. In this state the laptop stays forever.
...
About he configuration of KDE's hibernate, I have no clue how to configure it.

AFAIK KDE's hibernate functions need pm-utils, so if you've not got them installed, try that, and maybe removing hibernate-script. Note that hibernate script contains a /etc/init.d/ script to "invalidate stale hibernate images", so that doesn't happen, but as far as I can see it all works correctly anyway with my current kernel 2.6.38-gentoo-r6.

FWIW, here's my hibernation log, from /var/log/messages (there's no hibernate.log as such, as no hibernate tools). I think the log switches from hibernation to restore where I've inserted a line "...", but the timestamps up to that point are still post-restore - I wonder if syslog-ng was holding them in a buffer across hibernation.
Code:

Jul 21 16:02:40 asus -- MARK --
Jul 21 16:02:40 asus kernel: PM: Syncing filesystems ... done.
Jul 21 16:02:40 asus kernel: PM: Preallocating image memory... done (allocated 153942 pages)
Jul 21 16:02:40 asus kernel: PM: Allocated 615768 kbytes in 1.47 seconds (418.88 MB/s)
Jul 21 16:02:40 asus kernel: ATL1E 0000:03:00.0: PCI INT A disabled
Jul 21 16:02:40 asus kernel: HDA Intel 0000:00:1b.0: PCI INT A disabled
Jul 21 16:02:40 asus kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
Jul 21 16:02:40 asus kernel: ata_piix 0000:00:1f.2: PCI INT B disabled
Jul 21 16:02:40 asus kernel: PM: freeze of devices complete after 201.948 msecs
Jul 21 16:02:40 asus kernel: PM: late freeze of devices complete after 0.624 msecs
Jul 21 16:02:40 asus kernel: ACPI: Preparing to enter system sleep state S4
Jul 21 16:02:40 asus kernel: PM: Saving platform NVS memory
Jul 21 16:02:40 asus kernel: CPU 1 is now offline
Jul 21 16:02:40 asus kernel: PM: Creating hibernation image:
...
Jul 21 16:02:40 asus kernel: PM: Need to copy 103087 pages
Jul 21 16:02:40 asus kernel: PM: Restoring platform NVS memory
Jul 21 16:02:40 asus kernel: Booting Node 0 Processor 1 APIC 0x1
Jul 21 16:02:40 asus kernel: Initializing CPU#1
Jul 21 16:02:40 asus kernel: Switched to NOHz mode on CPU #1
Jul 21 16:02:40 asus kernel: ACPI: Waking up from system sleep state S4
Jul 21 16:02:40 asus kernel: ATL1E 0000:03:00.0: BAR 0: set to [mem 0xfbfc0000-0xfbffffff 64bit] (PCI address [0xfbfc0000-0xfbffffff])
Jul 21 16:02:40 asus acpid: client 2831[0:0] has disconnected
Jul 21 16:02:40 asus kernel: ATL1E 0000:03:00.0: BAR 2: set to [io  0xec00-0xec7f] (PCI address [0xec00-0xec7f])
Jul 21 16:02:40 asus kernel: PM: early restore of devices complete after 11.950 msecs
Jul 21 16:02:40 asus kernel: HDA Intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Jul 21 16:02:40 asus kernel: ata_piix 0000:00:1f.2: PCI INT B -> GSI 19 (level, low) -> IRQ 19
Jul 21 16:02:40 asus kernel: ATL1E 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
Jul 21 16:02:40 asus kernel: sd 0:0:0:0: [sda] Starting disk
Jul 21 16:02:40 asus kernel: ata1.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
Jul 21 16:02:40 asus kernel: ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
Jul 21 16:02:40 asus kernel: ata1.00: configured for UDMA/133
Jul 21 16:02:40 asus kernel: PM: restore of devices complete after 432.307 msecs
Jul 21 16:02:40 asus kernel: video LNXVIDEO:00: Restoring backlight state
Jul 21 16:02:40 asus kernel: usb 1-8: new high speed USB device using ehci_hcd and address 12
Jul 21 16:02:42 asus logger: ACPI event unhandled: button/lid LID open

_________________
Greybeard
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