28/11/2023

Bluetooth probleem openSUSE Tumbleweed

Filed under: — cybrarian @ 12:53 pm

Helaas werkt de bluetooth niet goed op mijn laptop (HP Probook 840 G2) met openSUSE Tumbleweed.

Een bestand van mijn smarpthone (met Sailfish) via bluetooth naar mijn desktop sturen gaat niet op deze laptop, hoewel de verbinding tussen de apparaten wel gemaakt is.

Eerst gebeurt niets; dan vanuit laptop verbonden met smartphone: “verbonden”, terug bluetooth sturen: er gebeurt niets. (normaal moet er nu een venstertje opengaan dat bevestiging vraagt om het gestuurde bestand te ontvangen; zo gebeurt het op een andere laptop met dezelfde smartphone).

Het icoon van bluetooth staat als “verbonden”, zowel op smartphone als laptop;
Laptop:
XPeria XA2 connected
Paired: yes
Trusted: yes

Op een andere laptop gaat het wel, dus waarschijnlijk een hardware/drivers probleem op deze.

Oplossing

Installeer bluez-obexd:

sudo zypper in bluez-obexd

Starten:

systemctl --user start obex.service
systemctl --user enable obex.service

Log
Mijn zoektocht …

Ps: Als ik op “Send file” klik krijg ik de foutmelding:
Failed to start org.bluez.obex service: The name org.bluez.obex was not provided by any .service files.

Dat is file-transfer in de andere richting, maar het geeft wel aan welke software betrokken is..

Hardware informatie:

Bluetooth wireless interface
Class
224
(Wireless)
Subclass
1
(Radio Frequency)
Protocol
1
(Bluetooth)
USB Version
2.01
...
Vendor ID
0x8087
(Intel Corp.)
Product ID
0x0a2a
(Bluetooth wireless interface)
...
Speed
12 Mbit/s
...
Channels
0
...
Max. Packet Size
64

systemctl status bluetooth.service
● bluetooth.service - Bluetooth service
Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: disabled)
Active: active (running) since Tue 2023-11-28 12:42:26 CET; 26min ago
Docs: man:bluetoothd(8)
Main PID: 2588 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CPU: 85ms
CGroup: /system.slice/bluetooth.service
└─2588 /usr/libexec/bluetooth/bluetoothd

Met hetzelfde als root zie ik ook nog dit :

Nov 28 12:48:06 chameleon bluetoothd[2588]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSource/faststream
Nov 28 12:48:06 chameleon bluetoothd[2588]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSource/faststream_duplex
Nov 28 12:48:06 chameleon bluetoothd[2588]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSink/opus_05
Nov 28 12:48:06 chameleon bluetoothd[2588]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSource/opus_05
Nov 28 12:48:06 chameleon bluetoothd[2588]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSink/opus_05_duplex
Nov 28 12:48:06 chameleon bluetoothd[2588]: Endpoint registered: sender=:1.106 path=/MediaEndpoint/A2DPSource/opus_05_duplex
Nov 28 12:55:58 chameleon bluetoothd[2588]: profiles/audio/avdtp.c:avdtp_connect_cb() connect to 38:78:62:5D:32:89: Connection refused (111)
Nov 28 12:55:58 chameleon bluetoothd[2588]: src/service.c:btd_service_connect() a2dp-source profile connect failed for 38:78:62:5D:32:89: Device or resource>
Nov 28 12:56:01 chameleon bluetoothd[2588]: src/service.c:btd_service_connect() a2dp-sink profile connect failed for 38:78:62:5D:32:89: Device or resource b>
Nov 28 12:56:02 chameleon bluetoothd[2588]: /org/bluez/hci0/dev_38_78_62_5D_32_89/fd0: fd(28) ready

Als user: (hetzelfde op beide systemen)
systemctl --user status dbus-org.bluez.obex.service

Unit dbus-org.bluez.obex.service could not be found.

