1
0
Fork 0

configure fan control

This commit is contained in:
Massaki Archambault 2021-12-04 21:40:14 -05:00
parent 4653d2c573
commit c9e6b105a9
5 changed files with 30 additions and 5 deletions

2
hosts
View File

@ -31,6 +31,8 @@ all:
hosts: hosts:
router-0: router-0:
ansible_host: 192.168.10.10 ansible_host: 192.168.10.10
server-0:
ansible_host: 192.168.10.11
# vars: # vars:
# ansible_user: root # ansible_user: root
lb: lb:

View File

@ -1,3 +1,7 @@
- hosts: proxmox
roles:
- proxmox
- hosts: debian - hosts: debian
roles: roles:
- common - common
@ -6,10 +10,6 @@
roles: roles:
- haproxy - haproxy
- hosts: proxmox
roles:
- proxmox
- hosts: k3s-server - hosts: k3s-server
roles: roles:
- k3s-server - k3s-server

View File

@ -0,0 +1,18 @@
SUBSYSTEM=="thermal"
KERNEL=="thermal_zone0"
# If the temp hits 75c, turn on the fan. Turn it off again when it goes back down to 70.
ATTR{trip_point_3_temp}="75000"
ATTR{trip_point_3_hyst}="5000"
#
# If the temp hits 78c, higher RPM.
ATTR{trip_point_2_temp}="78000"
ATTR{trip_point_2_hyst}="2000"
#
# If the temp hits 80c, higher RPM.
ATTR{trip_point_1_temp}="80000"
ATTR{trip_point_1_hyst}="2000"
#
# If the temp hits 81c, highest RPM.
ATTR{trip_point_0_temp}="81000"
ATTR{trip_point_0_hyst}="5000"

View File

@ -7,6 +7,12 @@
group: root group: root
mode: 0755 mode: 0755
- name: Configure poe hat fan speed control udev rules
copy:
src: 50-rpi-fan.rules
dest: /etc/udev/rules.d/50-rpi-fan.rules
notify: reboot
- name: Enable cgroups - name: Enable cgroups
copy: copy:
src: cmdline.txt src: cmdline.txt

View File

@ -1,2 +1 @@
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription