[ltp] TP R50e suspend-to-ram solved! (crossing fingers)
Pawel Topa
linux-thinkpad@linux-thinkpad.org
Fri, 15 Apr 2005 14:59:36 +0200
Hello Andrew!
It looks like Your script solved the problems with my thinkpad R50e. Now
my notebook goes sleep and resumes without any problems. I had to make
some minor modifications mainly connected with usb modules
I have to remove logger commands becouse every 6-5 suspend syslog has
crushed. Mayby its selinux related?
I have Fedora Core 3 with vanilla kernell 2.6.11.6.
This is my script:
#!/bin/bash
#i'm not sure if it really neccessary
/sbin/ifdown eth0 #ethernet
/sbin/ifdown eth1 #wireless
/bin/sync
/bin/sync
/bin/sync
/sbin/rmmod uhci-hcd
/sbin/rmmod ehci-hcd
/usr/bin/chvt 1
vbetool vbestate save > /var/cache/video.state
cat /proc/bus/pci/00/02.0 > /var/cache/video.config
echo -n mem > /sys/power/state
cat /var/cache/video.config > /proc/bus/pci/00/02.0
cat /var/cache/video.state | vbetool vbestate restore
vbetool post
rm -rf /var/cache/video.config
rm -rf /var/cache/video.state
/usr/bin/chvt 7
/sbin/modprobe uhci-hcd
/sbin/modprobe ehci-hcd
/sbin/ifup eth0
/sbin/ifup eth1
exit 0
Regards
Paweł Topa