summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Gardner <je_fro@gentoo.org>2007-12-24 20:35:20 +0000
committerJeffrey Gardner <je_fro@gentoo.org>2007-12-24 20:35:20 +0000
commit7f538bee5453e437b0936f9a45dac73e353357c3 (patch)
treed868b18b1ba916ab53e6471dc1a6d3d50c6fe596 /x11-drivers/ati-drivers/files
parentsimple cleanup as 8.433 is in the tree (diff)
downloadje_fro-7f538bee5453e437b0936f9a45dac73e353357c3.tar.gz
je_fro-7f538bee5453e437b0936f9a45dac73e353357c3.tar.bz2
je_fro-7f538bee5453e437b0936f9a45dac73e353357c3.zip
Moved the ebuild that I added to portage over here too.
svn path=/; revision=154
Diffstat (limited to 'x11-drivers/ati-drivers/files')
-rw-r--r--x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-1.patch29
-rw-r--r--x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch40
-rw-r--r--x11-drivers/ati-drivers/files/digest-ati-drivers-8.443.1-r1 (renamed from x11-drivers/ati-drivers/files/digest-ati-drivers-8.443.1)0
3 files changed, 40 insertions, 29 deletions
diff --git a/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-1.patch b/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-1.patch
deleted file mode 100644
index 64dcdfb..0000000
--- a/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-1.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-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
---- common.orig/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh 2006-07-28 04:22:36.000000000 +0100
-+++ common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh 2006-08-04 12:19:42.000000000 +0100
-@@ -4,6 +4,8 @@
- # Control script for ACPI lid state and AC adapter state
- #
-
-+aticonfig='/opt/bin/aticonfig'
-+
- getXuser() {
- user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'`
- if [ x"$user" = x"" ]; then
-@@ -63,13 +65,13 @@
- if [ ${has_pplib} -eq 1 ]; then
- su $user -c '/usr/bin/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"'
- 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
-
diff --git a/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch b/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch
new file mode 100644
index 0000000..3819b23
--- /dev/null
+++ b/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch
@@ -0,0 +1,40 @@
+--- 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
+ #
+
++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
diff --git a/x11-drivers/ati-drivers/files/digest-ati-drivers-8.443.1 b/x11-drivers/ati-drivers/files/digest-ati-drivers-8.443.1-r1
index 244a71d..244a71d 100644
--- a/x11-drivers/ati-drivers/files/digest-ati-drivers-8.443.1
+++ b/x11-drivers/ati-drivers/files/digest-ati-drivers-8.443.1-r1