git: powerd: Linger a little bit if battery life is low

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Jun 17 05:50:04 PDT 2015


commit b1b8502e33038d6d4fefcf5a2f01c6c2d118aa0e
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Jun 17 20:39:34 2015 +0800

    powerd: Linger a little bit if battery life is low
    
    So that we could have time to plugin AC line.
    
    And in addition to logging messages on console, alarming audio
    alert, since most laptop users will use X; they will not notice
    the console messages.  Audio alert is enabled by default and
    could be disabled by -Q.
    
    While I'm here, fix powerd.8 and allow disabling battery life
    monitoring if 0 is passed to -P.
    
    Suggested-by: seallyhs

Summary of changes:
 usr.sbin/powerd/alert1.h | 4505 ++++++++++++++++++++++++++++++++++++++++++++++
 usr.sbin/powerd/powerd.8 |   20 +-
 usr.sbin/powerd/powerd.c |   91 +-
 3 files changed, 4590 insertions(+), 26 deletions(-)
 create mode 100644 usr.sbin/powerd/alert1.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b1b8502e33038d6d4fefcf5a2f01c6c2d118aa0e


-- 
DragonFly BSD source repository



More information about the Commits mailing list