Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 109727 Details for
Bug 139436
x11-drivers/ati-drivers-8.26.18-r1 acpi ati-powermode.sh script has wrong aticonfig location
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ati-powermode.sh.patch
ati-powermode.sh.patch2 (text/plain), 1.42 KB, created by
Henning Schild
on 2007-02-10 16:12:24 UTC
(
hide
)
Description:
ati-powermode.sh.patch
Filename:
MIME Type:
Creator:
Henning Schild
Created:
2007-02-10 16:12:24 UTC
Size:
1.42 KB
patch
obsolete
>--- common/usr/share/doc/fglrx/examples/etc/acpi/ati-powermode.sh 2007-01-09 12:26:33.000000000 +0100 >+++ /etc/acpi/ati-powermode.sh 2007-02-10 18:09:42.000000000 +0100 >@@ -5,9 +5,9 @@ > # > > getXuser() { >- user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'` >+ user=`who | grep -E "(:$displaynum |\(:$displaynum\.)" | awk '{print $1}'` > if [ x"$user" = x"" ]; then >- user=`finger| grep -m1 ":$displaynum" | awk '{print $1}'` >+ user=`who | grep -E "(:$displaynum |\(:$displaynum\.)" | awk '{print $1}'` > fi > if [ x"$user" != x"" ]; then > userhome=`getent passwd $user | cut -d: -f6` >@@ -17,6 +17,7 @@ > fi > } > >+aticonfig='/opt/ati/bin/aticonfig' > > grep -q closed /proc/acpi/button/lid/*/state > if [ $? = 0 ]; then >@@ -46,7 +47,7 @@ > getXuser; > if [ x"$XAUTHORITY" != x"" ]; then > export DISPLAY=":$displaynum" >- su $user -c "/usr/X11R6/bin/aticonfig --set-powerstate=1 --effective=now" >+ su $user -c "$aticonfig --set-powerstate=1 --effective=now" > fi > done > else >@@ -56,7 +57,8 @@ > getXuser; > if [ x"$XAUTHORITY" != x"" ]; then > export DISPLAY=":$displaynum" >- su $user -c "/usr/X11R6/bin/aticonfig --set-powerstate=3 --effective=now" >+ default_state=`su $user -c "$aticonfig --lsp | grep 'default state' | cut -c 3"` >+ su $user -c "$aticonfig --set-powerstate=$default_state --effective=now" > fi > done > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 139436
:
91816
|
91817
|
93436
|
101258
|
109715
| 109727