#!/bin/bash
sudo /opt/RyzenAdj/ryzenadj --tctl-temp=63&& notify-send "Successfully set tctl_temp to 63"# Wait for the GUI to be ready# while [[ ! $(pgrep plasmashell) ]]; do sleep 1; done# sudo /opt/RyzenAdj/ryzenadj --tctl-temp=62 && notify-send "Sucessfully set tctl_temp to 62"
Also set it to use sudo without password using
this method. Using sudo visudo add this to the end of the file:
1
psharen ALL=NOPASSWD: /opt/RyzenAdj/ryzenadj
You can also add a custom shortcut to launch it (Meta + T). But after suspend/wakeup cycle this setting breaks. And there’s no way under KDE to execute something after wakeup, AFAIK. So I used
this method and added a small script to /lib/systemd/system-sleep/:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
case$1/$2 in
pre/*)# echo "Going to $2..."# Place your pre suspend commands here, or `exit 0` if no pre suspend action requiredexit0;; post/*)# echo "Waking up from $2..."# Place your post suspend (resume) commands here, or `exit 0` if no post suspend action required# while [[ ! $(pgrep plasmashell) ]]; do sleep 1; done /opt/RyzenAdj/ryzenadj --tctl-temp=63;;esac