1

It works on the slider and it previously worked on a keyboard that had brightness keys. My new keyboard does not have dedicated keys. So I want to add a keybind in settings -> keyboard shortcuts -> add custom shortcut.

What is the command for it though? xbacklight -10 and xbacklight +10 does not work... any other ideas?

Thank you!

urs
  • 59
  • 1
  • 5
  • 1
    Assuming you're using Gnome (the default desktop environment), have you tried the two commands in [this answer](https://askubuntu.com/a/1107046)? – Harry Cutts Apr 20 '21 at 00:46
  • 1
    Does this answer your question? [How to change LCD brightness from command line (or via script)?](https://askubuntu.com/questions/149054/how-to-change-lcd-brightness-from-command-line-or-via-script) – Harry Cutts Apr 20 '21 at 01:14

1 Answers1

0

Thank you Harry! These two commands worked :)

Step up:

gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Screen.StepUp

Step down:

gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Screen.StepDown

urs
  • 59
  • 1
  • 5