2021-05-21 08:17:28 +00:00
# Scripts
2021-05-20 10:58:07 +00:00
2021-05-21 08:17:28 +00:00
A collection of scripts for the GPD Win 3. Mostly to minimize the reuqired typing on the keyboard.
2021-05-20 10:58:07 +00:00
2021-05-20 10:59:03 +00:00
To install scripts, copy them somewhere on your Win 3, then add them to your path. This is done by adding a line to the end of `~/.bashrc`
2021-05-20 10:58:07 +00:00
2021-05-21 08:17:28 +00:00
## Quickstart
To quickly install the scripts, make sure `git` is installed and run this in a terminal:
```
mkdir -p ~/.local
git clone https://gitea.quad.moe/quad/win3-resources.git ~/.local/gpd-win3
echo -e "\n# GPD Win 3 scripts\nPATH=\"\${PATH}:\${HOME}/.local/gpd-win3/scripts\"" >> ~/.bashrc
2021-05-20 10:58:07 +00:00
```
2021-05-21 08:17:28 +00:00
Then restart your terminal. Run `tdp check` if you want to test.
2021-05-20 10:58:07 +00:00
## TDP
2021-05-20 10:59:47 +00:00
Lets you set the TDP using `intel_rapl` . Tested on Ubuntu 21.04.
2021-05-20 10:58:07 +00:00
Also supports shortened commands for minimal typing on the mediocre keyboard.
2021-05-20 11:02:12 +00:00
PL1 is set to number provided, PL2 is set 2W higher, maybe PL2 will be customizable in the future.
You will have to enter your sudo password when changing TDP.
2021-05-20 10:58:07 +00:00
2021-05-20 12:32:25 +00:00
Common TDPs are:
- 8W (Ultra-low power, mostly just 2D games)
- 12W (Low-power)
- 15W (Balanced)
- 20W (High perf)
- 30W (Max perf)
2021-05-20 11:02:12 +00:00
For details on how to use, run `tdp help` .
2021-05-20 10:58:07 +00:00
Common examples:
```
# Check current TDP
tdp check
# Set TDP to 8W
tdp set 8
2021-05-20 11:02:12 +00:00
# Set TDP to 8W (Shortened)
2021-05-20 10:58:07 +00:00
tdp s 8
# Check both PL1 and PL2
tdp check --detail
2021-05-20 11:02:12 +00:00
# Check both PL1 and PL2 (Shortened)
2021-05-20 10:58:07 +00:00
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.
2021-05-20 12:42:47 +00:00
### Setting TDP at boot
Copy `tdp-set.service` into `/etc/systemd/system/`
2021-05-20 13:52:00 +00:00
Edit `/etc/systemd/system/tdp-set.service` and change the `ExecStart=` line so it points to your tdp script, and type in your preferred wattage at the end.
2021-05-20 12:42:47 +00:00
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.
2021-05-21 08:04:36 +00:00
# Touch fix
The script `touch-fix` unloads, then loads the touchscreen modules needed by the Win 3. This makes the touchscreen work, but only until next reboot.
Install the script and simply run `touch-fix` after boot to get the touchscreen up and running, until there is a permanent fix available.