Suspend to ram from KDE
SILVA Luis
lacsilva at gmail.com
Thu Mar 8 12:49:55 UTC 2007
Hi!
I'm running Edgy on an Acer Aspire 1694. I've got Suspend to disk handled
through guidance while in kde and acpi events while out. My problem is
getting Suspend to ram working. It works fine outside kde (triggering the
sleep button or from the console, even with kdm-greeter works fine) but the
script execution stalls right after the resume and blocks my whole acpi if
I'm logged to KDE.
For information I'm using the fglrx driver but it doesn't seem to make a
difference whether I use it or the radeon driver instead.
The relevant part of "ps -ef " after the resume looks like this:
lacsilva 4865 4808 1 15:04 ?
00:00:01 /usr/bin/python /usr/share/python-support/kde-guidance/guidance-power-manager.py
lacsilva 5657 1 0 15:04 ? 00:00:00 /usr/bin/artsd -F 10 -S
4096 -a alsa -d -s 60 -m artsmessage -c drkonqi -l 3 -f
lacsilva 5659 1 0 15:04 ? 00:00:00 /usr/bin/artsd -F 10 -S
4096 -a alsa -d -s 60 -m artsmessage -c drkonqi -l 3 -f
root 5697 4200 0 15:05 ?
00:00:00 /bin/sh /usr/share/hal/scripts/hal-system-power-suspend
root 5698 5697 0 15:05 ? 00:00:00 /bin/bash /usr/sbin/pmi action
suspend force
root 5707 5698 2 15:05 ? 00:00:00 /bin/bash /etc/acpi/sleep.sh
force
lacsilva 6008 4852 0 15:05 pts/0 00:00:00 ps -ef
if I use kde-guidance and like this:
lacsilva 4607 4603 0 Mar04 pts/0 00:00:00 /bin/bash
lacsilva 7309 4732 0 Mar04 ? 00:00:00 kio_file [kdeinit]
file /tmp/ksocket-lacsilva/klauncherld0a2b.slave-socket /tmp/ksocket-lacsilva/kdevelopf163Nb.slave-socket
root 2841 3799 0 14:57 ? 00:00:00 /bin/sh -c /etc/acpi/sleep.sh
root 2842 2841 3 14:57 ? 00:00:01 /bin/bash /etc/acpi/sleep.sh
lacsilva 2931 1 0 14:57 ? 00:00:00 /usr/bin/artsd -F 10 -S
4096 -a alsa -d -s 60 -m artsmessage -c drkonqi -l 3 -f
lacsilva 2933 1 0 14:57 ? 00:00:00 /usr/bin/artsd -F 10 -S
4096 -a alsa -d -s 60 -m artsmessage -c drkonqi -l 3 -f
lacsilva 3154 4607 0 14:58 pts/0 00:00:00 ps -ef
if I use the sleep button.
The rest of the sleep.sh script is executed if I kill X. Then everything
returns to normality after I re-login (well, almost...).
I hacked trough the sleep.sh script putting echo's after every command and
traced the problem to the line:
echo -n $acpi-sleep-MODE > /sys/power/state
This line should cause trigger the sleep mode and the script SHOULD resume
from there after wake-up. The problem is that it stucks there.
Any suggestions on how to manage this are very welcome.
More information about the kubuntu-users
mailing list