FS#5074 - fglrx package to include acpi lid/ac events scripts

Attached to Project: Arch Linux
Opened by Dawid Wróbel (cromo) - Wednesday, 19 July 2006, 13:34 GMT
Last edited by Travis Willard (Cerebral) - Friday, 27 October 2006, 03:44 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Travis Willard (Cerebral)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Official ATI binary installation provides some usefull scripts that change the ATI GPU's powerstate mode in the event of closing the lid or plugging/unplugging the powercord. Arch's packages lack these scripts. Please, include them in future releases.
This task depends upon

Closed by  Travis Willard (Cerebral)
Saturday, 28 October 2006, 03:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  ACPI scripts from the fglrx bundle added - they were sneakily hidden in usr/share/doc/fglrx/examples/etc/acpi
Comment by James Rayner (iphitus) - Tuesday, 25 July 2006, 00:10 GMT
sure thing. will update this week.
Comment by Dawid Wróbel (cromo) - Thursday, 26 October 2006, 12:24 GMT
This issue is still not fixed. I think you assumed atieventsd is what I was talking about, but this is for something else acutally. atieventsd is the daemon that monitors DVI plgging events on different laptops (IBM in particular) and automatically switches drivers to display video on attached monitor.
I was rather talking about /etc/acpi/events scripts that are executed on lid/ac events. I am not sure if these are included in basic fglrx install package, but I remember these were included in debian (.deb) package for sure. The files are:
/etc/acpi/events/fglrx-ac-aticonfig
/etc/acpi/events/fglrx-lid-aticonfig
/etc/acpi/fglrx-powermode.sh

Comment by Travis Willard (Cerebral) - Thursday, 26 October 2006, 14:10 GMT
I see the scripts you're talking about now... they're hidden in usr/share/doc/examples/fglrx/etc/acpi inside ATI's package, which is why I missed them in the first place, since we generally strip doc from the packages.

I'll update the packages tonight (probably in about 12 hours - long day of lectures and midterms ahead) - since I don't have a laptop myself, I'll post a new ati-fglrx-utils on my webspace and post the URL here - would you be able to test it for me before I throw it into the repos?
Comment by Dawid Wróbel (cromo) - Thursday, 26 October 2006, 14:25 GMT
Sure I would. Waiting for the URL then :)
Comment by Travis Willard (Cerebral) - Friday, 27 October 2006, 02:00 GMT Comment by Dawid Wróbel (cromo) - Friday, 27 October 2006, 16:33 GMT
I am affraid it doesn't. When I unplug the cord, nothing happens (aticonfig --lsp confirms that). If I manually run ati-powermode.sh then, I get:
cromo@kromka:~$ sudo sh /etc/acpi/ati-powermode.sh
Lid Open
On AC
high power
/etc/acpi/ati-powermode.sh: line 8: finger: command not found
/etc/acpi/ati-powermode.sh: line 10: finger: command not found

Same can be found in /var/log/acpid.
I have no idea where to get this finger tool from :O
Comment by Dawid Wróbel (cromo) - Friday, 27 October 2006, 16:45 GMT
OK. I had to install netkit-bsd-finger. Seems this has to be dependency. Also, change the aticonfig path within ati-powermode.sh. ATM it's set to /usr/bin/X11R6/aticonfig, should be /usr/bin/aticonfig.

I tested both lid & ac events, everything seems working fine. Only weird thing is that it takes about 3s for acpid script to execute after uplugging the cord - I remember it used to work immediately with Ubuntu. Anyway, that's not any serious and probably related to acpid itself.

You can also remove the "--effective=now" switch from aticonfig command lines in ati-powermode.sh, it has no effect after all. When using this switch aticonfig says "Warning : Option 'PowerState' is exclusive, other options will be ignored.", which confirms that it's not needed anymore (probably aticonfig has changed its behaviour at some point).
Comment by Travis Willard (Cerebral) - Friday, 27 October 2006, 17:04 GMT
Excellent - thanks for your work. I'll get those changes in later today, and upload it all to the repos.

-- EDIT --

Fixed in 8.29.6-3
Comment by Dawid Wróbel (cromo) - Friday, 27 October 2006, 17:17 GMT
Great. Thanks for your effort.

Loading...