Controlling Backlight
- 29 Sep 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
Controlling Backlight
- Updated on 29 Sep 2021
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
If there is an LCD present and connected to the system, the backlight brightness can be controlled by reading and writing to files in the /sys filesystem (sysfs).
# cd /sys/class/backlight/backlight
# cat max_brightness
100
The max_brightness
file contains a value that pertains to the maximum brightness of the backlight. The brightness level can be controlled by writing a number between 0 and max_brightness
to the brightness
file.
# cat brightness
50
Off:
# echo 0 > brightness
50%:
# echo 50 > brightness
Maximum:
# echo 100 > brightness
Was this article helpful?