Vlad's Musings

Thursday, July 21, 2005

FC4: Enabling suspend to RAM

I've found another nice Dell D600 FC setup page here. Among other things it has the instructions for setting up S3 mode (suspend to RAM). You can refer to the original page for the instructions, I'm also including my version of these same instructions here for completeness.

To get Hibernate to work you you'll need log in as root (su -) a create a new file /etc/acpi/events/sleep.conf with the following content:

event=button/sleep *
action=/etc/acpi/actions/sleep.sh
You'll also need to create the file /etc/acpi/actions/sleep.sh with:
#!/bin/tcsh
# Script to drive the system to S3
# suspend-to-ram
#
# JRA Jan 2005

# Step 1: preparing sleep
if (-e /suspending) then
echo "already in the process of suspending. Please be patient."
else
/bin/touch /suspending
/usr/bin/killall -s SIGUSR1 cpuspeed
/usr/bin/chvt 1 # necessary to make DRI work
/sbin/service anacron stop
# USB doesn't suspend without unloading first
/sbin/rmmod ehci_hcd
/sbin/rmmod uhci_hcd
#save the system time
/sbin/hwclock --adjust
/sbin/rmmod wacom # only necessary of you have wacom stylus
/sbin/rmmod -as
/bin/sync

# Step 2: send sleep command via ACPI
echo mem > /sys/power/state

# Step 3: wake-up and reload
/sbin/hwclock --hctosys
/sbin/modprobe ehci_hcd
/sbin/modprobe uhci_hcd
# initialise X
xinit /bin/false -- :1
/usr/bin/chvt 7
/sbin/service anacron start
/sbin/service cpuspeed restart
rm /suspending
endif
Make sure that the file is executable (to do this run chmod 700 /etc/acpi/actions/sleep.sh). Finally you'll need to restart the acpi system: service acpid restart.

6 Comments:

At 1/5/06 23:37, Blogger louissmith3802717157 said...

Get any Desired College Degree, In less then 2 weeks.

Call this number now 24 hours a day 7 days a week (413) 208-3069

Get these Degrees NOW!!!

"BA", "BSc", "MA", "MSc", "MBA", "PHD",

Get everything within 2 weeks.
100% verifiable, this is a real deal

Act now you owe it to your future.

(413) 208-3069 call now 24 hours a day, 7 days a week.

 
At 6/8/06 02:14, Anonymous www spyware com said...

I was searching blogs,and I found yours.Please,
accept my congratulations for your excellent work!
If you have a moment, please visit my www spyware com site.
Have a good day!

 
At 15/2/07 22:44, Anonymous Anonymous said...

Relax and enjoy

Casino
viagra
tramadol
cialis

 
At 20/2/07 05:10, Anonymous Anonymous said...

Tramadol, viagra

viagra
tramadol
cialis

 
At 20/2/07 14:43, Anonymous Anonymous said...

Latest news. Viagra, cialis

viagra
cialis
tramadol

 
At 12/3/10 02:52, Blogger allissamarshal said...

Generic Viagra is used in the treatment of Erectile Dysfunction (impotence), but it is not a cure. Impotence can be caused by a number of factors, either physical or psychological. Viagra can help maintain an erection but it will not stimulate arousal.

 

Post a Comment

<< Home