Skip to content

Instantly share code, notes, and snippets.

@przbadu
Created August 22, 2020 02:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save przbadu/ed9cccdbe6123bedd1d2b425eea73484 to your computer and use it in GitHub Desktop.
Save przbadu/ed9cccdbe6123bedd1d2b425eea73484 to your computer and use it in GitHub Desktop.
How to control monitor brightness from linux PC using terminal

Open terminal app

Press Ctrl + Alt + T or search for terminal application and open it.

Get Monitor's Device Name

First get monitor's device name using below terminal command:

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

control brightness level

The brightness level should be set between 0.5 to 1 for better visibility.

xrandr --output [monitor-name] --brightness [brightness-level]

Example

xrandr --output HDMI-0 --brightness 0.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment