-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (8) .- Knowledge Base  . 

Radeon Power Management

   1.7  

Plasmoid Script

Score 82%
Radeon Power Management
zoom


Minimum required   KDE 4.x
Downloads:  1972
Submitted:  Mar 10 2011
Updated:  Jun 20 2012

Description:

INTRODUCTION

This Javascript applet allows for controlling and monitoring the power management mode and temperature of AMD/ATI graphics cards.

It only works with the free Xorg radeon driver and requires at least a 2.6.35 kernel.

It does NOT work with the proprietary fglrx driver.

INSTALLATION

Before installing/using the applet, some system configuration steps must be accomplished. As root (or with sudo), the following files must be made writable for all users. This will allow any user to change the power management settings of the card :

chmod a+w /sys/class/drm/card0/device/power_method
chmod a+w /sys/class/drm/card0/device/power_profile


Also as root, you must mount the debug file system. This will allow the applet to display frequencies and voltage information (if it doesn't work, you may need to make sure that normal users can navigate and read the debug file system) :

mount -t debugfs none /sys/kernel/debug

On some systems, the following permissions can be necessary :

chmod a+x /sys/kernel/debug
chmod a+x /sys/kernel/debug/dri
chmod a+x /sys/kernel/debug/dri/0
chmod a+r /sys/kernel/debug/dri/0/radeon_pm_info


To make the above configurations persistent, you can put those command lines in /etc/rc.local or, for OpenSUSE users, in /etc/init.d/boot.local

The following commands must be passed as a normal user (ie. not root).

If you installed a previous version, you must first close all instances of the applet, and uninstall it :

plasmapkg -r radeon-pm

You can now install the applet :

plasmapkg -t plasmoid -i radeon-pm.plasmoid

CONFIGURATION

The buttons allow you to select the power management mode for your card. Here are their meaning (from the Xorg wiki, http://wiki.x.org/wiki/RadeonFeature) :

- Dynamic : dynamically changes the clocks based on the number of pending fences, so performance is ramped up when running GPU intensive apps, and ramped down when the GPU is idle. The reclocking is attemped during vertical blanking periods, but due to the timing of the reclocking functions, doesn't not always complete in the blanking period, which can lead to flicker in the display. Due to this, dynpm only works when a single head is active.

- Low : forces the gpu to be in the low power state all the time. Note that low can cause display problems on some laptops; this is why auto does not use low when displays are active.

- Mid : forces the gpu to be in the mid power state all the time. The low power state is selected when the monitors are in the dpms off state.

- High : forces the gpu to be in the high power state all the time. The low power state is selected when the monitors are in the dpms off state.

- Automatic : selects between mid and high power states based on the whether the system is on battery power or not. The low power state are selected when the monitors are in the dpms off state.

- Default : uses the default clocks and does not change the power state. This is the default behavior.

In the applet settings dialog, you can set the following values :

- Radeon PM info path : path to the kernel debug file (named radeon_pm_info) which contains the power state informations (frequencies, voltage).

- Device directory : path to the device directory. This directory must contain the power_method and power_profile files. This directory should also contain a hwmon subdirectory for temperature monitoring.

- Temperature monitor path : path to the temperature monitor file. This file should be in a sub-subdirectory of the device directory (something like hwmon/hwmon0), and is usually called temp1_input (or something like that...).

- Show low power mode button : since this mode can cause display problems, use it at your own risk.

- Delay between updates : this sets the elapsed time (in seconds) between updates.

- Remember power mode : if checked, the last selected power management mode will be applied the next time the applet is loaded. This can be tricky for some setups (like mine) where the lowest power mode does not work well when the laptop is docked and hooked up to an external screen.




Changelog:

1.7
Corrected a bug with some non persistent configuration options

1.6
Made the script a bit more robust when dealing with incomplete radeon_pm_info data

1.5
Tried to consolidate some workarounds. If you don't have problems, there's no need to update.

1.4
worked around a problem with some settings being forgotten under KDE 4.6.x (if you don't have this problem, you may want to stick to the 1.3 version, which is also included in the download) and added X-Plasma-NotificationArea=true (the plasmoid can now be added to the notification area).

1.3
added actual low power mode (optional) and updated readme with power mode descriptions from Xorg

1.2
frequencies are now displayed in MHz (suggested by Fisiu. It does look much better indeed).

1.15
corrected a bug which prevented the applet to work for KDE 4.6+

1.1
added setting for temperature monitor path.

1.0
initial release




LicenseGPL
(Radeon PM 1.7)
Send to a friend
Subscribe
Other  Apps  from jemino
Report inappropriate content



goto page:  1  2  3 

-

 Runtime error

 
 by Fisiu on: Mar 11 2011
 
Score 50%

When adding this plasmoid, I get error:

Error in contents/code/main.js on line 31.
TypeError: No default value


btw, I have temp info under:
'/sys/class/drm/card0/device/hwmon/hwmon1/temp1_input'


Fisiu,
openSUSE Community Member

Reply to this

-

 Re: Runtime error

 
 by jemino on: Mar 11 2011
 
Score 50%

I added a setting (temperature monitor path) to the configuration dialog. Could you try this new version ?


Reply to this

-

 Re: Re: Runtime error

 
 by Fisiu on: Mar 11 2011
 
Score 50%

This time I get:

Error in contents/code/main.js on line 32.
TypeError: Result of expression 'deviceUrl.replace'[undefined] is not a function.

If it matters, I use KDE 4.6.0 on openSUSE 11.4, gfx = hd4770.


Fisiu,
openSUSE Community Member

Reply to this

-

 Re: Re: Re: Runtime error

 
 by jemino on: Mar 11 2011
 
Score 50%

I'm on KDE 4.5 myself but I have no idea if it makes a difference. If you're up for a little debugging, could you try the following ?

- copy the radeon-pm.plasmoid file to an empty dir

- unzip radeon-pm.plasmoid

- edit file contents/code/main.js, go to line 31 and add the following instructions :

print(plasmoid.activeConfig); print(deviceUrl);

- save, quit editor and launch the modified plasmoid with this command line :

plasmoidviewer PATH-TO-DIR-WHERE-YOU-UNZIPPED-THE-PLASMOID

- what's the terminal output ?


Reply to this

-

 Re: Re: Re: Re: Runtime error

 
 by Fisiu on: Mar 11 2011
 
Score 50%

Quote:
fisiu@pendrak:~/Stuff/139738-radeon-pm/radeon-pm> plasmoidviewer .
plasmoidviewer(1416)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
plasmoidviewer(1416)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
Object::connect: No such signal Plasma::PopupApplet::popupEvent(bool)
main
TypeError: No default value
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setCompositionMode: Painter not active
QPainter::end: Painter not active, aborted


Fisiu,
openSUSE Community Member

Reply to this

-

 Re: Re: Re: Re: Runtime error

 
 by Fisiu on: Mar 11 2011
 
Score 50%

Quote:
fisiu@pendrak:~/Stuff/139738-radeon-pm/radeon-pm> plasmoidviewer .
plasmoidviewer(1416)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
plasmoidviewer(1416)/libplasma Plasma::FrameSvg::resizeFrame: Invalid size QSizeF(0, 0)
Object::connect: No such signal Plasma::PopupApplet::popupEvent(bool)
main
TypeError: No default value
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setCompositionMode: Painter not active
QPainter::end: Painter not active, aborted


Fisiu,
openSUSE Community Member

Reply to this

-

 Re: Re: Re: Re: Re: Runtime error

 
 by jemino on: Mar 11 2011
 
Score 50%

ok, I had to download Opensuse 11.4 and launch it inside VirtualBox to find what this was about. KDE 4.5 and 4.6 do tread URL objects differently, so what worked for me didn't work for you.
I've uploaded a new version. Let's hope there aren't other differences.


Reply to this

-

 Re: Re: Re: Re: Re: Re: Runtime error

 
 by Fisiu on: Mar 11 2011
 
Score 50%

Now it works well :) Thanks a lot for it!

btw, I modified kHz → MHz. imho it looks better ;)
Quote:

var newEngineFrequency = parseInt(lines[1].replace(/[^0-9]/g, ""));
newEngineFrequency = newEngineFrequency/1000;
if (newEngineFrequency != currentEngineFrequency) {
currentEngineFrequency = newEngineFrequency;
engineLabel.text = currentEngineFrequency + " MHz";
engineMeter.value = currentEngineFrequency;
}

var newMemoryFrequency = parseInt(lines[3].replace(/[^0-9]/g, ""));
newMemoryFrequency = newMemoryFrequency/1000;
if (newMemoryFrequency != currentMemoryFrequency) {
currentMemoryFrequency = newMemoryFrequency;
memoryLabel.text = currentMemoryFrequency + " MHz";
memoryMeter.value = currentMemoryFrequency;
}


Fisiu,
openSUSE Community Member


-

 Re: Re: Re: Re: Re: Re: Runtime error

 
 by jemino on: Mar 11 2011
 
Score 50%

I'm glad it finally worked for you. Thanks for reporting the problem, and for your suggestion (it's so much better I can't believe I didn't think of it myself).



