Forrest logo
back to the xbacklight tool

xbacklight:tldr:6f87a

xbacklight: Get the current screen brightness as a percentage.
$ xbacklight
try on your machine

The "xbacklight" command is a utility command-line tool for adjusting the brightness of the display on an X11 (graphical) environment in Linux systems. It allows users to control the backlight brightness of their display.

The command is typically used in a terminal and follows the syntax:

xbacklight [options] [percentage]

Some commonly used options are:

  • "-inc [value]" or "--inc [value]": Increases the brightness by the specified value.
  • "-dec [value]" or "--dec [value]": Decreases the brightness by the specified value.
  • "-get" or "--get": Retrieves the current brightness level.
  • "-set [percentage]" or "--set [percentage]": Sets the brightness to the specified percentage.
  • "-time [duration]" or "--time [duration]": Specifies the transition time for brightness changes, in milliseconds.

For example, to increase the display brightness by 10%, you'd run: xbacklight -inc 10

To retrieve the current brightness, you'd use: xbacklight -get

Note: This command requires a system with X11 support and proper hardware/drivers that allow adjusting the backlight brightness.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xbacklight tool