Friday, July 25, 2008

Everex Suspend in Linux

I got my Everex StepNote ST5340T to suspend today in ArchLinux! Yea! Suspending is a very important feature, especially when you're on the road, because it allows you to turn the computer off and on quickly. Here is my little script:

#!/bin/bash
modprobe -r rt73usb
sleep .7
modprobe -r ehci_hcd
sleep .7
modprobe -r ohci_hcd
sleep .7
modprobe -r rt73usb
sleep .7
echo "mem" > /sys/power/state
sleep .7
modprobe rt73usb
sleep .7
modprobe ehci_hcd
sleep .7
modprobe ohci_hcd
sleep .7
modprobe rt73usb
sleep .7
/usr/bin/netcfg2 -a
sleep .7
/usr/bin/netcfg-auto-wireless wlan0

I'm confident that it could be optimized greatly, but it works for now. If you have any questions, send and email or post a comment.

No comments:

Pyjamas