Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#7243 - Fglrx ati-powermode.sh script not properly resetting power mode

Attached to Project: Arch Linux
Opened by Mick (amdviaman) - Wednesday, 23 May 2007, 07:34 GMT
Last edited by Travis Willard (Cerebral) - Sunday, 08 July 2007, 14:29 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Travis Willard (Cerebral)
Architecture All
Severity Medium
Priority Normal
Reported Version 2007.05 Duke
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The script /etc/acpi/ati-powermode.sh does not reset 'high' power mode when opening laptop lid or inserting AC adapter. The reason is that on line 59, the call to /usr/bin/aticonfig --set-powerstate=3 is invalid. The value of --set-powerstate needs to be set to 2. I'm not sure if this is hardware-specific, but setting --set-powerstate to 3 throws the following error: "Error: Power state 3 out of range (1-2)." On an ATI Xpress 200M. Fixed version of the script is attached to this report.

Fascinating how ATI developers aren't familiar with their own tool's parameters :D
This task depends upon

Closed by  Travis Willard (Cerebral)
Sunday, 08 July 2007, 14:29 GMT
Reason for closing:  Fixed
Additional comments about closing:  more generic script patched in starting with 8.38.6
Comment by Delete Me (steve-e) - Friday, 25 May 2007, 22:24 GMT
State 3 works for me and my ATI x1300. Looks like it is hardware specific.

aticonfig --list-powerstates
core/mem [flags]
-----------------
* 1: 128/135 MHz [low voltage]
2: 324/135 MHz
3: 419/351 MHz [default state]
Comment by Travis Willard (Cerebral) - Sunday, 03 June 2007, 03:38 GMT
Hey, can you both try the attached ati-powermode.sh? I've tried to patch it so it's more generic in function.
Comment by Travis Willard (Cerebral) - Sunday, 10 June 2007, 16:20 GMT
Anyone try out the attached fix? I'd like to have some definitive answer before I check it in.
Comment by Delete Me (steve-e) - Tuesday, 26 June 2007, 14:13 GMT
Sorry, have been pretty busy. I don't use atieventsd but tested your script.

sh test.sh
Lid Open
On AC
high power
Password:
Error: Option value '' for option 'set-powerstate' is invalid.
/usr/bin/aticonfig: parsing the command-line failed.

aticonfig --lsp | tail -1 | cut -d":" -f 1 | sed "s/* //g" has to cut two more spaces before the powerstate value (3 in my case)

Comment by Travis Willard (Cerebral) - Tuesday, 26 June 2007, 14:51 GMT
How about this one?
Comment by Delete Me (steve-e) - Tuesday, 26 June 2007, 22:23 GMT
Nope, still the same.

aticonfig --lsp | grep ":" | tail -1 | cut -d':' -f 1 | sed "s/\* *//g" delivers " 3"
Comment by Travis Willard (Cerebral) - Tuesday, 26 June 2007, 22:34 GMT
D'oh! My brain got crossed, this one should give us the right thing... I hope. XD
Comment by Delete Me (steve-e) - Tuesday, 26 June 2007, 22:55 GMT
Well done, works for me! Have a nice day :-)

Loading...