Reply to topic

How does hibernate and suspend options work in KDE4?

L_V
Banned
Posts
104
Karma
-3
OS
I don't have guidance-power-manager installed. Not necessary for a desktop.

To make it clear: in which file can we reassign the KDE4 "suspend to disk" GUI command " ?

However, it now works fine both with Debian and Ubuntu (on the same PC).
The only difference is that Ubuntu requires uswsusp, and not Debian, which means the "suspend to disk" is probably not configured the same way.
L_V
Banned
Posts
104
Karma
-3
OS
"To make it clear: in which file can we reassign the KDE4 "suspend to disk" GUI command " ?"

The answer is finally ..... : /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux

Different behaviors of KDE4 suspend GUI command is explained by the content of hal-system-power-hibernate-linux.

Now clarified.
User avatar bcooksley
Administrator
Posts
19759
Karma
86
OS
KDE 4 uses Solid which instructs its backend to perform the hibernation / suspend. The only available backend for Linux at this time is HAL.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]
L_V
Banned
Posts
104
Karma
-3
OS
For those having troubles with "suspend to disk" at least with Kubuntu, there is a straight solution:

Install uswsusp

cd /usr/lib/hal/scripts/linux/
sudo mv hal-system-power-hibernate-linux hal-system-power-hibernate-linux.bak
sudo ln -s /usr/sbin/s2disk ./hal-system-power-hibernate-linux

The "suspend to disk" KDE4 GUI command will directly point to /usr/sbin/s2disk
lisonator
Registered Member
Posts
1
Karma
0
OS
I have a question regarding suspending. I'm using KDE 4.3 with Debian Testing/Sid and want to change the behavior of the "Suspend to ram" button script. What I exacly need is to stop network-manager service before suspend and start it after resume. As I understand the first can be done by modifying the
Code: Select all
hal-system-power-suspend
script (or am I wrong?). What about starting after resume?

Now I am using following combination:

1.
Code: Select all
#service network-manager stop

2. run suspend to ram from KDE menu
...sleeping and after wake:
3.
Code: Select all
#service network-manager start
User avatar bcooksley
Administrator
Posts
19759
Karma
86
OS
KDE instructs HAL to perform the system suspension, therefore the correct script to modify is the script your distribution uses to perform the suspend.


KDE Sysadmin
[img]http://forum.kde.org/content/bcooksley_sig.png[/img]

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], bartoloni, Bing [Bot], chris40000, Exabot [Bot], fmeier, gfielding, Google [Bot], Gummidge, ifukcvrtc, nmset, ptfpkofg, Sogou [Bot], TheraHedwig, Yahoo [Bot]