Page 1 of 1

bluetooth problems - audio not working

PostPosted: Jun 6th, '19, 14:33
by nwtmg
Hi

Running 4.14.104-desktop-2.mga6 on a toshiba laptop. Recently bought a usb dongle

Code: Select all
Bus 002 Device 002: ID 04f2:b008 Chicony Electronics Co., Ltd USB 2.0 Camera
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Here is the output from some commands

from rpm -qa | grep bluez
Code: Select all
libkf5bluezqt5-5.42.0-1.mga6
bluez-5.45-2.2.mga6
bluez-firmware-1.2-13.mga6.nonfree
libbluez3-5.45-2.2.mga6
bluez-hid2hci-5.45-2.2.mga6
bluez-qt-5.42.0-1.mga6
Jun 06 12:25:38 golfAndBikingForFun kernel: Bluetooth: HCI device and connection manager initialized
Jun 06 12:25:38 golfAndBikingForFun kernel: Bluetooth: HCI socket layer initialized
libkf5bluezqt5-5.42.0-1.mga6
bluez-5.45-2.2.mga6
bluez-firmware-1.2-13.mga6.nonfree
libbluez3-5.45-2.2.mga6
bluez-hid2hci-5.45-2.2.mga6
bluez-qt-5.42.0-1.mga6


from systemctl status bluetooth

Code: Select all
● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-06-06 12:25:48 IST; 46min ago
     Docs: man:bluetoothd(8)
 Main PID: 954 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─954 /usr/libexec/bluetooth/bluetoothd

Jun 06 12:25:48 golfAndBikingForFun systemd[1]: Starting Bluetooth service...
Jun 06 12:25:48 golfAndBikingForFun bluetoothd[954]: Bluetooth daemon 5.45
Jun 06 12:25:48 golfAndBikingForFun bluetoothd[954]: Starting SDP server
Jun 06 12:25:48 golfAndBikingForFun systemd[1]: Started Bluetooth service.
Jun 06 12:25:49 golfAndBikingForFun bluetoothd[954]: Bluetooth management interface 1.14 initialized
Jun 06 12:29:03 golfAndBikingForFun bluetoothd[954]: Endpoint registered: sender=:1.60 path=/MediaEndpoint/A2DPSource
Jun 06 12:29:03 golfAndBikingForFun bluetoothd[954]: Endpoint registered: sender=:1.60 path=/MediaEndpoint/A2DPSink
Jun 06 13:03:25 golfAndBikingForFun bluetoothd[954]: Control: Refusing unexpected connect


from journalctl -ab | grep -i -e " hci" -e hid

Code: Select all
Jun 06 12:25:38 golfAndBikingForFun kernel: Bluetooth: HCI device and connection manager initialized
Jun 06 12:25:38 golfAndBikingForFun kernel: Bluetooth: HCI socket layer initialized
Jun 06 13:03:33 golfAndBikingForFun kernel: Bluetooth: hci0 SCO packet for unknown connection handle 65
Jun 06 13:03:33 golfAndBikingForFun kernel: Bluetooth: hci0 SCO packet for unknown connection handle 65
Jun 06 13:03:33 golfAndBikingForFun kernel: Bluetooth: hci0 SCO packet for unknown connection handle 65


The bluetooth speakers are recognized by pulse audio as headset.

When I start blueman-applet as root I get the following error

Code: Select all
blueman-applet version 2.0.6 starting
Traceback (most recent call last):
  File "/usr/bin/blueman-applet", line 121, in <module>
    BluemanApplet()
  File "/usr/bin/blueman-applet", line 59, in __init__
    self.DbusSvc = DbusService("org.blueman.Applet", "/")
  File "/usr/lib/python2.7/site-packages/blueman/main/DbusService.py", line 18, in __init__
    self.bus = bus()
  File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 211, in __new__
    mainloop=mainloop)
  File "/usr/lib/python2.7/site-packages/dbus/_dbus.py", line 100, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 122, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.



When I start blueman-applet as user I have to give my user id two times then I get the following error

Code: Select all
(blueman-applet:6072): Gtk-WARNING **: Theme parsing error: gtk.css:102:28: The :prelight pseudo-class is deprecated. Use :hover instead.

(blueman-applet:6072): Gtk-WARNING **: Theme parsing error: gtk.css:112:35: The :prelight pseudo-class is deprecated. Use :hover instead.

(blueman-applet:6072): Gtk-WARNING **: Theme parsing error: gtk.css:154:31: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(blueman-applet:6072): Gtk-WARNING **: Theme parsing error: gtk.css:155:24: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(blueman-applet:6072): Gtk-WARNING **: Theme parsing error: gtk.css:184:27: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(blueman-applet:6072): Gtk-WARNING **: Theme parsing error: gtk.css:185:29: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(blueman-applet:6072): Gtk-WARNING **: Theme parsing error: gtk.css:205:34: The :insensitive pseudo-class is deprecated. Use :disabled instead.

(blueman-applet:6072): Gtk-WARNING **: Theme parsing error: gtk.css:226:34: The :inconsistent pseudo-class is deprecated. Use :indeterminate instead.
blueman-applet version 2.0.6 starting
Stale PID, overwriting

(blueman-applet:6072): Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
/usr/lib/python2.7/site-packages/blueman/plugins/applet/PowerManager.py:123: Warning: Source ID 197 was not found when attempting to remove it
  GObject.source_remove(self.timer)



With the icon in the tray I select setup new device and speaker is recognized. Attempt to connect on serial returns message "Device added successfully bu failed to connect".

Also tried with headset and audio sink. Still no sound from the speaker. Any help would be appreciated. Thank you.

Re: bluetooth problems - audio not working

PostPosted: Jun 7th, '19, 09:18
by doktor5000
Can you show the output of the following commands ran as your regular user please?
Code: Select all
rpm -qa|grep pulseaudio|sort
pactl list modules | grep "Name:"


You may also need to install pulseaudio-module-bluetooth

And please don't run stuff as root. You need to connect to your user's dbus session, and there's usually no user dbus session for root.
You can also try to get some more information via bluetoothctl, see e.g. https://wiki.archlinux.org/index.php/Bluetooth#Pairing for some hints.

Re: bluetooth problems - audio not working

PostPosted: Jun 7th, '19, 19:07
by nwtmg
Code: Select all
fluxbox-pulseaudio-1.3.7-4.mga6
libalsa-plugins-pulseaudio-1.1.4-1.mga6
libpulseaudio0-10.0-1.1.mga6
libpulseaudio-devel-10.0-1.1.mga6
pulseaudio-10.0-1.1.mga6
pulseaudio-client-config-10.0-1.1.mga6
pulseaudio-module-bluetooth-10.0-1.1.mga6
pulseaudio-module-gconf-10.0-1.1.mga6
pulseaudio-module-x11-10.0-1.1.mga6
pulseaudio-module-zeroconf-10.0-1.1.mga6
pulseaudio-utils-10.0-1.1.mga6
task-pulseaudio-2011.0-8.mga6
xfce4-pulseaudio-plugin-0.2.5-1.mga6


Code: Select all
   Name: module-device-restore
   Name: module-stream-restore
   Name: module-card-restore
   Name: module-augment-properties
   Name: module-switch-on-port-available
   Name: module-udev-detect
   Name: module-alsa-card
   Name: module-bluetooth-policy
   Name: module-bluetooth-discover
   Name: module-bluez5-discover
   Name: module-esound-protocol-unix
   Name: module-native-protocol-unix
   Name: module-gconf
   Name: module-default-device-restore
   Name: module-rescue-streams
   Name: module-always-sink
   Name: module-intended-roles
   Name: module-suspend-on-idle
   Name: module-systemd-login
   Name: module-position-event-sounds
   Name: module-role-cork
   Name: module-filter-heuristics
   Name: module-filter-apply
   Name: module-dbus-protocol
   Name: module-x11-publish
   Name: module-x11-publish
   Name: module-bluez5-device



ran status on bluetooth service

Code: Select all
● bluetooth.service - Bluetooth service
   Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-06-07 17:48:26 IST; 13min ago
     Docs: man:bluetoothd(8)
 Main PID: 12717 (bluetoothd)
   Status: "Running"
   CGroup: /system.slice/bluetooth.service
           └─12717 /usr/libexec/bluetooth/bluetoothd

Jun 07 17:48:26 golfAndBikingForFun systemd[1]: Stopped Bluetooth service.
Jun 07 17:48:26 golfAndBikingForFun systemd[1]: Starting Bluetooth service...
Jun 07 17:48:26 golfAndBikingForFun bluetoothd[12717]: Bluetooth daemon 5.45
Jun 07 17:48:26 golfAndBikingForFun systemd[1]: Started Bluetooth service.
Jun 07 17:48:26 golfAndBikingForFun bluetoothd[12717]: Starting SDP server
Jun 07 17:48:26 golfAndBikingForFun bluetoothd[12717]: Bluetooth management interface 1.14 initialized
Jun 07 17:48:26 golfAndBikingForFun bluetoothd[12717]: Endpoint registered: sender=:1.60 path=/MediaEndpoint/A2DPSource
Jun 07 17:48:26 golfAndBikingForFun bluetoothd[12717]: Endpoint registered: sender=:1.60 path=/MediaEndpoint/A2DPSink
Jun 07 17:49:35 golfAndBikingForFun bluetoothd[12717]: Control: Refusing unexpected connect
Jun 07 17:53:20 golfAndBikingForFun bluetoothd[12717]: Control: Refusing unexpected connect



As I was typing this it just started to work. I have no idea what happened. Should I make this as solved?