By Greg Nowak. Last updated 2026-12-05.
Open the system menu at the top right of the Ubuntu desktop and move the brightness slider. On a laptop, you can also use the keys marked with a sun icon, holding Fn if your keyboard requires it. Watch which screen changes. If the laptop dims while the monitor on your desk stays bright, reach for the monitor’s own brightness control.
For a one-off adjustment, that may be all you need. A terminal command earns its place when you want to restore a shared desk to a known setting, adjust a monitor with awkward buttons, or dim an X11 desktop below the lowest backlight setting.
Which brightness control fits your screen?
| What you need | Control to use | What it changes |
|---|---|---|
| A comfortable setting on a laptop | Ubuntu slider or brightness keys | The built-in display’s brightness, on supported hardware |
| A repeatable laptop setting | brightnessctl |
The backlight device that Linux exposes |
| A dimmer external monitor | Monitor menu or ddcutil |
The monitor’s own brightness setting |
| Extra dimming in an X11 session | xrandr --brightness |
The image sent to the display |
Set a laptop backlight from the terminal
Start by checking whether Linux offers a backlight control for the panel. Install brightnessctl if needed, then list devices in the backlight class. Selecting that class keeps keyboard lighting out of the results.
sudo apt install brightnessctl
brightnessctl --class=backlight --listIf one device appears, note its current value so you can put it back. The following command sets the backlight to 40% of that device’s maximum. This gives you a repeatable setting on this laptop. The same percentage on another model can look quite different.
brightnessctl --class=backlight set 40%For smaller adjustments, use brightnessctl --class=backlight set +10% to go up by ten percentage points of the maximum, or brightnessctl --class=backlight set 10%- to go down. With several backlights listed, add --device=NAME before set, replacing NAME with the panel’s device name. An empty list means this tool has no backlight device to adjust. A permission error means it found a device but your account lacks access to it.
Adjust an external monitor with ddcutil
Open the monitor’s on-screen menu using its buttons or joystick and find Brightness. For keyboard or terminal control, look for a setting called DDC/CI and enable it if available. This lets the computer send settings to a compatible monitor over the display connection. It works independently of whether you use X11 or Wayland.
sudo apt install ddcutil
ddcutil detectMatch the model in the detection results to the monitor you want to change. If it is listed as display 1, read its brightness using feature code 10. Substitute the number from your own results, especially at a desk with two monitors.
ddcutil --display 1 getvcp 10Write down the current value and check the maximum. If the maximum is 100, the command below sets the control to its midpoint. To undo the change, run it again with the value you wrote down in place of 50.
ddcutil --display 1 setvcp 10 50If detection fails through a dock, try connecting the monitor directly and run ddcutil detect again. A successful direct test narrows the problem to the connection through the dock. The monitor’s own menu remains available while you investigate.
Dim an X11 desktop below the hardware minimum
When the backlight is already at its lowest comfortable hardware setting and you still want a darker picture, check your session type in a terminal on the Ubuntu desktop.
echo "$XDG_SESSION_TYPE"If it prints wayland, use the desktop or hardware controls above. Xwayland can show output names to older applications even though the Wayland desktop controls the physical displays. If it prints x11, find the connected output you want to dim.
xrandr -q | grep ' connected'The first word on each matching line is an output name. If yours is eDP-1, try the following command. Substitute your own output name if it differs.
xrandr --output eDP-1 --brightness 0.8A multiplier of 0.5 darkens the picture further. Both values change the image in software while the backlight stays at its existing level. Before reviewing shadow detail in a client photograph or signing off a website’s colours, remove the dimming multiplier and return to your usual colour profile.
xrandr --output eDP-1 --brightness 1Leave the next person a working setting
For a shared desk, record the monitor model, how it connects, the control that worked and the value to restore. Before assigning a keyboard shortcut, unplug and reconnect the dock, check the display number again, and test the command from the account that will use it.
If your team keeps troubleshooting the same desk, talk to Greg about the setup. The monitor model, dock model and what happens when you move the Ubuntu slider are a useful place to start.
Related on GrN.dk
- How to Stop or Remove whoopsie-upload-all on Ubuntu
- Enable SMART on Old External Seagate SSD Ubuntu 20.10
- glxgears Without VSync: What the FPS Tells You
Need help with this kind of work?
Talk to Greg about a recurring Ubuntu workstation issue Get in touch with Greg.