Verification done in Focal. All scenarios OK:

❯ cat /etc/fancontrol

# Configuration file generated by pwmconfig, changes will be lost

INTERVAL=10
DEVPATH=hwmon5=devices/platform/qc71_laptop hwmon6=devices/platform/qc71_laptop
DEVNAME=hwmon5=qc71_laptop.hwmon.fan hwmon6=qc71_laptop.hwmon.pwm
FCTEMPS=hwmon6/pwm2=hwmon5/temp2_input
FCFANS= hwmon6/pwm2=hwmon5/fan2_input
MINTEMP=hwmon6/pwm2=20
MAXTEMP=hwmon6/pwm2=60
MINSTART=hwmon6/pwm2=150
MINSTOP=hwmon6/pwm2=100

* Scenario 1: Service is enabled and active --> is restarted

❯ systemctl status -l fancontrol
● fancontrol.service - fan speed regulator
Loaded: loaded (/lib/systemd/system/fancontrol.service; enabled; vendor preset: 
enabled)
Active: active (running) since Wed 2022-04-20 18:38:51 CEST; 1min 9s ago
Docs: man:fancontrol(8)
man:pwmconfig(8)
Process: 60255 ExecStartPre=/usr/sbin/fancontrol --check (code=exited, 
status=0/SUCCESS)
Main PID: 60352 (fancontrol)
Tasks: 2 (limit: 76978)
Memory: 1.3M
CGroup: /system.slice/fancontrol.service
├─60352 /bin/bash /usr/sbin/fancontrol
└─61653 sleep 10

abr 20 18:38:51 Camelot-TITAN fancontrol[60352]:   Controls hwmon5/fan2_input
abr 20 18:38:51 Camelot-TITAN fancontrol[60352]:   MINTEMP=20
abr 20 18:38:51 Camelot-TITAN fancontrol[60352]:   MAXTEMP=60
abr 20 18:38:51 Camelot-TITAN fancontrol[60352]:   MINSTART=150
abr 20 18:38:51 Camelot-TITAN fancontrol[60352]:   MINSTOP=100
abr 20 18:38:51 Camelot-TITAN fancontrol[60352]:   MINPWM=0
abr 20 18:38:51 Camelot-TITAN fancontrol[60352]:   MAXPWM=255
abr 20 18:38:51 Camelot-TITAN fancontrol[60352]:   AVERAGE=1
abr 20 18:38:52 Camelot-TITAN fancontrol[60352]: Enabling PWM on fans...
abr 20 18:38:52 Camelot-TITAN fancontrol[60352]: Starting automatic fan 
control...

[Suspend]

abr 20 18:42:44 Camelot-TITAN fancontrol[60352]: Aborting, restoring fans...
abr 20 18:42:44 Camelot-TITAN systemd[1]: Stopping fan speed regulator...
abr 20 18:42:44 Camelot-TITAN fancontrol[60352]: Verify fans have returned to 
full speed
abr 20 18:42:44 Camelot-TITAN systemd[1]: fancontrol.service: Succeeded.
abr 20 18:42:44 Camelot-TITAN systemd[1]: Stopped fan speed regulator.
abr 20 18:42:44 Camelot-TITAN systemd[1]: Starting fan speed regulator...
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]: Loading configuration from 
/etc/fancontrol ...
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]: Common settings:
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]:   INTERVAL=10
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]: Settings for hwmon6/pwm2:
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]:   Depends on hwmon5/temp2_input
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]:   Controls hwmon5/fan2_input
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]:   MINTEMP=20
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]:   MAXTEMP=60
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]:   MINSTART=150
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]:   MINSTOP=100
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]:   MINPWM=0
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]:   MAXPWM=255
abr 20 18:42:44 Camelot-TITAN fancontrol[62467]:   AVERAGE=1
abr 20 18:42:44 Camelot-TITAN systemd[1]: Started fan speed regulator.


* Scenario 2: Service is disabled and active --> is restarted

❯ sudo systemctl disable fancontrol
Synchronizing state of fancontrol.service with SysV service script with 
/lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable fancontrol
Removed /etc/systemd/system/multi-user.target.wants/fancontrol.service.


[Suspend]

❯ systemctl --type=service | grep fancontrol
fancontrol.service                                    loaded active running fan 
speed regulator
❯ sudo systemctl status -l fancontrol
● fancontrol.service - fan speed regulator
Loaded: loaded (/lib/systemd/system/fancontrol.service; disabled; vendor 
preset: enabled)
Active: active (running) since Wed 2022-04-20 18:59:16 CEST; 17s ago
Docs: man:fancontrol(8)
man:pwmconfig(8)
Process: 72652 ExecStartPre=/usr/sbin/fancontrol --check (code=exited, 
status=0/SUCCESS)
Main PID: 72741 (fancontrol)
Tasks: 2 (limit: 76978)
Memory: 896.0K
CGroup: /system.slice/fancontrol.service
├─72741 /bin/bash /usr/sbin/fancontrol
└─73034 sleep 10

abr 20 18:59:16 Camelot-TITAN fancontrol[72741]:   Controls hwmon5/fan2_input
abr 20 18:59:16 Camelot-TITAN fancontrol[72741]:   MINTEMP=20
abr 20 18:59:16 Camelot-TITAN fancontrol[72741]:   MAXTEMP=60
abr 20 18:59:16 Camelot-TITAN fancontrol[72741]:   MINSTART=150
abr 20 18:59:16 Camelot-TITAN fancontrol[72741]:   MINSTOP=100
abr 20 18:59:16 Camelot-TITAN fancontrol[72741]:   MINPWM=0
abr 20 18:59:16 Camelot-TITAN fancontrol[72741]:   MAXPWM=255
abr 20 18:59:16 Camelot-TITAN fancontrol[72741]:   AVERAGE=1
abr 20 18:59:16 Camelot-TITAN fancontrol[72741]: Enabling PWM on fans...
abr 20 18:59:17 Camelot-TITAN fancontrol[72741]: Starting automatic fan 
control...


* Scenario 3: Service is enabled and inactive --> is not restarted
❯ systemctl --type=service | grep fancontrol
❯ systemctl is-active fancontrol
inactive
❯ systemctl is-enabled fancontrol
disabled

[Suspend]

❯ systemctl --type=service | grep fancontrol

* Scenario 4: Service is disabled and inactive --> is not restarted

❯ sudo systemctl enable fancontrol
Synchronizing state of fancontrol.service with SysV service script with 
/lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable fancontrol
Created symlink /etc/systemd/system/multi-user.target.wants/fancontrol.service 
→ /lib/systemd/system/fancontrol.service.
❯ systemctl --type=service | grep fancontrol
❯ systemctl is-enabled fancontrol
enabled
❯ systemctl is-active fancontrol
inactive

[Suspend]
❯ systemctl --type=service | grep fancontrol

** Tags removed: verification-needed-focal
** Tags added: verification-done-focal

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1882272

Title:
  fancontrol does not work after sleep/wakeup

To manage notifications about this bug go to:
https://bugs.launchpad.net/lmsensors/+bug/1882272/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to