Conversation

Pavel Machek

I have two devices (train controller and autopilot panel) that are detected as mice in Linux, breaking the desktop when they are plugged in. How to deal with them? Blacklist in kernel? Somewhere in udev
1
0
0

@pavel put a rp2040 in between to make it appear as something sane

What does it even use the mouse part for?

1
0
0
@martijnbraam I don't believe it even has a mouse part. Its just somehow detected as one. And sw solution is required for this ;-).
2
0
0

@pavel how does it mess with the DE if it doesn't actually send the mouse events?

Depending on how the controller is used, you can just exclusively open the input device to make it not affect other software anymore. Or unbind the driver in the kernel and use libusb

1
0
0
@martijnbraam Dunno. After plugging it in, desktop fails to react properly to some mouse events. I did not debug it much further, but it basically means you have to log out.
1
0
0

@pavel ah that reminds me that I had a mouse a long time ago that required custom xorg config otherwise I clicked "through" windows in gnome because it had too many axes or something. Might be the same issue.

https://wiki.archlinux.org/title/Mad_Catz_Mouse

1
0
0
@martijnbraam Yep, that seems to be identical problem. Fun thing is unplugging the weird device does not fix the problems...
0
0
0