[Pm-utils] [PATCH RFC] Merge 20video and 99video

Victor Lowther victor.lowther at gmail.com
Tue Feb 19 16:07:59 PST 2008


On Tue, Feb 19, 2008 at 01:50:29PM +0000, Richard Hughes wrote:
> On Sat, 2008-02-16 at 18:53 -0600, Victor Lowther wrote:
> > After examining the source to s2ram and seeing how it does the video
> > quirk handling, I cannot see why 20video an 99video are seperate
> > hooks.
> 
> The ordering must be preserved - and we want to kill the video last and
> bring it up first.

That makes no sense whatsoever, then -- 20video saves state early in the 
sleep cycle, and 99video restores it first thing in the wake cycle.

Not only is it counterintuitive, it is a race condition begging to
happen -- we save state, then we beg for potentially drastic things to
happen by stopping services and unloading modules, we sleep, then we
restore state before having loaded modules (including potentially video
card drivers).

If you want to kill video last, it should be in 99video, and if you want
to bring it back first it should also be in 99video.  At least then the
state we save will be saved from an environment that much more closely
approximates the one we restore it in.
 
> Richard
> 
> 

-- 
Victor Lowther
Ubuntu Certified Professional


More information about the Pm-utils mailing list