Jan's Linux Log

This blog started out as an install log of RedHat 9 on a Compaq Presario 2538cl laptop (linuxpresario.blogspot.com) . However, I soon started to include little logs to myself when I made configuration changes to software, etc. So, I've moved it over to our domain, and changed its name to Linux Log. Here you will find some tips & tricks related to Linux configuration on a laptop, as well as software related things that I run into. I log here things that worked for me, of course, your mileage may vary.

Any questions/comments? E-mail me at linux_atsign_boshoff|za|net.

« 2.4.22 Kernel | Main | USB Hotplug »

Software Suspend Setup

October 22, 2003

Installed the suspend.sh script today by downloading it from the swsusp mailing list. (Check out the software suspend site).

Then ran suspend.sh --install. Also, since I'd like to be able to suspend without becoming root, I edited /etc/sudoers, and added:

Host_Alias LOCALHOST=localhost,teleo.che.udel.edu
ALL LOCALHOST=NOPASSWD: /usr/local/sbin/hibernate *

It appears to work right off the bat. Woa! It's pretty cool, and definitely cuts down on boot-up and shutdown time. It's really cool not to have to close all windows before turning off the laptop either. I hooked up software suspension to be activated when I press the power button on the laptop: File /etc/acpi/events/power:

event=button[ /]power
action=sudo /usr/local/sbin/hibernate