10

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.

4
  • Have you tried using kernel FS tree at /sys/class/backlight or using Gnome DBus interface dbus-send --type=method_call --dest=org.gnome.SettingsDaemon /org/gnome/SettingsDaemon/Power org.freedesktop.DBus.Properties.Set string:'org.gnome.SettingsDaemon.Power.Screen' string:'Brightness' variant:int32:30 source seems old you may find updated ones here in AskUbuntu. – user.dz Oct 24 '20 at 9:55
  • /sys/class/backlight won't work on desktop. I am not sure what GNOME DBus interface does. It probably won't work outside GNOME. xrandr works on every major DE – Archisman Panigrahi Oct 24 '20 at 10:44
  • Are you sure about /sys/class/backlight as here askubuntu.com/a/785335/26246 because that the basic low level control if it is not there then probably have driver issue. doc: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/… . For DBus, Yeah it is only for Gnome & Unity. – user.dz Oct 24 '20 at 10:58
  • 1
    Check the edited question. I want to control brightness so that GUI frontends for controlling brightness (which come handy in desktops and systems with driver issues) can be made to work with Wayland – Archisman Panigrahi Oct 24 '20 at 11:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.