← Back to list

Adjusting Brightness on Ubuntu Desktop

Unlike Ubuntu on laptops, adjusting brightness on a desktop requires more… persuasion due to the lack of control over the back-light in…

JADEN ARCENEAUX · 2020-04-01 22:03 · 0 claps · 0.8 min read
#ubuntu #brightness #terminal #xrandr
Open on Medium ↗
Wiki topics: 🔓 · Open Source

Photo by Jonathan Ybema on Unsplash

Photo by Jonathan Ybema on Unsplash

Adjusting Brightness on Ubuntu Desktop

Having a display that is too bright especially at night can detrimental to your enjoyment and to the health of your eyes. Unlike Ubuntu on laptops, adjusting brightness on a desktop requires more… persuasion due to the lack of control over the back-light in your monitor. Brightness adjustment on Ubuntu can be accomplished by using xrandr

Some commands require the name of the current output source which can be found using

$ xrandr | grep " connected" | cut -f1 -d " " 

This will return the name of the your current output source

$ HDMI-1

Getting the current brightness can be accomplished using

$ xrandr --verbose | awk '/Brightness/ { print $2; exit }'

changing the brightness can be accomplished using

$ xrandr --output [your source] --brightness [0.0 - 1.0]

The functionality of these commands can easily be rolled into a GUI application which I have done at

https://github.com/Jadens-arc/Built-In-Sunglasses


메타데이터
post_id
8a8e5c54ddfa
slug
adjusting-brightness-on-ubuntu-desktop-8a8e5c54ddfa
url
https://medium.com/@arceneauxjaden/adjusting-brightness-on-ubuntu-desktop-8a8e5c54ddfa
canonical_url
https://medium.com/@arceneauxjaden/adjusting-brightness-on-ubuntu-desktop-8a8e5c54ddfa
author_url
https://medium.com/@arceneauxjaden
status
ok
fetched_at
2026-07-29 04:57:17