Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 91820 Details for
Bug 140554
Ati POWERPlay does not work with Xgl/binary drivers.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to check for Xgl and and adjust display number
ati-powermode-gentoo-and-Xgl.patch (text/plain), 1.46 KB, created by
Ryan Neufeld
on 2006-07-15 13:28:55 UTC
(
hide
)
Description:
Patch to check for Xgl and and adjust display number
Filename:
MIME Type:
Creator:
Ryan Neufeld
Created:
2006-07-15 13:28:55 UTC
Size:
1.46 KB
patch
obsolete
>--- ati-powermode.sh 2006-07-15 13:24:53.000000000 -0700 >+++ ati-powermode-original.sh 2006-07-15 13:09:34.000000000 -0700 >@@ -5,9 +5,9 @@ > # > > getXuser() { >- user=`who| grep -m1 ":$displaynum " | awk '{print $1}'` >+ user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'` > if [ x"$user" = x"" ]; then >- user=`who| grep -m1 ":$displaynum" | awk '{print $1}'` >+ user=`finger| grep -m1 ":$displaynum" | awk '{print $1}'` > fi > if [ x"$user" != x"" ]; then > userhome=`getent passwd $user | cut -d: -f6` >@@ -45,11 +45,8 @@ > displaynum=`echo $x | sed s#/tmp/.X11-unix/X##` > getXuser; > if [ x"$XAUTHORITY" != x"" ]; then >- if [ $(pgrep -x Xgl) != "" ]; then >- displaynum=$(( $displaynum + 93 )); >- fi > export DISPLAY=":$displaynum" >- su $user -c "/opt/ati/bin/aticonfig --set-powerstate=1 --effective=now" >+ su $user -c "/usr/X11R6/bin/aticonfig --set-powerstate=1 --effective=now" > fi > done > else >@@ -58,11 +55,8 @@ > displaynum=`echo $x | sed s#/tmp/.X11-unix/X##` > getXuser; > if [ x"$XAUTHORITY" != x"" ]; then >- if [ $(pgrep -x Xgl) != "" ]; then >- displaynum=$(( $displaynum + 93 )); >- fi > export DISPLAY=":$displaynum" >- su $user -c "/opt/ati/bin/aticonfig --set-powerstate=3 --effective=now" >+ su $user -c "/usr/X11R6/bin/aticonfig --set-powerstate=3 --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 140554
: 91820 |
91821