diff --git a/scripts/README.md b/scripts/README.md index d7c7c36..d13565a 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -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. diff --git a/scripts/tdp-set.service b/scripts/tdp-set.service new file mode 100644 index 0000000..deebaaf --- /dev/null +++ b/scripts/tdp-set.service @@ -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