How to control CPU fan?

Just starting out? Need help? Post your questions and find answers here.
myutopia
User
User
Posts: 91
Joined: Sat Jul 04, 2009 1:29 am

How to control CPU fan?

Post by myutopia »

Hi all :)

Does anyone know how to use PureBasic to take control of the CPU's fan? I want to be able to leave it running at full speed, for example.

Thanks!
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

That's very low level stuff, and depends on the hardware you're using. There's no generic 'slow down the fan' code possible, sorry.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
talisman
Enthusiast
Enthusiast
Posts: 231
Joined: Sat May 23, 2009 9:33 am

Post by talisman »

Leave fan speeds as is. This is something the user should take care of, not a software application.
maw

Post by maw »

talisman wrote:Leave fan speeds as is. This is something the user should take care of, not a software application.

What? Application control is the best way to handle fan speed! Like Speedfan for example: http://www.almico.com/speedfan.php , so that depending on the load and temperature of the cpu/gpu/hdd an so on you can set the fans to different speeds.
User avatar
talisman
Enthusiast
Enthusiast
Posts: 231
Joined: Sat May 23, 2009 9:33 am

Post by talisman »

maw wrote:
talisman wrote:Leave fan speeds as is. This is something the user should take care of, not a software application.

What? Application control is the best way to handle fan speed! Like Speedfan for example: http://www.almico.com/speedfan.php , so that depending on the load and temperature of the cpu/gpu/hdd an so on you can set the fans to different speeds.
Maybe I phrased my sentence just wrong. I did want to exclude SpeedFan from the list, since it actually is a useful application. However, what I meant was that controlling fan speeds without the intent of building a SpeedFan-like application is definitely a NO. Anyway, you guys do know how much effort and time was put to SpeedFan to make it the SpeedFan we know and love*? Still, SpeedFan does not support everything and it'll continue to be like that till the bitter end.

* Except Linux users, long live lm_sensors! 8)
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

maw wrote:
talisman wrote:Leave fan speeds as is. This is something the user should take care of, not a software application.

What? Application control is the best way to handle fan speed! Like Speedfan for example: http://www.almico.com/speedfan.php , so that depending on the load and temperature of the cpu/gpu/hdd an so on you can set the fans to different speeds.
That's what already happens automatically. If it doesn't happen with your fans it probably means that your computer is full of dust or that the fan doesn't support multiple speeds.
maw

Post by maw »

talisman wrote:Maybe I phrased my sentence just wrong. I did want to exclude SpeedFan from the list, since it actually is a useful application. However, what I meant was that controlling fan speeds without the intent of building a SpeedFan-like application is definitely a NO. Anyway, you guys do know how much effort and time was put to SpeedFan to make it the SpeedFan we know and love*? Still, SpeedFan does not support everything and it'll continue to be like that till the bitter end.

* Except Linux users, long live lm_sensors! 8)
Ok, then we are on the same page :) Quite right. And yes, I do know how much time and effort Alfredo has put into Speedfan, been using it since the very first beta! I fear the day he will get bored with it...
maw

Post by maw »

Trond wrote:That's what already happens automatically. If it doesn't happen with your fans it probably means that your computer is full of dust or that the fan doesn't support multiple speeds.
While the built in fan regulation that most motherboards have these days is better than none, it doesn't even come close to Speedfan. I have my fans running at around 400rpm, just above the speed where they will start at all, and I can't hear whether my computer is on or not. And it's still really cool. Only when I'm gaming does Speedfan speed up the fans, and then very seldom above 1000rpm even though I'm running a quadcore.

Without Speedfan they run at around 800rpm when idle and at their max 1400rpm when gaming. So I get much more noise without getting more than one or two degrees lower temperature.
myutopia
User
User
Posts: 91
Joined: Sat Jul 04, 2009 1:29 am

Post by myutopia »

Thanks y'all for your replies. I'll check SpeedFan out. :)
Post Reply