Skip to content

Instantly share code, notes, and snippets.

@dptsolutions
Created September 29, 2019 18:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dptsolutions/a364f820df71c7360cc18c052ffa59ff to your computer and use it in GitHub Desktop.
Save dptsolutions/a364f820df71c7360cc18c052ffa59ff to your computer and use it in GitHub Desktop.
Systemd service file for running https://github.com/TomFreudenberg/dell-bios-fan-control at system startup
[Unit]
Description=Simple tool to enable or disable the SMBIOS fan (auto) fan control on Dell laptops
After=network.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/dell-bios-fan-control 0
RemainAfterExit=yes
ExecStop=/usr/local/bin/dell-bios-fan-control 1
StandardOutput=journal
# The install section is needed to use
# `systemctl enable` to start on boot
# For a user service that you want to enable
# and start automatically, use `default.target`
# For system level services, use `multi-user.target`
[Install]
WantedBy=multi-user.target
@dptsolutions
Copy link
Author

NOTE

This assumes you've put a copy of the dell-bios-fan-control executable in /usr/local/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment