rvaiya / keyd

A key remapping daemon for linux.
MIT License
2.99k stars 175 forks source link

Using with stylus - hangs while loading device. #835

Open kayakyakr opened 2 months ago

kayakyakr commented 2 months ago

I am trying to find something I can use to tell sway to open the context menu when I press my stylus button (right click). It's a... unique environment, to say the least, but the monitor is working as expected.

$> keyd monitor
device added: ab00:ab04:144f0a91 Wolf (virtual) pen tablet (/dev/input/event8)
Wolf (virtual) pen tablet       ab00:ab04:144f0a91      kp4 down
Wolf (virtual) pen tablet       ab00:ab04:144f0a91      kp4 up

default.conf

[ids]

ab00:ab04:144f0a91

[main]

kp4 = compose

When starting the daemon, it hangs trying to match the stylus

KEYD_DEBUG=2 keyd
DEBUG: src/keyd.c:230: Debug mode activated
CONFIG: parsing /etc/keyd/default.conf
Starting keyd v2.5.0 (393d341)
DEBUG: src/device.c:160: capabilities of /dev/input/event8 (Wolf (virtual) pen tablet): 3

I get nothing past that. A keyd reload command starts the reload process but hangs as well. Removing kp4 = compose does not resolve the hang.

Any ideas?

kayakyakr commented 2 months ago

This seems to be similar to #486 and #397 where the CPU is rising to 100%.

Don't know how I would debug further.