[arch-commits] CVS update of extra/modules/fglrx-utils (ati-powermode.sh.patch)

Travis Willard travis at archlinux.org
Mon Jul 9 11:42:05 UTC 2007


    Date: Monday, July 9, 2007 @ 07:42:05
  Author: travis
    Path: /home/cvs-extra/extra/modules/fglrx-utils

   Added: ati-powermode.sh.patch (1.1)

Patch to make ati-powermode.sh more generic


------------------------+
 ati-powermode.sh.patch |   13 +++++++++++++
 1 file changed, 13 insertions(+)


Index: extra/modules/fglrx-utils/ati-powermode.sh.patch
diff -u /dev/null extra/modules/fglrx-utils/ati-powermode.sh.patch:1.1
--- /dev/null	Mon Jul  9 07:42:04 2007
+++ extra/modules/fglrx-utils/ati-powermode.sh.patch	Mon Jul  9 07:42:04 2007
@@ -0,0 +1,13 @@
+--- ati-powermode.sh.old	2007-06-02 23:29:13.000000000 -0400
++++ ati-powermode.sh	2007-06-02 23:33:06.000000000 -0400
+@@ -56,7 +56,9 @@
+ 	getXuser;
+ 	if [ x"$XAUTHORITY" != x"" ]; then
+ 	    export DISPLAY=":$displaynum"
+-	    su $user -c "/usr/bin/aticonfig --set-powerstate=3 "
++     newlevel=$(aticonfig --lsp | grep ":" | tail -1 | cut -d':' -f 1 | sed -e "s/\*//g" -e "s/ *//g")
++	    [ -z "$newlevel" ] && newlevel=3
++	    su $user -c "/usr/bin/aticonfig --set-powerstate=$newlevel "
+ 	fi
+     done
+ fi




More information about the arch-commits mailing list