xrandr
is a useful utility for configuring outputs for X. Most commonly, I use it to turn displays on and off, set the primary display, and position the displays relative to each other. For example, configuring my big screen as the primary monitor to the right of my laptop screen:
xrandr --output DP-1 --right-of eDP-1 --primary --auto
Or to configure the project display (which is not primary):
xrandr --output HDMI-2 --above eDP-1
<aside>
😕 If xf86-intel-video
is installed it changes the names of all the outputs from the form eDP-1
to eDP1
which breaks any scripts which have hardcoded values (like autorandr
). This driver was uninstalled to fix the 5.10.x
kernel crashes (see Troubleshooting and known issues).
</aside>
light
In order to allow my user to use light
to set the brightness (e.g. via the keyboard keys) without sudo
, as per the Arch Wiki, this udev
rule changes the permissions to allow the video
group to change brightness:
ACTION="add", SUBSYSTEM="backlight", RUN+="/bin/chgrp video $sys$devpath/brightness", RUN+="/bin/chmod g+w $sys$devpath/brightness"