Date: Sat, 31 Jan 2004 20:31:32 +0000 From: Randy Bush <randy@psg.com> To: "Sebastian Yepes F. [ESN]" <esn@x123.info> Cc: freebsd-current@freebsd.org Subject: Re: API to turn off the display Message-ID: <E1An1m8-000PzO-HM@psg.com> References: <20040131153340.se80400wwc0sosss@agosto> <200401311659.11006.freebsd-current@webteckies.org> <20040131173507.GA22680@x123.info>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1An1m8-000PzO-HM>