API to turn off the display
Randy Bush
randy at psg.com
Sat Jan 31 12:31:34 PST 2004
> STAT=`sysctl hw.acpi.video.lcd0.active |awk '{print $2}'`
>
> sync && sync && sync
>
> if [ $STAT = 1 ]; then
> logger -t Lid Close at `date +'%Y%m%d %H:%M:%S'`
> sysctl hw.acpi.video.lcd0.active=0
> sysctl hw.acpi.cpu.throttle_state=1
> echo A >/dev/speaker
> else
> logger -t Lid Open at `date +'%Y%m%d %H:%M:%S'`
> sysctl hw.acpi.cpu.throttle_state=8
> sysctl hw.acpi.video.lcd0.active=1
> echo C >/dev/speaker
> fi
with a very recent current,
# sysctl -a | grep video
hw.acpi.reset_video: 1
# sysctl -a | grep lcd
#
i.e., those systls went away!
randy
More information about the freebsd-current
mailing list