This is a list of common settings one might want to change at some point
TLP is a common linux utility for improving battery life. Some things that you can do are:
See the Hakodocs’ TLP section for more information on the installation process and setup. Additionally, you can read the TLP documentation.
The Power Profiles Daemon (DDP) is a common, and simple way to manage power profiles on Linux with no configuration. On Arch Linux:
sudo pacman -S power-profiles-daemon
sudo systemctl enable --now power-profiles-daemon
You can install a manager for your DE, on KDE Plasma:
sudo pacman -S power-devil
then you will be able to change power profiles from your panel/taskbar.
You can manually adjust the charging thresholds if your hardware allows it. As a reference you can check your current values by running
echo /sys/class/power_supply/BAT0/charge_control_start_threshold
echo /sys/class/power_supply/BAT0/charge_control_end_threshold
and create a systemd service that rewrites them on boot
[Unit]
Description=Set battery charge thresholds
After=multi-user.target
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo 75 > /sys/class/power_supply/BAT0/charge_control_start_threshold"
ExecStart=/bin/sh -c "echo 85 > /sys/class/power_supply/BAT0/charge_control_end_threshold"
[Install]
WantedBy=multi-user.target
then simply enable the service
sudo systemctl enable --now battery.service
Not a setting per se, but it is useful to have this command at hand somewhere.
sudo grub-mkconfig -o /boot/grub/grub.cfg
To show the kernel logs on boot for a hacker feeling, edit the GRUB_CMDLINE_LINUX_DEFAULT
variable in your GRUB configuration to contain a loglevel
.
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3"
Make sure to remove splash
or quiet
if they appear.
It is very helpful, specially when dual booting, to make GRUB default to the last launched entry. To do this, edit your GRUB configuration to contain
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
Following the SDDM Arch Wiki Page. To scale the SDDM login screen, first create/edit the file
[Wayland]
EnableHiDPI=true
[X11]
EnableHiDPI=true
When using KDE Plasma, which has a Qt-based greeter, add the following
[General]
GreeterEnvironment=QT_SCREEN_SCALE_FACTORS=2,QT_FONT_DPI=192