From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HuHAP-0002Rr-MY for garchives@archives.gentoo.org; Sat, 02 Jun 2007 00:08:26 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l52076Zt000526; Sat, 2 Jun 2007 00:07:06 GMT Received: from mail.netspace.net.au (mail-out4.netspace.net.au [203.10.110.77]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l5202JrA027413 for ; Sat, 2 Jun 2007 00:02:20 GMT Received: from [10.233.80.174] (unknown [58.171.74.111]) by mail.netspace.net.au (Postfix) with ESMTP id 2D6D53765F1 for ; Sat, 2 Jun 2007 10:02:16 +1000 (EST) Subject: Re: [gentoo-user] controlling xscreensaver throttle From: Iain Buchanan To: gentoo-user@lists.gentoo.org In-Reply-To: References: Content-Type: text/plain; charset=utf-8 Date: Sat, 02 Jun 2007 08:05:44 +0800 Message-Id: <1180742744.15806.3.camel@orpheus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id l52076aE000526 X-Archives-Salt: 2cbeffaf-6fc4-439b-8d4d-7424ce829c75 X-Archives-Hash: 08e120d65690186da325bcea8e708768 On Fri, 2007-05-25 at 20:09 -0500, =C2=BBQ=C2=AB wrote: > I'm using a laptop, and I'd like xscreensaver to just display a blank > screen when running on battery power. The command >=20 > $ 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 i= s > 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, --=20 Iain Buchanan 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. --=20 gentoo-user@gentoo.org mailing list