- C 73.8%
- Roff 12.8%
- M4 9.2%
- Makefile 2.7%
- Shell 1.5%
| scripts | ||
| src | ||
| .gitignore | ||
| agan.conf | ||
| brightness_agan2k.1 | ||
| ChangeLog | ||
| configure.ac | ||
| LICENSE | ||
| Makefile.am | ||
| README.org | ||
Brightness control program for AGAN X230 2K modification board
There are exists some 2K modification boards (usually named Agan X230) for Lenovo Thinkpad X220/X230: link. This program can change 2K display brightness via board's USBHID interface.
Program written only for FreeBSD.
Compilation and installation
./scripts/autotools.sh ./configure make sudo make install
Last command will install compiled binary and man page. Also, it will install
necessary devd rule to /usr/local/etc/devd/agan.conf.
After installation you can reboot computer to apply devd rule. Just a devd restart will not work - because AGAN X230 board soldered to motherboard and cannot be reconnected. New devd rule will be applied only on system startup.
User, which want to use this program, should be on the wheel group. If you
want to use another group — edit the agan.conf file.
Usage
Brightness from AGAN X230 can take values from 0 to 15.
To read brightness from board just run:
brightness_agan2k 11
Or add option -p (--percent) to output brightness in percents:
brightness_agan2k -p 73
To write brightness to board:
brightness_agan2k -b 10
Or:
brightness_agan2k --brightness 10
To increase or decrease brightness by one step, the options -i
(--increase-brightness) or -d (--decrease-brightness) exists.