iichid icon indicating copy to clipboard operation
iichid copied to clipboard

Logitech G15 G-Keys

Open ghost opened this issue 5 years ago • 9 comments

Not exactly an issue, the keyboard works pretty well (even volume and media player buttons). I just want to know if it's possible to make the G-Keys work, no macros or fancy stuff, just like the extra keys (home, mail, etc) of other keyboards.

devinfo.txt dmesg.txt pciconf.txt usbconfig.txt

ghost avatar Nov 20 '20 16:11 ghost

Firstly, run evemu-record (devel/evemu) and see if pressing the G-keys results in any events If not, then try sudo usbhidctl -f /dev/hidraw# -l -a. Where # is a you keyboard`s device node.

wulf7 avatar Nov 21 '20 10:11 wulf7

Nope. Tried both commands and the keys doesn't work.

ghost avatar Nov 21 '20 22:11 ghost

Nope. Tried both commands and the keys doesn't work.

Most probably, G-keys belong to other USB device. As your usbconfig output does not give clear answer to that question, try to replug keyboard and if more than one device appeared reattached in console output, run evemu-record and usbhidctl with this other device.

wulf7 avatar Nov 22 '20 08:11 wulf7

I've tried with all the devices (that G15 makes available) without luck, any other suggestions?

ghost avatar Nov 23 '20 22:11 ghost

any other suggestions

According to Linux driver, G-keys require extra initialization: https://elixir.bootlin.com/linux/v5.10-rc5/source/drivers/hid/hid-lg-g15.c#L781 and a special support.

Could you provide some additional info about your device. Just for the record:

  1. HID report descriptor: run usbhid-dump from sysutils/usbhid-dump port
  2. USB descriptors: run usbconfig dump_all_desc

Note: usbhid-dump will detach your keyboard, so you will have to replug it or reset USB port to make it working again.

wulf7 avatar Nov 23 '20 23:11 wulf7

I know is not directly related, but I've managed to make g15daemon work on freebsd, the screen works (even g15stats) but the keys are still a missing piece. The linux driver for this is somehow newer than g15daemon, so maybe is something I'm missing in g15daemon? My port is here if you're interested.

ghost avatar Jan 25 '21 14:01 ghost

but the keys are still a missing piece.

I think uinput plugin is required for keys to work.

wulf7 avatar Jan 25 '21 16:01 wulf7

I've forgot about this, g15daemon is already in ports since some time. I've managed to make everything works as expected but I have some situation I'm unable to debug, maybe you can help. It's really random and only occurs with the extra keys (supplied by g15daemon), sometimes it misses some keys, like an input lag, it only happens with the secondary usb device supplied by the keyboard, the main one works just fine. Do you have any clue or tip on how I can improve or change? Not sure if it's still related, I'm using stable/13 but the same occur with releng/13. Thanks.

ghost avatar Oct 06 '21 02:10 ghost