xrandr
can be used to change the display brightness using the command line. For example,
xrandr --output VGA-1 --brightness 0.4
Wayland does not support xrandr
. Is there any similar tool in Wayland that can be used to control brightness and color temperature?
Note: This is NOT a duplicate of this question because that is about changing resolution, I want to control brightness on a desktop computer that does not support sys/class/backlight
, so that frontends like Brightness Controller or Redshift can be made to work with Wayland.
Yes, Wayland has an equivalent to
xrandr
. The package is calledwlr-randr
and is in theuniverse
repository of Ubuntu 21.04 and later.You can find the project's webpage here: https://sr.ht/~emersion/wlr-randr/