You are not logged in.

#1 2022-08-17 13:42:57

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

[SOLVED] Mouse half-broken after crash and restart

I have a bluetooth mouse (logitech MX master). my laptop crashed and I restarted it and now the movement of the mouse doesn't show up.

I can connect the device via bluetooth, and it shows up. I can test it with evtest, and I receive other button and scrollbar input, but I do not receive anything from `EV_REL REL_X` or `EV_REL REL_Y`.

Here is an example evtest trace:

Testing ... (interrupt to exit)
Event: time 1660743222.721111, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1
Event: time 1660743222.721111, -------------- SYN_REPORT ------------
Event: time 1660743222.825811, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0
Event: time 1660743222.825811, -------------- SYN_REPORT ------------
Event: time 1660743222.983621, type 1 (EV_KEY), code 273 (BTN_RIGHT), value 1
Event: time 1660743222.983621, -------------- SYN_REPORT ------------
Event: time 1660743223.073289, type 1 (EV_KEY), code 273 (BTN_RIGHT), value 0
Event: time 1660743223.073289, -------------- SYN_REPORT ------------
Event: time 1660743224.423344, type 2 (EV_REL), code 11 (REL_WHEEL_HI_RES), value 15
Event: time 1660743224.423344, -------------- SYN_REPORT ------------
Event: time 1660743224.453381, type 2 (EV_REL), code 11 (REL_WHEEL_HI_RES), value 15
...

All expected keys and buttons seem to work apart from REL_X and REL_Y (moving the mouse).

Here is the relevant section of the supported events:

Event type 2 (EV_REL)
    Event code 0 (REL_X)
    Event code 1 (REL_Y)
    Event code 6 (REL_HWHEEL)
    Event code 8 (REL_WHEEL)
    Event code 11 (REL_WHEEL_HI_RES)
    Event code 12 (REL_HWHEEL_HI_RES)

A separate wired mouse seems fine. It seems that it's able to connect to bluetooth fine. I don't know what could cause just some input events to fail to fire, or at what stage in the stack this could be happening.

I do have a few suspect lines in my `journalctl -b` logs:

Aug 17 14:07:22 archlinux kernel: hid-generic 0005:0A5C:8502.0002: unknown main item tag 0x0
...
Aug 17 14:08:19 archlinux kernel: logitech-hidpp-device 0005:046D:B01E.0003: HID++ 4.5 device connected.
Aug 17 14:08:20 archlinux kernel: input: Logitech Wireless Mouse MX Master as /devices/virtual/misc/uhid/0005:046D:B01E.0003/input/input39
Aug 17 14:08:20 archlinux kernel: logitech-hidpp-device 0005:046D:B01E.0003: input,hidraw2: BLUETOOTH HID v0.05 Keyboard [Logitech Wireless Mouse MX Master] on b0:60:ff:ff:c5:72
Aug 17 14:08:20 archlinux udevmon[824]: failed to open /dev/input/event30 with error "No such file or directory"
Aug 17 14:08:20 archlinux systemd-logind[829]: Watching system buttons on /dev/input/event29 (Logitech Wireless Mouse MX Master)
Aug 17 14:08:20 archlinux kernel: input: Logitech Wireless Mouse MX Master as /devices/virtual/input/input40
Aug 17 14:08:20 archlinux systemd-logind[829]: Watching system buttons on /dev/input/event30 (Logitech Wireless Mouse MX Master)
Aug 17 14:08:29 archlinux kernel: Bluetooth: hci0: Opcode 0x 401 failed: -16

Does anyone have any ideas? what should I do to debug this.

Last edited by crashandburn4 (2022-08-17 17:57:54)

Offline

#2 2022-08-17 14:58:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,494

Re: [SOLVED] Mouse half-broken after crash and restart

Does th e mouse work on a different system or when you boot some live distro?
Does the mouse show up as multiple devices in evtest (ie. are you sure you're monitoring the proper one, some mice sign up as mouse & keyboard and the buttons come over the latter)?

Offline

#3 2022-08-17 15:12:44

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Re: [SOLVED] Mouse half-broken after crash and restart

seth wrote:

Does th e mouse work on a different system or when you boot some live distro?

Good question, let me double check with another box.

Does the mouse show up as multiple devices in evtest (ie. are you sure you're monitoring the proper one, some mice sign up as mouse & keyboard and the buttons come over the latter)?

The mouse _does_ show up as multiple devices in evtest, but there is one I can't connect to. evtest gives the following:

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/event29"
***********************************************

(it seems to be sway that is the command for both of them?) not sure what the deal is, but I have the same with all my bluetooth devices, there are two input devices, one of which I can connect to with evtest, one of which has this message.

In addition, I assumed since most of the other things like the scrollwheel come through that it might be the correct device. (the supported events description is the same for both of these input devices). This could obviously be a faulty assumption on my part.

Last edited by crashandburn4 (2022-08-17 15:13:14)

Offline

#4 2022-08-17 15:19:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,494

Re: [SOLVED] Mouse half-broken after crash and restart

one I can't connect to. evtest gives the following

Isolate the multi-user.target (2nd link below, THAT IMPLIES TO KILL YOUR GUI SESSION!) and try there - just to be sure.

with all my bluetooth devices

Next test would be to remove all others to avoid any interference.

Sanity check: is there a parallel windows installation?

Offline

#5 2022-08-17 17:57:14

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Re: [SOLVED] Mouse half-broken after crash and restart

> Does th e mouse work on a different system or when you boot some live distro?

Oh wow... it doesn't (I connected it to my partners ubuntu machine, and I have the same issue). I guess that means it's probably a hardware issue, right?

I'm gonna mess around with this device, and I guess I'll close this. Thanks for your help seth, I really should have checked this mouse on another machine, I just thought since it happened just when my machine crashed that it had to be related...

Offline

#6 2022-08-17 18:55:48

crashandburn4
Member
Registered: 2013-03-03
Posts: 108

Re: [SOLVED] Mouse half-broken after crash and restart

alright, fixed it. It turns out there is a button that I never use (the gesture button) that was stuck down. For some reason when this happens it supresses the tracking of the mouse. I unscrewed the mouse and loosened that and I've got a working mouse again!

(random youtube video describing the problem and solution: https://www.youtube.com/watch?v=qAqVkjYSORI )

Offline

Board footer

Powered by FluxBB