You are not logged in.

#1 2009-05-11 14:13:22

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

PowerDevil (pm-utils) [SOLVED]

Hi,

I can't make my laptop hibernate (Suspend to Disk, vanilla KDE 4.2.3). All I have is just a blinking cursor in the upper left corner of the black screen; the only option out is a hard reset. This doesn't seem to be a common problem: the search turns out next to nothing. Meanwhile, I've checked some threads on related issues: people mention HAL, policykit, files like /etc/pam.d/kde and /home/name/.kde4/share/config, etc. Unfortunately, I can't see anything like a consistent picture on the Wiki. Any useful links, please? I'd like to get the hang of the thing smile .

Last edited by Llama (2009-05-11 17:36:14)

Offline

#2 2009-05-11 14:29:32

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: PowerDevil (pm-utils) [SOLVED]

Powerdevil just uses pm-utils, so you have to debug that. There's a wiki article on pm-utils, I believe. Only if running "pm-suspend" hibernates sucessfully for you, the problem might lie elsewhere.

Offline

#3 2009-05-11 16:04:39

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: PowerDevil (pm-utils) [SOLVED]

Right you are! Neither pm-suspend nor pm-hibernate works. The wiki on pm-utils isn't very enlightening, though. Any suggestions? I can tell that no attempt to write to disk is ever made (pm-hibernate).

Offline

#4 2009-05-11 16:25:42

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: PowerDevil (pm-utils) [SOLVED]

Hibernating is more involved that suspending, so try to get that to work first. Try without X, with as few modules loaded as possible.

Offline

#5 2009-05-11 16:46:06

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: PowerDevil (pm-utils) [SOLVED]

How am I suppose to debug it? I looked into pm-suspend.log - not a single error message, the last line being

Mon May 11 20:20:14 MSD 2009: performing hibernate

Older threads talk about /usr/share/PolicyKit/policy/org.freedesktop.hal.power-management.policy lacking suspend/hibernate entries, but this seems fixed.

Shame on me, of course, but what's suspending smile ? I understand that hibernation means saving the entire computer state, including RAM, on the swap file for subsequent restoration, but 'suspend to RAM' - what is it?

Offline

#6 2009-05-11 17:12:39

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: PowerDevil (pm-utils) [SOLVED]

Suspend to RAM (AKA sleep or standby) means basically powering down every component of the PC except the RAM, resulting in an instantaneous resume. Suspend to disk (hibernation) copies the contents of RAM to disk and powers down everything.

Don't bother with PolicyKit or HAL, HAL just calls pm-utils and PolicyKit takes care of the privileges to do so. Focus on pm-utils, it's on that level that all kind of quirks to make suspend work are applied. As I said, try suspending in the possibly most basic environment. You can try using userspace suspend or tuxonice too, you can set pm-utils to use those, but each of them needs additional steps to be taken.

What kind of hardware do you have anyway?

Last edited by lucke (2009-05-11 17:13:31)

Offline

#7 2009-05-11 17:32:53

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: PowerDevil (pm-utils) [SOLVED]

Thank you very much, lucke!

The trouble is solved by copying /usr/lib/pm-utils/defaults file to /etc/pm/config.d and putting into it (/etc/pm/config.d/default) the line

SUSPEND_MODULES="button uhci_hcd ehci_hcd"

It's been in the Wiki, after all smile .

Last edited by Llama (2009-05-11 17:35:20)

Offline

Board footer

Powered by FluxBB