Add instructions for setting TDP at boot

This commit is contained in:
Quad 2021-05-20 14:42:47 +02:00
parent ba77bdcfa3
commit 27b240ec9e
2 changed files with 24 additions and 0 deletions

View File

@ -48,3 +48,19 @@ tdp c -d
```
*Protip:* Add `tdp check` to the end of your `.bashrc` file. Then your terminal will display the TDP every time it's opened, without needing to run any command.
### Setting TDP at boot
Copy `tdp-set.service` into `/etc/systemd/system/`
Edit `/etc/systemd/system/tdp-set.service` and edit the `ExecStart=` line so it points to your tdp script, and type in your preferred wattage at the end.
Enable the service:
```
sudo systemctl deamon-reload
sudo systemctl enable tdp-set.service
```
Reboot your Win 3, then run `tdp check` to verify that TDP was set correctly.

8
scripts/tdp-set.service Normal file
View File

@ -0,0 +1,8 @@
[Unit]
Description=Sets GPD Win 3 TPD at boot
[Service]
ExecStart=/replace/this/path/to/scirpts/tdp set 12
[Install]
WantedBy=multi-user.target