Merge pull request #29 from StevenSeifried/master

Update README.md
This commit is contained in:
vinzv 2019-08-26 22:32:02 +02:00 committed by GitHub
commit d65e76e84c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,18 +53,20 @@ make clean && make
At first point add the Module
```sh
make clean
sudo cp -R . /usr/src/tuxedo_keyboard-1
sudo dkms add -m tuxedo_keyboard -v 1
sudo cp -R . /usr/src/tuxedo_keyboard-2
sudo dkms add -m tuxedo_keyboard -v 2
```
The secound step is compile the module
```sh
sudo dkms build -m tuxedo_keyboard -v 1
sudo dkms build -m tuxedo_keyboard -v 2
```
Install the DKMS module
```sh
sudo dkms install -m tuxedo_keyboard -v 1
sudo dkms install -m tuxedo_keyboard -v 2
```
Load the module with modprobe
@ -76,12 +78,12 @@ modprobe tuxedo_keyboard
Remove the dkms module
```sh
sudo dkms remove -m tuxedo_keyboard -v 1 --all
sudo dkms remove -m tuxedo_keyboard -v 2 --all
```
Remove the source
```sh
sudo rm -rf /usr/src/tuxedo_keyboard-1
sudo rm -rf /usr/src/tuxedo_keyboard-2
```
# Using <a name="using"></a>
@ -97,6 +99,7 @@ modprobe tuxedo_keyboard
Add Module to /etc/modules
```sh
sudo su
echo tuxedo_keyboard >> /etc/modules
```
@ -114,6 +117,7 @@ Note that we write its' settings to a `.conf` file under `/etc/modprobe.d` named
```sh
sudo su
echo "options tuxedo_keyboard mode=0 color_left=0xFF0000 color_center=0x00FF00 color_right=0x0000FF" > /etc/modprobe.d/tuxedo_keyboard.conf
```