Re: Bluetooth questions

2023-12-06 Thread Stephen Satchell

On 12/5/23 10:22 PM, Stephen Satchell wrote:
So far, so good.  I moved my wireless access point across the room 
(after finding a long enough Ethernet cable!) to see if add distance 
between my bluetooth mouse and the AP would make a difference.  So far, 
the mouse is much happier.  I'll know more when I do my next technical 
drawing project.


I think this issue is closed as far as I'm concerned.  The problem was 
indeed interference between Bluetooth and WiFi access points.  I found 
that the issue of Bluetooth vs WiFi has a number of articles, complete 
with recommendations.


I use the plural in the latter because I found I'm surrounded with APs 
in this apartment complex, and some of them are putting out higher power 
than mine dies (Asus).


Why the interference would cause Bluetooth support to crash out the way 
it did may be worthy of study by someone who knows more about the inner 
workings of the driver.  For example, why would the driver disconnect 
from D-Bus when interference exceeds a specific level?


--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Bluetooth questions

2023-12-05 Thread Stephen Satchell
So far, so good.  I moved my wireless access point across the room 
(after finding a long enough Ethernet cable!) to see if add distance 
between my bluetooth mouse and the AP would make a difference.  So far, 
the mouse is much happier.  I'll know more when I do my next technical 
drawing project.


--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Bluetooth questions

2023-11-25 Thread Stephen Satchell

On 11/25/23 9:40 AM, Stephen Satchell wrote:

More information on my problem with a Bluetooth mouse:


First time I've looked at the kernal log.  Here is what I found around 
the last mouse AWOL:



Nov 25 09:30:44 game kernel: [456018.958770] Bluetooth: hci0: command 0x0c24 tx 
timeout
Nov 25 09:30:46 game kernel: [456020.974759] Bluetooth: hci0: command 0x0c52 tx 
timeout
Nov 25 09:31:18 game kernel: [456052.787497] Bluetooth: hci0: Legacy ROM 2.x 
revision 5.0 build 25 week 20 2015
Nov 25 09:31:18 game kernel: [456052.787508] Bluetooth: hci0: Intel device is 
already patched. patch num: 34
Nov 25 09:31:30 game kernel: [456064.218565] hid-generic 0005:046D:B034.0048: 
input,hidraw5: BLUETOOTH HID v0.06 Mouse [MX Master 3S] on 48:f1:7f:5a:bf:6c


And here is the syslog:


Nov 25 09:30:42 game bluetoothd[175754]: Endpoint registered: sender=:1.3301 
path=/MediaEndpoint/A2DPSink/sbc
Nov 25 09:30:42 game bluetoothd[175754]: Endpoint registered: sender=:1.3301 
path=/MediaEndpoint/A2DPSource/sbc
Nov 25 09:31:15 game bluetoothd[175754]: Failed to add UUID: Invalid Index 
(0x11)
Nov 25 09:31:15 game bluetoothd[175754]: Endpoint unregistered: sender=:1.3301 
path=/MediaEndpoint/A2DPSink/sbc
Nov 25 09:31:15 game bluetoothd[175754]: Endpoint unregistered: sender=:1.3301 
path=/MediaEndpoint/A2DPSource/sbc
Nov 25 09:31:18 game bluetoothd[175754]: Endpoint registered: sender=:1.3301 
path=/MediaEndpoint/A2DPSink/sbc
Nov 25 09:31:18 game bluetoothd[175754]: Endpoint registered: sender=:1.3301 
path=/MediaEndpoint/A2DPSource/sbc
Nov 25 09:31:23 game bluetoothd[175754]: Terminating
Nov 25 09:31:23 game bluetoothd[175754]: Endpoint unregistered: sender=:1.3301 
path=/MediaEndpoint/A2DPSink/sbc
Nov 25 09:31:23 game bluetoothd[175754]: Endpoint unregistered: sender=:1.3301 
path=/MediaEndpoint/A2DPSource/sbc
Nov 25 09:31:23 game bluetoothd[175754]: Stopping SDP server
Nov 25 09:31:23 game bluetoothd[175754]: Exit
Nov 25 09:31:23 game systemd[1]: bluetooth.service: Succeeded.
Nov 25 09:31:23 game bluetoothd[209602]: Bluetooth daemon 5.53
Nov 25 09:31:23 game bluetoothd[209602]: Starting SDP server
Nov 25 09:31:23 game dbus-daemon[930]: [system] Activating via systemd: service 
name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by 
':1.3345' (uid=0 pid=209602 comm="/usr/lib/bluetooth/bluetoothd " 
label="unconfined")
Nov 25 09:31:23 game bluetoothd[209602]: Bluetooth management interface 1.21 
initialized
Nov 25 09:31:23 game bluetoothd[209602]: Endpoint registered: sender=:1.3301 
path=/MediaEndpoint/A2DPSink/sbc
Nov 25 09:31:23 game bluetoothd[209602]: Endpoint registered: sender=:1.3301 
path=/MediaEndpoint/A2DPSource/sbc
Nov 25 09:31:29 game bluetoothd[209602]: bt_uhid_send: Invalid argument (22)
Nov 25 09:31:30 game bluetoothd[209602]: message repeated 10 times: [ 
bt_uhid_send: Invalid argument (22)]
Nov 25 09:32:02 game bluetoothd[209602]: bt_uhid_send: Invalid argument (22)
Nov 25 09:32:02 game bluetoothd[209602]: message repeated 10 times: [ 
bt_uhid_send: Invalid argument (22)]




--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Bluetooth questions

2023-11-25 Thread Stephen Satchell

More information on my problem with a Bluetooth mouse:

First, this recovery sequence appears to work 100 percent of the time, 
so whatever is causing the disconnect isn't permanent:


sudo rmmod btusb
sleep 3
sudo modprobe btusb
sleep 5
sudo systemctl restart bluetooth

Another symptom is that the connection will drop out briefly (one or two 
seconds) then come back.  The occurrence is, also, widely intermittent.


The same device talking to a Mac Mini isn't exhibiting the problem.  I 
switch the mouse from one to the other when using InkScape on the two 
systems.


Haven't moved the access point yet.

Oh, another clue: when I try to run Settings/Bluetooth, the tool hangs 
up.  Proper operation is restored with the workaround.  I'm no expert, 
but I'm thinking based on the sequence of faults that something in the 
driver is getting lost.  Any suggestions for tracking this down are welcome.


--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Bluetooth questions

2023-11-13 Thread Stephen Satchell

On 10/26/23 8:31 AM, Stephen Satchell wrote:
New information: when my problem happens, the Settings app takes forever 
to load, and shows incorrect information about Bluetooth when it does 
come up.  In fact, I can't get Bluetooth out of Airplane mode with the 
tool.


Going through the restart process once or twice brings everything back. 
As does a restart.


What further information does the developers need?

Here is a data point on this issue:  I paired this mouse with a 
Macintosh Mini, and I don't get any strange disconnects.  So that means 
it is either my Bluetooth hardware or Ubuntu's implementation.  Given 
that I can get functionality back by running a script that reloads the 
Bluetooth driver and restarts the service, that fact points to a 
software issue.


The script?

sudo rmmod btusb
sleep 3
sudo modprobe btusb
sleep 5
sudo systemctl restart bluetooth

So far, this has worked every time. 20.04 LTS, fully updated.

--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Bluetooth questions

2023-10-26 Thread Stephen Satchell
New information: when my problem happens, the Settings app takes forever 
to load, and shows incorrect information about Bluetooth when it does 
come up.  In fact, I can't get Bluetooth out of Airplane mode with the tool.


Going through the restart process once or twice brings everything back. 
As does a restart.


What further information does the developers need?

--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Bluetooth questions

2023-10-24 Thread Stephen Satchell

Found a workaround that seems to work.  I run these command:

sudo rmmod btusb
sleep 3
sudo modprobe btusb
sleep 5
sudo systemctl restart bluetooth

No powercycle, no system restart necessary so far.  Settings/Bluetooth 
says either "no Bluetooth" or "airplane mode" when things break.


I'll check syslog again when my problem happens.  Are there any other 
logs I need to watch?


On 10/21/23 8:10 AM, Stephen Satchell wrote:
Are there known problems with Ubuntu 20.04 with regards to Bluetooth 
devices?


I recently purchased a Logitech MX Master 3S mouse, and connected the 
device to my computer via Bluetooth.  This is the first time I have done 
this with my computer.


The situation is that the device works fine for about a day.  The next 
morning, the computer does not respond to mouse movement or clicks. When 
I reboot the computer, it all start working properly again.


(The mouse also came with a USB receiver, which I have been able to make 
work, but that's a problem for another time.)


I checked syslog, and didn't find anything enlightening.

I followed instructions I found for Ubuntu 16, including reinstalling 
the software, and no change.


My reason for buying this mouse is my various logitech mice, after a 
long time of use, start double-clicking by themselves and misbehave when 
doing click-and-drag operations.  The new mouse allegedly has optical 
switches, which should not have this auto-double-click going forward.


(Yes, I still keep the original flaky mouse handy for when the new one 
stops working.  So far I've been able to avoid nasty power-downs or 
hardware resets.)





--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Bluetooth questions

2023-10-21 Thread Stephen Satchell
Are there known problems with Ubuntu 20.04 with regards to Bluetooth 
devices?


I recently purchased a Logitech MX Master 3S mouse, and connected the 
device to my computer via Bluetooth.  This is the first time I have done 
this with my computer.


The situation is that the device works fine for about a day.  The next 
morning, the computer does not respond to mouse movement or clicks. 
When I reboot the computer, it all start working properly again.


(The mouse also came with a USB receiver, which I have been able to make 
work, but that's a problem for another time.)


I checked syslog, and didn't find anything enlightening.

I followed instructions I found for Ubuntu 16, including reinstalling 
the software, and no change.


My reason for buying this mouse is my various logitech mice, after a 
long time of use, start double-clicking by themselves and misbehave when 
doing click-and-drag operations.  The new mouse allegedly has optical 
switches, which should not have this auto-double-click going forward.


(Yes, I still keep the original flaky mouse handy for when the new one 
stops working.  So far I've been able to avoid nasty power-downs or 
hardware resets.)


--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss