suspen to disk / ram
please if anyone have slackware linux and ibm r51 can you send me your scripts for suspends to ram / hdd.
i can't run lid action when i close notebook my suspend to rma script doesnt start.
my suspend to ram script is
big thnx for help me
# if launched through a lid event and lid is open, do nothing
echo "$1" | grep "button/lid" && grep -q open /proc/acpi/button/lid/LID/state && exit 0
# remove USB 1.1 driver
# sync filesystem and clock
# switch to console
#/usr/sbin/radeontool light off
# go to sleep
echo -n "mem" > /sys/power/state
# readjust the clock (it might be off a bit after suspend)
# reload USB 1.1 driver
# turn on the backlight and switch back to X
#radeontool light on
sorry about my english
Let me copy the script and see. I might be able to help you. Do not worry about your english; it is all right. Just let me get the script and check some things. The computer I am running also has what is called "advanced power management", meaning that it can do things like a lid-action task. Please wait; a reply will be given within the hour.
The only help I might be able to offer is that the modprobe can list the modules. If you want to see if they are available, you can egrep the output of modprobe -c to determine what modules you have, and then you can try insmod when you want to turn them on again.
I think that if rmmod removes them, then insmod ought to insert them. When they are inserted, I think that they will start up again when you want them to.
Also, another way you can try to cause the computer to stop what it is doing may be the use of the sleep command. Once you have saved the system state to memory, you can tell it to sleep, which means that it stops what it is doing. While sleeping, you may be able to tell it that if the lid is opened up, to stop the sleep, restore the information, and bring your computer back to a point as though you were not closing the lid, causing it to stop what it is doing.
I hope this helps, because I have used the sleep command, and it seemed to work as well, so I guess that you could see what the sleep command does, and use that in the script.
I am sorry if I was going on, or if I did not address the specific issue.
I hope this helps.