Over a million developers have joined DZone.

How to Change the Brightness of LCD Display from the Command Line in Ubuntu

How to use the Ubuntu CLI to change the brightness of LCD displays.

· IoT Zone

Access the survey results 'State of Industrial Internet Application Development' to learn about latest challenges, trends and opportunities with Industrial IoT, brought to you in partnership with GE Digital.

Open your terminal and type this:

 $ xrandr -q | grep "connected" 

If you have multiple monitors, you will have output as:

VGA1 connected primary 1280x1024+1920+0 (normal left inverted right x axis y axis) 338mm x 270mm

HDMI1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm

Here, VGA1 and HDMI1 are your display. If you want to change the brightness of ‘VGA1’ type the following:

 $ xrandr --output LVDS1 --brightness 0.9

The brightness ranges from 0.0 to 1.0 and 1.0 means full black.

The IoT Zone is brought to you in partnership with GE Digital.  Discover how IoT developers are using Predix to disrupt traditional industrial development models.


Published at DZone with permission of A. N. M. Bazlur Rahman, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}