Gentoo Archives: gentoo-laptop

From: Neil Isaac <isaac.neil@×××××.com>
To: gentoo-laptop@l.g.o
Subject: [gentoo-laptop] turn off laptop monitor when closing lid
Date: Mon, 14 Aug 2006 02:07:01
Message-Id: a9f1a6400608131904q2391ff9di15bd75cb54b427a8@mail.gmail.com
1 I modified my /etc/acpi/default.sh to:
2
3 -- snip off the top --
4 case "$group" in
5 button)
6 case "$action" in
7 power) /sbin/init 0
8 setterm -blank 0
9 ;;
10
11 lid) /usr/bin/xset -display :0.0 dpms force
12 off # i added this
13 ;;
14
15 *) logger "ACPI action $action is not defined"
16 ;;
17 esac
18 ;;
19 *)
20 logger "ACPI group $group / action $action is not defined"
21 ;;
22 esac
23 -- EOF --
24
25 This preforms exactly as I would like it to (turn the laptop monitor
26 right off) but it obviously only works while running X. How can I
27 adapt it to achieve the same end even if I'm not running X. Note that
28 my screen already blanks after a given time, but still emits some
29 light.
30
31
32 --
33 Neil Isaac
34 isaac.neil@×××××.com
35 --
36 gentoo-laptop@g.o mailing list

Replies

Subject Author
Re: [gentoo-laptop] turn off laptop monitor when closing lid Pierre Guinoiseau <songoku38@×××××.com>
Re: [gentoo-laptop] turn off laptop monitor when closing lid Pierre Guinoiseau <songoku38@×××××.com>