Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 101258 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]
A new version of this file since the version provided with the ebuild didn't work for me
ati-powermode.sh (text/plain), 1.47 KB, created by
Nicolas MASSE
on 2006-11-05 02:30:27 UTC
(
hide
)
Description:
A new version of this file since the version provided with the ebuild didn't work for me
Filename:
MIME Type:
Creator:
Nicolas MASSE
Created:
2006-11-05 02:30:27 UTC
Size:
1.47 KB
patch
obsolete
>#!/bin/bash > ># ># Control script for ACPI lid state and AC adapter state ># > >getXuser() { > # AWK is better than grep since it split the line in fields > user=$(who| awk "\$2 == \":$displaynum\" {print \$1; exit}") > if [ x"$user" != x"" ]; then > userhome=$(getent passwd $user | cut -d: -f6) > export XAUTHORITY=$userhome/.Xauthority > else > export XAUTHORITY="" > fi >} > >aticonfig='/opt/ati/bin/aticonfig' > >grep -q closed /proc/acpi/button/lid/*/state >if [ $? = 0 ]; then > lid_closed=1 >else > lid_closed=0 >fi > >grep -q off-line /proc/acpi/ac_adapter/*/state >if [ $? = 0 ]; then > on_dc=1 >else > on_dc=0 >fi > ># We build a list of all the active displays >displays=$(ls /tmp/.X11-unix/* | sed s#/tmp/.X11-unix/X##) > >if [ ${lid_closed} -eq 1 -o ${on_dc} -eq 1 ]; then > logger "ATI: Entering low power mode..." > for x in $displays; do > getXuser; > if [ x"$XAUTHORITY" != x"" ]; then > export DISPLAY=":$displaynum" > low_voltage_state=$(su $user -c "$aticonfig --lsp | grep 'low voltage' | cut -c 3") > su $user -c "$aticonfig --set-powerstate=$low_voltage_state" > fi > done >else > echo "ATI: Entering high power mode..." > for x in $displays; do > getXuser; > if [ x"$XAUTHORITY" != x"" ]; then > export DISPLAY=":$displaynum" > performance_state=$(su $user -c "$aticonfig --lsp | grep 'performance mode' | cut -c 3") > su $user -c "$aticonfig --set-powerstate=$performance_state" > 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 Raw
Actions:
View
Attachments on
bug 139436
:
91816
|
91817
|
93436
| 101258 |
109715
|
109727