Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 1.71 KB

hardware-config.md

File metadata and controls

73 lines (48 loc) · 1.71 KB

Hardware Configuration

Tip

After every kernel update (linux package) reboot the system so the new kernel modules for hardware are loaded (e.g. USB drives)

CPU Frequency Scaling

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.

Run cpupower without password prompt

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*

Shutdown button suspends the computer

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

Backlight / Screen Brightness

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)