View Single Post
Old 11-15-05, 06:17 PM   #10
Registered User
Join Date: Nov 2005
Posts: 5
Thumbs up Re: Suspend and 2.6.14

Originally Posted by rbirdman
Can I grep through the source code for that define statement and change it to 3?
I've tried it out a few minutes ago and it worked for me :-)

I editet /usr/src/linux/include/linux/pm.h on Line 214 and changed "#define PM_EVENT_SUSPEND 2" to "#define PM_EVENT_SUSPEND 3".
Then I recompiled my Kernel: "make clean && make-kpkg clean", "make-kpkg --initrd --revision ver2 binary-arch".

After reboot I tried to load the nvidia module and did an "echo -n "mem" /sys/power/state" and it seemed to work

After wakeup the display was distroyed, but I've found a script to get around that earlier this week. My /etc/acpi/actions/ looks like:

# lid button pressed/released event handler
/usr/sbin/laptop_mode stop
chvt 1
modprobe -r ehci_hcd
modprobe -r uhci_hcd
echo "vbetool save"
vbetool vbestate save > /tmp/sleeping
echo -n "mem" > /sys/power/state
vbetool post
echo "restore"
vbetool vbestate restore < /tmp/sleeping
rm /tmp/sleeping
modprobe uhci_hcd
modprobe ehci_hcd
echo "brightness:3" > /proc/acpi/toshiba/lcd
/usr/sbin/laptop_mode start
chvt 7
I've a Toshiba Sattelite Pro M30 with a Geforce Go 5200, Debian Etch with Kernel 2.6.14.

Thank you so much for your hint, Zander!!!

bigsur2k4 is offline   Reply With Quote