Different thermald settings for battery and AC
0
votes
0
answers
62
views
I use thermald to prevent my Surface Pro 7 from overheating, using the intel powercap rapl driver (rapl_controller in thermald). I would also like to use the same rapl driver to reduce power consumption when on battery, but I can't find a way to do that aside from copying and pasting into the terminal each time:
sudo systemctl stop thermald && sudo powercap-set intel-rapl -z 0 -c 0 -l 5000000 -s 12000000 && sudo powercap-set intel-rapl-mmio -z 0 -c 0 -l 5000000 -s 12000000
Is there a way to get **thermald** to change the TargetState for the rapl_controller to 5000000 when on battery?
Here is my current thermal-conf.xml for reference:
Surface Pro Intel Thermal Workaround
*
QUIET
16750
4000
12000
12000
cpu
x86_pkg_temp
67000
passive
SEQUENTIAL
1
rapl_controller
1
12750000
EDIT:
I ended up creating a systemd service to check the battery status every minute and run the relevant command. I'd still be interested to know if it's possible through thermald.
Asked by Roundish5797
(1 rep)
Nov 17, 2024, 07:31 AM
Last activity: Nov 17, 2024, 01:50 PM
Last activity: Nov 17, 2024, 01:50 PM