← 返回命令列表

Linux command

xbacklight 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

xbacklight

Set

xbacklight -set [40]

Increase

xbacklight -inc [25]

Decrease

xbacklight -dec [75]

Example

xbacklight -set [100] -time [60000] -steps [60]

说明

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.

参数

-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.

FAQ

What is the xbacklight command used for?

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.

How do I run a basic xbacklight example?

Run `xbacklight` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -get do in xbacklight?

Print current brightness percentage (default when no action given).