Power scripts switcheroo
This commit is contained in:
parent
b37396fa75
commit
1930200a86
@ -1,14 +1,26 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# Enable back all CPUs
|
# Limit 8C/16T CPU to 2C/4T
|
||||||
echo 1 | tee /sys/devices/system/cpu/cpu[2-7]/online
|
echo 0 | tee /sys/devices/system/cpu/cpu[2-7]/online
|
||||||
echo 1 | tee /sys/devices/system/cpu/cpu1[0-5]/online
|
echo 0 | tee /sys/devices/system/cpu/cpu1[0-5]/online
|
||||||
|
|
||||||
# Set CPU to governor to powersave
|
# Set CPU to governor to powersave
|
||||||
cpupower frequency-set --governor ondemand
|
cpupower frequency-set --governor powersave
|
||||||
|
|
||||||
# Set brightness to 120 / 255
|
# Set brightness to 120 / 255
|
||||||
echo 200 | tee /sys/class/backlight/amdgpu_bl0/brightness
|
echo 120 | tee /sys/class/backlight/amdgpu_bl0/brightness
|
||||||
|
|
||||||
# Enable bluetooth
|
# Disable bluetooth
|
||||||
rfkill unblock bluetooth
|
rfkill block bluetooth
|
||||||
|
|
||||||
|
# TODO disable some services
|
||||||
|
# systemctl disable containerd.service
|
||||||
|
# systemctl disable docker.service
|
||||||
|
# systemctl disable bluetooth.service
|
||||||
|
# systemctl disable libvirtd.service
|
||||||
|
# systemctl disable winbind.service
|
||||||
|
# systemctl disable snapd.service
|
||||||
|
# systemctl disable cups.service
|
||||||
|
# systemctl disable avahi-daemon.service
|
||||||
|
|
||||||
|
# TODO exit steam
|
||||||
|
@ -1,26 +1,14 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# Limit 8C/16T CPU to 2C/4T
|
# Enable back all CPUs
|
||||||
echo 0 | tee /sys/devices/system/cpu/cpu[2-7]/online
|
echo 1 | tee /sys/devices/system/cpu/cpu[2-7]/online
|
||||||
echo 0 | tee /sys/devices/system/cpu/cpu1[0-5]/online
|
echo 1 | tee /sys/devices/system/cpu/cpu1[0-5]/online
|
||||||
|
|
||||||
# Set CPU to governor to powersave
|
# Set CPU to governor to ondemand
|
||||||
cpupower frequency-set --governor powersave
|
cpupower frequency-set --governor ondemand
|
||||||
|
|
||||||
# Set brightness to 120 / 255
|
# Set brightness to 200 / 255
|
||||||
echo 120 | tee /sys/class/backlight/amdgpu_bl0/brightness
|
echo 200 | tee /sys/class/backlight/amdgpu_bl0/brightness
|
||||||
|
|
||||||
# Disable bluetooth
|
# Enable bluetooth
|
||||||
rfkill block bluetooth
|
rfkill unblock bluetooth
|
||||||
|
|
||||||
# TODO disable some services
|
|
||||||
# systemctl disable containerd.service
|
|
||||||
# systemctl disable docker.service
|
|
||||||
# systemctl disable bluetooth.service
|
|
||||||
# systemctl disable libvirtd.service
|
|
||||||
# systemctl disable winbind.service
|
|
||||||
# systemctl disable snapd.service
|
|
||||||
# systemctl disable cups.service
|
|
||||||
# systemctl disable avahi-daemon.service
|
|
||||||
|
|
||||||
# TODO exit steam
|
|
||||||
|
Loading…
Reference in New Issue
Block a user