LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-08-2012, 03:22 PM   #1
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 200

Rep: Reputation: 5
CPU fan runs when playing audio


My laptop's CPU fan runs at high speed whenever I play audio, although the CPU usage is very low. I think it might have something to do with my having the high quality libmad or not configuring ALSA correctly. It's annoying hearing the fan screaming when I'm trying to listen to my audio. Thanks
 
Old 11-08-2012, 04:51 PM   #2
vmccord
Member
 
Registered: Jun 2012
Location: Lawrence, KS
Distribution: Mostly CentOS
Posts: 46
Blog Entries: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by Geremia View Post
My laptop's CPU fan runs at high speed whenever I play audio, although the CPU usage is very low. I think it might have something to do with my having the high quality libmad or not configuring ALSA correctly. It's annoying hearing the fan screaming when I'm trying to listen to my audio. Thanks
Generally, CPU fans kick off only as a result of a temperature sensor. Some audio cards have fans of their own which operate independently of the CPU's fan and its temperature sensor. Is it possible that it's an audio card fan kicking off?

Last edited by vmccord; 11-09-2012 at 09:03 AM.
 
Old 11-08-2012, 11:22 PM   #3
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 200

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by vmccord View Post
Generally, CPU fans kick off only as a result of a temperature sensor. Some audio cards have fans of their own which operate independently of the CPU's fan and it's temperature sensor. Is it possible that it's an audio card fan kicking off?
No, my laptop only has one fan, and this issue never seemed to occur until I updated libmad to the high quality libmad.

Thanks for the help

Last edited by Geremia; 11-08-2012 at 11:28 PM.
 
Old 11-09-2012, 02:27 AM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Where is the high quality libmad ? libmad is already high quality.
 
Old 11-09-2012, 12:02 PM   #5
vmccord
Member
 
Registered: Jun 2012
Location: Lawrence, KS
Distribution: Mostly CentOS
Posts: 46
Blog Entries: 24

Rep: Reputation: Disabled
libmad will increase your CPU usage even if it was low. I would think that either the threshold is being reached or something that was already in the coreboot took effect with the addition of the new library. Doesn't seem likely, but I suppose it's possible.

You can change how and when the CPU fan kicks off with hardware monitoring utilities: http://lm-sensors.org/ and http://openhardwaremonitor.org/.
 
Old 11-10-2012, 01:04 AM   #6
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 200

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by vmccord View Post
libmad will increase your CPU usage even if it was low. I would think that either the threshold is being reached or something that was already in the coreboot took effect with the addition of the new library. Doesn't seem likely, but I suppose it's possible.

You can change how and when the CPU fan kicks off with hardware monitoring utilities: http://lm-sensors.org/ and http://openhardwaremonitor.org/.
I think it's justified in speeding up the fan because the temperature does increase even though the CPU usage is minimal. I really wonder what's heating it up.
 
Old 11-11-2012, 05:34 PM   #7
sneakyimp
Member
 
Registered: Dec 2004
Posts: 791

Rep: Reputation: 49
Does it happen when you play non-compressed audio files (like WAV I suppose) ? If these uncompressed files don't result in fan noise, then I'd bet it's because your CPU is experiencing a slightly higher load to uncompress the files and this results in a load and/or heat increase that is moving the fan into a higher speed. It is possible on some machines to control the speed of the fan relative to certain other parameters, but I'm not familiar with how to do this on a linux machine. On a windows machine I have, there is an AMD utility which lets you specify a graph to map load/heat onto a particular fan speed.

If you choose to keep the fan low or off when the load or heat increases, you should be careful -- you don't want to overheat your system or it may fail.

It's not easy on a laptop, but it may be possible to replace the fan with a quieter one if the fan is of a standard size. I tried tweaking my AMD 6-core desktop fan's settings and nothing helped. Eventually, I bought a new Heat Sink / Fan and that fixed the problem. Stock AMD fans are loud and cheap. A new $50 HSF and now it's completely silent regardless of how much load it has.
 
Old 11-11-2012, 11:14 PM   #8
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 200

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by sneakyimp View Post
Does it happen when you play non-compressed audio files (like WAV I suppose) ?
Yes

Also, the fan speeds up and remains high for no reason after starting the KDE Amarok music player, even if I don't start playing any audio.

See this bug:
https://bugs.kde.org/show_bug.cgi?id=308313

Last edited by Geremia; 11-12-2012 at 01:27 PM.
 
Old 11-28-2012, 01:20 AM   #9
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 200

Original Poster
Rep: Reputation: 5
ALSA emulates?

Is it true that ALSA emulates?

How would I configure ALSA specifically for my audio card, etc.?

Also, I'm running on a 64 bit system.
Thanks
 
Old 11-28-2012, 09:18 PM   #10
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 200

Original Poster
Rep: Reputation: 5
I still don't understand why the CPU fan speeds up and my CPU temp increases ~10 F although my CPU usage remains minimal. I've used htop to look at the threads of, e.g., Amarok, but no one thread is more intensive than another. It's as though whenever a sound-playing program opens the ALSA library, my CPU heats up ~10 F. Is there a way to find out what libraries are sapping my resources? Thanks
 
Old 11-29-2012, 06:19 AM   #11
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
If you want help here, you should tell us which hardware you're using, please post the output of
Code:
lspci -k
and
Code:
uname -a
and please make and model of the laptop. If you have an onboard Intel-graphicsadapter, it is possible that this device makes the fan run, not the CPU itself.

Markus
 
Old 11-29-2012, 10:52 PM   #12
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 200

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by markush View Post
If you want help here, you should tell us which hardware you're using, please post the output of
Code:
lspci -k
Code:
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
        Subsystem: CLEVO/KAPOK Computer Device 3100
        Kernel driver in use: snd_hda_intel
Quote:
Originally Posted by markush View Post
and
Code:
uname -a
Code:
Linux alan 3.2.29 #1 SMP Mon Sep 17 13:38:05 CDT 2012 x86_64 Intel(R) Core(TM) i3 CPU       U 330  @ 1.20GHz GenuineIntel GNU/Linux
Quote:
Originally Posted by markush View Post
and please make and model of the laptop.
It's a Linux-friendly System76 Lemu2 laptop.
Quote:
Originally Posted by markush View Post
If you have an onboard Intel-graphicsadapter
Yes, I do. It's this type:
Code:
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 18)
        Subsystem: CLEVO/KAPOK Computer Device 3100
        Kernel driver in use: i915
Quote:
Originally Posted by markush View Post
, it is possible that this device makes the fan run, not the CPU itself.
Yes, most likely; something creates ~10 F more internal heat.

I've tried different Phonon backends, too, but the same problem occurs, so perhaps it is a hardware issue. (The same problem occurs even when using XFCE instead of KDE.) I've also heard that ALSA emulates; is that true?

Thanks

Last edited by Geremia; 11-29-2012 at 11:48 PM.
 
Old 11-30-2012, 12:53 AM   #13
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
As I wrote in another thread, my friend has an Intel i5 processor with onboard-graphics and Windows 7, and even this laptop has always the fan running her the kids play games. I suppose that this is due to the graphics adapter which likely porduces more heat than the CPU.

Referring to the output of uname -r your processor has only 1.2 GHz, this will not produce much heat.

Markus
 
Old 11-30-2012, 06:26 PM   #14
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 200

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by markush View Post
As I wrote in another thread, my friend has an Intel i5 processor with onboard-graphics and Windows 7, and even this laptop has always the fan running her the kids play games. I suppose that this is due to the graphics adapter which likely porduces more heat than the CPU.
Yes, when I say "CPU fan" I mean the one and only fan in my laptop that cools everything
Quote:
Originally Posted by markush View Post
Referring to the output of uname -r your processor has only 1.2 GHz, this will not produce much heat.
Yes, it's low power, I think only 18 Watts. I'm just confused why playing audio should heat it up so much; the fan hardly runs except when playing audio (and video).

Last edited by Geremia; 11-30-2012 at 06:27 PM.
 
Old 12-25-2012, 06:32 PM   #15
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 200

Original Poster
Rep: Reputation: 5
same problem even playing audio on HDMI device

Also, the internal fan speeds up the same way when I play audio to through HDMI, too.
 
  


Reply

Tags
alsa, alsaconf, audio, cpu, fan


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PWM Fan Control - Lowering The CPU Fan RPM S3P3HR Linux - Software 1 04-24-2011 05:46 AM
How to control cpu fan speed? no fan control with BIOS, acpi, lm-sensors startover Linux - Hardware 20 01-08-2011 03:18 AM
ACPI or lm-sensors fan control on Sony Vaio (fan runs at full speed) roanm Linux - Hardware 7 11-14-2009 07:37 PM
howto: control CPU fan speed and Northbridge fan speed? hedpe Linux - Software 2 04-18-2005 02:18 AM
RedHat 9: CPU fan runs continuously garamach Linux - Newbie 2 04-17-2004 12:33 AM


All times are GMT -5. The time now is 12:04 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration