summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory Pratt <anarchy@gentoo.org>2008-01-19 15:32:55 +0000
committerJory Pratt <anarchy@gentoo.org>2008-01-19 15:32:55 +0000
commitff9de6ad3685b4323c6f15593a671fd7b7349298 (patch)
tree2840cb681a355dfe435ae5f613af4127f0b4bbeb /x11-drivers/ati-drivers/files
parentfix pg_postinst (diff)
downloadje_fro-ff9de6ad3685b4323c6f15593a671fd7b7349298.tar.gz
je_fro-ff9de6ad3685b4323c6f15593a671fd7b7349298.tar.bz2
je_fro-ff9de6ad3685b4323c6f15593a671fd7b7349298.zip
removed sed statement moving everything back to patch as requested by je_fro a while ago
svn path=/; revision=162
Diffstat (limited to 'x11-drivers/ati-drivers/files')
-rw-r--r--x11-drivers/ati-drivers/files/8.452/ati-powermode-opt-path-1.patch29
-rw-r--r--x11-drivers/ati-drivers/files/8.452/ati-powermode-opt-path-2.patch (renamed from x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch)12
2 files changed, 7 insertions, 34 deletions
diff --git a/x11-drivers/ati-drivers/files/8.452/ati-powermode-opt-path-1.patch b/x11-drivers/ati-drivers/files/8.452/ati-powermode-opt-path-1.patch
deleted file mode 100644
index 64dcdfb..0000000
--- a/x11-drivers/ati-drivers/files/8.452/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.452/ati-powermode-opt-path-2.patch
index 3819b23..f5a35a3 100644
--- a/x11-drivers/ati-drivers/files/8.443.1/ati-powermode-opt-path-2.patch
+++ b/x11-drivers/ati-drivers/files/8.452/ati-powermode-opt-path-2.patch
@@ -1,5 +1,6 @@
---- 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
+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
#
@@ -7,7 +8,7 @@
+aticonfig='/opt/bin/aticonfig'
+
getXuser() {
- user=`who| grep -m1 ":$displaynum " | awk '{print $1}'`
+ user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'`
if [ x"$user" = x"" ]; then
@@ -47,7 +49,7 @@
done
@@ -26,7 +27,7 @@
+ 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"
++ su $user -c "$aticonfig --set-powerstate=1"
fi
else
echo "high power"
@@ -35,6 +36,7 @@
+ 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)"
++ su $user -c "$aticonfig --set-powerstate=$($aticonfig --lsp | grep 'default state' | cut -c 3)"
fi
fi
+