In het softwarecentrum zoeken op “obex“:

# Status             Package                        | Summary                                  | Installed (Available)     | 5
.
[Do Not Install]     bluez-obexd                    | Object Exchange daemon for sharing co... | (5.70-1.2)                |  633.2 KiB
[Do Not Install]     libopenobex2                   | Open Source Implementation of the Obj... | (1.7.2-3.6)               |  130.5 KiB
[Do Not Install]     obex-data-server               | Obex DBus API                            | (0.4.6-15.30)             |  291.8 KiB
[Do Not Install]     obexfs                         | FUSE based filesystem using ObexFTP      | (0.12-3.8)                |   68.2 KiB
[Do Not Install]     obexftp                        | ObexFTP Implements the Object Exchang... | (0.24.2-1.26)             |  161.2 KiB
[Do Not Install]     obexftp-devel                  | Development package for obexftp          | (0.24.2-1.26)             |   19.3 KiB
[Do Not Install]     openobex-apps                  | Open Source Implementation of the Obj... | (1.7.2-3.6)               |   82.7 KiB
[Do Not Install]     openobex-devel                 | Development package for openobex         | (1.7.2-3.6)               |  819.9 KiB
[Do Not Install]     perl-Sub-Exporter-GlobExporter | Export shared globs with Sub::Exporte... | (0.006-1.4)               |   28.2 KiB
[Do Not Install]     perl-obexftp                   | ObexFTP Implements the Object Exchang... | (0.24.2-1.26)             |   69.4 KiB
[Do Not Install]     python3-obexftp                | ObexFTP Implements the Object Exchang... | (0.24.2-1.26)             |   68.2 KiB
[Do Not Install]     ruby-obexftp                   | ObexFTP Implements the Object Exchang... | (0.24.2-1.26)             |   50.5 KiB

Op een andere laptop met openSUSE Leap 15.4:

# Status             Package                        | Summary                                  | Installed (Available)     | 5
.
[Do Not Install]     libopenobex2                   | Open Source Implementation of the Obj... | (1.7.2-bp154.2.74)        |  126.4 KiB
[Do Not Install]     obex-data-server               | Obex DBus API                            | (0.4.6-bp154.1.46)        |  286.1 KiB
[Do Not Install]     obexd                          | D-Bus service for Obex Client access     | (0.48-bp154.1.42)         |   56.8 KiB
[Do Not Install]     obexd-client                   | D-Bus service for Obex Server access     | (0.48-bp154.1.42)         |  191.2 KiB
[Do Not Install]     obexd-server                   | D-Bus service for Obex Server service    | (0.48-bp154.1.42)         |  254.0 KiB
[Do Not Install]     obexfs                         | FUSE based filesystem using ObexFTP      | (0.12-bp154.1.25)         |   57.1 KiB
[Do Not Install]     obexftp                        | ObexFTP Implements the Object Exchang... | (0.24.2-bp154.1.44)       |  135.7 KiB
[Do Not Install]     obexftp-devel                  | Development package for obexftp          | (0.24.2-bp154.1.44)       |   19.3 KiB
[Do Not Install]     openobex-apps                  | Open Source Implementation of the Obj... | (1.7.2-bp154.2.74)        |   74.9 KiB
[Do Not Install]     openobex-devel                 | Development package for openobex         | (1.7.2-bp154.2.74)        |  768.4 KiB
[Do Not Install]     perl-Sub-Exporter-GlobExporter | Export Shared Globs with Sub::Exporte... | (0.005-bp154.1.22)        |   27.7 KiB
[Do Not Install]     perl-obexftp                   | ObexFTP Implements the Object Exchang... | (0.24.2-bp154.1.44)       |   61.9 KiB
[Do Not Install]     python3-obexftp                | ObexFTP Implements the Object Exchang... | (0.24.2-bp154.1.44)       |   66.2 KiB
[Do Not Install]     ruby-obexftp                   | ObexFTP Implements the Object Exchang... | (0.24.2-bp154.1.44)       |   39.1 KiB

