Linux command
light 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
light
Set
light -S 50
Increase
light -A 20
Decrease
light -U 20
说明
light controls the backlight brightness of laptop screens and other controllable backlights. It works without X or Wayland and can save and restore brightness levels.
参数
- -S PERCENT
- Set brightness to specified percent
- -A PERCENT
- Add percent to current brightness
- -U PERCENT
- Subtract percent from current brightness
- -G
- Get current brightness (default)
- -O
- Save current brightness
- -I
- Restore previously saved brightness
- -N PERCENT
- Set minimum brightness cap
- -P
- Get minimum brightness cap
- -L
- List available devices
- -s DEVICE
- Select specific device
- -r
- Interpret values in raw mode (device-specific values instead of percent)
FAQ
What is the light command used for?
light controls the backlight brightness of laptop screens and other controllable backlights. It works without X or Wayland and can save and restore brightness levels.
How do I run a basic light example?
Run `light` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -S PERCENT do in light?
Set brightness to specified percent