The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 399     Votes:  1     ✅ Solution
Tags: 18.04   gnome   brightness   backlight  
Link: 🔍 See Original Answer on Ask Ubuntu 🔗

URL: https://askubuntu.com/q/1156057
Title: Ubuntu 18.04 brightness/backlight command
ID: /2019/07/05/Ubuntu-18.04-brightness_backlight-command
Created: July 5, 2019    Edited:  July 5, 2019
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


You can use these commands in most if not all versions of gnome:

# Increase brightness:
gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Screen.StepUp

# Decrease brightness:
gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Screen.StepDown

If you have multiple monitors, you may be interested in this script which dims up to three monitors after 5 minutes of inactivity until mouse is moved or key is pressed. This is convenient when watching a movie on a second to fourth monitor (ie Big Screen TV).

At the very least the script will help you learn xrandr in general and how to change brightness using xrandr in great detail.

⇧ Run Bash scripts in folder all at the same time Keyboard repeat/delay is reset occasionally in Ubuntu 18.04  ⇩