Tumbleweed en zoeken op bluez:

# Status             Package                        | Summary                                  | Installed (Available)     | 5
.
[Keep]               bluez                          | Bluetooth Stack for Linux                | 5.70-1.2                  |    4.4 MiB
[Keep]               bluez-cups                     | CUPS Driver for Bluetooth Printers       | 5.70-1.2                  |   46.2 KiB
[Keep]               bluez-firmware                 | Bluetooth(TM) Firmware                   | 1.2-150.2                 |  563.4 KiB
[Keep]               bluez-qt-imports               | Async Bluez wrapper library              | 5.112.0-1.1               |  142.7 KiB
[Keep]               bluez-qt-udev                  | bluez-qt integration with udev           | 5.112.0-1.1               |      231 B
[Keep]               libKF5BluezQt6                 | Async Bluez wrapper library - develop... | 5.112.0-1.1               |  700.3 KiB
[Do Not Install]     bluez-auto-enable-devices      | Configuration that automatically enab... | (5.70-1.2)                |   12.0 KiB
[Do Not Install]     bluez-deprecated               | Bluez tools that upstream considers o... | (5.70-1.2)                |    1.0 MiB
[Do Not Install]     bluez-devel                    | Files needed for BlueZ development       | (5.70-1.2)                |  133.9 KiB
[Do Not Install]     bluez-devel-32bit              | Files needed for BlueZ development       | (5.70-1.2)                |      222 B
[Do Not Install]     bluez-obexd                    | Object Exchange daemon for sharing co... | (5.70-1.2)                |  633.2 KiB
[Do Not Install]     bluez-qt-devel                 | Async Bluez wrapper library - develop... | (5.112.0-1.1)             |  170.1 KiB
[Do Not Install]     bluez-test                     | Tools for testing of various Bluetoot... | (5.70-1.2)                |  382.9 KiB
[Do Not Install]     bluez-zsh-completion           | Zsh completion for bluez                 | (5.70-1.2)                |    2.3 KiB
[Do Not Install]     libQt5Bluetooth5               | Qt 5 Bluez Addon                         | (5.15.11+kde6-1.1)        |    1.0 MiB
[Do Not Install]     libQt5Bluetooth5-32bit         | Qt 5 Bluez Addon                         | (5.15.11+kde6-1.1)        | 1009.5 KiB
[Do Not Install]     libQt5Bluetooth5-imports       | Qt 5 Bluez Addon                         | (5.15.11+kde6-1.1)        |  222.1 KiB
[Do Not Install]     python310-pybluez              | A Python Bluetooth wrapper               | (0.23+git5096047f90a1f6a74ceb250aef6243e144170f92-2.2) |  300.6 KiB
[Do Not Install]     python311-pybluez              | A Python Bluetooth wrapper               | (0.23+git5096047f90a1f6a74ceb250aef6243e144170f92-2.2) |  351.5 KiB
[Do Not Install]     python39-pybluez               | A Python Bluetooth wrapper               | (0.23+git5096047f90a1f6a74ceb250aef6243e144170f92-2.2) |  301.1 KiB

Leap 15.4: bluez

