You are not logged in.

#1 2007-07-30 11:30:01

sssslang
Member
Registered: 2006-03-18
Posts: 9

harddisk noise when suspend(with patched kernel)

Hi there, I had solve the problem which cause my harddisk make a strange noise when my notebook shutdown by patching the kernel. I also add the following lines to /etc/rc.local.shutdown:

for disk in /sys/class/scsi_disk/* ; do
    echo 1 > $disk/stop_on_shutdown
done

But it seems not work for the suspend process. Could someone tell me how to make it right when suspend with suspend2?

Offline

#2 2007-07-30 13:19:37

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: harddisk noise when suspend(with patched kernel)

You should put this into the suspend script - if you're using suspend2 then this means the hibernate script.  I'm not sure if you can enter this code into the hibernate script directly, but you should be able to create a new script that contains the lines of code you quoted (remember to make it executable afterwards) and then execute it from the hibernate script for example by adding something like:

OnSuspend 90 /path/to/script/scriptname.sh

to /etc/hibernate/common.conf.

Offline

#3 2007-07-30 16:28:52

sssslang
Member
Registered: 2006-03-18
Posts: 9

Re: harddisk noise when suspend(with patched kernel)

thanks, I missed it.

Offline

Board footer

Powered by FluxBB