public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  controlling xscreensaver throttle
@ 2007-05-26  1:09 »Q«
  2007-06-02  0:05 ` Iain Buchanan
  0 siblings, 1 reply; 3+ messages in thread
From: »Q« @ 2007-05-26  1:09 UTC (permalink / raw
  To: gentoo-user

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

does that (though AFAICT jwz hasn't documented --throttle and
--unthrottle).  I use KDE (but not KDE's screensaver wrapper) and Xfce4,
and for them I've got a simple script that checks the power source and
sets the throttle accordingly whenever I use the icons or the keyboard
to lock the screen manually.

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.

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.

Alternatively, if don't use LockXScreenSaver but instead just have
the hibernate script call the script which sets the throttle state,
this works fine but only locks one screen.  Usually that's ok, but
sometimes I have more than one X session active, and I'd like to lock
them all.

None of this is Gentoo-specific, so if you'd like to point me somewhere
else, feel free.

-- 
»Q«

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user]  controlling xscreensaver throttle
  2007-05-26  1:09 [gentoo-user] controlling xscreensaver throttle »Q«
@ 2007-06-02  0:05 ` Iain Buchanan
  2007-06-05  6:09   ` [gentoo-user] " »Q«
  0 siblings, 1 reply; 3+ messages in thread
From: Iain Buchanan @ 2007-06-02  0:05 UTC (permalink / raw
  To: gentoo-user

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.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-user]  Re: controlling xscreensaver throttle
  2007-06-02  0:05 ` Iain Buchanan
@ 2007-06-05  6:09   ` »Q«
  0 siblings, 0 replies; 3+ messages in thread
From: »Q« @ 2007-06-05  6:09 UTC (permalink / raw
  To: gentoo-user

In <news:1180742744.15806.3.camel@orpheus>,
Iain Buchanan <iaindb@netspace.net.au> wrote:

> 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.

[snip my stuff about resuming from suspend2]
 
> I think the above solution could work here too.

Yes, thanks.  That looks like a good idea, and I'll try it when I get
some time to tinker.

-- 
»Q«

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-06-05  6:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-26  1:09 [gentoo-user] controlling xscreensaver throttle »Q«
2007-06-02  0:05 ` Iain Buchanan
2007-06-05  6:09   ` [gentoo-user] " »Q«

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox