Sorry for the delay, I was waiting for a email notification
Ok, let me answer the questions:
1) I created the file
fancontrol.service in the folder
/etc/systemd/service2) Then, I activated the service via
sudo systemctl --system enable fancontrol.service (this created a symlink to my file inside
/etc/systemd/system/multi-user.target.wants/)
3) When the laptop boots, the fan is silent, but turns to full power after a short while.
This is because the service fails and cannot be restarted. The fancontrol safety mechanism sets the fans to full speed.
4) I cannot find the
-D switch for the fancontrol bash script in the man page:
http://linux.die.net/man/8/fancontrol What is this supposed to do? (the switch is accepted, but I tried some other letters, and it seems that the script is not doing any error checking at all)
5) The status output is this:
- Code: Select all
[marcus@mzlaptop2 system]$ sudo systemctl -l status fancontrol.service
fancontrol.service - Fancontrol service
Loaded: loaded (/etc/systemd/system/fancontrol.service; enabled)
Active: failed (Result: timeout) since Di 2015-01-13 09:44:24 CET; 2h 26min ago
Process: 854 ExecStart=/sbin/fancontrol (code=exited, status=0/SUCCESS)
Jan 13 09:42:54 mzlaptop2 fancontrol[854]: MINSTOP=60
Jan 13 09:42:54 mzlaptop2 fancontrol[854]: MINPWM=0
Jan 13 09:42:54 mzlaptop2 fancontrol[854]: MAXPWM=255
Jan 13 09:42:54 mzlaptop2 fancontrol[854]: Enabling PWM on fans...
Jan 13 09:42:54 mzlaptop2 fancontrol[854]: Starting automatic fan control...
Jan 13 09:44:24 mzlaptop2 systemd[1]: fancontrol.service operation timed out. Terminating.
Jan 13 09:44:24 mzlaptop2 systemd[1]: Failed to start Fancontrol service.
Jan 13 09:44:24 mzlaptop2 systemd[1]: Unit fancontrol.service entered failed state.
Jan 13 09:44:25 mzlaptop2 fancontrol[854]: Aborting, restoring fans...
Jan 13 09:44:25 mzlaptop2 fancontrol[854]: Verify fans have returned to full speed
[marcus@mzlaptop2 system]$
6) Regarding the type, I was just following the man page. I will check to references and report back in the next days.
Thanks for your help!
Regards,
Marcus