You are not logged in.

#1 2020-11-19 13:44:26

benpeltz
Member
Registered: 2020-09-07
Posts: 12

Logitech M535 Bluetooth Mouse Disconnecting Periodically [SOLVED]

I recently purchased a Logitech M535 bluetooth mouse. It works well for the most part, but periodically it stops working while I'm using it. There's no fixed period of time, and it doesn't ever seem to disconnect while it's idle, it just stops registering movements mid-stroke. I tried following the tips in this article but none of them seem to help. At first, I thought the issue was the mouse so I would disconnect and reconnect it. Then, I realized that all I had to do was open a terminal and run bluetoothctl, then turn scan on. This fixes the issue every time, and if I leave it running in the background the mouse never freezes. This makes me wonder if the issue is with my chip, rather than the mouse. I couldn't find any article or post that described this particular issue, so I figured I'd ask if anyone has any suggestions.

Here's bluetoothctl's output when the issue happens:

[CHG] Device E4:22:A5:93:B3:6A Connected: yes
[CHG] Device E4:22:A5:93:B3:6A Connected: no

Here's a sample of what I see when I run bluetoothctl then turn scan on, which immediately resolves the issue:

[Bluetooth Mouse M336/M337/M535]# scan on
Discovery started
[CHG] Controller 94:E6:F7:1A:95:81 Discovering: yes
[NEW] Device C8:D0:83:DB:05:56 C8-D0-83-DB-05-56
[NEW] Device 2F:98:F7:1A:C0:3E 2F-98-F7-1A-C0-3E
[NEW] Device D0:03:DF:BA:59:69 [TV] Gingervision
[NEW] Device 5B:D3:25:2B:7D:5B 5B-D3-25-2B-7D-5B
[NEW] Device 78:5F:EB:0F:4F:0F 78-5F-EB-0F-4F-0F
[CHG] Device D0:03:DF:BA:59:69 ManufacturerData Key: 0xff19
[CHG] Device D0:03:DF:BA:59:69 ManufacturerData Value:
  00 75 00 09 01 00 00 00 06 01 00 00 00 00 00 00  .u..............
  00 00 00 00 00 00 00 00                          ........ 

Here's my bluetooth chip info:

Bus 001 Device 005: ID 8087:0a2b Intel Corp. Bluetooth wireless interface

Here's my system info:

System:
  Kernel: 5.9.8-arch1-1 x86_64 bits: 64 compiler: N/A 
  parameters: BOOT_IMAGE=/boot/vmlinuz-linux 
  root=UUID=448877f8-8c56-498b-a510-afcdf8b25d6c rw loglevel=3 quiet 
  acpi_backlight=vendor 
  Desktop: KDE Plasma 5.20.3 tk: Qt 5.15.1 wm: kwin_x11 dm: SDDM 
  Distro: Arch Linux 
Machine:
  Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X512DA v: 1.0 
  serial: <filter> 
  Mobo: ASUSTeK model: X512DA v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: X512DA.308 date: 11/05/2019 
Battery:
  ID-1: BAT0 charge: 29.0 Wh condition: 31.6/37.1 Wh (85%) volts: 7.8/7.8 
  model: ASUSTeK ASUS Battery type: Li-ion serial: N/A status: Charging 
  cycles: 234 
  Device-1: hid-34:88:5d:e5:5b:2c-battery 
  model: Bluetooth Mouse M336/M337/M535 serial: N/A charge: N/A status: Full 
CPU:
  Info: Dual Core model: AMD Ryzen 3 3200U with Radeon Vega Mobile Gfx 
  bits: 64 type: MT MCP arch: Zen+ family: 17 (23) model-id: 18 (24) 
  stepping: 1 microcode: 8108102 L2 cache: 1024 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 20769 
  Speed: 1584 MHz min/max: 1400/2600 MHz boost: enabled Core speeds (MHz): 
  1: 1369 2: 1387 3: 1206 4: 1306 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Picasso vendor: ASUSTeK driver: amdgpu v: kernel 
  bus ID: 03:00.0 chip ID: 1002:15d8 
  Device-2: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo 
  bus ID: 1-6.2:6 chip ID: 13d3:56dd serial: <filter> 
  Display: x11 server: X.Org 1.20.9 compositor: kwin_x11 driver: modesetting 
  unloaded: vesa alternate: ati,fbdev display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  Monitor-1: eDP-1 res: 1366x768 hz: 60 dpi: 101 size: 344x193mm (13.5x7.6") 
  diag: 394mm (15.5") 
  Message: Unable to show advanced data. Required tool glxinfo missing. 
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel 
  v: kernel bus ID: 03:00.1 chip ID: 1002:15de 
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor driver: N/A 
  alternate: snd_pci_acp3x, snd_rn_pci_acp3x bus ID: 03:00.5 
  chip ID: 1022:15e2 
  Device-3: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus ID: 03:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.9.8-arch1-1 
Network:
  Device-1: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel 
  bus ID: 01:00.0 chip ID: 8086:24fd 
  IF: wlp1s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 476.94 GiB used: 186.31 GiB (39.1%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW512G8 size: 476.94 GiB 
  block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 
  serial: <filter> rev: 002C scheme: GPT 
Partition:
  ID-1: / raw size: 476.44 GiB size: 467.96 GiB (98.22%) 
  used: 186.31 GiB (39.8%) fs: ext4 dev: /dev/nvme0n1p2 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: file size: 8.00 GiB used: 365.7 MiB (4.5%) priority: -2 
  file: /swapfile 
Sensors:
  System Temperatures: cpu: 67.9 C mobo: N/A gpu: amdgpu temp: 67.0 C 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 201 Uptime: 1d 23h 53m Memory: 5.81 GiB used: 1.83 GiB (31.6%) 
  Init: systemd v: 246 Compilers: gcc: 10.2.0 clang: 11.0.0 Packages: 
  pacman: 1284 lib: 359 Shell: Bash v: 5.0.18 running in: konsole inxi: 3.1.06

Happy to provide any more info. Thanks in advance for any help!

EDIT: Solution in comment #6.

Last edited by benpeltz (2020-11-24 00:50:20)

Offline

#2 2020-11-19 20:10:19

anorman
Member
Registered: 2013-01-29
Posts: 6

Re: Logitech M535 Bluetooth Mouse Disconnecting Periodically [SOLVED]

A few months ago I had failure of both hard disks in my laptop. Since I reinstalled Arch on the new system disk I have never been able to use my trusty bluetooth mouse that I've been using for a few years :-(

All PCI devices, apart from the networking (Atheros) are Intel.

The mouse connects and immediately disconnects repeatedly :-

[NEW] Device 20:14:07:30:1D:63 Bluetooth Mouse
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[DEL] Device 20:14:07:30:1D:63 Bluetooth Mouse

systemctl status bluetooth :-

Nov 19 19:04:09 normanlinux bluetoothd[52738]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSink/sbc
Nov 19 19:04:09 normanlinux bluetoothd[52738]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSource/sbc
Nov 19 19:08:07 normanlinux bluetoothd[52738]: profiles/input/server.c:connect_event_cb() Refusing input device connect: No such file or directory (2)
Nov 19 19:08:07 normanlinux bluetoothd[52738]: profiles/input/server.c:confirm_event_cb() Refusing connection from 20:14:07:30:1D:63: unknown device
Nov 19 19:08:08 normanlinux bluetoothd[52738]: profiles/input/server.c:connect_event_cb() Refusing input device connect: No such file or directory (2)
Nov 19 19:08:08 normanlinux bluetoothd[52738]: profiles/input/server.c:confirm_event_cb() Refusing connection from 20:14:07:30:1D:63: unknown device
Nov 19 19:08:11 normanlinux bluetoothd[52738]: profiles/input/server.c:connect_event_cb() Refusing input device connect: No such file or directory (2)
Nov 19 19:08:11 normanlinux bluetoothd[52738]: profiles/input/server.c:confirm_event_cb() Refusing connection from 20:14:07:30:1D:63: unknown device
Nov 19 19:08:12 normanlinux bluetoothd[52738]: profiles/input/server.c:connect_event_cb() Refusing input device connect: No such file or directory (2)
Nov 19 19:08:12 normanlinux bluetoothd[52738]: profiles/input/server.c:confirm_event_cb() Refusing connection from 20:14:07:30:1D:63: unknown device

can anybody shed some light, please

Last edited by anorman (2020-11-19 20:11:09)

Offline

#3 2020-11-21 00:17:21

benpeltz
Member
Registered: 2020-09-07
Posts: 12

Re: Logitech M535 Bluetooth Mouse Disconnecting Periodically [SOLVED]

anorman wrote:

A few months ago I had failure of both hard disks in my laptop. Since I reinstalled Arch on the new system disk I have never been able to use my trusty bluetooth mouse that I've been using for a few years :-(

All PCI devices, apart from the networking (Atheros) are Intel.

The mouse connects and immediately disconnects repeatedly :-

[NEW] Device 20:14:07:30:1D:63 Bluetooth Mouse
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[CHG] Device 20:14:07:30:1D:63 Connected: yes
[CHG] Device 20:14:07:30:1D:63 Connected: no
[DEL] Device 20:14:07:30:1D:63 Bluetooth Mouse

systemctl status bluetooth :-

Nov 19 19:04:09 normanlinux bluetoothd[52738]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSink/sbc
Nov 19 19:04:09 normanlinux bluetoothd[52738]: Endpoint registered: sender=:1.59 path=/MediaEndpoint/A2DPSource/sbc
Nov 19 19:08:07 normanlinux bluetoothd[52738]: profiles/input/server.c:connect_event_cb() Refusing input device connect: No such file or directory (2)
Nov 19 19:08:07 normanlinux bluetoothd[52738]: profiles/input/server.c:confirm_event_cb() Refusing connection from 20:14:07:30:1D:63: unknown device
Nov 19 19:08:08 normanlinux bluetoothd[52738]: profiles/input/server.c:connect_event_cb() Refusing input device connect: No such file or directory (2)
Nov 19 19:08:08 normanlinux bluetoothd[52738]: profiles/input/server.c:confirm_event_cb() Refusing connection from 20:14:07:30:1D:63: unknown device
Nov 19 19:08:11 normanlinux bluetoothd[52738]: profiles/input/server.c:connect_event_cb() Refusing input device connect: No such file or directory (2)
Nov 19 19:08:11 normanlinux bluetoothd[52738]: profiles/input/server.c:confirm_event_cb() Refusing connection from 20:14:07:30:1D:63: unknown device
Nov 19 19:08:12 normanlinux bluetoothd[52738]: profiles/input/server.c:connect_event_cb() Refusing input device connect: No such file or directory (2)
Nov 19 19:08:12 normanlinux bluetoothd[52738]: profiles/input/server.c:confirm_event_cb() Refusing connection from 20:14:07:30:1D:63: unknown device

can anybody shed some light, please

I'm not sure this is the same issue I'm experiencing. Might be worth creating a separate post?

Offline

#4 2020-11-21 16:17:09

benpeltz
Member
Registered: 2020-09-07
Posts: 12

Re: Logitech M535 Bluetooth Mouse Disconnecting Periodically [SOLVED]

I decided to play with the settings in /etc/bluetooth/main.conf and setting AlwaysPairable to true may have resolved the issue. I'm curious whether this will have any detrimental effects? I can't find a lot of information about that particular setting, and I'm not familiar enough with bluetooth verbeage to understand the statement "Always allow pairing even if there are no agent registered." Does this mean that anyone could theoretically connect to my computer using bluetooth, without me having the opportunity to decline?

EDIT: Never mind, it took longer than usual but still eventually stopped communicating.

Last edited by benpeltz (2020-11-21 16:59:12)

Offline

#5 2020-11-23 04:49:59

benpeltz
Member
Registered: 2020-09-07
Posts: 12

Re: Logitech M535 Bluetooth Mouse Disconnecting Periodically [SOLVED]

I've come up with a basic workaround: a script that contains

#!/bin/bash
# bluetooth mouse
bluetoothctl -- scan on

that's set to run on startup and every 15 minutes thereafter. Occasionally the mouse stalls but then it gets re-recognized by the chip, which is constantly scanning. I'm not sure what effect this will have on the battery life, so if anyone has any insight into why it's disconnecting in the first place I'd appreciate it.

Offline

#6 2020-11-23 15:29:47

benpeltz
Member
Registered: 2020-09-07
Posts: 12

Re: Logitech M535 Bluetooth Mouse Disconnecting Periodically [SOLVED]

I think I've finally found the solution on this hard-to-find Reddit post.

From the post:

The fix that did work was to add the parameter "btusb.enable_autosuspend=0" to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub and then running update-grub.

I will mark this as solved if my mouse continues to work without interruption for the rest of the day.

EDIT: This has indeed solved the issue so I have marked this as resolved.

Last edited by benpeltz (2020-11-24 00:50:54)

Offline

Board footer

Powered by FluxBB