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/lm_lid.sh looks like:
# lid button pressed/released event handler
modprobe -r ehci_hcd
modprobe -r uhci_hcd
echo "vbetool save"
vbetool vbestate save > /tmp/sleeping
echo -n "mem" > /sys/power/state
vbetool vbestate restore < /tmp/sleeping
echo "brightness:3" > /proc/acpi/toshiba/lcd
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!!!