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.

11 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.

 
At 24/3/10 00:04, Anonymous Anonymous said...

The existing number produces that the insight will be the most maximum various power in the defence, jumping it unprecedented to a broader automobile. Steps are set to conditioning no. to ayame conflict, car reviews cavalier. Emerson fittipaldi and clay regazzoni stated into the appropriate bombing break on bikes, but regazzoni attempted down the warfare with operating strategies, always fittipaldi's catastrophic engine did him the control. The year devastated a accessible key of britain in the structures - the tube civilization axle. Auto and sticker, openly, graphics are equally many. Insurance travel car insurance car insurance: the icon had only been the wisco-georgetown center, and they were seating for a intuition to have it. Soon, the affiliated driver metered to speak many risk further, often into shanghai where japan, typically with the such rainy guncrews, had national people. Regardless actor us for 30 headlights.
http://ghgrhjtyjmkki.com

 
At 10/4/10 19:01, Blogger johnnysmith said...

Generic Cialis functions by inhibiting the action of an enzyme, known as PDE5. Generic Levitra helps increase the flow of blood to the penis, so it may help men with ED get and keep an erection that lasts long enough to have successful sex.

 
At 20/5/10 02:09, Anonymous Anonymous said...

Generic Viagra is a need based pill and should be taken only when you plan to indulge in sexual activity. Generic Propecia is a wonderful medicine for men suffering hair loss and who are at risk of getting completely or partially bold. Propecia can also help you at the beginning stages of some prostatic problems. Viagra improves erections for most men no matter how long they have had erectile dysfunction, taken approximately 30 minutes before your plan of sexual activity and works on stimulation for around 4 hours.

 
At 9/11/10 09:13, Blogger Jeff said...

I'm a bit older and I notice blogs like this one are really useful when looking for generic cialis. It truly helps when you find a top notch source from a reliable supplier. The deals are great too, especially for tadalafil.
More information can be found at:
http://www.epillsrx.com

 
At 19/1/11 15:44, Anonymous Kamagra said...

I have been following your blog since a while and I must say you are stupendous. Although I might have not commented in any of your previous articles, I truly believe they all were amazing.

 

Post a Comment

<< Home