You are not logged in.

#1 2020-03-12 14:19:45

jcglopes
Member
Registered: 2020-03-12
Posts: 3

Bluetooth constantly on/off

Hi!

I have a bluetooth mouse. I can pair and use it, but sometimes the mouse keeps disconnecting and reconnecting.

I am using blueman-applet/blueman-manager now to manage my bluetooth devices.

On blueman-manager, when the mouse stops working every listed device disappear from the main list, also two menu items get disabled: adapters, devices.

The blueman-applet output is as following:

blueman-applet version 2.1.1 starting
Stale PID, overwriting
blueman-applet 10.51.30 ERROR    PluginManager:90 load_plugin: Unable to load plugin module AppIndicator
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/blueman/plugins/applet/AppIndicator.py", line 7, in <module>
    require_version('AppIndicator3', '0.1')
  File "/usr/lib/python3.8/site-packages/gi/__init__.py", line 129, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace AppIndicator3 not available

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/blueman/main/PluginManager.py", line 88, in load_plugin
    importlib.import_module(self.module_path.__name__ + ".%s" % plugin)
  File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/blueman/plugins/applet/AppIndicator.py", line 9, in <module>
    raise ImportError("AppIndicator3 not found")
ImportError: AppIndicator3 not found
blueman-tray version 2.1.1 starting
Stale PID, overwriting
blueman-applet 10.51.30 WARNING  PluginManager:147 __load_plugin: Not loading PPPSupport because its conflict has higher priority
blueman-applet 10.51.30 WARNING  PluginManager:147 __load_plugin: Not loading DhcpClient because its conflict has higher priority
blueman-applet 10.51.30 WARNING  TransferService:189 _make_share_path: Failed to get Download dir from XDG
blueman-applet 10.51.30 WARNING  PluginManager:147 __load_plugin: Not loading PPPSupport because its conflict has higher priority
blueman-applet 10.51.30 WARNING  PluginManager:147 __load_plugin: Not loading DhcpClient because its conflict has higher priority
blueman-applet 10.51.30 WARNING  TransferService:189 _make_share_path: Failed to get Download dir from XDG
blueman-applet 10.53.48 WARNING  DiscvManager:109 update_menuitems: warning: Adapter is None
blueman-applet 10.54.05 WARNING  DiscvManager:75 on_adapter_removed: Warning: adapter is None
blueman-applet 10.54.19 WARNING  DiscvManager:75 on_adapter_removed: Warning: adapter is None
blueman-applet 10.54.34 WARNING  DiscvManager:75 on_adapter_removed: Warning: adapter is None
...

When this message appears "DiscvManager:75 on_adapter_removed: Warning: adapter is None" the devices disconnect. Any ideas on what to do? I don't know what other info is needed for your help, just say

Offline

#2 2020-03-12 15:15:50

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

Offline

#3 2020-03-12 15:42:14

jcglopes
Member
Registered: 2020-03-12
Posts: 3

Re: Bluetooth constantly on/off

It's a notebook, and I am not using a USB bluetooth adapter or anything like that. I still tried the "disable USB autosuspend", but it didn't solve the problem.

Offline

#4 2020-03-12 15:45:42

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

Re: Bluetooth constantly on/off

USB is a bus, not a dongle (check "lsusb", your BT will likely show up there - most are wired on USB)

"Tried" how?
Since userspace powermanagement tools (which you likely have available on a notebook) can alter the USB powrmanagement at runtime, did you ensure the setting prevailed?

Offline

#5 2020-03-12 16:01:36

jcglopes
Member
Registered: 2020-03-12
Posts: 3

Re: Bluetooth constantly on/off

seth wrote:

USB is a bus, not a dongle (check "lsusb", your BT will likely show up there - most are wired on USB)

"Tried" how?
Since userspace powermanagement tools (which you likely have available on a notebook) can alter the USB powrmanagement at runtime, did you ensure the setting prevailed?

$ lsusb
Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 009: ID 0cf3:0036 Qualcomm Atheros Communications
Bus 001 Device 002: ID 8087:8001 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 2516:0048 Cooler Master Co., Ltd. MasterKeys Pro M Single
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

created an udev rule:

/etc/udev/rules.d/50-usb_power_save.rules
---
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0cf3", ATTR{idProduct}=="0036", GOTO="power_usb_rules_end"

Than tested after reboot..

Offline

Board footer

Powered by FluxBB