Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a0f0cb28f4 |
@@ -5,6 +5,9 @@ packages_linux_sensors_all_families:
|
|||||||
packages_linux_sensors_archlinux:
|
packages_linux_sensors_archlinux:
|
||||||
- 'lm_sensors'
|
- 'lm_sensors'
|
||||||
|
|
||||||
|
packages_linux_sensors_archlinux_paru_ite_it8655e:
|
||||||
|
- 'lm_sensors-it87-git'
|
||||||
|
|
||||||
packages_linux_sensors_debian:
|
packages_linux_sensors_debian:
|
||||||
- 'lm-sensors'
|
- 'lm-sensors'
|
||||||
- 'fancontrol'
|
- 'fancontrol'
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
INTERVAL=10
|
||||||
|
FCTEMPS=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm1=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/temp1_input /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm2=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/temp1_input /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm3=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/temp1_input
|
||||||
|
FCFANS=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm1=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/fan1_input /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm2=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/fan2_input /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm3=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/fan3_input
|
||||||
|
MINTEMP=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm1=70 /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm2=70 /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm3=70
|
||||||
|
MAXTEMP=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm1=90 /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm2=90 /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm3=90
|
||||||
|
MINSTART=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm1=60 /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm2=60 /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm3=60
|
||||||
|
MINSTOP=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm1=60 /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm2=60 /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm3=60
|
||||||
|
MINPWM=/sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm1=60 /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm2=60 /sys/devices/platform/it87.[[:print:]]*/hwmon/hwmon[[:print:]]*/pwm3=60
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
- import_tasks: 'mainboard-amd-am5-b650m-hdv_m.2.yml'
|
- import_tasks: 'mainboard-amd-am5-b650m-hdv_m.2.yml'
|
||||||
when: 'ansible_facts[''product_name''] | lower == ''b650m-hdv/m.2'''
|
when: 'ansible_facts[''product_name''] | lower == ''b650m-hdv/m.2'''
|
||||||
|
- import_tasks: 'mainboard-amd-am4-prime_a320i-k.yml'
|
||||||
|
when: 'ansible_facts[''board_name''] | lower == ''prime a320i-k'''
|
||||||
|
|||||||
21
tasks/mainboard-amd-am4-prime_a320i-k.yml
Normal file
21
tasks/mainboard-amd-am4-prime_a320i-k.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
- name: 'If mainboard is Asus PRIME A320I-K (with ITE IT8655E super I/O chip) and Arch Linux install Arch User Repository (AUR) packages for sensors and fan control'
|
||||||
|
when: 'ansible_facts[''os_family''] | lower == ''archlinux'''
|
||||||
|
kewlfft.aur.aur:
|
||||||
|
name: '{{ packages_linux_sensors_archlinux_paru_ite_it8655e }}'
|
||||||
|
state: 'present'
|
||||||
|
become: 'yes'
|
||||||
|
become_user: 'build'
|
||||||
|
|
||||||
|
- name: 'If mainboard is Asus PRIME A320I-K (with ITE IT8655E super I/O chip) add fan control config'
|
||||||
|
loop_control:
|
||||||
|
loop_var: 'file'
|
||||||
|
index_var: 'i'
|
||||||
|
label: 'Store ''{{ file.dst }}'' {{ file.purpose_human_readable }}'
|
||||||
|
loop:
|
||||||
|
- { src: 'etc/fancontrol-ite-it8655e-fans-1-2-3-bound-to-cpu-die-temp', dst: '/etc/fancontrol', purpose_human_readable: 'to supply sane fan control settings' }
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: '{{ file.src }}'
|
||||||
|
dest: '{{ file.dst }}'
|
||||||
|
notify:
|
||||||
|
- 'Restart fancontrol.service'
|
||||||
@@ -1,29 +1,29 @@
|
|||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S SuperIO chip) and OS is a Linux flavor install Linux-specific packages for sensors and fan control'
|
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S super I/O chip) and OS is a Linux flavor install Linux-specific packages for sensors and fan control'
|
||||||
when: 'ansible_facts[''system''] | lower == ''linux'''
|
when: 'ansible_facts[''system''] | lower == ''linux'''
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: '{{ packages_linux_sensors_all_families }}'
|
name: '{{ packages_linux_sensors_all_families }}'
|
||||||
state: 'present'
|
state: 'present'
|
||||||
|
|
||||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S SuperIO chip) and ''os_family'' is ''{{ ansible_facts[''os_family''] | lower }}'' install {{ ansible_facts[''os_family''] | lower }}-specific packages for sensors and fan control'
|
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S super I/O chip) and ''os_family'' is ''{{ ansible_facts[''os_family''] | lower }}'' install {{ ansible_facts[''os_family''] | lower }}-specific packages for sensors and fan control'
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: '{{ vars[''packages_linux_sensors_'' + ansible_facts[''os_family''] | lower] }}'
|
name: '{{ vars[''packages_linux_sensors_'' + ansible_facts[''os_family''] | lower] }}'
|
||||||
state: 'present'
|
state: 'present'
|
||||||
|
|
||||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S SuperIO chip) add fan control config'
|
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S super I/O chip) add fan control config'
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: 'file'
|
loop_var: 'file'
|
||||||
index_var: 'i'
|
index_var: 'i'
|
||||||
label: 'Store ''{{ file.dst }}'' {{ file.purpose_human_readable }}'
|
label: 'Store ''{{ file.dst }}'' {{ file.purpose_human_readable }}'
|
||||||
loop:
|
loop:
|
||||||
- { src: 'etc/fancontrol-fans-2-4-5-7-bound-to-cpu-die-temp', dst: '/etc/fancontrol', purpose_human_readable: 'to supply sane fan control settings' }
|
- { src: 'etc/fancontrol-nuvoton-nct6796d-s-fans-2-4-5-7-bound-to-cpu-die-temp', dst: '/etc/fancontrol', purpose_human_readable: 'to supply sane fan control settings' }
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: '{{ file.src }}'
|
src: '{{ file.src }}'
|
||||||
dest: '{{ file.dst }}'
|
dest: '{{ file.dst }}'
|
||||||
notify:
|
notify:
|
||||||
- 'Restart fancontrol.service'
|
- 'Restart fancontrol.service'
|
||||||
|
|
||||||
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S SuperIO chip) add kernel module config'
|
- name: 'If mainboard is ASRock B650M-HDV/M.2 (with Nuvoton NCT6796D-S super I/O chip) add kernel module config'
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: 'file'
|
loop_var: 'file'
|
||||||
index_var: 'i'
|
index_var: 'i'
|
||||||
|
|||||||
Reference in New Issue
Block a user