Use s2ram/s2disk instead of current suspend method [Solved]

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

Use s2ram/s2disk instead of current suspend method [Solved]

Postby lakins_juice » Fri Mar 02, 2012 12:18

Hi @ll,

I have a problem with my Acer Aspire 5100. The hibernate and sleep mode are not working properly. I tried installing the pm-utils and called s2ram or s2disk from the command line and they seem to work fine.

Now I dont know how to tell KDE to use those methods instead of the current suspend methods. Does anybody know where the scripts are located which are used by KDE?

Whith kind regards,

Lakin.
lakins_juice
Baby Hen
 
Posts: 2
Joined: Fri Mar 02, 2012 12:11

Re: Using s2ram/s2disk instead of the current suspend method

Postby Fitzcarraldo » Sat Mar 03, 2012 17:15

KDE used to instruct HAL to perform the suspension/hibernation, so the script to modify would have been the HAL script SL used to perform the suspend. HAL does not exist in Gentoo/Sabayon Linux these days, though. Since KDE 4.5 or 4.6 (not sure which), KDE changed to using UPower and D-Bus. According to the Kernel developer's post Re: [RFC][PATCH 0/2] PM / Sleep: Extended control of suspend/hibernate interfaces:

Richard Hughes wrote:NeilBrown <neilb <at> suse.de> writes:
> upowerd then runs /usr/sbin/pm-suspend.
> pm-suspend then runs all the script in /usr/lib/pm-utils/sleep.d/
> and the calls "do_suspend" which is defined in
> /usr/lib/pm-utils/pm-functions

So you could have a look at those scripts in that directory. But I wonder why suspend/hibernate does not work for you from KDE, as it's working fine for me.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Using s2ram/s2disk instead of the current suspend method

Postby lakins_juice » Sun Mar 04, 2012 13:28

Thanks for your answer Fitzcarraldo,

it leaded me to the right direction. Finally the suspend is done by the pm-utils. I can configure pm-utils to use another suspend method like uswsusp though. The ArchWiki explains quite well how this is done: https://wiki.archlinux.org/index.php/Pm-utils#Using_another_sleep_back-end_.28like_uswsusp.29

After switching the pm-utils backend to uswsusp it works fine.

Thanks for the hint.

Lakin.
lakins_juice
Baby Hen
 
Posts: 2
Joined: Fri Mar 02, 2012 12:11


Return to Hardware

Who is online

Users browsing this forum: No registered users and 1 guest