amdfand 1.0.7

AMDGPU fan control service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::command::Fan;
use amdgpu::utils::hw_mons;

pub fn restore_automatic() {
    for hw in hw_mons(true).unwrap_or_default() {
        if let Err(error) = (Fan {
            hw_mon: hw,
            temp_inputs: vec![],
            temp_input: None,
            pwm_min: None,
            pwm_max: None,
        })
        .write_automatic()
        {
            log::error!("{}", error);
        }
    }
}