Date: Thu, 21 Dec 2006 07:18:29 -0500 From: Adam McDougall <mcdouga9@egr.msu.edu> To: Andrew Pantyukhin <infofarmer@freebsd.org> Cc: current@freebsd.org Subject: Re: Laptop display stays on with lid closed Message-ID: <20061221121828.GE98504@egr.msu.edu> In-Reply-To: <cb5206420612201201g5c80ec15r6f05b5f51e6c3f50@mail.gmail.com> References: <cb5206420612200127h61ad2559x499203c97d95526e@mail.gmail.com> <cb5206420612201201g5c80ec15r6f05b5f51e6c3f50@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 20, 2006 at 11:01:58PM +0300, Andrew Pantyukhin wrote: On 12/20/06, Andrew Pantyukhin <infofarmer@freebsd.org> wrote: >I only noticed this now, thought it is a hardware >glitch. My laptop display - and its backlight - >stay on when I close the lid. Shouldn't it be >turned off like in an OS-independent way?.. To answer my own question, I ended up using a cool app named radeontool (sysutils/). Clearly, I'm lucky to have a Radeon in my laptop. Now I just have to figure out how to call a script on lid open/close event. put into /etc/devd.conf and reload devd: notify 10 { match "system" "ACPI"; match "subsystem" "Lid"; action "/etc/rc.lid $notify"; }; Then in /etc/rc.lid: #!/bin/sh STAT=$1 if [ $STAT = 0x00 ]; then logger -t Lid $STAT Close at `date +'%Y%m%d %H:%M:%S'` # do something for lid close event here else logger -t Lid $STAT Open at `date +'%Y%m%d %H:%M:%S'` # do something for lid open event here fi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061221121828.GE98504>