LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

xbacklight

Adjust screen backlight brightness

TLDR

Get current brightness
$ xbacklight
copy
Set brightness
$ xbacklight -set [40]
copy
Increase brightness
$ xbacklight -inc [25]
copy
Decrease brightness
$ xbacklight -dec [75]
copy
Set with fade effect
$ xbacklight -set [100] -time [60000] -steps [60]
copy

SYNOPSIS

xbacklight [OPTIONS]

DESCRIPTION

xbacklight adjusts backlight brightness using the X RandR extension's backlight property. When called without arguments, it prints the current brightness level as a percentage. The -set, -inc, and -dec options modify the brightness.The -time and -steps parameters enable smooth fade transitions, spreading the brightness change over the specified duration.

PARAMETERS

-get

Print current brightness percentage (default when no action given).
-set PERCENT
Set brightness to percentage.
-inc PERCENT
Increase brightness by percentage.
-dec PERCENT
Decrease brightness by percentage.
-time MS
Fade duration in milliseconds.
-steps N
Number of steps for fade.
-display DISPLAY
X display to use.
-help
Display help information.

INSTALL

sudo apt install xbacklight
copy
sudo dnf install xbacklight
copy
sudo apk add xbacklight
copy
sudo zypper install xbacklight
copy
nix profile install nixpkgs#xbacklight
copy

CAVEATS

X11 only; does not work with Wayland. Requires the RandR backlight property to be exposed by the display driver. Many modern laptops and proprietary drivers (e.g., NVIDIA) do not expose this property. Use brightnessctl or light as more reliable alternatives that work via sysfs.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid