Re: syncing the disks when entering sleep

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

 



> > > > The ideal behavior would be:
> > > > 
> > > >     if(disk is spun up)
> > > >         then let the sync happen
> > > 
> > > I'm not against that.  Patch welcome. :-)
> > 
> > I'd say such knob would be ugly.
> 
> Define "ugly", please.

Per-system property, which should better be
per-program-that-requires-suspend. You request suspend without syncing
(you want it quick, battery is 90%), then the battery runs low, and
system daeomn requests s2ram, not realizing that someone disabled sync
from under him.

> > But maybe acceptable way would be echo mem-nosync > power, or maybe it can
> > already be done using s2disk ioctl interface...?
> 
> Nope.

Nope what?

AFAICT no new interface is needed. Just do SNAPSHOT_FREEZE, then
_S2RAM then _UNFREEZE.
								Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
_______________________________________________
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