1 |
lu_zero 08/04/26 10:50:47 |
2 |
|
3 |
Added: ati-powermode-opt-path-2.patch |
4 |
Log: |
5 |
New version |
6 |
(Portage version: 2.1.5_rc6) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 x11-drivers/ati-drivers/files/8.476/ati-powermode-opt-path-2.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.476/ati-powermode-opt-path-2.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.476/ati-powermode-opt-path-2.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: ati-powermode-opt-path-2.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 |
@@ -4,6 +4,8 @@ |
20 |
# Control script for ACPI lid state and AC adapter state |
21 |
# |
22 |
|
23 |
+aticonfig='/opt/bin/aticonfig' |
24 |
+ |
25 |
getXuser() { |
26 |
user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'` |
27 |
if [ x"$user" = x"" ]; then |
28 |
@@ -47,7 +49,7 @@ |
29 |
done |
30 |
|
31 |
#If PPLIB is enabled |
32 |
-su $user -c '/usr/bin/aticonfig --pplib-cmd="get version"' | grep PPLIB |
33 |
+su $user -c '$aticonfig --pplib-cmd="get version"' | grep PPLIB |
34 |
if [ $? = 0 ]; then |
35 |
echo "Has PPLIB" |
36 |
has_pplib=1 |
37 |
@@ -61,15 +63,15 @@ |
38 |
if [ ${lid_closed} -eq 1 -o ${on_dc} -eq 1 ]; then |
39 |
echo "Low power" |
40 |
if [ ${has_pplib} -eq 1 ]; then |
41 |
- su $user -c '/usr/bin/aticonfig --pplib-cmd="notify psrc dc"' |
42 |
+ su $user -c '$aticonfig --pplib-cmd="notify psrc dc"' |
43 |
else |
44 |
- su $user -c "/usr/bin/aticonfig --set-powerstate=1 --effective=now" |
45 |
+ su $user -c "$aticonfig --set-powerstate=1" |
46 |
fi |
47 |
else |
48 |
echo "high power" |
49 |
if [ ${has_pplib} -eq 1 ]; then |
50 |
- su $user -c '/usr/bin/aticonfig --pplib-cmd="notify psrc ac"' |
51 |
+ su $user -c '$aticonfig --pplib-cmd="notify psrc ac"' |
52 |
else |
53 |
- su $user -c "/usr/bin/aticonfig --set-powerstate=3 --effective=now" |
54 |
+ su $user -c "$aticonfig --set-powerstate=$($aticonfig --lsp | grep 'default state' | cut -c 3)" |
55 |
fi |
56 |
fi |
57 |
|
58 |
|
59 |
|
60 |
|
61 |
-- |
62 |
gentoo-commits@l.g.o mailing list |