-
Notifications
You must be signed in to change notification settings - Fork 11
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
Not working on Anne Pro 2 #8
Comments
|
TL;DR: Ok, I made two traces: I stopped the interception-process beforehand to see differences more clearly. However, when I keep it running and try to Testing ... (interrupt to exit)
***********************************************
This device is grabbed by another process.
No events are available to evtest while the
other grab is active.
In most cases, this is caused by an X driver,
try VT-switching and re-run evtest again.
Run the following command to see processes with
an open fd on this device
"fuser -v /dev/input/event3"
*********************************************** To me, this indicates, that the interception-tool does his job for the integrated keyboard, but not for the Anne Pro 2. Here's my ~ λ cat /etc/interception/udevmon.yaml
---
- JOB: "intercept -g $DEVNODE | interception-k2k | uinput -d $DEVNODE"
DEVICE:
EVENTS:
EV_KEY: [KEY_CAPSLOCK, KEY_ESC] And here's the output of ~ λ systemctl status udevmon
● udevmon.service - Monitor input devices for launching tasks
Loaded: loaded (/usr/lib/systemd/system/udevmon.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2021-02-20 11:47:22 CET; 3min 6s ago
Docs: man:udev(7)
Main PID: 12443 (udevmon)
Tasks: 17 (limit: 18886)
Memory: 5.7M
CGroup: /system.slice/udevmon.service
├─12443 /usr/bin/udevmon -c /etc/interception/udevmon.yaml
├─12453 sh -c intercept -g $DEVNODE | interception-k2k | uinput -d $DEVNODE
├─12454 sh -c intercept -g $DEVNODE | interception-k2k | uinput -d $DEVNODE
├─12455 intercept -g /dev/input/event24
├─12456 interception-k2k
├─12457 uinput -d /dev/input/event24
├─12458 intercept -g /dev/input/event22
├─12459 interception-k2k
├─12460 uinput -d /dev/input/event22
├─12494 sh -c intercept -g $DEVNODE | interception-k2k | uinput -d $DEVNODE
├─12495 intercept -g /dev/input/event3
├─12496 interception-k2k
├─12497 uinput -d /dev/input/event3
├─12504 sh -c intercept -g $DEVNODE | interception-k2k | uinput -d $DEVNODE
├─12505 intercept -g /dev/input/event19
├─12506 interception-k2k
└─12507 uinput -d /dev/input/event19
Feb 20 11:47:22 arch systemd[1]: Started Monitor input devices for launching tasks. I don't see |
Whew! According to https://gitlab.com/interception/linux/tools#how-it-works you can explicitly specify devices you would like to intercept, like: # /etc/interception/udevmon.toml
# ...
DEVICE:
LINK: /dev/input/by-id/... |
Ok, first of all: Thanks for your help! I have now modified my ---
- JOB: "intercept -g $DEVNODE | interception-k2k | uinput -d $DEVNODE"
DEVICE:
LINK: /dev/input/by-id/usb-OBINS_OBINS_AnnePro2_SN0000000001-event-kbd
EVENTS:
EV_KEY: [KEY_CAPSLOCK, KEY_ESC] The identifier is correct. When I pass the event it links to to ~ λ systemctl status udevmon
● udevmon.service - Monitor input devices for launching tasks
Loaded: loaded (/usr/lib/systemd/system/udevmon.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2021-02-20 17:06:21 CET; 5min ago
Docs: man:udev(7)
Main PID: 988 (udevmon)
Tasks: 1 (limit: 18886)
Memory: 3.4M
CGroup: /system.slice/udevmon.service
└─988 /usr/bin/udevmon -c /etc/interception/udevmon.yaml
Feb 20 17:06:21 arch systemd[1]: Started Monitor input devices for launching tasks. Do you see, where I went wrong? |
To be honest I'm (absolutely) not an expert in interception-tools, but I would try deleting In addition, to make sure systemd does not swallow any error messages, you could try running udevmon from terminal. Another stuff: What about |
Again: Thanks for the answer. Unfortunately that also didn't work. I think I might address this issue on the I'll close this issue for now. Thanks for all your help and insight! |
Hi there! I just got my Anne Pro 2 today and it looks like
interception-k2k
doesn't work. I use KDE as my DE. It works, when i set up capslock to act as another ctrl-key in KDEs settings.I already tried to run
xev
to see the difference a keypress makes. Pressing capslock on the Anne Pro 2 registers as:Whereas on my Logitech K800 or integrated Laptop keyboard (Thinkpad x1 Carbon 5th gen) it looks like this:
When i
systemctl stop udevmon
and press capslock again on the Logitech-keyboard, it looks like this:Can you help me out there? I don't know if this is a bug that should be fixed or just an issue on my side.
I will happily provide additional information when needed. Thanks for a great tool.
The text was updated successfully, but these errors were encountered: