If I just add the device here it might just work...
Ok so, my current linux device is a lousy netbook from 2009. I don't want to type on that mini screen. VS-code-remote doesn't work with x86, but WinSCP + ssh might just be good enough.
So many red squiggles... To add some linux header libraries, it says I need to open a folder. Ok, it added a .vscode folder... edit include path, copied the header files to a folder, and put them in the right order:
I don't know if that is helpful... It says U8 isn't a type, and game_mode_enabled is a function? oh well. I'll just try putting in the VID/PID and treat it like a LG_G15 and compiling.
stephen@ao751h:~/Documents/projects/g13$ sudo insmod ./hid-lg-g15.ko
[141992.481805] usb 2-1: USB disconnect, device number 6
[141993.497565] usb 2-1: new full-speed USB device number 7 using uhci_hcd
[141993.688838] usb 2-1: New USB device found, idVendor=046d, idProduct=c21c, bcdDevice= 2.03
[141993.688879] usb 2-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[141993.688896] usb 2-1: Product: G13
[141993.713546] hid-generic 0003:046D:C21C.0130: hiddev2,hidraw4: USB HID v1.11 Device [G13] on usb-0000:00:1d.0-1/input0
[142482.986330] lg-g15 0003:046D:C21C.0130: hidraw4: USB HID v1.11 Device [G13] on usb-0000:00:1d.0-1/input0
[142483.055391] input: Logitech Gaming Keyboard Gaming Keys as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/0003:046D:C21C.0130/input/input47
root@ao751h:/home/stephen/Documents/projects/g13# echo 0 > /sys/class/leds/g15\:\:lcd_backlight/brightness
root@ao751h:/home/stephen/Documents/projects/g13# echo 128 > /sys/class/leds/g15\:\:lcd_backlight/brightness
root@ao751h:/home/stephen/Documents/projects/g13# echo 255 > /sys/class/leds/g15\:\:lcd_backlight/brightness
root@ao751h:/home/stephen/Documents/projects/g13# echo 64 > /sys/class/leds/g15\:\:lcd_backlight/brightness
root@ao751h:/home/stephen/Documents/projects/g13# echo 0 > /sys/class/leds/g15\:\:lcd_backlight/brightness
root@ao751h:/home/stephen/Documents/projects/g13# echo 255 > /sys/class/leds/g15\:\:lcd_backlight/brightness
root@ao751h:/home/stephen/Documents/projects/g13# echo 64 > /sys/class/leds/g15\:\:lcd_backlight/brightness
root@ao751h:/home/stephen/Documents/projects/g13# cat /sys/class/leds/g15\:\:macro_record/brightness
1
root@ao751h:/home/stephen/Documents/projects/g13# echo 0 > /sys/class/leds/g15\:\:macro_record/brightness
The led's show up at /sys/class/leds/, dmesg shows it loaded, and echo 255 > /sys/class/leds/g15\:\:kbd_backlight/brightness changes it to green, setting the macro led's change backlight to full brightness. And finally evtest shows no input events.
It has an rgb color backlight, so maybe it should be treated like a LG_G510
changing brightness did nothing, but setting the color changed the M1-3/R leds. evtest still shows no events, So maybe there is nothing really in common with the g15 driver... but hey, hello-world blinky leds.
By using our website and services, you expressly agree to the placement of our performance, functionality, and advertising cookies.
Learn More