pylight
- A simple backlight controller written in Python.
pylight
is a simple software written in Python to control backlights and other lights on GNU/Linux system with xbacklight
-like options.
pylight
works in a fully CLI environment, which does not require X to be running while xbacklight
does.
First, clone pylight
repository.
$ git clone https://github.com/akihironitta/pylight.git
$ cd pylight
To enable pylight
running without root permission, place 90-backlight.rules
in one of the udev rules directories, e.g. /etc/udev/rules.d/
.
$ mv 90-backlight.rules /etc/udev/rules.d/
Rebooting the system may be required to apply this configuration depending on your system.
$ sudo reboot
-max
set brightness to maximum value-min
set brightness to minimum value (a quater of maximum value)-set
set brightness to value-inc
increase brightness by value-dec
decrease brightness by value
Check the current brightness.
pylight
Set to the specified brightness 100
.
pylight -set 100
Set to the maximum brightness.
pylight -max
Set to the minimum brightness.
pylight -min