History log of /src/etc/powerd/scripts/sensor_battery |
Revision | | Date | Author | Comments |
1.8 |
| 13-Mar-2014 |
christos | Add some states not handled before. XXX: are both states in the | cases possible?
|
1.7 |
| 15-Feb-2010 |
pgoyette | branches: 1.7.6; 1.7.12; Add cases for new {high,maximum}-capacity events
|
1.6 |
| 13-Jun-2009 |
pgoyette | Long-overdue update. Need to handle both {warning,critical}-capacity events.
|
1.5 |
| 11-Oct-2007 |
xtraeme | Also log the 'low-power' event via logger -p warning to have records of what happened.
|
1.4 |
| 10-Oct-2007 |
xtraeme | Fix the problems described in: http://mail-index.netbsd.org/current-users/2007/07/16/0012.html
- Introduce sme_class into the sysmon_envsys struct to specify a class; currently there are two classes: SME_CLASS_ACADAPTER and SME_CLASS_BATTERY.
- Add a new envsys event: PENVSYS_EVENT_LOW_POWER that is reached when all SME_CLASS_BATTERY devices are in CRITICAL/LOW state and there's not any SME_CLASS_ACADAPTER connected.
- Add the 'low-power' event into the sensor_battery script that will shutdown the system gracefully via 'shutdown -p'. If powerd(8) is not running, cpu_reboot(9) with RB_POWERDOWN is used.
- Make acpiacad(4) a SME_CLASS_ACADAPTER device and acpibat(4) a SME_CLASS_BATTERY device.
Update the documentation accordingly to these changes.
|
1.3 |
| 04-Sep-2007 |
xtraeme | Only three events are reported now:
normal state-changed user-capacity
But there's a fourth argument passed to the script that will report current state description.
|
1.2 |
| 17-Jul-2007 |
xtraeme | branches: 1.2.4; Do not shutdown the system when a critical event is received, this doesn't work when there are two or more batteries in acpibat(4).
|
1.1 |
| 01-Jul-2007 |
xtraeme | Imported envsys 2, a brief description of the new features: (Part 4: documentation and configuration files)
* Support for detachable sensors. * Cleaned up the API for simplicity and efficiency. * Ability to send capacity/critical/warning events to powerd(8). * Adapted all the code to the new locking order. * Compatibility with the old envsys API: the ENVSYS_GTREINFO and ENVSYS_GTREDATA ioctl(2)s are supported. * Added support for a 'dictionary based communication channel' between sysmon_power(9) and powerd(8), that means there is no 32 bytes event size restriction anymore. * Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40. * All drivers with the n^2 gtredata bug were fixed, PR kern/36226.
Tested by:
blymn: smsc(4). bouyer: ipmi(4), mfi(4). kefren: ug(4). njoly: viaenv(4), adt7463.c. riz: owtemp(4). xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
|
1.2.4.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.7.12.1 |
| 19-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.7.6.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|