Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139436 - x11-drivers/ati-drivers-8.26.18-r1 acpi ati-powermode.sh script has wrong aticonfig location
Summary: x11-drivers/ati-drivers-8.26.18-r1 acpi ati-powermode.sh script has wrong ati...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-06 08:50 UTC by Clarke Brunsdon
Modified: 2007-09-04 01:42 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to replace "finger" with "who" (ati-powermode-use-who-not-finger.patch,587 bytes, patch)
2006-07-15 13:11 UTC, Ryan Neufeld
Details | Diff
replace finger with who, and point to correct aticonfig location (ati-powermode-gentoo.patch,1.13 KB, patch)
2006-07-15 13:15 UTC, Ryan Neufeld
Details | Diff
Includes changes from above (finger -> who) as well as more genericizing of the script (ati-powermode.sh.patch,2.07 KB, patch)
2006-08-04 12:35 UTC, Armando Di Cianno
Details | Diff
A new version of this file since the version provided with the ebuild didn't work for me (ati-powermode.sh,1.47 KB, text/plain)
2006-11-05 02:30 UTC, Nicolas MASSE
Details
ati-powermode.sh.patch (ati-powermode.sh.patch,1.39 KB, patch)
2007-02-10 13:35 UTC, Henning Schild
Details | Diff
ati-powermode.sh.patch (ati-powermode.sh.patch2,1.42 KB, patch)
2007-02-10 16:12 UTC, Henning Schild
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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