-
Notifications
You must be signed in to change notification settings - Fork 25
Ubuntu 16.04.1: keys repeated till infinite #20
Comments
I am having the same issue with the g510 on ubuntu 17.10. If keys are typed too fast, either the keyboard will just lock up and be unresponsive, or the last key pressed with repeat indefinitely. In both cases, the only way to recover is to unplug the keyboard and restart the desktop service. |
I did some test and I suppose that the bug could be into the pylibg15.py/libg15.so. I wrote this little code below for my G510, simply to change the led's color to green, and immediately the same issue happened.
|
I've spent some time digging around and the issue seems to stem from libg15 where it calls usb_interrupt_read(). It hangs on that call despite the timeout provided. The proper fix would be to port libg15-gnome15 from libusb-0.1 to libusb-1.0 since ubuntu doesn't provide the compatibility layer like other distros, but that is beyond my skillset. |
This was my primary suspect, but I'm not so sure because I compiled and installed libusb-compat-0.1 and the bug is just slightly changed.
|
JUST FOUND A FIX!!!!!! It's a dirty patch, but now someone can commit a more refined patch. |
However that timeout is very critical. Even with 50 msecs. very seldom I get the old bug, but at least now the keyboard is usable. I guess that the entire matter of mutex/timeout must be rethought. |
With my Logitech G510 keyboard, I used gnome15 for years with the original software 0.9.8 from russo79. It was all OK till Ubuntu 14.04.1 included.
When I upgraded to Ubuntu 16.04.1, this problem started immediately. The problem is perfectly reproducible in a lot of way, for example:
I upgraded gnome15 to the 0.10.2 version and also to this last commit of 11 days ago, but the problem is always the same.
If I disable the service for this keyboard, I can use it without any problem, but obviously I can't use any specific features of the G510.
Is there someone that use a G510 with gnome15 in Ubuntu 16.04.1 without problems? Anyway, any suggestion how to debug/resolve my problem?
Thanks very much foe any help.
The text was updated successfully, but these errors were encountered: