LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   CPU fan runs when playing audio (http://www.linuxquestions.org/questions/linux-software-2/cpu-fan-runs-when-playing-audio-4175436307/)

Geremia 11-08-2012 03:22 PM

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

vmccord 11-08-2012 04:51 PM

Quote:

Originally Posted by Geremia (Post 4825289)
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?

Geremia 11-08-2012 11:22 PM

Quote:

Originally Posted by vmccord (Post 4825333)
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

H_TeXMeX_H 11-09-2012 02:27 AM

Where is the high quality libmad ? libmad is already high quality.

vmccord 11-09-2012 12:02 PM

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/.

Geremia 11-10-2012 01:04 AM

Quote:

Originally Posted by vmccord (Post 4825940)
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.

sneakyimp 11-11-2012 05:34 PM

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.

Geremia 11-11-2012 11:14 PM

Quote:

Originally Posted by sneakyimp (Post 4827254)
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

Geremia 11-28-2012 01:20 AM

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

Geremia 11-28-2012 09:18 PM

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

markush 11-29-2012 06:19 AM

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

Geremia 11-29-2012 10:52 PM

Quote:

Originally Posted by markush (Post 4839474)
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 (Post 4839474)
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 (Post 4839474)
and please make and model of the laptop.

It's a Linux-friendly System76 Lemu2 laptop.
Quote:

Originally Posted by markush (Post 4839474)
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 (Post 4839474)
, 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

markush 11-30-2012 12:53 AM

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

Geremia 11-30-2012 06:26 PM

Quote:

Originally Posted by markush (Post 4839982)
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 (Post 4839982)
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).

Geremia 12-25-2012 06:32 PM

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.


All times are GMT -5. The time now is 10:31 PM.