Control the lights of the MSI Steel series keyboard on Ubuntu (GE62).
(C) 2016 E.Hooijmeijer, LGPL v3 licensed
Usage:
java -jar keylight.jar MLCLCLC
M: Ledmode : 0..4 (normal, gaming, breathe, fade, wave)
L: Level : 0..3 (high, med, low, glow)
C: Color : 0..8 (off, red, orange, yellow, green, light blue, blue, purple, white)
Example: purple keyboard
java -jar keylight.jar 0171717
Execute lsusb
in the console to see if you have a device with the ID 1770:ff00.
Bus 001 Device 002: ID 1770:ff00
If you don't have it, this program won't work.
Prerequisites:
- Java 7+ (See Stackoverflow)
- Maven 3+ (
sudo apt-get install maven
)
mvn clean install
The keylight.jar
file will be in the ./target/
folder.
Accessing USB devices on Linux as non root user requires some configuration.
You need to create/edit /etc/udev/rules.d/99-userusbdevices.rules
and add the following line:
SUBSYSTEM=="usb",ATTR{idVendor}=="1770",ATTR{idProduct}=="ff00",MODE="0660",GROUP="**YOUR GROUP HERE**"
Insert your users group as the GROUP.
To apply the new settings you need to invoke:
udevadm trigger
- First Release
I couldn't get any other implementation to work, so I decided to write my own :)