Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 139436

Summary: x11-drivers/ati-drivers-8.26.18-r1 acpi ati-powermode.sh script has wrong aticonfig location
Product: Gentoo Linux Reporter: Clarke Brunsdon <crimson>
Component: New packagesAssignee: X11 External Driver Maintainers <x11-drivers>
Status: RESOLVED FIXED    
Severity: normal CC: armando, dodeco, gentoo-a7x, henning, humpback, jradmacher, rhill
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to replace "finger" with "who"
replace finger with who, and point to correct aticonfig location
Includes changes from above (finger -> who) as well as more genericizing of the script
A new version of this file since the version provided with the ebuild didn't work for me
ati-powermode.sh.patch
ati-powermode.sh.patch

Description Clarke Brunsdon 2006-07-06 08:50:22 UTC
my /etc/acpi/ati-powermode.sh has on line 49:
su $user -c "/usr/X11R6/bin/aticonfig --set-powerstate=1 --effective-now"

which generates an error in my acpid log because my aticonfig is in /opt/ati/bin/aticonfig
Comment 1 Ryan Neufeld 2006-07-15 13:11:53 UTC
Created attachment 91816 [details, diff]
patch to replace "finger" with "who"
Comment 2 Ryan Neufeld 2006-07-15 13:15:15 UTC
Created attachment 91817 [details, diff]
replace finger with who, and point to correct aticonfig location

This patch will correct the fact that most users do not have finger, and do not have aticonfig in /usr/X11R6/bin/
Comment 3 Armando Di Cianno 2006-08-04 12:35:44 UTC
Created attachment 93436 [details, diff]
Includes changes from above (finger -> who) as well as more genericizing of the script

Includes changes from above (finger -> who) as well as more genericizing of the script, to include more power states.
Comment 4 Gustavo Felisberto (RETIRED) gentoo-dev 2006-09-19 09:37:38 UTC
I can confirm the problem but can you please remake the patch for the version of ati-drivers in portage now?
Comment 5 Cédric Krier gentoo-dev 2006-10-08 06:56:47 UTC
"aticonfig --set-powerstate=NUMBER" is effective immediately
so no need to use --effective=now, it generate an error message
Comment 6 Nicolas MASSE 2006-11-05 02:30:27 UTC
Created attachment 101258 [details]
A new version of this file since the version provided with the ebuild didn't work for me

Since the version provided with the ebuild didn't work for me, I corrected it.
I did not make a patch since I modified the script too deeply.
Comment 7 Henning Schild 2007-02-10 13:35:45 UTC
Created attachment 109715 [details, diff]
ati-powermode.sh.patch

I wonder why none of these patches made it into portage yet. The version in portage is clearly broken because it relies on finger. So ati-drivers should either depend on net-misc/netkit-fingerd or simply use who (which is part of baselayout).

My patch uses who and another grep pattern to determine Xusers. It works for multiple XServers which is not important for aticonfig but i also use that one for locking with xscreensaver.

It also determines the default state with $DISPLAY set in environment. Try the line from the portage version in an root xterm where you unset DISPLAY first ..

Hope at least one of the scripts here makes it into portage soon. Or at least someone fixing the two bugs in the current version with his/her own script.
Comment 8 Henning Schild 2007-02-10 16:12:24 UTC
Created attachment 109727 [details, diff]
ati-powermode.sh.patch

sorry that old one could _only_ handle multiple X-Servers, that one does the trick..
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-09-04 01:42:20 UTC
Fixed in >=8.33.6-r1