Re: suspend/resume uevents [was Re: Introducing HAL userspace power management]

Nigel Cunningham
2005-03-11T20:39:34Z

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

Hi.

On Fri, 2005-03-11 at 22:55, Stefan Seyfried wrote:
> Pavel Machek wrote:
> > Hi!
>
> > I'm afraid this is racy by default. Machine resumes, then Xscreensaver
> > is being told that it should lock, but bad user may type in console in
> > meantime or something.
>
> i do of course lock the screen before suspend, but some screensavers are
> not synchronous and take some time to actually lock. It is a mess.
>
> > Synchronous notification *before* suspend might do the trick,
> > through. Tell Xscreensaver to lock, wait for it to lock, only then
> > proceed with suspend. That seems only safe solution.
>
> Yes, but you'll need another ~10 seconds until power off.
> Both xscreensaver and kde screensaver are not from the speedy department :-(

There's an xset to activate the screensaver too - and to force it to
lock if you want.

Regards,

Nigel
--
Nigel Cunningham
Software Engineer, Canberra, Australia
http://www.cyclades.com
Bus: +61 (2) 6291 9554; Hme: +61 (2) 6292 8028; Mob: +61 (417) 100 574

Maintainer of Suspend2 Kernel Patches http://suspend2.net