This is just a basic custom rofi script that can be used to configure the TDP of AMD Ryzen processors.
My Lenovo Ideapad Slim 5 (14ARE05) laptop used to get extremely hot. It was consistently in the range of 70s and 80s Celsius when doing everyday tasks like browsing and so on. I would see very large temperature spikes
Also lenovo bios update was also responsible for this.
All the credit goes to the creator of ryzenadj
git clone https://github.com/ayushjaipuriyar/power-profile-ryzenadj-rofi.git
cp -R .config ~/
chmod +x ~/.config/rofi/power.sh
XF86Lanuch4
~/.config/rofi/power.sh
You will need to find how you can bind the power.sh script.
sudo visudo
{username} ALL=(ALL) NOPASSWD: /usr/bin/ryzenadj
{username} is where your actual username goes. If this return some error then you might need to find your installation location of ryzenadj and replace the locaiton in the above line. You can get the installed by running .
which ryzenadj
I prefer to keep run my laptop cool , so I created a systemd service , so that at boot, the TDP is set to 5W. These steps as additonal you don't need to follow these.
sudo cp ryzenadj.sh /usr/local/sbin/
You need to make the script executable.
sudo chmod +x /usr/local/sbin/ryzenadj.sh
sudo cp ryzenadj.service /etc/systemd/system/
Now reload systemd , so that it can find the ryzenadj.service file
sudo systemctl daemon-reload
Run the following commands to make it executbale on boot
sudo systemctl enable ryzenadj.service

Stars
0
Forks
0
Watchers
1
Primary Language
Shell