ansible-desktop/roles/laptop/files/usr/local/sbin/unlimited-power

15 lines
361 B
Plaintext
Raw Normal View History

2022-10-25 23:18:13 +00:00
#!/usr/bin/env sh
2022-10-26 13:00:52 +00:00
# Enable back all CPUs
echo 1 | tee /sys/devices/system/cpu/cpu[2-7]/online
echo 1 | tee /sys/devices/system/cpu/cpu1[0-5]/online
2022-10-25 23:18:13 +00:00
2022-10-26 13:00:52 +00:00
# Set CPU to governor to ondemand
cpupower frequency-set --governor ondemand
2022-10-25 23:18:13 +00:00
2022-10-26 13:00:52 +00:00
# Set brightness to 200 / 255
echo 200 | tee /sys/class/backlight/amdgpu_bl0/brightness
2022-10-25 23:18:13 +00:00
2022-10-26 13:00:52 +00:00
# Enable bluetooth
rfkill unblock bluetooth