ansible-desktop/roles/laptop/files/usr/local/sbin/unlimited-power
2022-10-26 15:01:11 +02:00

15 lines
361 B
Bash

#!/usr/bin/env sh
# 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
# Set CPU to governor to ondemand
cpupower frequency-set --governor ondemand
# Set brightness to 200 / 255
echo 200 | tee /sys/class/backlight/amdgpu_bl0/brightness
# Enable bluetooth
rfkill unblock bluetooth