netbsd-help@netbsd.org
[Top] [All Lists]

Re: how to blank or turn off console

Subject: Re: how to blank or turn off console
From: Jukka Salmi
Date: Sat, 29 Apr 2006 11:00:14 +0200
Jeremy C. Reed --> netbsd-help (2006-04-28 17:00:22 -0700):
> Does anyone have /etc/powerd/scripts/ examples for "lid_switch"?

I attached the `lid_switch' script I used on a ThinkPad X40. Actually
it's a link to all the other power switch scripts:

$ ls -li /etc/powerd/scripts
total 20
10665 -rwxr-xr-x  5 root  wheel  1433 Jan 18 09:49 acadapter
10665 -rwxr-xr-x  5 root  wheel  1433 Jan 18 09:49 lid_switch
10665 -rwxr-xr-x  5 root  wheel  1433 Jan 18 09:49 power_button
10665 -rwxr-xr-x  5 root  wheel  1433 Jan 18 09:49 reset_button
10665 -rwxr-xr-x  5 root  wheel  1433 Jan 18 09:49 sleep_button

However, it doesn't do anything (except logging...) when closing the
lid. And since the X40 always enters ddb(4) when I close the lid (PR
kern/32539) I don't use ACPI at all anymore...


Cheers, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

Attachment: lid_switch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>