On Sun, May 2, 2010 at 3:13 PM, Klaus Doblmann B.A. klaus.doblmann@gmail.com wrote:
On Tue, 27 Apr 2010 14:06:41 -0400 Alex Deucher alexdeucher@gmail.com wrote:
I've been testing radeon KMS PM with 2.6.34-rc* for a few days now and I wanted to send you my testcase. Even though PM is enabled, the defaults of my card are somewhat insane so no real powermanagement takes place - i.e. the card doesn't get clocked down. is there any way to force the card to use a different setting where less power is being consumed?
The current code doesn't handle a lot of cases properly. Please try my latest patch set against Dave's drm-next tree: http://people.freedesktop.org/~agd5f/pm3/ It allows you to enable dynamic pm or force a static power mode via sysfs.
Alex
Will do so at the end of the week when (hopefully) 2.6.34-rc6 is out and I have mor etime on my hands. Could you a bit more explicit on how I could set a static power mode via sysfs? I've never worked with sysfs before so some hints would be greatly appreciated.
enable/disable dynpm: echo 1 > /sys/class/drm/card0/device/dynpm
force a static power state: echo 1.0 > /sys/class/drm/card0/device/power_state
Alex
Hi Alex,
I just built drm-radeon-testing as I saw the patches have already been merged there. It built fine, I updated the firmware files as the Xor-Wiki suggests, but when I boot into the resulting kernel with dynpem on my screen goes all wonky, a portion on the right side is missing and I've got vertical lines running down the screen. Somehow I managed to look at dmesg and saw that the speed was being set correctly (it even set the lowest one available).
Thing should work better with the patches here: http://people.freedesktop.org/~agd5f/pm-drt/ on top of d-r-t.
When I tried "sudo echo 0 > /sys/class/drm/card0/device/dynpm" to see whether switching off dynpm would fix the "drunken" screen the system told me I was not permitted to access the file...
You need to be root to access the file. sudo can't handle redirects, so you need something like: sudo bash -c "echo 0 > /sys/class/drm/card0/device/dynpm"
I am attaching the syslog from the faulty boot in case it's of any help...
Klaus
-- Klaus Doblmann B.A. - http://straightrazorguy.net - FSF member #7570 PGP-Key: http://www.doblmann.de/pgp_key.asc http://twitter.com/klausdoblmann
A: Because it messes up the order in which people normally read text. See http://en.wikipedia.org/wiki/Posting_style Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?