Gnome brightness slider not working (Ubuntu 20:04.3 LTS)

id flag

The slider on top right for brightness does not work but volume and microphone sliders do work. As a temporary workaround, xrandr can set brightness and a shell script is about as convenient as using the slider. The script is below and should be used as ./ 0.5 where 0.5 is the brightness you want to set it to. 1 is maximum and 0 is minimum.


# Sets brightness on scale of 0 to 1
xrandr --output DP-0 --brightness $1

Edit: DP-0 is the screen, it is usually the default but not always. If this script does not work for you, check your screen id.

David avatar
cn flag
Looks like an answer to an unasked question.
vanadium avatar
cn flag
Please write this as a question, then provide your answer as an answer to that question. This is perfectly fine on this site, and you may even accept your own answer. I would, however, recommend you to try the utility `light` that works on the hardware level (e.g. `light -U 1` to decrease brightness and `light +U 1` to increase), which can be bound to a shortcut key. `light` is in the repository of Ubuntu 21.04, else is available on github.
us flag
I’m voting to close this because it is not a question. Also, see, which has similar scripts.

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.