Tip
After every kernel update (linux
package) reboot the system so the
new kernel modules for hardware are loaded (e.g. USB drives)
See the archlinux wiki for controlling the CPU Frequency.
Use cpupower
to do all the configurations.
Check the Power Governors section for different power modes.
Tip
A script for controlling the CPU frequency
is provided, but needs needs permission to run cpupower
.
Edit /etc/sudoers
with the visudo
command:
sudo visudo /etc/sudoers
Add the following lines at the end of the file:
user_name ALL=(ALL) NOPASSWD: /usr/bin/cpupower frequency-set*
Edit the file /etc/systemd/logind.conf
and add the following
configuration:
HandlePowerKey=suspend
HandlePowerKeyLongPress=poweroff
Then, to apply the changes, run:
sudo systemctl kill -s HUP systemd-logind
Use the package acpilight
, it provides the command xbacklight
. Add
the following configuration under /etc/udev/rules.d/90-backlight.rules
:
Tip
:TSInstall udev
SUBSYSTEM=="backlight", ACTION=="add", \
RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness", \
RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
Then add the user to the video
group:
usermod --apend --groups video $(whoami)