lg4l
lg4l copied to clipboard
Fixed G510 keyboard module
The previous hid-g510.c file was purely based on g13 driver but G510 does not have the same USB reports as g13. In this version I fixed the driver and now it is able to change keyboard background color and set the led of M keys. But using with gnome15 is not working but it seems that some work is needed on driver_kernel.py. I will continue to work to get the driver working with gnome15, but want to share what I have so far.
By the way, changed a bit hid-gcore to check for null pointers. If, for some reason, the probe fails, it would generate a null pointer exception during disconnect. With these checks in place, this does not happen.
Thanks for creating this PR. I hope I'll get some time to test it during the holidays