Hi Gregor, Thanks for your continued interest in fdpowermon! ;-)
On Thu, Nov 29, 2012 at 09:46:27PM +0100, gregor herrmann wrote: > Package: fdpowermon > Version: 1.6 > Severity: wishlist > Tags: patch > > Since fdpowermon is already tracking battery percentage, I thought it > would be nice to have a configuration option to run a command when > the level is <= a specified level. > > Find attached a quick patch that implements running a command at a certain > threshold. > > I've added > action = 80:sudo pm-suspend > to the config for testing, and it works :) I understand where this is coming from, and am not particularly opposed to doing this, but there's one issue I'm a bit worried about. The reason I wrote fdpowermon is because I wanted a battery monitor that does /not/ try to do all kinds of things beyond telling me what my battery level is. The battery monitors (aka power managers) written for the common desktop environments do this already, and it's what I didn't like about them. While I'm not opposed, per se, to a feature of this kind, I'd like to avoid being sucked into a slippery slope of all kinds of "run foo when bar happens" features that would turn fdpowermon into exactly the kind of thing the dislike of which caused me to write it in the first place. For that, I think the feature should be off by default, and generic enough that it can be used for more than just battery level -- I dunno, some kind of event system or some such. Additionally, if I'm going to implement this, this feature should probably be configurable on a per-user basis, rather than just system-wide. -- Copyshops should do vouchers. So that next time some bureaucracy requires you to mail a form in triplicate, you can mail it just once, add a voucher, and save on postage. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

