TUXEDO Computers Kernel module for keyboard backlighting.
Additions
- Sysfs interface to control the brightness, mode, color, on/off state
- DKMS Ready
- Full RGB Color Support
- WMI Support for switch over the FN-Keys
- make
- gcc
- linux-headers
- dkms (Only when use this module with the DKMS functionality)
Use either method only. Do not combine installation methods, such as starting with the build step below and proceeding to use the same build artifacts with the DKMS module. Otherwise the module built via dkms will fail to load with an exec_format
error on newer kernels due to a mismatched version magic.
This is why the DKMS build step begins with a make clean
step.
For convenience, on platforms where DKMS is in use, skip to the DKMS section directly.
git clone https://github.com/tuxedocomputers/tuxedo-keyboard.git
cd tuxedo-keyboard
make clean && make
At first point add the Module
make clean
sudo cp -R . /usr/src/tuxedo_keyboard-2
sudo dkms add -m tuxedo_keyboard -v 2
The secound step is compile the module
sudo dkms build -m tuxedo_keyboard -v 2
Install the DKMS module
sudo dkms install -m tuxedo_keyboard -v 2
Load the module with modprobe
modprobe tuxedo_keyboard
Remove the dkms module
sudo dkms remove -m tuxedo_keyboard -v 2 --all
Remove the source
sudo rm -rf /usr/src/tuxedo_keyboard-2
modprobe tuxedo_keyboard
Add Module to /etc/modules
sudo su
echo tuxedo_keyboard >> /etc/modules
Default Parameters at start.
In this example, we start the kernel module with the following settings:
- mode 0 (Custom / Default Mode)
- red color for the left side of keyboard
- green color for the center of keyboard
- blue color for the right side of keyboard
Note that we write its' settings to a .conf
file under /etc/modprobe.d
named tuxedo_keyboard.conf
.
sudo su
echo "options tuxedo_keyboard mode=0 color_left=0xFF0000 color_center=0x00FF00 color_right=0x0000FF" > /etc/modprobe.d/tuxedo_keyboard.conf
Path: /sys/devices/platform/tuxedo_keyboard
Allowed Values: Hex-Value (e.g. 0xFF0000 for the Color Red)
Description: Set the color of the left Keyboard Side
Allowed Values: Hex-Value (e.g. 0xFF0000 for the Color Red)
Description: Set the color of the center of Keyboard
Allowed Values: Hex-Value (e.g. 0xFF0000 for the Color Red)
Description: Set the color of the right Keyboard Side
Allowed Values: Hex-Value (e.g. 0xFF0000 for the Color Red)
Description: Set the color of the extra region (if exist) of the Keyboard
Allowed Values: 0 - 255
Description: Set the brightness of the Keyboard
Allowed Values: 0 - 7
Description: Set the mode of the Keyboard. A list with the modes is under Modes
Allowed Values: 0, 1
Description: Set the State of keyboard, 0 is keyboard is off and 1 is keyboard is on
Allowed Values: 0, 1
Description: Only get the information, if the keyboard have the extra region
sudo modprobe tuxedo_keyboard <params>
Set the color of the left Keyboard Side
Set the color of the left Keyboard Side
Set the color of the left Keyboard Side
Set the color of the left Keyboard extra region (Only when is a supported keyboard)
Set the mode (on/off) of keyboard
Set the brightness of keyboard
Value: 0
Value: 1
Value: 2
Value: 3
Value: 4
Value: 5
Value: 6
Value: 7