[SOLVED] Can't use blueman-applet or blueman-manager on Slackware64 -current
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Can't use blueman-applet or blueman-manager on Slackware64 -current
Hi there!
I'm using Slackware64 -current and nowadays it seems I can't use blueman to manage/connect to my bluetooth devices (can't pinpoint exactly when did it broke).
After starting blueman-manager, I get this error message in a pop-up window:
Failed to apply network settings
You might not be able to connect to the Bluetooth network via this machine > Exception
org.freedesktop.DBus.Python.dbus.exceptions.DBusException: Blueman was built with PolicyKit-1 support, but it's not available on the system
After this I get a device list in blueman-manager (already added devices, back when it worked), but searching for new devices is in vain.
So I searched around a bit and seems like I have my prerequisites configured properly:
I'm in the 'netdev' group (as per /etc/polkit-1/rules.d/30-blueman-netdev-allow-access.rules)
I'm in the 'lp' group as well (as per /etc/dbus-1/system.d/bluetooth.conf)
I have bluetoothd running (/etc/rc.d/rc.bluetooth) and I have dbus running as well (/etc/rc.d/rc.messagebus).
I'm not using any fancy desktop environment, I use spectrwm and I start it with startx with an .xinitrc like this:
So I have my consolekit and dbus sessions setup properly -- at least it did just that for the past years.
As snake oil I also reinstalled blueman*, polkit and dbus, you know, for fun
Alas, I can't seem to figure out what the culprit is. I've been on current64 for a long time so maybe something has broken along the bumpy upgrade paths.
Any clue would be appreciated!
Daniel
Last edited by danielldaniell; 01-07-2019 at 07:55 AM.
Reason: More precise subject
I'm not running -current, so I'm afraid that can't provide much help. I had found something about permissions in /etc/polkit-1/rules.d, but your files have the correct permissions.
I'm received same message when starting xfce4... still haven't resolved it.. kde was able to pair em and play em... but blueman has that dbus error in xfce4... I had just upgraded to current to see if it fixed the dbus error I was getting with blueman in 14.2-stable, along with others: https://www.linuxquestions.org/quest...me-4175645332/ and so far, haven't figured out the culprit.
Last edited by slac-in-the-box; 01-09-2019 at 12:08 PM.
(I wrote a NetBeans app to display what my Bluetooth Heart Rate Monitor reports while I'm exercising; this came from my research on how to do that on a linux system.)
1. Introspect /org/bluez for information about nodes.
...you're interested in the <node> blocks. Anything that doesn't have the name of "test" is the name of one of your bluetooth adapters. (You've probably got only one of them.)
2. Start discovery on any non-test nodes. Something like (using the above response as an example)...
Wowzers: has your netbeans app revealed which gets the heart rate going more: a spin on the treadmill, or all these cranial dbus exercises?
All of that was going exactly as described until
Code:
dbus-send --system --dest=org.bluez --type=method_call --print-reply /org/bluez/hci0/dev_00_11_22_33_44_55 org.bluez.Device1.Connect
Error org.bluez.Error.Failed: Host is down
... (I don't know if those device identifiers are sensitive info, so I just changed them to that sequence)
I am able to connect with hcitools and rfcomm at console.
I can connect in KDE.
Then when switching back to xfce, it's autoconnecting, and sound is coming out of headphones; but it reports dbus error when trying to use blueman widget in notification panel... but if I open term, and manually try blueman, it reports python errors, and with strace, it has more info about what it can't find... It's a lot of output, but here's the abbreviated version:
Code:
slac-in-the-box% blueman-report
Terminating blueman-applet
Describe your next action (keep empty if done):
Traceback (most recent call last):
File "/usr/bin/blueman-report", line 69, in <module>
response = urllib2.urlopen('https://api.github.com/gists', data.encode('UTF-8')).read()
File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib64/python2.7/urllib2.py", line 435, in open
response = meth(req, response)
File "/usr/lib64/python2.7/urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib64/python2.7/urllib2.py", line 473, in error
return self._call_chain(*args)
File "/usr/lib64/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib64/python2.7/urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 401: Unauthorized
And similar for blueman-browse, blueman-assistant, etc.
The weird thing is that, despite all these blueman and dbus errors, headphones still connect and play.
shrugs I worked in telecom for almost 20 years. You have no idea on the amount of messaging that goes on to make a telephone call. (That messaging starts when you take the receiver off the cradle, BTW. That's how you got dial tone.) Bluetooth is a somewhat odd protocol. (I didn't even begin to go into the details in that post, but this...
KDE uses bluedevil instead of blueman. After poking around in the bluedevil code, I see that it also uses DBus to talk to the bluetooth adapter (not overly surprising).
After some messing around, I've gotten Error org.bluez.Error.Failed: Host is down when the device I'm trying to connect to isn't on. (That's not your case, since you are able to use hcitool to connect.)
Mon Nov 19 02:46:11 UTC 2018
l/js185-1.0.0-x86_64-2.txz: Removed.
l/mozjs52-52.9.0esr-x86_64-1.txz: Added.
Required by the new version of polkit.
l/polkit-0.115-x86_64-1.txz: Upgraded.
Thanks to Robby Workman.
Hmm. OK, but a reference to the polkit upgrade would have made more sense in this particular context; as far as I know, neither bluetooth nor dbus care about javascript.
polkit uses js internally; prior to the present version, it used js185, but the present one uses mozjs52. Quite a few people had polkit issues after that replacement, as the old package (js185) and new package (mozjs52) have different names, and thus a "slackpkg install-new" was needed for the slackpkg folks.
Maybe changing the format of the ChangeLog would be beneficial, starting the lines with Upgraded/Rebuilt/Added/Removed. It's a little difficult to briefly parse a longer list of updates and spot the Added/Removed tags in the actual form, at the end of the lines, in a variable place.
Should be a valid post in the requests-for-current thread: https://www.linuxquestions.org/quest...-a-4175620463/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.