1

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.

5
  • The only other way I can think of to check the button's input is with xbindkeys -k. Might be worth a shot. Commented Sep 24 at 21:11
  • This only detects keys for me and doesn't reject to any mouse or touchpad I tried. Commented Sep 25 at 11:02
  • s/reject/react/ Commented Sep 25 at 11:08
  • What does xinput say? Run xinput and 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/mice you can use cat /dev/input/mice to check the button for a response. It output's a bunch of gibberish, but will show something if the button responds. Commented Sep 25 at 14:25
  • It's the same with 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. Commented Oct 2 at 21:39

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.