CPU fan RPM readout

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
lama
Member
Member
Posts: 83
Joined: Thu Apr 16, 2009 8:41 am

CPU fan RPM readout

Post by lama »

Hello, how can I meassure RPM of the CPU (or some aux fan..) fan? There are three wires connected to board, two of them must be DC power and via the last wire should fan tell when it's reversing it's motor's polarity to spin up for another 180 degree, right? So by calculating these pulses I could be able to get the actual RPM.
But how can I get to that wire? I mean, how can i comunicate with it, read it or whatever? Can APM do it? Is there any IO register assigned to it? Seriously, no idea.
What do you think? How can I read the fan's RPM?
Thanks.
User avatar
Owen
Member
Member
Posts: 1700
Joined: Fri Jun 13, 2008 3:21 pm
Location: Cambridge, United Kingdom
Contact:

Re: CPU fan RPM readout

Post by Owen »

ACPI. If you're lucky.

If you're not lucky, the fan controller will be attached to some random ISA/LPC device or SMBus device (Said SMBus device will probably be attached to some random ISA/LPC SMBus host). ACPI may provide you access to this SMBus.
CProgrammer3088
Posts: 5
Joined: Mon Apr 25, 2011 9:15 pm

Re: CPU fan RPM readout

Post by CProgrammer3088 »

(hmm it seems that i remember seeing this in a BIOS setup.)

Oh yeah i was using an old hp computer and i went into the BIOS and saw fan config (or something like that)

it had a readout of RPMs, speed, current temp and voltage

tell me if u want to know wat type of hp it was

:mrgreen:
Thanks,
CProgrammer3088
GOD Bless!!!
lama
Member
Member
Posts: 83
Joined: Thu Apr 16, 2009 8:41 am

Re: CPU fan RPM readout

Post by lama »

I have discovered, that implementing ACPI is difficult :D
I dont have to really implement the whole ACPI interface to my system right?
It should be enough just to enable it and read my RPM info right?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: CPU fan RPM readout

Post by Combuster »

Given the grand size of ACPI, implementing the needed parts is still a big task.

I wonder what the reason is why you want a readout of the CPU fan above all other functionality?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: CPU fan RPM readout

Post by Brynet-Inc »

What chipset does your system use? see if the manufacture released any datasheets.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Post Reply