WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: PWM fan control  (Read 5231 times)

Offline AlexW

  • Newbie
  • *
  • Posts: 3
PWM fan control
« on: June 18, 2011, 12:51:15 PM »
Ive recently installed [remaster]+ (a fork of tinycore for running minecraft servers), no bugs thus far
However, the fans run at full speed all the time, which is incredibly loud
I can't configure fan speed control from the BIOS, and am wondering if there is software for TinyCore to control fan speed based on CPU and Case Temp available

My PC specs are as follows:
Tyan Tiger i7501 s2723 motherboard
2x2.4 GHz Intel Xeon CPUs (Gallatin Series)
1GB (2x512MB) Reg ECC DDR333MHz RAM

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11225
Re: PWM fan control
« Reply #1 on: June 18, 2011, 01:09:16 PM »
Hi AlexW

I have not personally used this package but you might want to take a look at   acpitool.tcz
to see if it can do what you want.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: PWM fan control
« Reply #2 on: June 18, 2011, 03:22:21 PM »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline AlexW

  • Newbie
  • *
  • Posts: 3
Re: PWM fan control
« Reply #3 on: June 20, 2011, 09:58:35 AM »
That sounds like what I need, but i get the following when i attempt to follow the instructions:
Code: [Select]
tc@box:~$ pacman -S lm_sensors
-sh: pacman: not found
tc@box:~$

I assume installation is not going to be as easy as on, say, ubuntu (where i can usually just use sudo apt-get)
How would I to get programs from the TCZ repository?
Thank you in advance
« Last Edit: June 20, 2011, 10:06:49 AM by AlexW »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10963
Re: PWM fan control
« Reply #4 on: June 20, 2011, 10:03:15 AM »
ab sensors
The only barriers that can stop you are the ones you create yourself.

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: PWM fan control
« Reply #5 on: June 20, 2011, 03:46:45 PM »
I assume installation is not going to be as easy as on, say, ubuntu (where i can usually just use sudo apt-get)
How would I to get programs from the TCZ repository?

Clearly TC does not have a 'pacman' or 'apt-get' command. But if you (like a do) prefer a CLI way to download and install extensions the "Core way" is to use it's onw 'tce-load' script.

So to download (with option '-w') and install (i.e. loop-mount with option '-i') a given extension (including it's dependencies) you would use something like
    tce-load -wi lm_sensors

A pure text-based alternative to the 'appbrowser' GUI is 'ab', which you would call with a search term (e.g. ab sensors) and then select out of the listed extensions the one you are after. Please note this search term will be used "against" all extensions .info files and can lead to a lot of hits when using a very generic (ar frequently occuring) term.

Offline AlexW

  • Newbie
  • *
  • Posts: 3
Re: PWM fan control
« Reply #6 on: June 20, 2011, 04:20:39 PM »
Thank you Very much, lm_sensors has been installed, but i might need to configure my BIOS for it, lm_sensors currently thinks my CPUs are running at -15°C (i wish!)

Thank you for your help

Offline linuxdumbo

  • Newbie
  • *
  • Posts: 2
Re: PWM fan control
« Reply #7 on: March 22, 2021, 03:42:12 AM »
Hi guys

Does anyone know how can a similar PWM fan control approach be implemented on a raspberry pi 4?
Please share your thoughts and ideas as I am a newbie to tinycore and linux in genereal :)

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1079
Re: PWM fan control
« Reply #8 on: March 22, 2021, 10:02:06 AM »
RPI boards have hardware pwm (2 channels).   If you are using Audio, you have to be careful, as the onboard audio uses one of the pwm channels.  CPU temp can be read with `vcgencmd`, which is in the rpi-vc.tcz extension.

You can set it up from about any programming language you want.   Just google it.   Most want to interface with temperature, so you might want to be a bit more specific.


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: PWM fan control
« Reply #9 on: March 22, 2021, 11:07:40 AM »
To get CPU temperature

Code: [Select]
tc@box:/$ cat /sys/class/thermal/thermal_zone0/temp
51608

Divide return value by 1000 to get Celsius. In this example CPU is 51.6C
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."