summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/ati-drivers/files/8.532')
-rw-r--r--x11-drivers/ati-drivers/files/8.532/CVS/Entries2
-rw-r--r--x11-drivers/ati-drivers/files/8.532/CVS/Repository1
-rw-r--r--x11-drivers/ati-drivers/files/8.532/CVS/Root1
-rw-r--r--x11-drivers/ati-drivers/files/8.532/ati-powermode-opt-path-2.patch42
4 files changed, 46 insertions, 0 deletions
diff --git a/x11-drivers/ati-drivers/files/8.532/CVS/Entries b/x11-drivers/ati-drivers/files/8.532/CVS/Entries
new file mode 100644
index 0000000..79dd080
--- /dev/null
+++ b/x11-drivers/ati-drivers/files/8.532/CVS/Entries
@@ -0,0 +1,2 @@
+/ati-powermode-opt-path-2.patch/1.1/Sat Apr 26 10:50:46 2008//
+D
diff --git a/x11-drivers/ati-drivers/files/8.532/CVS/Repository b/x11-drivers/ati-drivers/files/8.532/CVS/Repository
new file mode 100644
index 0000000..2360779
--- /dev/null
+++ b/x11-drivers/ati-drivers/files/8.532/CVS/Repository
@@ -0,0 +1 @@
+gentoo-x86/x11-drivers/ati-drivers/files/8.476
diff --git a/x11-drivers/ati-drivers/files/8.532/CVS/Root b/x11-drivers/ati-drivers/files/8.532/CVS/Root
new file mode 100644
index 0000000..8e31e07
--- /dev/null
+++ b/x11-drivers/ati-drivers/files/8.532/CVS/Root
@@ -0,0 +1 @@
+je_fro@cvs.gentoo.org:/var/cvsroot
diff --git a/x11-drivers/ati-drivers/files/8.532/ati-powermode-opt-path-2.patch b/x11-drivers/ati-drivers/files/8.532/ati-powermode-opt-path-2.patch
new file mode 100644
index 0000000..f5a35a3
--- /dev/null
+++ b/x11-drivers/ati-drivers/files/8.532/ati-powermode-opt-path-2.patch
@@ -0,0 +1,42 @@
+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
+@@ -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
+