Skip to content

Brightness control program for Thinkpad X220 with AGAN X230 2K modification board

License

Notifications You must be signed in to change notification settings

eugeneandrienko/brightness_x220_agan2k

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Dependencies

To build program autotools and bash is necessary.

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

To write brightness to board:

brightness_agan2k -b 10

Or:

brightness_agan2k --brightness 10

About

Brightness control program for Thinkpad X220 with AGAN X230 2K modification board

Resources

License

Stars

Watchers

Forks

Packages

No packages published