Random Bluetooth Disconnects

If none of the more specific forums is the right place to ask

Random Bluetooth Disconnects

Postby zerubbabel » 2018-11-03 21:10

My Bluetooth Logitech keyboard and trackball randomly become non-functional, and I have to reboot before I can use them again. Sometime I have to remove the device from the Bluetooth configuration, and rediscover it. This has been happening for a month or so, and I'm guessing it came in with an update a while back. I'm running Testing/Buster with all updates applied (on a Dell Latitude E6540 i7, 4 cores, 16 GB RAM). This is a great annoyance, and I'd love to know whether anyone else has experienced and found a solution to this problem.

My wireless adaptor is: Intel Dual Band Wireless-N 7260 Wifi+Bluetooth 4.0 WLAN Card 7260HMW GGTNW
zerubbabel
 
Posts: 24
Joined: 2017-08-30 21:09

Re: Random Bluetooth Disconnects

Postby Head_on_a_Stick » 2018-11-03 21:41

Is power management enabled for that device? Check the output of
Code: Select all
/sbin/iwconfig # in the wireless-tools package
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8167
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Random Bluetooth Disconnects

Postby zerubbabel » 2018-11-04 11:05

Head_on_a_Stick wrote:Is power management enabled for that device? Check the output of
Code: Select all
/sbin/iwconfig # in the wireless-tools package


zerubbabel@dz:~$ /sbin/iwconfig
eno1 no wireless extensions.

lo no wireless extensions.

wlp3s0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:on
zerubbabel
 
Posts: 24
Joined: 2017-08-30 21:09

Re: Random Bluetooth Disconnects

Postby Head_on_a_Stick » 2018-11-04 11:41

zerubbabel wrote:
Code: Select all
Power Management:on

Try disabling the power management:
Code: Select all
# iw dev wlp3s0 set power_save off

If that fixes the disconnects then you can use a udev rule to make the change permanent:
Code: Select all
# /etc/udev/rules.d/70-wifi-powersave.rules
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlp3s0", RUN+="/sbin/iw dev %k set power_save off"
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8167
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Random Bluetooth Disconnects

Postby zerubbabel » 2018-11-04 14:18

Well, I appreciate your help, and I did as you suggest, but it will take time to tell whether it makes a difference.

However, now my Logitech MX ERGO Bluetooth trackball can no longer be paired, although I have been using it without any problem for almost a year. But suddenly, a month or two ago, it started freezing (randomly, as far as I can tell), and now, although it is recognized as a device, it will not pair. My Logitech bluetooth keyboard is still working, so far...
zerubbabel
 
Posts: 24
Joined: 2017-08-30 21:09

Re: Random Bluetooth Disconnects

Postby Head_on_a_Stick » 2018-11-04 14:21

zerubbabel wrote:now my Logitech MX ERGO Bluetooth trackball can no longer be paired

Well if you think that is because of my suggestion then use the `iw` command to re-enable the power management.

Have you checked if the card is seated correctly in the socket?

An intermittent fault may indicate a hardware problem.
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8167
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Random Bluetooth Disconnects

Postby zerubbabel » 2018-11-04 15:34

No, I'm not thinking it has anything to do with your suggestion about the power, and I don't think it's a problem with the wireless card, as my bluetooth keyboard and wifi connection are working fine.

Hope I'm not being confusing. When my bluetooth devices lose their connection, after a cold reboot the Logitech keyboard comes back readily, but the trackball is now not coming back. It is recognized as a bluetooth device, but does not pair.

I am wondering whether the cause is an update to the bluetooth software, and whether I should drop back a version or two.
zerubbabel
 
Posts: 24
Joined: 2017-08-30 21:09

Re: Random Bluetooth Disconnects

Postby Head_on_a_Stick » 2018-11-04 16:12

zerubbabel wrote:I am wondering whether the cause is an update to the bluetooth software

Does stuff work in Debian stable?

Any clues in the systemd journal?
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8167
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Random Bluetooth Disconnects

Postby zerubbabel » 2018-11-04 20:44

I've been running Debian Testing for the past year or so, so I don't know whether this problem exists in Stretch, but I doubt it. Looking at the update history for bluez, it looks as if the update to version 50.50-1 on August 8th coincides with the time my troubles started. What's the safest way to revert to the previous version?
zerubbabel
 
Posts: 24
Joined: 2017-08-30 21:09

Re: Random Bluetooth Disconnects

Postby Head_on_a_Stick » 2018-11-04 20:47

Not sure, try
Code: Select all
# dpkg --install --force-downgrade foo.deb

Then pin it afterwards, perhaps?
I suffer from depression and may lash out occasionally, try not to take it personally.
User avatar
Head_on_a_Stick
 
Posts: 8167
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Random Bluetooth Disconnects

Postby zerubbabel » 2018-11-05 08:52

Well, I'm baffled. The downgrade to an earlier bluez didn't help, so I went back to the latest version, rebooted, and still no trackball. Then I thought that maybe there was something wrong with the trackball. So I booted Linux Mint 19 from a flash drive to see if the trackball would pair then, which it did without any trouble. Then I rebooted Debian from the hard drive, and the trackball paired right away. Odd...

But the Logitech bluetooth keyboard and trackball are still getting disconnected at apparently random intervals. It is very annoying...
zerubbabel
 
Posts: 24
Joined: 2017-08-30 21:09


Return to General Questions

Who is online

Users browsing this forum: arochester and 8 guests

fashionable