Re: API to turn off the display

From: Randy Bush <randy_at_psg.com>
Date: Sat, 31 Jan 2004 20:31:32 +0000
> 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
Received on Sat Jan 31 2004 - 11:31:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:41 UTC