| History log of /src/etc/powerd/scripts |
| Revision | Date | Author | Comments |
| 1.8 | 22-Dec-2007 |
jmcneill | branches: 1.8.2; Add example hotkey_button script
|
| 1.7 | 02-Jul-2007 |
xtraeme | branches: 1.7.4; Add the /etc/powerd/scripts/sensor_indicator to handle events on indicator sensors.
Update powerd(8).
|
| 1.6 | 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.5 | 26-Sep-2006 |
jmcneill | Install all example powerd scripts by default.
|
| 1.4 | 16-May-2004 |
lukem | Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall' target) instead of using home-grown 'distribution' targets or using FILES with the 'install' target. Add some etc/ subdir Makefiles where appropriate.
XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.
|
| 1.3 | 08-Dec-2003 |
lukem | improve comment
|
| 1.2 | 20-Apr-2003 |
thorpej | Add a reset_button script.
|
| 1.1 | 18-Apr-2003 |
thorpej | Add a default power_button script for powerd(8).
|
| 1.7.4.1 | 09-Jan-2008 |
matt | sync with HEAD
|
| 1.8.2.2 | 22-Dec-2007 |
jmcneill | Add example hotkey_button script
|
| 1.8.2.1 | 22-Dec-2007 |
jmcneill | file Makefile was added on branch mjf-devfs on 2007-12-22 19:04:12 +0000
|
| 1.4 | 31-Dec-2010 |
jruoho | Remove the sony(4) and piixpcib(4) based actions; all powerd(8) scripts should either be machine-independent or provide hints for the user. Also clean the script a little.
|
| 1.3 | 22-Aug-2008 |
pgoyette | Enclose the ifconfig commands in $(...) so they actually do something.
Reported on current-users by Pierre Pronchery <khorben at defora dot org>
|
| 1.2 | 27-Sep-2006 |
jnemeth | branches: 1.2.18; 1.2.22; fix a couple of comments
|
| 1.1 | 26-Sep-2006 |
jmcneill | Add useful example scripts for powerd acadapter, lid_switch, and sleep_button events. These use the /dev/apm interface, so should be useful on more than just i386.
|
| 1.2.22.1 | 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
| 1.2.18.1 | 05-Oct-2008 |
mjf | Sync with HEAD.
|
| 1.2 | 17-Jan-2008 |
christos | branches: 1.2.2; try to use programs from base (from anon ymous) sudo -> su
|
| 1.1 | 22-Dec-2007 |
jmcneill | branches: 1.1.2; Add example hotkey_button script
|
| 1.1.2.3 | 23-Mar-2008 |
matt | sync with HEAD
|
| 1.1.2.2 | 09-Jan-2008 |
matt | sync with HEAD
|
| 1.1.2.1 | 22-Dec-2007 |
matt | file hotkey_button was added on branch matt-armv6 on 2008-01-09 01:29:55 +0000
|
| 1.2.2.2 | 17-Jan-2008 |
christos | try to use programs from base (from anon ymous) sudo -> su
|
| 1.2.2.1 | 17-Jan-2008 |
christos | file hotkey_button was added on branch mjf-devfs on 2008-01-17 00:37:47 +0000
|
| 1.9 | 31-Dec-2010 |
jruoho | Remove the apm(8) example. Instead point to the sleep_button -script.
|
| 1.8 | 28-Oct-2010 |
macallan | adapt to how backlight control is supposed to work - just flip the switch and we don't need to save the brightness level
|
| 1.7 | 19-Sep-2010 |
abs | use '/etc/rc.d/apmd onestatus' rather than '/etc/rc.d/apmd status', so we DTRT if apmd is set to NO in rc.conf
|
| 1.6 | 14-Sep-2010 |
macallan | save backlight level and turn it off on lid close, restore on lid open
|
| 1.5 | 20-Jun-2008 |
jmcneill | Don't try to standby on a lid_switch pressed event, this has a few problems: 1. ACPI S1 doesn't work properly for many people on NetBSD 2. It prevents someone from using their laptop with an external display
|
| 1.4 | 27-Sep-2006 |
jnemeth | branches: 1.4.18; 1.4.22; fix a couple of comments
|
| 1.3 | 26-Sep-2006 |
jmcneill | Add useful example scripts for powerd acadapter, lid_switch, and sleep_button events. These use the /dev/apm interface, so should be useful on more than just i386.
|
| 1.2 | 30-Oct-2003 |
mycroft | Oops, fix comments.
|
| 1.1 | 30-Oct-2003 |
mycroft | Add dummy scripts for these events.
|
| 1.4.22.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
| 1.4.18.1 | 29-Jun-2008 |
mjf | Sync with HEAD.
|
| 1.3 | 01-Nov-2003 |
mycroft | Announce a reason for the shutdown.
|
| 1.2 | 30-Oct-2003 |
mycroft | Use logger(1) to log errors -- otherwise the output goes nowhere.
|
| 1.1 | 18-Apr-2003 |
thorpej | Add a default power_button script for powerd(8).
|
| 1.3 | 01-Nov-2003 |
mycroft | Announce a reason for the shutdown.
|
| 1.2 | 30-Oct-2003 |
mycroft | Use logger(1) to log errors -- otherwise the output goes nowhere.
|
| 1.1 | 20-Apr-2003 |
thorpej | Add a reset_button script.
|
| 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")
|
| 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.3 | 11-Oct-2007 |
xtraeme | Fix a typo in previous.
|
| 1.2 | 11-Oct-2007 |
xtraeme | Use consistenly more meaningful messages in all envsys scripts.
|
| 1.1 | 01-Jul-2007 |
xtraeme | branches: 1.1.4; 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.1.4.1 | 06-Nov-2007 |
matt | sync with HEAD
|
| 1.5 | 27-Aug-2012 |
pgoyette | Handle any reports of state changes for INDICATORs
|
| 1.4 | 11-Oct-2007 |
xtraeme | branches: 1.4.30; 1.4.32; Fix a typo in previous.
|
| 1.3 | 11-Oct-2007 |
xtraeme | Use consistenly more meaningful messages in all envsys scripts.
|
| 1.2 | 16-Jul-2007 |
xtraeme | branches: 1.2.4; This one is shared for Indicators and Integers... update the comment.
|
| 1.1 | 02-Jul-2007 |
xtraeme | Add the /etc/powerd/scripts/sensor_indicator to handle events on indicator sensors.
Update powerd(8).
|
| 1.2.4.1 | 06-Nov-2007 |
matt | sync with HEAD
|
| 1.4.32.1 | 17-Oct-2012 |
riz | Pull up following revision(s) (requested by pgoyette in ticket #545): etc/powerd/scripts/sensor_indicator: revision 1.5 sys/dev/sysmon/sysmon_envsys_tables.c: revision 1.11 sys/sys/envsys.h: revision 1.32 sys/dev/sysmon/sysmon_envsysvar.h: revision 1.43 sys/dev/sysmon/sysmon_envsys_events.c: revision 1.104 Provide names for the values associated with INDICATOR sensors. 1. Enable use of FMONSTCHANGED events for INDICATOR sensors 2. Update handling of FMONCRITICAL event reporting. The state transition does not require a corresponding change in value. With these changes, you can now have an INDICATOR sensor that reports the presence or absence of a device, and (if the device is present) separately monitor it for proper functioning. Should address the concerns expressed recently with the commit of changes to wmi(4) BBU handling. Handle any reports of state changes for INDICATORs
|
| 1.4.30.1 | 30-Oct-2012 |
yamt | sync with head
|
| 1.3 | 11-Oct-2007 |
xtraeme | Fix a typo in previous.
|
| 1.2 | 11-Oct-2007 |
xtraeme | Use consistenly more meaningful messages in all envsys scripts.
|
| 1.1 | 01-Jul-2007 |
xtraeme | branches: 1.1.4; 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.1.4.1 | 06-Nov-2007 |
matt | sync with HEAD
|
| 1.3 | 11-Oct-2007 |
xtraeme | Fix a typo in previous.
|
| 1.2 | 11-Oct-2007 |
xtraeme | Use consistenly more meaningful messages in all envsys scripts.
|
| 1.1 | 01-Jul-2007 |
xtraeme | branches: 1.1.4; 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.1.4.1 | 06-Nov-2007 |
matt | sync with HEAD
|
| 1.4 | 10-Apr-2012 |
jruoho | Gracefully shutdown upon reaching critical temperature levels. Prevents few laptops (ThinkPad T61 and x61s, among others) from hitting the in-CPU reset.
|
| 1.3 | 11-Oct-2007 |
xtraeme | branches: 1.3.30; 1.3.32; Fix a typo in previous.
|
| 1.2 | 11-Oct-2007 |
xtraeme | Use consistenly more meaningful messages in all envsys scripts.
|
| 1.1 | 01-Jul-2007 |
xtraeme | branches: 1.1.4; 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.1.4.1 | 06-Nov-2007 |
matt | sync with HEAD
|
| 1.3.32.1 | 12-Apr-2012 |
riz | Pull up following revision(s) (requested by jruoho in ticket #177): etc/powerd/scripts/sensor_temperature: revision 1.4 Gracefully shutdown upon reaching critical temperature levels. Prevents few laptops (ThinkPad T61 and x61s, among others) from hitting the in-CPU reset.
|
| 1.3.30.1 | 17-Apr-2012 |
yamt | sync with head
|
| 1.3 | 11-Oct-2007 |
xtraeme | Fix a typo in previous.
|
| 1.2 | 11-Oct-2007 |
xtraeme | Use consistenly more meaningful messages in all envsys scripts.
|
| 1.1 | 01-Jul-2007 |
xtraeme | branches: 1.1.4; 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.1.4.1 | 06-Nov-2007 |
matt | sync with HEAD
|
| 1.11 | 13-Jul-2017 |
roy | Remove the stopping and starting of various network scripts on sleep / resume. This should no longer be needed now the various applications (dhcpcd, ntpd, wpa_supplicant et all) are more aware to the network state as all interface carriers should be brought down and up again.
Fixes PR misc/52397.
|
| 1.10 | 17-Oct-2011 |
jmcneill | branches: 1.10.22; restart dhcpcd if we get a "released" event from the vmt0 driver
|
| 1.9 | 17-Sep-2011 |
jym | - use -q to test for presence of a sysctl(7) variable silently - modify powerd(8) sleep_button script so it can handle the soon-to-be Xen suspend command.
|
| 1.8 | 27-May-2011 |
plunky | provide a new 'bluetooth' rc.d script, to handle Bluetooth configuration in a simpler manner. This replaces btattach, btconfig, bthcid, btdevctl and sdpd scripts, and also should not require any configuration settings other than "bluetooth=YES", though the full range of configurations is still possible.
|
| 1.7 | 31-Dec-2010 |
jruoho | Use hw.acpi.sleep.state instead of machdep.sleep_state.
|
| 1.6 | 19-Sep-2010 |
abs | use '/etc/rc.d/apmd onestatus' rather than '/etc/rc.d/apmd status', so we DTRT if apmd is set to NO in rc.conf
|
| 1.5 | 06-Jun-2008 |
jmcneill | Stop and start bluetooth services across suspend.
|
| 1.4 | 21-May-2008 |
jmcneill | If machdep.sleep_state is present, use it in favour of apm. Also stop and start wpa_supplicant across suspend/resume just to be safe.
|
| 1.3 | 26-Sep-2006 |
jmcneill | branches: 1.3.18; 1.3.20; 1.3.22; Add useful example scripts for powerd acadapter, lid_switch, and sleep_button events. These use the /dev/apm interface, so should be useful on more than just i386.
|
| 1.2 | 30-Oct-2003 |
mycroft | Oops, fix comments.
|
| 1.1 | 30-Oct-2003 |
mycroft | Add dummy scripts for these events.
|
| 1.3.22.1 | 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
| 1.3.20.2 | 17-Jun-2008 |
yamt | sync with head.
|
| 1.3.20.1 | 04-Jun-2008 |
yamt | sync with head
|
| 1.3.18.2 | 29-Jun-2008 |
mjf | Sync with HEAD.
|
| 1.3.18.1 | 02-Jun-2008 |
mjf | Sync with HEAD.
|
| 1.10.22.1 | 25-Aug-2018 |
martin | Pull up following revision(s) (requested by roy in ticket #1631):
etc/powerd/scripts/sleep_button: revision 1.11
Remove the stopping and starting of various network scripts on sleep / resume.
This should no longer be needed now the various applications (dhcpcd, ntpd, wpa_supplicant et all) are more aware to the network state as all interface carriers should be brought down and up again.
Fixes PR misc/52397.
|