-

 Missing profile

 
 by Fisiu on: Mar 11 2011
 
Score 50%

afaik, we missed one power profile, named 'mid'. All available profiles are:
Quote:
"default" uses the default clocks and does not change the power state. This is the default behavior.
"auto" selects between "mid" and "high" power states based on the whether the system is on battery power or not. The "low" power state are selected when the monitors are in the dpms off state.
"low" forces the gpu to be in the low power state all the time. Note that "low" can cause display problems on some laptops; this is why auto only uses "low" when displays are off.
"mid" forces the gpu to be in the "mid" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.
"high" forces the gpu to be in the "high" power state all the time. The "low" power state is selected when the monitors are in the dpms off state.


Fisiu,
openSUSE Community Member

Reply to this

-

 Re: Missing profile

 
 by jemino on: Mar 11 2011
 
Score 50%

well, actually, the Low button activates the mid profile, precisely because of the warning about potential problems with the actual low profile. I wasn't comfortable with the idea of people yelling at me because I broke their laptop ;-)


Reply to this

-

 Re: Re: Missing profile

 
 by Fisiu on: Mar 11 2011
 
Score 50%

So there is no 'low' profile option currently while 'Low' is 'mid'?


Fisiu,
openSUSE Community Member

Reply to this

-

 Re: Re: Re: Missing profile

 
 by jemino on: Mar 11 2011
 
Score 50%

That's right. I guess I could add a real low button (and rename the current one to mid), with an option to enable it (defaulting to disabled).


Reply to this

-

 I cannot install this widget

 
 by schnelle on: Mar 14 2011
 
Score 50%

After "plasmapkg -i radeon-pm.plasmoid" I got this message:
Could not find a suitable installer for package of type Plasma/Applet,Plasma/PopupApplet

Kubuntu Maverick KDE 4.6.1

Any ideas what is going wrong?

BTW great plasmoid! :)


Reply to this

-

 Re: I cannot install this widget

 
 by jemino on: Mar 14 2011
 
Score 50%

Try again by adding the package type. This seems necessary with KDE 4.6+ :

plasmapkg -t plasmoid -i radeon-pm.plasmoid

If you confirm it works for you, I will edit the installation procedure.


Reply to this

-

 Re: Re: I cannot install this widget

 
 by schnelle on: Mar 14 2011
 
Score 50%

It works, THANK YOU !!!

p.s. I know about warning at radeonfeature wiki about low profile, but on my laptop low profile works just fine.

Thank you again for this great plasmoid.

Cheers.


Reply to this

-

 Re: Re: Re: I cannot install this widget

 
 by jemino on: Mar 14 2011
 
Score 50%

I'm glad it worked. I've added the additional option to the installation description.

Regarding the low power mode, on my laptop it seems to have the same effect as the mid profile (which is another reason why I didn't bother with the low profile in the first place).


Reply to this

-

 missing files...

 
 by hemathor on: Mar 22 2011
 
Score 50%

with my 3600 card there is none ofe these files:
/sys/class/drm/card0/device/power_method
/sys/class/drm/card0/device/power_profile

any ideas?


Reply to this

-

 Re: missing files...

 
 by jemino on: Mar 23 2011
 
Score 50%

what's the output of the following commands ?

uname -a

dmesg | grep drm


Reply to this

-

 Re: Re: missing files...

 
 by hemathor on: Mar 23 2011
 
Score 50%

# uname -a
Linux sunshine 2.6.34.7-0.7-desktop #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 x86_64 x86_64 x86_64 GNU/Linux

since my uptime apparently seems too long to keep anything for dmesg, i give you a 'grep drm /var/log/boot.msg' at http://pastebin.com/E3vCUXJn instead. if that's not sufficient, i will have to reboot...


Reply to this

-

 Re: Re: Re: missing files...

 
 by jemino on: Mar 23 2011
 
Score 50%

although everything seems to be in order (kms, power management initialized), maybe your kernel misses some bits to make this work (2.6.35+ seems to be required if you look here http://www.x.org/wiki/RadeonFeature, under "KMS Power Management Options").

Also, just in case (but you likely have already checked this), maybe you have a /sys/class/drm/card1 (or 2) directory ?


Reply to this

-

 Re: Re: Re: missing files...

 
 by jemino on: Mar 23 2011
 
Score 50%

after some googling, the kernel version seems to be the culprit. It looks like the /sys interface was added in 2.6.35. Before that, you add to use the radeon.dynpm and other boot parameters for power management.


Reply to this

-

 Re: Re: Re: Re: missing files...

 
 by hemathor on: Mar 23 2011
 
Score 50%

that's what i suspected...

ok, then i should update my kernel... i planned to do that a week ago anyway...

long lives procrastination...

but thanks anyway!


Reply to this

-

 Re: Re: Re: Re: missing files...

 
 by hemathor on: Mar 24 2011
 
Score 50%

ok, i updated the kernel to 2.6.38, and everything seems to work fine... :)


Reply to this

-

 Re: Re: Re: Re: Re: missing files...

 
 by jemino on: Mar 24 2011
 
Score 50%

good. I'll update the description with the kernel version information.


Reply to this

-

 install

 
 by BatriceSells on: May 23 2011
 
Score 50%

Hi

I installed your script (no errors) but I can see nothing showing in plasmoïds?


Reply to this

-

 Re: install

 
 by jemino on: May 23 2011
 
Score 50%

what's your KDE version ? It should work with 4.5 and 4.6 (maybe also with older versions but I didn't test with 4.4 and older).

BTW, the plasmoid should appear in the "System Information" category.


Reply to this

-

 Re: install

 
 by jemino on: May 23 2011
 
Score 50%

Your message also reminded me that I had a new version sitting on my computer for ages. You may want to try the updated version.


Reply to this

-

 Re: Re: install

 
 by BatriceSells on: May 24 2011
 
Score 50%

I got a Squeeze-based Mepis and a 2.6.36 kernel and I'm using KDE 4.5.1.


Nothing shows in the plasmoïds.

I'm going to try your new version.

But installation gave no error message and went flawlessly???

Thx for th e work !


Reply to this

-

 Re: Re: Re: install

 
 by BatriceSells on: May 24 2011
 
Score 50%

Oh I must say : I got a Radeon HD4770 and the radeon driver provides temp through lmsensors in another plasmoid already, maybe I should not use it?


Reply to this

-

 Re: Re: Re: Re: install

 
 by jemino on: May 24 2011
 
Score 50%

In my understanding, the plasmoid should show up, even if it doesn't work when added to the desktop/panel.

You can use this command to check if the plasmoid is installed :

plasmapkg --list | grep radeon-pm

You can also check that everything is in place by running this command :

find $HOME/.kde -name radeon-pm -exec ls -lR '{}' \;

I'm now downloading Mepis. I'll keep you posted if I find out why it doesn't show up for you.


Reply to this

-

 Re: Re: Re: Re: Re: install

 
 by BatriceSells on: May 24 2011
 
Score 50%

Ohoh

Fisrt, thanks for your time !

When I run your command I get that :

Jess@mepis1:~$ plasmapkg --list | grep radeon-pm
plasmapkg(4572)/libplasma Plasma::PackageStructurePrivate::createPackageMetadata: No metadata file in the package, expected it at: ""

Uho!

And :


Reply to this

-

 Re: Re: Re: Re: Re: Re: install

 
 by BatriceSells on: May 24 2011
 
Score 50%

...and find command finds nothing



-

 Re: Re: Re: Re: Re: Re: install

 
 by jemino on: May 24 2011
 
Score 50%

that's strange. If the plasmoid had been installed, it should appear in the plasmapkg --list output, and find should, well, find it.

Just in case, did you install the plasmoid as root ? If you did, you shouldn't have, since the default behaviour of plasmapkg is to use the user's profile for installation (meaning that the plasmoid would have been installed in root's profile).

Aside from this, since I can't reproduce it, I have to admit I'm out of ideas.



-

 Re: Re: Re: Re: install

 
 by jemino on: May 24 2011
 
Score 50%

just tried 1.3 and 1.4 with the live Mepis 11 dvd. In both cases, the plasmoid actually does show up in the list, so I have no idea why it doesn't for you.
When adding it to the desktop though, only 1.3 seems to work. 1.4 doesn't (I'm going to investigate that).


Reply to this

-

 Re: Re: Re: Re: Re: install

 
 by BatriceSells on: May 24 2011
 
Score 50%

Bonjour!

Hem hem... je l'avais installé en root...

En user le 1.4 marche parfaitement chez moi!

Désolée pour le dérangement !


Reply to this

-

 Re: Re: Re: Re: Re: Re: install

 
 by jemino on: May 24 2011
 
Score 50%

il n'y a pas de mal, et j'admets que la procédure d'installation pourrait être plus claire sur ce point. Je vais préciser ça.



-

 Re: Re: Re: Re: Re: install

 
 by BatriceSells on: May 25 2011
 
Score 50%

Re bonjour

Problème curieux, je peux choisir "Dynamic" sur l'applet, mais lorsque j'entre dans les réglages il plante.

De plus, une fois choisi le mode "Dynamic" (je n'utilise pas de laptop mais un pc de bureau), les variations de la vitesse d'horloge et la consommation de la carte ne changent pas (749Mhz et 798Mhz, 1000Mv).

Paradoxalement, la T° du GPU a baissé d'1°C (de 56°C à 55°C)... et l'affichage de KDE est plus fluide (jusqu'ici avec le pilote Radeon il était parfois un peu...lent).


Il me semble que sur le site du pilote libre ma carte n'ets pas supportée entièrement (et pas par le pilote radeonHD).


Reply to this

-

 Re: Re: Re: Re: Re: Re: install

 
 by jemino on: May 25 2011
 
Score 50%

Le mode dynamique ne semble pas non plus avoir d'effet sur la carte graphique de mon portable (fréquences et voltage restent à la valeur max en permanence). Le mode est donc présent dans l'applet mais je n'ai pas pu le tester sur une carte qui le supporte.

Quand au problème de plantage lors de l'ouverture des réglages, je n'arrive pas à le reproduire (quel que soit le mode sélectionné).

Sinon, le pilote radeonHD est obsolète. Toutes les cartes ATI/AMD utilisent maintenant le pilote radeon, récentes comme anciennes.



-
.

 Any hope?

 
 by msledziona on: May 24 2011
 
Score 50%

Is there any hope to get this applet also for the fglrx proprietary drivers? I think that could be difficult, but maybe someone will try? Maybe more people who use fglrx (and do not want to switch to free radeon drivers) would like to have such thing on desktop :)


Reply to this

-

 Re: Any hope?

 
 by jemino on: May 24 2011
 
Score 50%

sorry, but I'm definitely fglrx-free, and don't want to go there again.

On the other hand, back when I used it, the one thing that seemed to work right was power management, so I'm not sure that a fglrx-aware plasmoid would be that useful.

If you want to fiddle with frequencies, there's always this utility (although it's not a plasmoid) :

http://amdovdrvctrl.sourceforge.net


Reply to this

goto page:  1  2  3 

Add commentBack






-
-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.