Basically group of simple 2 Python script files to help fix the problem of Keyboard LEDs that doesn't want to turn on When running on Linux.
pillow
Optionalcolorama
In order to compile these Python script files into Linux binaries, you must have pyinstaller
installed, alongwith auto-py-to-exe
when necessary
- Download both of the scripts
enable_led
anddisable_led
- Make a working directory.
mkdir working-dir
cd working-dir
- Copy scripts from your
Downloads
folder to theworking-dir
you have just made.
cp enable_led.py /working-dir/enable_led.py
cp disable_led.py /working-dir/disable_led.py
- Compile them with
pyinstaller
pyinstaller enable_led.py
pyinstaller disable_led.py
- Copy them into
/usr/bin
for easier access later.
sudo cp enable_led /usr/bin/enable_led
sudo cp disable_led /usr/bin/disable_led
I don't think I have to tell you that you must have to enter your sudo
password to copy to /usr/bin
.
- Enjoy!
# to enable keyboard backlight
enable_led
# to disable keyboard backlight
disable_led
# no sudo needed
This script file is licensed under the Public Domain License.