Author Topic: Blueman error in KDE - but bluetooth works. SOLVED!  (Read 875 times)

Offline TheGhost

  • Sr. Member
  • ****
  • Posts: 435
  • Boo!
Blueman error in KDE - but bluetooth works. SOLVED!
« on: October 20, 2012, 05:45:48 PM »
I'm gonna need help with this one.

Running full KDE, updated up to today, kernel 3.2.18-pclos2.bfs
Laptop is an HP G42 with a Core i3 and Intel chipset.
Bluetooth card is a Broadcom 2070. Specifically, lsusb reports this: "Bus 001 Device 004: ID 0a5c:21b4 Broadcom Corp. BCM2070 Bluetooth 2.1 + EDR
"

I am trying to connect a cheap bluetooth headset, specifically this (link to Amazon)
I know, cheap and unknown, but its all I need (and can afford), and... well, keep reading.

bluedevil can't seem to be able to see the headset. But the bluetooth in general is working; I can pair 3 different cell phones and event transfer files and all.

I wanted to try blueman, see if it was able to see the headset. But running blueman gives me this error:

Code: [Select]
[user1@mike-laptop ~]$ blueman-manager
Loading configuration plugins
Using gconf config backend
_________
on_bluez_name_owner_changed (/usr/bin/blueman-manager:104)
org.bluez owner changed to  :1.38
Using gconf config backend
ERROR:dbus.proxies:Introspect error on org.blueman.Applet:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 586, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/bin/blueman-manager", line 132, in on_bluez_name_owner_changed
    if not self.Applet.GetBluetoothStatus():
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)

That happens even if I run blueman as root via "su", or even if I login as root.

I tried running bluetoothd -n to see if I get any result. This is what I got:

Code: [Select]
[user1@mike-laptop ~]$ su
Password:
[root@mike-laptop user1]# bluetoothd -n
bluetoothd[11373]: Bluetooth deamon 4.93
bluetoothd[11373]: Unable to get on D-Bus

I've been scouring the web for a solution, trying many suggestions like installing almost everything I can find in Synaptic related to bluetooth, adding the user to a "bluetooth" group (had to create the group first), changing the /etc/dbus-1/system.d/bluetooth.conf file to read from "   <policy user="root">"  to "  <policy user="mike">", but nothing works.

By the way, this same problem was reported in this thread, but in that case KDE was working, so the solutions posted didn't help.

Now, here are the mysteries:

This same headset was working before in this same laptop, when it was runinng [the distro which must not be named]. So, I know that the headset is compatible.
This is my son's laptop, he wanted to try [the distro who must not be named], and I encouraged him to do it. Eventually, he came back to PCLOS - but we have run into this conundrum, and it might be a deal breaker (he loves listening to his music with the bluetooth headset).

And worst: It worked once for a while! . When I first installed PCLOS, I did it from my own customized remaster. This remaster started from MiniMe. After the installation, all the bluetooth functions including the heaset were working, but only for one user - the first user I created when installing. But the second user - mike - did not have bluetooth at all.
So, I decided to start over, this time using the full PCLinuxOS 2012 KDE iso. Now, all the users have bluetooth, when using bluedevil, but the headset refuses to work.

I would appreciate any help.

Thanks in advance.
« Last Edit: October 24, 2012, 04:59:55 PM by TheGhost »
I was once a sinner, but I have seen the light. Linux saved me!

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10607
  • MLUs Forever!
Re: Blueman error in KDE - but bluetooth works.
« Reply #1 on: October 21, 2012, 05:24:59 AM »
EDIT:  sorry for incorrect info

Further thought .......  if you use PulseAudio be sure to install the pulseaudio bluetooth module

***

I (rarely) use a Logitech BT earpiece which works OK, along with a Galaxy phone.

I mostly now use a wireless headset which I found much better and easier to set up.

BTW ....  nice looking BT headset for the price!  ;)

« Last Edit: October 21, 2012, 05:31:42 AM by Just17 »
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline TheGhost

  • Sr. Member
  • ****
  • Posts: 435
  • Boo!
Re: Blueman error in KDE - but bluetooth works.
« Reply #2 on: October 21, 2012, 06:26:15 PM »
Just18.

I do have Pulseaudio installed; in fact, that's how I make the headset work in [the distro whose name we don't speak].

In this case, the problem is that the headset is not even detected by bluedevil. But I think it should be possible to make it work, since it worked in [the distro whose name is censored].
Since [the unmentionable distro] is Gnome based, and uses Blueman, that's why I am trying to make blueman work with PCLOS. For what I have found in the forums, Blueman does  work in PCLOS KDE - but not for me.  :'(

I'm still doing experiments; if I find anything else, I will report it here.
I was once a sinner, but I have seen the light. Linux saved me!

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10607
  • MLUs Forever!
Re: Blueman error in KDE - but bluetooth works.
« Reply #3 on: October 22, 2012, 04:13:53 AM »
Maybe gnome-bluetooth would help if not already installed ...

I have the following installed

bluedevil
blueman
bluez
bluez-alsa
bluez-firmware
bluez-pin
gnome-bluetooth
libbluedevil1
libbluex3
libbtcl6
obexd
obex-data-server
pulseaudio-module-bluetooth

I hope you find the cause ....

MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline TheGhost

  • Sr. Member
  • ****
  • Posts: 435
  • Boo!
Re: Blueman error in KDE - but bluetooth works.
« Reply #4 on: October 23, 2012, 10:24:14 PM »
I tried installing gnome-bluetooth, but no change.
I also tried installing anyremote and kanyremote, since the headset has some remote capabilities (volume change and play/pause) I hoped it would be detected as such, but to no avail.

I did some more tests, maybe this may shed some light.

I booted from a live USB of [the Unmentionable But Universally kNown To ... er... Ubrybody distro], just to confirm that blueman and the headset worked.
Yes, they do.
So it is possible to use this particular headset with Linux.

I booted with a PCLOS LXDE installation on a flash drive. Note this is not a live USB, I did install LXDE in a flash drive, I am currently using it with a oldish laptop that has no hard drive. It works more or less alright, by the way.
I found that the problem with blueman still existed. I had no bluetooth at all. However...
I was using this exact same flash drive and this exact same installation with a different laptop before, and the bluetooth was working well. Blueman showed the icon in the tray and everything worked - although I never tried the headset with it.
Now the "however": I noticed that blueman-manager showed as effectively running in the system monitor. It was then that I realized that the same happened in KDE - Blueman-manager apparently does start and runs, but it doesn't show the icon.

So, I went back to KDE and ran blueman-manager from the console.
Then I ran "blueman-applet". This is what I got:

Code: [Select]
[user1@mike-laptop ~]$ blueman-applet
Loading configuration plugins
Using gconf config backend
Stale PID, overwriting
Using gconf config backend
_________
Load (/usr/bin/blueman-applet:117)
['PPPSupport', 'SerialManager', 'KillSwitch', 'NMPANSupport', 'Networking', 'DBusService', 'AuthAgent', 'Indicator', 'RecentConns', 'NetUsage', 'TransferService', 'DhcpClient', 'NMDUNSupport', 'DiscvManager', 'Menu', 'Headset', 'PowerManager', 'StatusIcon', 'PulseAudio', 'StandardItems']
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.StatusIcon.StatusIcon'>
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.DBusService.DBusService'>
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.Headset.Headset'>
Using gconf config backend
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.Menu.Menu'>
_________
__load_plugin (/usr/bin/blueman-applet:182)
loading <class 'blueman.plugins.applet.PowerManager.PowerManager'>
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/blueman/plugins/AppletPlugin.py", line 105, in _load
    self.on_load(applet)
  File "/usr/lib/python2.6/site-packages/blueman/plugins/applet/PowerManager.py", line 37, in on_load
    self.item = create_menuitem(_("<b>Bluetooth Off</b>"), get_icon("gtk-stop", 16))
  File "/usr/lib/python2.6/site-packages/blueman/Functions.py", line 171, in get_icon
    icon = ic.load_icon("gtk-missing-image", size, 0)
GError: Icon 'gtk-missing-image' not present in theme
_________
__load_plugin (/usr/bin/blueman-applet:182)
Failed to load PowerManager
Icon 'gtk-missing-image' not present in theme
[user1@mike-laptop ~]$


So, it seems to me - probably wrong - that blueman-manager can be started, but it can't show the icon for some reason.
Something tells me that the key may be that "PowerManager" module not loading, but I can't find anything related to power management and bluetooth in Synaptic.
By the way, "gtk-missing-image" icon is present in the default icon theme, a quick search found it. But what is that "size 0"?

Any ideas? Anyone? Anyone? Bueller?
I was once a sinner, but I have seen the light. Linux saved me!

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10607
  • MLUs Forever!
Re: Blueman error in KDE - but bluetooth works.
« Reply #5 on: October 24, 2012, 02:30:48 AM »
Quote
By the way, "gtk-missing-image" icon is present in the default icon theme, a quick search found it. But what is that "size 0"?

It 'appears' to say that the file (although present) is 0 bytes ........ can you check the file?

MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline TheGhost

  • Sr. Member
  • ****
  • Posts: 435
  • Boo!
Re: Blueman error in KDE - but bluetooth works.
« Reply #6 on: October 24, 2012, 05:12:18 PM »
Quote
By the way, "gtk-missing-image" icon is present in the default icon theme, a quick search found it. But what is that "size 0"?

It 'appears' to say that the file (although present) is 0 bytes ........ can you check the file?



Well cover me in butter and call me a bagel!

IT'S SOLVED!

 I searched the icon again, and I couldn't find it. At first I thought I was going crazy, then I remembered that I am already crazy.
Then I realized that I had seen the icon but it wasn't in KDE, but in LXDE. In other words, in the Gnome icon theme.
I took the plunge and installed the Gnome icon package, which provided me with the infamous missing icon. A quick modification to the default theme file to add "inherit = gnome", and voilá! Blueman came up correctly, and I was able to pair the headset!

I now have sound through the headset from Amarok and VLC, and it's just a matter of configuring Umplayer and Clementine to get sound from it.

What's more, now KDE's bluetooth manager - bluedevil - correctly sees the headset and can configure it and control it.
So I'm pretty sure that I can uninstall all the unnecessary packages - like the full Gnome icon theme, and perhaps even blueman, and still get the headset working. I'm going to try that just to see what happens, in any case I now know how to make it work.

Thanks Just17! Your clue was the one that cracked the case!
« Last Edit: October 24, 2012, 05:17:16 PM by TheGhost »
I was once a sinner, but I have seen the light. Linux saved me!

Offline TheGhost

  • Sr. Member
  • ****
  • Posts: 435
  • Boo!
Re: Blueman error in KDE - but bluetooth works. SOLVED!
« Reply #7 on: October 25, 2012, 01:32:53 AM »
So, a final recap here that may help others:

It is possible to use a cheap bluetooth headset like that with PCLOS.
But Bluedevil - the KDE bluetooth manager - can't see it. I needed to use Blueman-manager to set it.

In my case, blueman-manager was not working because I had uninstalled the Gnome Icon package - since I don't use it, I decided to remove it. But blueman, being a Gnome application, required one particular icon, which was unable to find.
This situation would not occur with a full KDE installation, since it comes with the Gnome Icon package preinstalled.
It may happen with a Mini-Me installation; the Gnome icons are needed by Blueman.

Other packages, like Gnome-bluetooth, Anyremote, and some Gnome bluetooth libraries are not actually needed.

Not even Blueman is actually needed; after the headset was detected and paired, I removed Blueman (to see what happened) and now Bluedevil already sees the headset as installed and can control it.

A final thought: Developers, should gnome-icon-theme be added as a dependency for blueman?
Or even better, could that one missing icon be added to the default KDE icon theme?

Cheers everyone!
I was once a sinner, but I have seen the light. Linux saved me!

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10607
  • MLUs Forever!
Re: Blueman error in KDE - but bluetooth works. SOLVED!
« Reply #8 on: October 25, 2012, 01:47:45 AM »
Great to see you got to the bottom of it  :D

MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT