* [gentoo-commits] gentoo-x86 commit in x11-drivers/ati-drivers/files/8.443.1: ati-powermode-opt-path-2.patch
@ 2007-12-24 5:03 Jeffrey Gardner (je_fro)
0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey Gardner (je_fro) @ 2007-12-24 5:03 UTC (permalink / raw
To: gentoo-commits
je_fro 07/12/24 05:03:47
Added: ati-powermode-opt-path-2.patch
Log:
Fixup wrt bug #202906. Thanks to Jory Pratt and Bernd Steinhauser.
(Portage version: 2.1.4_rc11)
Revision Changes Path
1.1 x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch?rev=1.1&content-type=text/plain
Index: ati-powermode-opt-path-2.patch
===================================================================
--- ati-powermode.sh-orig 2007-12-23 22:48:55.873089378 -0600
+++ ati-powermode.sh 2007-12-23 22:49:59.246421379 -0600
@@ -4,6 +4,8 @@
# Control script for ACPI lid state and AC adapter state
#
+aticonfig='/opt/bin/aticonfig'
+
getXuser() {
user=`who| grep -m1 ":$displaynum " | awk '{print $1}'`
if [ x"$user" = x"" ]; then
@@ -47,7 +49,7 @@
done
#If PPLIB is enabled
-su $user -c '/usr/bin/aticonfig --pplib-cmd="get version"' | grep PPLIB
+su $user -c '$aticonfig --pplib-cmd="get version"' | grep PPLIB
if [ $? = 0 ]; then
echo "Has PPLIB"
has_pplib=1
@@ -61,15 +63,15 @@
if [ ${lid_closed} -eq 1 -o ${on_dc} -eq 1 ]; then
echo "Low power"
if [ ${has_pplib} -eq 1 ]; then
- su $user -c '/usr/bin/aticonfig --pplib-cmd="notify psrc dc"'
+ su $user -c '$aticonfig --pplib-cmd="notify psrc dc"'
else
- su $user -c "/usr/bin/aticonfig --set-powerstate=1 --effective=now"
+ su $user -c "$aticonfig --set-powerstate=1"
fi
else
echo "high power"
if [ ${has_pplib} -eq 1 ]; then
- su $user -c '/usr/bin/aticonfig --pplib-cmd="notify psrc ac"'
+ su $user -c '$aticonfig --pplib-cmd="notify psrc ac"'
else
- su $user -c "/usr/bin/aticonfig --set-powerstate=3 --effective=now"
+ su $user -c "$aticonfig --set-powerstate=$($aticonfig --lsp | grep 'default state' | cut -c 3)"
fi
fi
--
gentoo-commits@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-commits] gentoo-x86 commit in x11-drivers/ati-drivers/files/8.443.1: ati-powermode-opt-path-2.patch
@ 2007-12-24 19:16 Jeffrey Gardner (je_fro)
0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey Gardner (je_fro) @ 2007-12-24 19:16 UTC (permalink / raw
To: gentoo-commits
je_fro 07/12/24 19:16:47
Modified: ati-powermode-opt-path-2.patch
Log:
Fixing the patch
(Portage version: 2.1.4_rc11)
Revision Changes Path
1.2 x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch?r1=1.1&r2=1.2
Index: ati-powermode-opt-path-2.patch
===================================================================
RCS file: /var/cvsroot/gentoo-x86/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ati-powermode-opt-path-2.patch 24 Dec 2007 05:03:46 -0000 1.1
+++ ati-powermode-opt-path-2.patch 24 Dec 2007 19:16:46 -0000 1.2
@@ -1,5 +1,5 @@
---- ati-powermode.sh-orig 2007-12-23 22:48:55.873089378 -0600
-+++ ati-powermode.sh 2007-12-23 22:49:59.246421379 -0600
+--- common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh-orig 2007-12-23 22:48:55.873089378 -0600
++++ common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh 2007-12-23 22:49:59.246421379 -0600
@@ -4,6 +4,8 @@
# Control script for ACPI lid state and AC adapter state
#
--
gentoo-commits@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-commits] gentoo-x86 commit in x11-drivers/ati-drivers/files/8.443.1: ati-powermode-opt-path-2.patch
@ 2009-04-13 2:21 Jeffrey Gardner (je_fro)
0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey Gardner (je_fro) @ 2009-04-13 2:21 UTC (permalink / raw
To: gentoo-commits
je_fro 09/04/13 02:21:47
Removed: ati-powermode-opt-path-2.patch
Log:
More cleanup
(Portage version: 2.1.6.11/cvs/Linux x86_64)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-13 2:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-24 19:16 [gentoo-commits] gentoo-x86 commit in x11-drivers/ati-drivers/files/8.443.1: ati-powermode-opt-path-2.patch Jeffrey Gardner (je_fro)
-- strict thread matches above, loose matches on Subject: below --
2009-04-13 2:21 Jeffrey Gardner (je_fro)
2007-12-24 5:03 Jeffrey Gardner (je_fro)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox