-
Notifications
You must be signed in to change notification settings - Fork 2
Script Works but Needs Updates for New System Paths #6
Description
Hi CodeRunner5235,
Thank you for creating this automation script! It’s an excellent solution for automating TDP adjustments on the Steam Deck.
I recently read an article about TDP adjustments (https://www.stanto.com/steam-deck/how-to-unlock-the-lcd-and-oled-steam-deck-bios-for-increased-tdp-and-other-features/) and noticed that the method for applying TDP settings seems to have been updated. I reviewed your script and compared it with the details from the article. It turns out that only a few small changes are needed for the script to work on newer configurations like the Steam Deck OLED.
Specifically, I updated the paths in your script from:
/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.0/hwmon/hwmon5/power1_cap
/sys/devices/pci0000:00/0000:00:08.1/0000:04:00.0/hwmon/hwmon5/power2_cap
to:
/sys/class/hwmon/hwmon6/power1_cap_default
/sys/class/hwmon/hwmon6/power2_cap_default
Additionally, I modified the command for writing TDP values from:
echo 20000000 > /sys/devices/pci0000:00/0000:00:08.1/0000:04:00.0/hwmon/hwmon5/power1_cap
to:
echo 20000000 | sudo tee /sys/class/hwmon/hwmon6/power1_cap
After making these changes, the script worked perfectly on my Steam Deck OLED. Honestly, I’m not entirely sure what the exact difference is between the two methods, but the updated paths and commands seem to align better with the current system structure.
I’d love to create a pull request, but I’m not a programmer, and diving into Git properly is a bit more effort than I’d like to put in at the moment. I hope this information helps you update the script for wider compatibility!
Thanks again for your great work on this!