[arch-commits] CVS update of extra/modules/catalyst-utils (2 files)

Travis Willard travis at archlinux.org
Thu Dec 20 20:44:26 EST 2007


    Date: Thursday, December 20, 2007 @ 20:44:26
  Author: travis
    Path: /home/cvs-extra/extra/modules/catalyst-utils

Modified: PKGBUILD (1.1 -> 1.2) ati-powermode.sh.patch (1.1 -> 1.2)

upgpkg: catalyst-utils 7.12-1
Upstream update


------------------------+
 PKGBUILD               |   15 ++++++++-------
 ati-powermode.sh.patch |   20 ++++++++++----------
 2 files changed, 18 insertions(+), 17 deletions(-)


Index: extra/modules/catalyst-utils/PKGBUILD
diff -u extra/modules/catalyst-utils/PKGBUILD:1.1 extra/modules/catalyst-utils/PKGBUILD:1.2
--- extra/modules/catalyst-utils/PKGBUILD:1.1	Wed Nov 21 23:27:10 2007
+++ extra/modules/catalyst-utils/PKGBUILD	Thu Dec 20 20:44:26 2007
@@ -1,11 +1,12 @@
-# $Id: PKGBUILD,v 1.1 2007/11/22 04:27:10 travis Exp $
+# $Id: PKGBUILD,v 1.2 2007/12/21 01:44:26 travis Exp $
 # Maintainer: Travis Willard <travisw at wmpub.ca>
 
 # Thanks to dibblethewrecker for the original work and packages.
 # Thanks to testing monkey S1G1 for contributions
 
 pkgname=catalyst-utils
-pkgver=7.11
+pkgver=7.12
+_installerver=8.443.1
 pkgrel=1
 pkgdesc="Proprietary AMD/ATI userspace tools and libraries for Radeon brand cards."
 arch=('i686' 'x86_64')
@@ -18,13 +19,13 @@
 conflicts=('libgl' 'ati-drivers-module' 'ati-drivers' 'nvidia') 
 provides=('libgl')
 install=${pkgname}.install
-source=(http://www2.ati.com/drivers/linux/ati-driver-installer-${pkgver/./-}-x86.x86_64.run \
+source=(http://www2.ati.com/drivers/linux/ati-driver-installer-${_installerver}-x86.x86_64.run \
         amdcccle.desktop catalyst.sh atieventsd.sh ati-powermode.sh.patch)
-md5sums=('099eead18eb845f83da1d743dc17cc47'
+md5sums=('5d40b0c7a6f9e8356fdcd38052ae5e7b'
          '1f4b870e977b155af549442932e8ce6f'
          'bdafe749e046bfddee2d1c5e90eabd83'
          'f729bf913613f49b0b9759c246058a87'
-         '150c5cd49e9affe3635415aa9d9c00e6')
+         'b157eecaf2e26b386c427f3a64672dbc')
 
 options=('!strip')
 
@@ -34,8 +35,8 @@
     [ "$CARCH" = "i686" ] && _arch="x86";
     [ "$CARCH" = "x86_64" ] && _arch="x86_64";
 
-    chmod a+x ati-driver-installer-${pkgver/./-}-x86.x86_64.run
-    ./ati-driver-installer-${pkgver/./-}-x86.x86_64.run --extract archive_files
+    chmod a+x ati-driver-installer-${_installerver}-x86.x86_64.run
+    ./ati-driver-installer-${_installerver}-x86.x86_64.run --extract archive_files
 
     # Grab the example ACPI scripts for lid close and AC plugged/unplugged
     mkdir -p $startdir/src/etc/
Index: extra/modules/catalyst-utils/ati-powermode.sh.patch
diff -u extra/modules/catalyst-utils/ati-powermode.sh.patch:1.1 extra/modules/catalyst-utils/ati-powermode.sh.patch:1.2
--- extra/modules/catalyst-utils/ati-powermode.sh.patch:1.1	Wed Nov 21 23:27:11 2007
+++ extra/modules/catalyst-utils/ati-powermode.sh.patch	Thu Dec 20 20:44:26 2007
@@ -1,13 +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
+@@ -69,7 +69,9 @@
+     echo "high power"
+     if [ ${has_pplib} -eq 1 ]; then
+         su $user -c '/usr/bin/aticonfig --pplib-cmd="notify psrc ac"'
+     else
+-        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 --effective=now"
+     fi
  fi




More information about the arch-commits mailing list