LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-12-2018, 02:04 AM   #1
narke
Member
 
Registered: Apr 2010
Posts: 197

Rep: Reputation: 5
How to pair a bluetooth device


Hi,

I want to pair a bluetooth speaker. I can now scan it with 'hcitool scan' and found it appear in the devices list. Searched google, but things seems not clear about how to pair it. Some people mentioned bluez-tools package, but it's event not in the slackbuilds.org, this brings me a feeling that the method is not a good option to Slackware. But what's the recommended way?

My Slack is 14.2.

Thanks.
-woody
 
Old 08-12-2018, 02:25 AM   #2
simotrone
LQ Newbie
 
Registered: Aug 2010
Location: Internet
Distribution: Debian, Slackware, and other...
Posts: 22

Rep: Reputation: 4
the bluez/blueman packages are all in Slackware (no slackbuilds need).
Give a try to blueman-manager for a GTK UI, or bluetoothctl for cmdl UI.
 
Old 08-12-2018, 03:40 AM   #3
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by simotrone View Post
the bluez/blueman packages are all in Slackware (no slackbuilds need).
Give a try to blueman-manager for a GTK UI, or bluetoothctl for cmdl UI.
Thanks. I tried to start blueman-manager, but failed with an error:

Code:
on_bluez_name_owner_changed (/usr/bin/blueman-manager:96)
org.bluez owner changed to  :1.0 
ERROR:dbus.proxies:Introspect error on org.blueman.Applet:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
ERROR:dbus.proxies:Introspect error on :1.0:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.75" (uid=1000 pid=2513 comm="/usr/bin/python2.7 /usr/bin/blueman-manager ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.0" (uid=0 pid=1143 comm="/usr/sbin/bluetoothd ")
Does anyone get a blue? Thanks.

-woody
 
Old 08-12-2018, 11:18 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
I haven't used 14.2 for a while, but on -current it's just:

Code:
chmod +x /etc/rc.d/rc.bluetooth
/etc/rc.d/rc.bluetooth start
blueman-applet
 
Old 08-12-2018, 12:55 PM   #5
mralk3
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,900

Rep: Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050Reputation: 1050
Run it from an X session as a normal user. There should be an applet that autostarts in your chosen graphical environment after you follow dugan's directions.
 
1 members found this post helpful.
Old 08-12-2018, 04:09 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Make sure your user is a member of the 'lp' group as well.
 
Old 08-15-2018, 04:57 PM   #7
simotrone
LQ Newbie
 
Registered: Aug 2010
Location: Internet
Distribution: Debian, Slackware, and other...
Posts: 22

Rep: Reputation: 4
Quote:
Originally Posted by narke View Post
Thanks. I tried to start blueman-manager, but failed with an error:

Code:
on_bluez_name_owner_changed (/usr/bin/blueman-manager:96)
org.bluez owner changed to  :1.0 
ERROR:dbus.proxies:Introspect error on org.blueman.Applet:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying
ERROR:dbus.proxies:Introspect error on :1.0:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.75" (uid=1000 pid=2513 comm="/usr/bin/python2.7 /usr/bin/blueman-manager ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.0" (uid=0 pid=1143 comm="/usr/sbin/bluetoothd ")
Does anyone get a blue? Thanks.

-woody
did you try to run it as root?
 
Old 08-15-2018, 05:05 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
Is there a specific Bluetooth device you're trying to pair? I know that Xbox One S controllers, at least, need a special setting.
 
Old 10-04-2018, 02:16 PM   #9
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Sorry for late coming back to the topic. The problem is I have to sudo to run the bluetooth-applet, otherwise can get error as:

Quote:
Load (/usr/lib64/python2.7/site-packages/blueman/main/PluginManager.py:60)
['StatusIcon', 'DBusService', 'ShowConnected', 'Headset', 'PowerManager', 'SerialManager', 'KillSwitch', 'ExitItem', 'TransferService', 'NMDUNSupport', 'DhcpClient', 'AuthAgent', 'RecentConns', 'GameControllerWakelock', 'Menu', 'StandardItems', 'NMPANSupport', 'PPPSupport', 'NetUsage', 'Networking', 'DiscvManager']
ERROR:dbus.proxies:Introspect error on :1.0:/: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 2 matched rules; type="method_call", sender=":1.88" (uid=1000 pid=15466 comm="/usr/bin/python2.7 /usr/bin/blueman-applet ") interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)" requested_reply="0" destination=":1.0" (uid=0 pid=1111 comm="/usr/sbin/bluetoothd ")
I've already added myself into the 'lp' group. What else should I do?

Thanks.
-woody
 
Old 10-04-2018, 02:36 PM   #10
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
I recently got Bluetooth headphones and use bluetoothctl to connect to them like this:
Code:
power on
agent on
default-agent
scan on
Your device should show up. Next:
Code:
pair <MAC>
trust <MAC>
connect <MAC>
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pair a bluetooth device with Linux Mint? Lentejas Linux - Hardware 2 08-27-2015 04:00 AM
Bluetooth can pair devices but there is no connectivity bobsie Slackware 9 11-11-2013 03:42 AM
bluetooth - cant pair phone abourke Linux - Newbie 1 01-26-2010 09:35 AM
unable to pair bluetooth phone raghuram_c Linux - Newbie 3 01-25-2010 06:19 AM
How to pair bluetooth devices? JET-33 Linux - Software 1 08-24-2007 11:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration