Last active
September 30, 2022 13:52
-
-
Save curiousercreative/f4cf3c1b3f67de4cb35a271db1ef8699 to your computer and use it in GitHub Desktop.
write a systemd service file to set graphics power off when integrated graphics mode after system76-power service starts
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
[Unit] | |
Description=Set the graphics power to off for integrated graphics during startup. | |
After=com.system76.PowerDaemon.service | |
[Service] | |
Type=simple | |
ExecStart=/bin/bash -c '[[ $(system76-power graphics) == 'integrated' ]] && system76-power graphics power off' | |
[Install] | |
WantedBy=default.target |
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 graphics power after system76-power service starts | |
vi /etc/systemd/system/system76-power-graphics-power-default.service | |
# enable our new service | |
systemctl enable system76-power-graphics-power-default | |
exit | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment