git: powerd: Add emergency poweroff support if laptop battery life is low.

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Jun 10 02:22:09 PDT 2015


commit aa7fc22a68386d216261b11a5168e447778f5b5e
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Tue Jun 9 23:46:17 2015 +0800

    powerd: Add emergency poweroff support if laptop battery life is low.
    
    And by default linger 60 seconds if battery life is low and powerd just
    started; mainly to avoid poweroff immediately after a low battery life
    laptop just booted.

Summary of changes:
 usr.sbin/powerd/powerd.8 |  14 +++++
 usr.sbin/powerd/powerd.c | 141 +++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 151 insertions(+), 4 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list