1 |
je_fro 07/12/21 05:02:00 |
2 |
|
3 |
Added: ati-powermode-opt-path-1.patch |
4 |
Log: |
5 |
Version bump, thanks to Bernd Steinhauser and especially Jory Pratt. |
6 |
(Portage version: 2.1.4_rc10) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-1.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.443.1/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.443.1/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 |
@@ -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 |
@@ -63,13 +65,13 @@ |
29 |
if [ ${has_pplib} -eq 1 ]; then |
30 |
su $user -c '/usr/bin/aticonfig --pplib-cmd="notify psrc dc"' |
31 |
else |
32 |
- su $user -c "/usr/bin/aticonfig --set-powerstate=1 --effective=now" |
33 |
+ su $user -c "$aticonfig --set-powerstate=1" |
34 |
fi |
35 |
else |
36 |
echo "high power" |
37 |
if [ ${has_pplib} -eq 1 ]; then |
38 |
su $user -c '/usr/bin/aticonfig --pplib-cmd="notify psrc ac"' |
39 |
else |
40 |
- su $user -c "/usr/bin/aticonfig --set-powerstate=3 --effective=now" |
41 |
+ su $user -c "$aticonfig --set-powerstate=$($aticonfig --lsp | grep 'default state' | cut -c 3)" |
42 |
fi |
43 |
fi |
44 |
|
45 |
|
46 |
|
47 |
|
48 |
-- |
49 |
gentoo-commits@g.o mailing list |