On Fri, 2007-05-25 at 20:09 -0500, »Q« wrote:
> I'm using a laptop, and I'd like xscreensaver to just display a blank
> screen when running on battery power.  The command
> 
> $ xscreensaver-command --throttle

[snip]

> But when xscreensaver kicks in because of idle time, it's unthrottled
> no matter the power source, and I can't find a way to control that.  If
> I could control this, I'd be happy.  The stuff below about suspending is
> less important to me.

how about running a daemon to watch the output of
`xscreensaver-command -watch`
instead of using your script.  That way, regardless of what kicks off
the screensaver (you or the timeout) you can then do some action to it.

> I use suspend2 to suspend to HDD, and I want to lock the screen
> when suspending. Using the LockXScreenSaver option in hibernate.conf
> locks all X displays, but even if xscreensaver is throttled before
> that, upon resume from suspend it's unthrottled.  AFAICT, when
> resuming, suspend2 actually restarts xscreensaver, so its state was
> lost.

I think the above solution could work here too.

HTH,
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

<Deek> If the user points the gun at his foot and pulls the trigger, it
       is our job to ensure the bullet gets where it's supposed to.

-- 
[EMAIL PROTECTED] mailing list

Reply via email to