Last active
April 28, 2022 12:47
-
-
Save curiousercreative/09aa4ccb81b45ce46f2fc063abf5b6cf to your computer and use it in GitHub Desktop.
Write a systemd service file to set profile after system76-power service starts and enable it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# as superuser | |
sudo su | |
# write a systemd service file to set profile after system76-power service starts | |
cat <<EOF > /etc/systemd/system/system76-power-profile-default.service | |
[Unit] | |
Description=Set the profile profile at startup. | |
After=com.system76.PowerDaemon.service | |
[Service] | |
Type=simple | |
ExecStart=/bin/bash -c 'system76-power profile performance' | |
[Install] | |
WantedBy=default.target | |
EOF | |
# enable our new service | |
systemctl enable system76-power-profile-default | |
exit | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment