OpenGrok
Cross Reference: lid_switch
xref
: /
src
/
etc
/
powerd
/
scripts
/
lid_switch
Home
|
History
|
Annotate
|
Download
|
only in
scripts
History log of
/src/etc/powerd/scripts/lid_switch
Revision
Date
Author
Comments
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.
Indexes created Fri Oct 17 23:09:53 GMT 2025