Manual fan control with /proc/acpi

Thus far, I have run into only two small problems with the 300Mhz Celeron I brought home a few weeks ago. The fan in the machine is rather noisy, and seems to spin a little more than is really necessary. Personally I doubt the machine would run so hot that the fan would be absolutely critical, and even if it did overheat the system would shut itself down. A noisy fan isn’t going to save it.

Shutting down the fan is fairly easy; in Arch Linux, this one-liner from a root prompt will do the trick.

echo -n 3 > /proc/acpi/fan/FAN/state

After that you can check the status of the fan by rereading that same location.

cat /proc/acpi/fan/FAN/state

echoing a 0 to the same file will cause the fan to turn on again. Rebooting reverts that setting too; in my case this is an always-on machine so I can comfortably enter that line once every two or three weeks, as luck will have it.

The only other problem I’ve had is trying to figure out why Arch Linux sometimes can’t recognize an external hard drive connected over a 1.1 port. If I restart the machine the drive appears in fdisk -l, but if I unplug it and plug it back in, it’s unable to sense it. That I will chase some more, in the future.

About these ads

9 Responses to “Manual fan control with /proc/acpi”


  1. 1 Jakob 2010/05/07 at 10:27 PM

    Probably the posibility to override fan control depends on hardware and/or BIOS, this laptop does not respond to any changes made to ‘/proc/acpi/fan/FAN/state’.

    • 2 K.Mandla 2010/05/08 at 7:16 AM

      It might. I’ve also noticed that the fan on this machine will start up again over time, with the state continuing to show “off.” It’s possible there is a better method than this, even though it works for a little while. I’ll see if I can find another answer. …

    • 3 mulenmar 2010/08/11 at 4:04 AM

      This netbook, an Acer Aspire One 751h, doesn’t even have anything in its /proc/acpi/fan psuedo-directory — even with the fan, acer-wmi, and acerhdf modules modprobed…

  2. 4 evidex 2010/05/08 at 8:32 AM

    What kind of temperatures does that thing operate at?

  3. 5 renkinjutsu 2010/05/11 at 7:08 AM

    what kernel version are you using?

    it just spits out “write error: no such device” when i redirect io to the state file.

    • 6 K.Mandla 2010/05/11 at 7:16 AM

      This is 2.6.33-ARCH, which I believe is the most recent Arch kernel. It’s possible that different machines or different architectures have fan states in different locations in /proc, so you might have to poke around. I know, for example, that some Thinkpads have /proc/acpi/ibm/fan.


  1. 1 Links 7/5/2010: RHEL and CentOS 3 EoL, Fedora 13 Near | Techrights Trackback on 2010/05/08 at 7:52 AM
  2. 2 GoblinX Project » GoblinX Newsletter, Issue 249 (05/09/2010) Trackback on 2010/05/17 at 8:26 PM
  3. 3 Not with a whimper but a bang « Motho ke motho ka botho Trackback on 2010/06/11 at 7:55 AM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,962,940 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: