1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 09:16:11 +00:00

Update INSTALL.md

This commit is contained in:
MatMoul 2017-05-07 02:04:35 +02:00
parent 323b7e6fad
commit 612ebf61b1

View File

@ -35,17 +35,15 @@ Fedora :</br>
## Installation :</br> ## Installation :</br>
`git clone https://github.com/MatMoul/g810-led.git`</br> `git clone https://github.com/MatMoul/g810-led.git`</br>
`cd g810-led`</br> `cd g810-led`</br>
`make` # for hidapi</br> `make bin` # for hidapi</br>
`make LIB=libusb` # for libusb</br> `make bin LIB=libusb` # for libusb</br>
`sudo make install`</br> `sudo make install`</br>
`make install-lib` to install the libg810-led library.</br>
`make install-dev` to install the libg810-led library and headers for development.</br>
## Building the library :</br> ## Installation of the library (For developpers) :</br>
The library is built by default when running the `make` (default target "all").</br> `make lib` # for hidapi</br>
`make lib LIB=libusb` # for libusb</br>
To specifically build the library as a standalone component: </br> `sudo make install-lib` to install the libg810-led library.</br>
`make lib`</br> `sudo make install-dev` to install the libg810-led library and headers for development.</br>
## Update :</br> ## Update :</br>
Same as install, but your profile and reboot files are preserved.</br> Same as install, but your profile and reboot files are preserved.</br>
@ -54,10 +52,9 @@ Same as install, but your profile and reboot files are preserved.</br>
`sudo make uninstall`</br> `sudo make uninstall`</br>
## Boot profiles :</br> ## Boot profiles :</br>
If your system use systemd, g810-led has 2 systemd units (g810-led and g810-led-reboot).</br> On boot, the keyboard is set with the udev file /etc/udev/rules.d/g810-led.rules</br>
These 2 units set the keyboard profile on boot and reboot.</br> This file launch the profile stored in /etc/g810-led/profile</br>
Profiles are stored in /etc/g810-led :</br> To prevent your keyboard to flash 3 time when you reboot, a systemd unit (g810-led-reboot) is available for this.</br>
* /etc/g810-led/profile It launch the profile stored in /etc/g810-led/reboot</br>
* /etc/g810-led/reboot
Samples can be found in /etc/g810-led/samples.</br> Samples can be found in /etc/g810-led/samples.</br>