Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logitech G15 G-Keys #47

Open
ghost opened this issue Nov 20, 2020 · 9 comments
Open

Logitech G15 G-Keys #47

ghost opened this issue Nov 20, 2020 · 9 comments

Comments

@ghost
Copy link

ghost commented Nov 20, 2020

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

@wulf7
Copy link
Owner

wulf7 commented Nov 21, 2020

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.

@ghost
Copy link
Author

ghost commented Nov 21, 2020

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

@wulf7
Copy link
Owner

wulf7 commented Nov 22, 2020

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.

@ghost
Copy link
Author

ghost commented Nov 23, 2020

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

@wulf7
Copy link
Owner

wulf7 commented Nov 23, 2020

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.

@ghost
Copy link
Author

ghost commented Nov 24, 2020

@ghost
Copy link
Author

ghost commented Jan 25, 2021

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.

@wulf7
Copy link
Owner

wulf7 commented Jan 25, 2021

but the keys are still a missing piece.

I think uinput plugin is required for keys to work.

@ghost
Copy link
Author

ghost commented Oct 6, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant