Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: AlexW on June 18, 2011, 03:51:15 PM

Title: PWM fan control
Post by: AlexW on June 18, 2011, 03: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 (http://ftp://ftp.tyan.com/manuals/m_s2723_102.pdf)
2x2.4 GHz Intel Xeon CPUs (Gallatin Series)
1GB (2x512MB) Reg ECC DDR333MHz RAM
Title: Re: PWM fan control
Post by: Rich on June 18, 2011, 04: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.
Title: Re: PWM fan control
Post by: bmarkus on June 18, 2011, 06:22:21 PM
This may give some hints:

https://wiki.archlinux.org/index.php/Fan_Speed_Control
Title: Re: PWM fan control
Post by: AlexW on June 20, 2011, 12:58:35 PM
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
Title: Re: PWM fan control
Post by: curaga on June 20, 2011, 01:03:15 PM
ab sensors
Title: Re: PWM fan control
Post by: maro on June 20, 2011, 06: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.
Title: Re: PWM fan control
Post by: AlexW on June 20, 2011, 07: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
Title: Re: PWM fan control
Post by: linuxdumbo on March 22, 2021, 06: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 :)
Title: Re: PWM fan control
Post by: Paul_123 on March 22, 2021, 01:02:06 PM
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.

Title: Re: PWM fan control
Post by: bmarkus on March 22, 2021, 02:07:40 PM
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