On Friday, 6 October 2006 16:21, Stefan Seyfried wrote:
> On Fri, Oct 06, 2006 at 04:04:45PM +0200, Rafael J. Wysocki wrote:
> > On Friday, 6 October 2006 15:54, Stefan Seyfried wrote:
> > > Hi,
> > > 
> > > i just had an idea :-)
> > > 
> > > Is it possible, by using the uswsusp infrastructure, to freeze everything
> > > but the s2ram process during suspend to RAM?
> > 
> > Yup.
> > 
> > > I mean the following: 
> > > 
> > > start s2ram
> > > - chvt away from X
> > > - freeze everything else
> > > - save video state etc.
> > > - echo mem > /sys/power/state
> > 
> > ioctl(snapshot_fd, SNAPSHOT_S2RAM, 0)
> 
> ok.
> 
> > > - post video etc.
> > > - thaw everything else
> > > 
> > > When doing it this way, nothing could interfere with video POST (on some
> > > machines the VBE calls take some seconds, the user might already press
> > > ALT-F7 in the meantime), the whole video resume business would be "almost"
> > > in-kernel.
> > > 
> > > Is this a good idea? Is it doable?
> > 
> > We'll need to save the video state to something like a swap file, but
> > otherwise it seems doable.
> 
> Why? We have it in memory like always:
> 
> save state:
>     vbe_buffer = __save_state(&size);
> restore:
>     restore_state_from(vbe_buffer);

Ah, yes, sorry.  [I keep forgetting that memory is not lost with a suspend
to RAM. ;-)]


-- 
You never change things by fighting the existing reality.
                R. Buckminster Fuller

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to