s2ram autowake regression is still there in 2.6.21-rc4-git
Hi!
Run this script. The s2ram at the end of it will wakeup immediately after going to sleep, bad. I tried reproducing it with smaller version, but was not too successful.
Pavel
#!/bin/bash
killall klogd
echo -n "testing refrigerator (testproc)..."
echo testproc > /sys/power/disk
echo disk > /sys/power/state
echo "okay"
sleep 2
echo -n "testing drivers (test)..."
echo test > /sys/power/disk
echo disk > /sys/power/state
echo "okay"
sleep 2
echo -n "testing swsusp (reboot)..."
echo reboot > /sys/power/disk
echo disk > /sys/power/state
echo "okay"
sleep 2
echo -n "testing s2ram..."
s2ram
echo "okay"
sleep 2
echo -n "testing swsusp (shutdown)..."
echo shutdown > /sys/power/disk
echo disk > /sys/power/state
echo "okay"
sleep 2
echo -n "testing swsusp (platform)..."
echo platform > /sys/power/disk
echo disk > /sys/power/state
echo "okay"
sleep 2
echo -n "testing s2ram..."
s2ram
echo "okay"
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Hi!
Quoted 3 lines
Run this script. The s2ram at the end of it will wakeup immediately after going to sleep, bad. I tried reproducing it with smaller version, but was not too successful.
Actually
Quoted 10 lines
sleep 2
echo -n "testing swsusp (platform)..."
echo platform >/sys/power/disk
echo disk >/sys/power/state
echo "okay"sleep 2
echo -n "testing s2ram..."
s2ram
echo "okay"
...this is enough to trigger it. I've done my testing on x60, FWIW.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Quoted 14 lines · Pavel Machek
Hi!
Quoted 3 lines
Run this script. The s2ram at the end of it will wakeup immediately after going to sleep, bad. I tried reproducing it with smaller version, but was not too successful.
Actually
Quoted 6 lines
sleep 2
echo -n "testing swsusp (platform)..."
echo platform >/sys/power/disk
echo disk >/sys/power/state
echo "okay"
Quoted 6 lines
Quoted 4 lines
sleep 2
echo -n "testing s2ram..."
s2ram
echo "okay"...this is enough to trigger it. I've done my testing on x60, FWIW.
Please try the consolidated ACPI patch that is currently staged for release to upstream:
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6.21/acpi-release-20070126-2.6.21-rc4.diff.gz
comming soon to a mirror near you:-)
thanks,
-Len