2015-03-27 13:25:37 +00:00
|
|
|
Miscellaneous scripts used by Nico Schottelius
|
2018-03-30 12:12:10 +00:00
|
|
|
|
|
|
|
## Notable things usable for others:
|
|
|
|
|
|
|
|
### cbacklight
|
|
|
|
|
|
|
|
Sets/controls backlight using /sys/class/backlight/*/brightness
|
2018-03-30 12:13:41 +00:00
|
|
|
directly. Usable for systems that use modesetting instead of intel
|
|
|
|
driver.
|
|
|
|
|
|
|
|
Also: supports multiple backlight outputs at the same time.
|
|
|
|
|
2018-03-30 12:15:13 +00:00
|
|
|
```
|
2018-03-30 12:19:31 +00:00
|
|
|
[14:12] line:~% cbacklight --help
|
|
|
|
usage: cbacklight [-h] [--inc INC | --dec DEC | --set SET] [--get]
|
2018-03-30 12:13:41 +00:00
|
|
|
|
|
|
|
cbacklight
|
|
|
|
|
|
|
|
optional arguments:
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
--inc INC Increment by percentage (points)
|
|
|
|
--dec DEC Decrement by percentage (points)
|
|
|
|
--set SET Set to percentage
|
|
|
|
--get Get percentage (default)
|
2018-03-30 12:19:31 +00:00
|
|
|
[14:12] line:~% cbacklight --inc 5
|
|
|
|
[14:12] line:~% cbacklight --get
|
2018-03-30 12:13:41 +00:00
|
|
|
intel_backlight: 72.17%
|
2018-03-30 12:19:31 +00:00
|
|
|
[14:13] line:~% cbacklight --dec 7 --get
|
2018-03-30 12:15:13 +00:00
|
|
|
intel_backlight: 65.19%
|
|
|
|
```
|
|
|
|
|
|
|
|
It is basically a smarter / lighter xbacklight replacement
|