mooz / xkeysnail

Yet another keyboard remapping tool for X environment
891 stars 112 forks source link

Incompatible with libinput-1.16.0 #99

Open ncaq opened 4 years ago

ncaq commented 4 years ago

I'm using Gentoo. Recently libinput was updated to libinput-1.16.0. Then xkeysnail doesn't output the keys anymore.

As a result, the PC does not accept any key input.

xkeysnail does not print out the error message.

I've seen this happening with 0.2.0 and 0.3.0.

I downgraded to libinput-1.15.6 and it works fine.

It might be a bug in libinput, though, Since xkeysnail got stuck and might help people who are searching for it, I've decided to post it here in the issue for now.


私はGentooを使っています. 先日libinputがlibinput-1.16.0にアップデートされました. するとxkeysnailがキー出力を行わなくなりました.

結果としてPCは一切のキー入力を受け付けなくなります.

xkeysnailはエラー出力を行いません.

0.2.0と0.3.0で確認済みの現象です.

libinput-1.15.6にダウングレードしたら正常に動きました.

libinputのバグかもしれませんが, xkeysnailが動かなくなって検索してくる人の助けになるかもしれないので, とりあえずここのissueに投稿することにしました.

ncaq commented 4 years ago

I reported to libinput issue. Incompatible xkeysnail with libinput-1.16.0 (#512) · Issues · libinput / libinput · GitLab

ncaq commented 4 years ago

This bug seems to be caused by py-evdev-uinput being recognized as a joystick. The author of libinput has spec'd this into a wontfix. It certainly doesn't seem to recognize a joystick as a keyboard. Perhaps we need to fix things around gvalkov/python-evdev: Python bindings for the Linux input subsystem.

singletS commented 4 years ago

Does anyone know of a work around for this problem other than downgrading libinput? Debian testing requires libinput 1.16 now.

jvasile commented 4 years ago

@singletS Take a look at PR 101, which I think solves this problem on my machine by disabling the joystick functionality. If that doesn't work, take a look at PR 98, which disables the joystick and mouse buttons.

singletS commented 4 years ago

Thanks @jvasile, I've used PR98 for a couple weeks successfully. Will try 101 and report if there are any problems.

ncaq commented 3 years ago

I test with libinput of version 1.16.2. xkeysnail is worked! I think it's because of Revert the joystick check (!483) · Merge Requests · libinput / libinput · GitLab. However, I think we'll have to deal with it at some point.