Fedora Linux Support Community & Resources Center
  #1  
Old 26th June 2012, 01:05 AM
demize2010 Offline
Registered User
 
Join Date: Jun 2012
Location: Edinburgh
Posts: 4
linuxchrome
F17 - Radeon Driver Power Control (Noisy fan control)

Hey guys having a bit of trouble with the stock Radeon drivers in Fedora 17. Acceleration is working a treat and the box is nice and snappy (even under KDE!). As far as I can see the GPU is being utilized properly however it is making an un-godly noise...

All the way from post the GPU fan just locks on at 100% and never lets off. Whilst I'm sure my GPU is lovely and cold the noise is driving me nuts!

Any idea on how to kill this? My only thought is to roll back my Kernal version (3.4) and use the 12.6 beta drivers... kinda wanna stick with the kernal in the Fedora repository though.

Sorry if this has been covered elsewhere, a quick google in and outwith this forum resulted in nothing tangible. I have a feeling this may be a bug...

Here is the relevent bit from lspci -v :

Code:
02:00.0 VGA compatible controller: ATI Technologies Inc Juniper [Radeon HD 5700 Series] (prog-if 00 [VGA controller])
        Subsystem: PC Partner Limited Device 1482
        Flags: bus master, fast devsel, latency 0, IRQ 43
        Memory at e0000000 (64-bit, prefetchable) [size=256M]
        Memory at fbfe0000 (64-bit, non-prefetchable) [size=128K]
        I/O ports at e000 [size=256]
        Expansion ROM at fbfc0000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Legacy Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Capabilities: [150] Advanced Error Reporting
        Kernel driver in use: radeon
And the same from uname -a:

Code:
Linux jackDesktopL 3.4.3-1.fc17.x86_64 #1 SMP Mon Jun 18 19:53:17 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
And finally from cat /proc/modules | grep radeon

Code:
radeon 890449 5 - Live 0xffffffffa0075000
i2c_algo_bit 13257 1 radeon, Live 0xffffffffa0059000
drm_kms_helper 40411 1 radeon, Live 0xffffffffa004e000
ttm 79760 1 radeon, Live 0xffffffffa0060000
drm 244716 7 radeon,drm_kms_helper,ttm, Live 0xffffffffa0011000
i2c_core 38028 6 videodev,i2c_nforce2,radeon,i2c_algo_bit,drm_kms_helper,drm, Live 0xffffffffa0000000
PS The issue isn't HW related, Windoze and openSUSE don't make the card a blow hard.

Last edited by demize2010; 27th June 2012 at 12:23 AM. Reason: Added the correct lspci entry....
Reply With Quote
  #2  
Old 26th June 2012, 02:23 AM
george_toolan Online
Registered User
 
Join Date: Dec 2006
Posts: 1,755
linuxfirefox
Re: ATI 57XX Fan Speed - F17

The easiest way to avoid these kind of problems is to buy a card without a fan ;-)

Try some power management options.

Last edited by george_toolan; 26th June 2012 at 02:29 AM.
Reply With Quote
  #3  
Old 26th June 2012, 10:26 AM
demize2010 Offline
Registered User
 
Join Date: Jun 2012
Location: Edinburgh
Posts: 4
windows_7chrome
Re: ATI 57XX Fan Speed - F17

Haha, if I wasn't dual booting W7 for games I would just use the O/B gfx

Looks like that solution involves ramping down the GPU usage?
Reply With Quote
  #4  
Old 26th June 2012, 03:44 PM
Agent20 Offline
Registered User
 
Join Date: Aug 2010
Location: England
Posts: 40
linuxfirefox
Re: ATI 57XX Fan Speed - F17

Quote:
Originally Posted by demize2010 View Post
Looks like that solution involves ramping down the GPU usage?
Correct. The open source drivers are set up to use the "default" power profile. Many card manufacturers set the default profile to be the same as the high profile, so the card is running at 100% with the associated heat and fan speed.

For my desktop I normally select the "mid" profile and for my laptop the "low" profile.

You can try the dynpm setting but I get the screen flicker when it is changing power states so I use the profile settings instead.
Reply With Quote
  #5  
Old 27th June 2012, 12:21 AM
demize2010 Offline
Registered User
 
Join Date: Jun 2012
Location: Edinburgh
Posts: 4
linuxchrome
Re: ATI 57XX Fan Speed - F17

Excellent! Thank you for the very knowledgeable answer

I've switched to the low profile and it's whisper quiet

---------- Post added 27th June 2012 at 12:21 AM ---------- Previous post was 26th June 2012 at 10:04 PM ----------



For anyone else coming across this, I've written a simple bash script to control this process.

First su, then create the script file:

Code:
nano /usr/bin/radeoncontrol
Copy in the following script:

Code:
#! /bin/bash

echo

if [ "$1" = "dynamic" ]; then
  echo Setting Radeon KMS Power Management to dynpm...
  echo dynpm > /sys/class/drm/card0/device/power_method
  echo Complete!
  echo Note: dynpm may result in screen flicker between profile changes, "proflie" mode may be more suitable.

elif [ "$1" = "profile" ]; then
  echo Setting Radeon KMS Power Management to profile...
  echo profile > /sys/class/drm/card0/device/power_method
  profile=$2
  	
	if [ "$profile" = "low" ]; then
		echo low > /sys/class/drm/card0/device/power_profile		
	elif [ "$profile" = "mid" ]; then
		echo mid > /sys/class/drm/card0/device/power_profile
	elif [ "$profile" = "high" ]; then
                echo high > /sys/class/drm/card0/device/power_profile
	elif [ "$profile" = "auto" ]; then
                echo auto > /sys/class/drm/card0/device/power_profile
	else
		echo default > /sys/class/drm/card0/device/power_profile
		profile="default"
	fi

  echo Setting Profile: $profile
  echo Complete!

else
  echo Tool to control power management and fan speed of radeon drivers
  echo
  echo "Usage: radeoncontrol <mode> <profile>"
  echo
  echo "Modes: dynamic - dynamically switches power states based on load"
  echo "       profile - manually select power state"
  echo 
  echo "Profiles: low, mid, high, auto, default"     
fi

echo
Then make that script executable:

Code:
chmod +x /usr/bin/radeoncontrol
Now you will be able to run this script (as root) from any working dir. If you provide no options, or incorrect options, a usage message will be shown.

Example:

Code:
radeoncontrol profile low
I'm assuming this will work cross distro but you may want to check first. Hope this helps someone!

Last edited by demize2010; 27th June 2012 at 12:47 AM.
Reply With Quote
  #6  
Old 15th July 2012, 10:42 AM
Becks21 Offline
Registered User
 
Join Date: Apr 2012
Location: Germany
Posts: 25
windows_7chrome
Re: ATI 57XX Fan Speed - F17

Quote:
Originally Posted by demize2010 View Post
[...] Hope this helps someone!
Helps me a ton.. THX

One question though.. how yo you figure out which card has to receive the power_profile settings? I mean, is it always card0 ? I guess not..

Last edited by Becks21; 15th July 2012 at 11:15 AM.
Reply With Quote
  #7  
Old 15th July 2012, 11:20 AM
george_toolan Online
Registered User
 
Join Date: Dec 2006
Posts: 1,755
linuxfirefox
Re: ATI 57XX Fan Speed - F17

How many ATI graphics cards do you have?
Reply With Quote
  #8  
Old 15th July 2012, 01:24 PM
Becks21 Offline
Registered User
 
Join Date: Apr 2012
Location: Germany
Posts: 25
windows_7chrome
Re: ATI 57XX Fan Speed - F17

one ati gpu, a HD 7970M, and the build-in ivy-bridge intel hd 4000 gpu

I guess it must be card0 because for card1 I have a couple of other entries like card1-hdmi-.. , card1-intel.. and stuff like that..

BUT

I do not have the entries
- power_method
- power_profile
listed under ../devices/ .. sadly..
Reply With Quote
  #9  
Old 17th July 2012, 08:49 AM
george_toolan Online
Registered User
 
Join Date: Dec 2006
Posts: 1,755
linuxfirefox
Re: ATI 57XX Fan Speed - F17

Which kernel are you using?

What kind of entries do you have?

Code:
ls -l /sys/class/drm/card0/device/
Is the radeon module loaded?

Code:
lsmod | grep -i radeon
If everything else fails try to install the ATI proprietary driver which has better power saving.
Reply With Quote
  #10  
Old 17th July 2012, 06:18 PM
Becks21 Offline
Registered User
 
Join Date: Apr 2012
Location: Germany
Posts: 25
linuxchrome
Re: ATI 57XX Fan Speed - F17

kernel:
Code:
[michael@lapbecksfed ~]$ uname -r
3.4.4-5.fc17.x86_64
entries for the card are:
Code:
[michael@lapbecksfed ~]$ ls -l /sys/class/drm/card0/device/
total 0
-r--r--r--. 1 root root      4096 Jul 17 18:28 boot_vga
-rw-r--r--. 1 root root      4096 Jul 17 18:28 broken_parity_status
-r--r--r--. 1 root root      4096 Jul 17  2012 class
-rw-r--r--. 1 root root      4096 Jul 17 18:22 config
-r--r--r--. 1 root root      4096 Jul 17 18:28 consistent_dma_mask_bits
-r--r--r--. 1 root root      4096 Jul 17 18:22 device
-r--r--r--. 1 root root      4096 Jul 17 18:28 dma_mask_bits
lrwxrwxrwx. 1 root root         0 Jul 17  2012 driver -> ../../../../bus/pci/drivers/radeon
drwxr-xr-x. 4 root root         0 Jul 17  2012 drm
-rw-------. 1 root root      4096 Jul 17 18:28 enable
lrwxrwxrwx. 1 root root         0 Jul 17 18:28 firmware_node -> ../../../LNXSYSTM:00/device:00/PNP0A08:00/device:14/LNXVIDEO:00
drwxr-xr-x. 3 root root         0 Jul 17  2012 graphics
drwxr-xr-x. 3 root root         0 Jul 17  2012 hwmon
drwxr-xr-x. 3 root root         0 Jul 17  2012 i2c-0
drwxr-xr-x. 3 root root         0 Jul 17  2012 i2c-1
drwxr-xr-x. 3 root root         0 Jul 17  2012 i2c-2
drwxr-xr-x. 3 root root         0 Jul 17  2012 i2c-3
drwxr-xr-x. 3 root root         0 Jul 17  2012 i2c-4
drwxr-xr-x. 3 root root         0 Jul 17  2012 i2c-5
drwxr-xr-x. 3 root root         0 Jul 17  2012 i2c-6
drwxr-xr-x. 3 root root         0 Jul 17  2012 i2c-7
-r--r--r--. 1 root root      4096 Jul 17 18:22 irq
-r--r--r--. 1 root root      4096 Jul 17 18:28 local_cpulist
-r--r--r--. 1 root root      4096 Jul 17 18:22 local_cpus
-r--r--r--. 1 root root      4096 Jul 17 18:28 modalias
-rw-r--r--. 1 root root      4096 Jul 17 18:28 msi_bus
drwxr-xr-x. 3 root root         0 Jul 17 18:22 msi_irqs
-r--r--r--. 1 root root      4096 Jul 17 18:22 numa_node
drwxr-xr-x. 2 root root         0 Jul 17 18:28 power
-rw-r--r--. 1 root root      4096 Jul 17 18:28 power_method
-rw-r--r--. 1 root root      4096 Jul 17 18:28 power_profile
--w--w----. 1 root root      4096 Jul 17 18:28 remove
--w--w----. 1 root root      4096 Jul 17 18:28 rescan
--w-------. 1 root root      4096 Jul 17 18:28 reset
-r--r--r--. 1 root root      4096 Jul 17 18:22 resource
-rw-------. 1 root root 268435456 Jul 17 18:28 resource0
-rw-------. 1 root root 268435456 Jul 17 18:28 resource0_wc
-rw-------. 1 root root    262144 Jul 17 18:28 resource2
-rw-------. 1 root root       256 Jul 17 18:28 resource4
-rw-------. 1 root root    131072 Jul 17 18:28 rom
lrwxrwxrwx. 1 root root         0 Jul 17  2012 subsystem -> ../../../../bus/pci
-r--r--r--. 1 root root      4096 Jul 17 18:28 subsystem_device
-r--r--r--. 1 root root      4096 Jul 17 18:28 subsystem_vendor
-rw-r--r--. 1 root root      4096 Jul 17  2012 uevent
-r--r--r--. 1 root root      4096 Jul 17 18:22 vendor
I am not sure if the driver is actually really loaded..
Code:
[michael@lapbecksfed ~]$ lsmod |grep -i radeon
radeon                890449  0 
i2c_algo_bit           13257  2 i915,radeon
drm_kms_helper         40411  2 i915,radeon
ttm                    79760  1 radeon
drm                   244716  8 ttm,i915,drm_kms_helper,radeon
i2c_core               38028  7 drm,i915,lm75,i2c_i801,drm_kms_helper,i2c_algo_bit,radeon
I tried to install the proprietary ati drivers (12.6 beta) without success.. fedora 17 wont boot afterwards..
..guess it has something to do with my hybrid-graphics setup (ivy-bridge intel 4000 + radeon 7970m)

I wish I had opted for nvidia..

Thx a lot your help!

---------- Post added at 07:18 PM ---------- Previous post was at 06:35 PM ----------

Oh and just in case you think I am not reading my own posts..

I see that in the card0-listing the topics "power_method" and "power_profile" exists
..must have them missed before
I will try to send the profile settings to them at let you know if it works..

Again thx a lot!

Last edited by Becks21; 17th July 2012 at 06:12 PM. Reason: thx!
Reply With Quote
  #11  
Old 18th July 2012, 07:38 PM
Becks21 Offline
Registered User
 
Join Date: Apr 2012
Location: Germany
Posts: 25
linuxchrome
Re: ATI 57XX Fan Speed - F17

Alright.. so what I am basically doing now is the following..

grabbed the before mentioned radeoncontrol script.. put it in /usr/bin and made it executable..

created the rc.local:
Code:
#! /bin/sh

### grant access to switcheroo and discrete gpu device for non-root user
chown michael /sys/kernel/debug/vgaswitcheroo/switch
chown michael /sys/class/drm/card0/device/power_method
chown michael /sys/class/drm/card0/device/power_profile

### set low profile to discrete gpu, then disable it
radeoncontrol profile low
echo OFF > /sys/kernel/debug/vgaswitcheroo/switch

exit 0
Result: The fan stays on at full throttle but no heat is produced.. so the GPU is at least off.

But now comes the weird stuff:
With a few cycles of "switching GPU off and then again to on with sending DDIS" I can manage to find a short
time intervall where the fan is turned completly off _after_ switching the GPU to _ON_. If I switch the GPU off again in that short time intervall the fan stays completly off.
And this state remains until I send my laptop to sleep/hibernate.
Wakeup from sleep/hibernate is no problem but a) the fan is back again and b) the dedicated GPU isnt shown at all under /sys/class/drm/ . The integrated GPU is the only one left shown as card0.
Reply With Quote
  #12  
Old 27th October 2012, 04:09 PM
ravisghosh Offline
Registered User
 
Join Date: Oct 2012
Location: Milky way galaxy
Posts: 5
linuxchrome
Re: ATI 57XX Fan Speed - F17

I just moved from Ubuntu 12.10 to Fedora 17 and I'm faced with this fan issue of ATI Radeon.

I have a dual boot with Windows Vista and on vista the machine is pretty quite. When I boot to fedora, it makes a lot of noise.

Here is the output of lspci -v

Quote:
01:00.0 VGA compatible controller: ATI Technologies Inc M92 [Mobility Radeon HD 4500/5100 Series] (prog-if 00 [VGA controller])
Subsystem: Dell Device 02be
Flags: bus master, fast devsel, latency 0, IRQ 46
Memory at d0000000 (32-bit, prefetchable) [size=256M]
I/O ports at 2000 [size=256]
Memory at fc000000 (32-bit, non-prefetchable) [size=64K]
[virtual] Expansion ROM at fc020000 [disabled] [size=128K]
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Kernel driver in use: radeon
Searching at forums, I found that changing the power profile low reduces the noise. So, I run the following command to change the power profile to low.

Quote:
su -c 'echo low > /sys/class/drm/card0/device/power_profile'

However, even after this, I find the noise to be much more than on Windows. I could solve this problem on Ubuntu by installing proprietary drivers, but on Fedora, it seems that the proprietary drivers are making booting into fedora impossible.

Is there any solution to this?
Reply With Quote
  #13  
Old 28th October 2012, 01:51 PM
BlackFede Online
Registered User
 
Join Date: Sep 2012
Location: Milano, Italy
Posts: 7
linuxfirefox
Re: ATI 57XX Fan Speed - F17

Does ubuntu mangage well your ati card? I do have the same problems on an Ivy i7 laptop. I was never able to get the closed drive to work..
Reply With Quote
  #14  
Old 28th October 2012, 07:20 PM
ravisghosh Offline
Registered User
 
Join Date: Oct 2012
Location: Milky way galaxy
Posts: 5
linuxchrome
Re: ATI 57XX Fan Speed - F17

ATI Proprietary drivers for ubuntu were working well though I was not doing graphic extensive stuff.
Reply With Quote
Reply

Tags
57xx, ati, f17, fan, speed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cpuinfo current speed greater than max speed tashirosgt Hardware & Laptops 10 1st May 2012 01:14 PM
Tweak the speed of broadband connection speed anishjp Using Fedora 2 11th February 2011 02:23 PM
Connection speed and download speed tech291083 Linux Chat 0 1st December 2008 09:17 AM
HP fan speed oziris Hardware & Laptops 10 10th September 2007 09:46 PM
Help: network SENT speed only 1/2 of RECEIVING speed? fly2moon2 Servers & Networking 0 8th September 2006 03:45 AM


Current GMT-time: 09:43 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat