Update ubuntu-debian-HOWTO.txt

This commit is contained in:
deflax 2021-04-09 12:28:43 +03:00 committed by GitHub
parent e34e74eda5
commit 4958a290cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,40 +1,10 @@
#/etc/thinkfan.conf:
hwmon /sys/devices/virtual/hwmon/hwmon0/temp1_input
tp_fan /proc/acpi/ibm/fan
(0, 0, 25)
(1, 20, 30)
(2, 25, 31)
(3, 30, 36)
(4, 35, 41)
(5, 40, 47)
(6, 46, 50)
(7, 49, 56)
(126, 55, 32767)
#/etc/systemd/system/thinkfan.service
[Unit]
Description=simple and lightweight fan control program
After=syslog.target
[Service]
Type=forking
ExecStart=/usr/local/sbin/thinkfan
PIDFile=/var/run/thinkfan.pid
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
#INSTALL (as root) #INSTALL (as root)
echo "options thinkpad_acpi fan_control=1" >> /etc/modprobe.d/thinkpad.conf echo "options thinkpad_acpi fan_control=1" >> /etc/modprobe.d/thinkpad.conf
reboot reboot
apt install lm-sensors cmake-curses-gui libyaml-cpp-dev libboost-all-dev apt install lm-sensors cmake-curses-gui libyaml-cpp-dev libboost-all-dev
wget https://github.com/vmatare/thinkfan/archive/0.9.3.tar.gz wget https://github.com/vmatare/thinkfan/archive/1.2.1.tar.gz
tar xzvf 0.9.3.tar.gz tar xzvf 1.2.1.tar.gz
cd thinkfan-0.9.3 cd thinkfan-1.2.1
mkdir build; cd build mkdir build; cd build
cmake -D CMAKE_BUILD_TYPE:STRING=Debug .. cmake -D CMAKE_BUILD_TYPE:STRING=Debug ..
make make