From: | "Jeffrey Gardner (je_fro)" <je_fro@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in x11-drivers/ati-drivers/files/8.433: ati-powermode-opt-path-1.patch |
Date: | Mon, 26 Nov 2007 15:10:19 |
Message-Id: | E1Iwfb7-0005f3-EV@stork.gentoo.org |
1 | je_fro 07/11/26 15:10:09 |
2 | |
3 | Added: ati-powermode-opt-path-1.patch |
4 | Log: |
5 | revbump thanks to Jory Pratt |
6 | (Portage version: 2.1.4_rc3) |
7 | |
8 | Revision Changes Path |
9 | 1.1 x11-drivers/ati-drivers/files/8.433/ati-powermode-opt-path-1.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.433/ati-powermode-opt-path-1.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.433/ati-powermode-opt-path-1.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: ati-powermode-opt-path-1.patch |
15 | =================================================================== |
16 | diff -ur common.orig/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh |
17 | --- common.orig/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh 2006-07-28 04:22:36.000000000 +0100 |
18 | +++ common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh 2006-08-04 12:19:42.000000000 +0100 |
19 | @@ -17,6 +17,10 @@ |
20 | fi |
21 | } |
22 | |
23 | +aticonfig='/opt/bin/aticonfig' |
24 | + |
25 | +# default high power state |
26 | +default_state=`$aticonfig --lsp | grep 'default state' | cut -c 3` |
27 | |
28 | grep -q closed /proc/acpi/button/lid/*/state |
29 | if [ $? = 0 ]; then |
30 | @@ -46,7 +50,7 @@ |
31 | getXuser; |
32 | if [ x"$XAUTHORITY" != x"" ]; then |
33 | export DISPLAY=":$displaynum" |
34 | - su $user -c "/usr/X11R6/bin/aticonfig --set-powerstate=1 --effective=now" |
35 | + su $user -c "$aticonfig --set-powerstate=1 --effective=now" |
36 | fi |
37 | done |
38 | else |
39 | @@ -56,7 +60,7 @@ |
40 | getXuser; |
41 | if [ x"$XAUTHORITY" != x"" ]; then |
42 | export DISPLAY=":$displaynum" |
43 | - su $user -c "/usr/X11R6/bin/aticonfig --set-powerstate=3 --effective=now" |
44 | + su $user -c "$aticonfig --set-powerstate=$default_state --effective=now" |
45 | fi |
46 | done |
47 | fi |
48 | |
49 | |
50 | |
51 | |
52 | -- |
53 | gentoo-commits@g.o mailing list |