Winston Hoy revisou este gist 3 years ago. Ir para a revisão
1 file changed, 1 insertion, 1 deletion
system76-power-profile-default.sh
| @@ -6,7 +6,7 @@ sudo su | |||
| 6 | 6 | cat <<EOF > /etc/systemd/system/system76-power-profile-default.service | |
| 7 | 7 | [Unit] | |
| 8 | 8 | Description=Set the profile profile at startup. | |
| 9 | - | After=system76-power.service | |
| 9 | + | After=com.system76.PowerDaemon.service | |
| 10 | 10 | ||
| 11 | 11 | [Service] | |
| 12 | 12 | Type=simple | |
Winston Hoy revisou este gist 3 years ago. Ir para a revisão
1 file changed, 24 insertions
system76-power-profile-default.sh(arquivo criado)
| @@ -0,0 +1,24 @@ | |||
| 1 | + | #!/usr/bin/env bash | |
| 2 | + | # as superuser | |
| 3 | + | sudo su | |
| 4 | + | ||
| 5 | + | # write a systemd service file to set profile after system76-power service starts | |
| 6 | + | cat <<EOF > /etc/systemd/system/system76-power-profile-default.service | |
| 7 | + | [Unit] | |
| 8 | + | Description=Set the profile profile at startup. | |
| 9 | + | After=system76-power.service | |
| 10 | + | ||
| 11 | + | [Service] | |
| 12 | + | Type=simple | |
| 13 | + | ExecStart=/bin/bash -c 'system76-power profile performance' | |
| 14 | + | ||
| 15 | + | [Install] | |
| 16 | + | WantedBy=default.target | |
| 17 | + | EOF | |
| 18 | + | ||
| 19 | + | # enable our new service | |
| 20 | + | systemctl enable system76-power-profile-default | |
| 21 | + | ||
| 22 | + | exit | |
| 23 | + | ||
| 24 | + | exit 0 | |