# Status             Package                        | Summary                                  | Installed (Available)     | 5
.
[Keep]               bluez                          | Bluetooth Stack for Linux                | 5.62-150400.4.13.1 (5.62-150400.2.5) |    5.2 MiB
[Keep]               bluez-qt-imports               | Async Bluez wrapper library              | 5.90.0-bp154.1.97         |  151.9 KiB
[Keep]               bluez-qt-udev                  | bluez-qt integration with udev           | 5.90.0-bp154.1.97         |      231 B
[Keep]               libKF5BluezQt6                 | Async Bluez wrapper library - develop... | 5.90.0-bp154.1.97         |  902.2 KiB
[Do Not Install]     bluez-auto-enable-devices      | Configuration that automatically enab... | (5.62-150400.2.5)         |    9.2 KiB
[Do Not Install]     bluez-cups                     | CUPS Driver for Bluetooth Printers       | (5.62-150400.2.5)         |  225.7 KiB
[Do Not Install]     bluez-deprecated               | Bluez tools that upstream considers o... | (5.62-150400.2.5)         |    2.0 MiB
[Do Not Install]     bluez-devel                    | Files needed for BlueZ development       | (5.62-150400.2.5)         |  132.6 KiB
[Do Not Install]     bluez-devel-32bit              | Files needed for BlueZ development       | (5.62-150400.2.5)         |      199 B
[Do Not Install]     bluez-firmware                 | Bluetooth(TM) Firmware                   | (1.2-lp154.1.2)           |  563.4 KiB
[Do Not Install]     bluez-qt-devel                 | Async Bluez wrapper library - develop... | (5.90.0-bp154.1.97)       |  172.8 KiB
[Do Not Install]     bluez-test                     | Tools for testing of various Bluetoot... | (5.62-150400.2.5)         |    1.4 MiB
[Do Not Install]     bluez-tools                    | A set of tools to manage bluetooth de... | (0.1.38+git20161212-bp154.1.38) |  999.2 KiB
[Do Not Install]     libQt5Bluetooth5               | Qt 5 Bluez add-on                        | (5.15.2+kde5-150400.1.4)  |    1.1 MiB
[Do Not Install]     libQt5Bluetooth5-32bit         | Qt 5 Bluez add-on                        | (5.15.2+kde5-150400.1.4)  |    1.3 MiB
[Do Not Install]     libQt5Bluetooth5-imports       | Qt 5 Bluez add-on                        | (5.15.2+kde5-150400.1.4)  |  223.3 KiB
[Do Not Install]     python3-pybluez                | A Python Bluetooth wrapper               | (0.22-bp154.1.26)         |  313.5 KiB

Read the wiki …
openSUSE wiki Bluetooth…

Known issues : File transfer not working

– Description

openSUSE Tumbleweed and Leap 15.5 may have this issue. BUG#1198626

If you transfer files through Bluetooth, you get error about “obex service is not available”.

– Solution

Run the following commands:

sudo zypper in bluez-obex
systemctl --user start obex
systemctl --user enable obex


Not found

bluez-obex werd niet gevonden door zypper in, maar er bestaat wel een bluez-obexd, misschien moet die het zijn…

sudo zypper in bluez-obexd
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
bluez-obexd

1 new package to install.

Overall download size: 246.2 KiB. Already cached: 0 B. After the operation, additional 633.2 KiB will be used.
Continue? [y/n/v/…? shows all options] (y):
Retrieving: bluez-obexd-5.70-1.2.x86_64 (Main Repository (OSS)) (1/1), 246.2 KiB
Retrieving: bluez-obexd-5.70-1.2.x86_64.rpm ……………………………………………………………………………………………..[done]

Checking for file conflicts: …………………………………………………………………………………………………………..[done]
(1/1) Installing: bluez-obexd-5.70-1.2.x86_64 ……………………………………………………………………………………………[done]
Running post-transaction scripts ……………………………………………………………………………………………………….[done]

Werkt voorlopig nog niet, nog opstarten misschien:

cybrarian@chameleon:~> systemctl --user start obex.service
cybrarian@chameleon:~> systemctl --user enable obex.service
Created symlink /home/cybrarian/.config/systemd/user/dbus-org.bluez.obex.service → /usr/lib/systemd/user/obex.service.

Nu de file transfer terug opgestart op de smartphone, en er komt een bevestigingsvenster op de Tumbleweed desktop om het bestand af te halen.
Het staat misschien niet juist in de wiki, of het is ondertussen alweer veranderd en daar niet aangepast, maar op deze manier werkt het dus wel.

Reacties zijn gesloten.

Powered by WordPress