Re: [RFC] Disable disk spinup during system resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 21 Jul 2011, Pádraig Brady wrote:

> On 21/07/11 15:49, Alan Stern wrote:
> > On Thu, 21 Jul 2011, Pádraig Brady wrote:
> > 
> >> Hi,
> >>
> >> I have a secondary sata disk (sda)  in my system that
> >> I would like not to spinup on resume.
> 
> 
> >> I tried this to no avail:
> >>
> >>   echo 0 > /sys/block/sda/device/scsi_disk/*/manage_start_stop
> 
> 
> > Try adding a dump_stack() line to 
> > drivers/scsi/sd.c:sd_start_stop_device() and see what shows up in the 
> > kernel log.
> 
> Tried that, and nothing is calling it for sda
> (There were calls for sdb of course).
> So it seems like something lower level :(

Not at all -- nothing at a lower level generates SCSI commands.  This
means it is something at a higher level, like a program using SG_IO to
pass the START STOP command to the drive directly.

> I'll keep digging.

What happens if you kill all the running processes (or as many as 
possible) before starting the suspend?

Also, how do you initiate the suspend?  Do you use a program, or do you 
simply "echo mem >/sys/power/state"?

Alan Stern

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm



[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux