I want to use my mouse's middle-button in the TTY, so I tried to debug it. When I perform a middle-click, it doesn't show up in evtest /dev/input/eventN. All other actions show up, so I'm in the right event. When I use xev it's the same: Mouse movements work, left and right button shows up, but upon clicking the middle button, nothing is reported.
However the button does work in GTK+. I tested it in Mozilla Firefox, mate-terminal and the PDF viewer Atril.
How can I debug what's going wrong here? What are potential reasons it does work in GTK+? How can I fix it for the TTY.
xbindkeys -k. Might be worth a shot.xinputsay? Runxinputand get the mouse Device ID. Then,xinput test [device ID]. If you still have nothing, it's likely window manager/compositor settings that has control of mouse button behavior, preventing "grabbing". If the mouse is using/dev/input/miceyou can usecat /dev/input/miceto check the button for a response. It output's a bunch of gibberish, but will show something if the button responds.xinput: movement –motion a[0]=319, left mouse button –button press 1 button release 1, right mouse button –button press 3 button release 3, middle mouse button – nothing.