LinuxQuestions.org
Help answer threads with 0 replies.
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, 03:04 AM   #1
narke
Member
 
Registered: Apr 2010
Posts: 177

Rep: Reputation: 3
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, 03:25 AM   #2
simotrone
LQ Newbie
 
Registered: Aug 2010
Location: Internet
Distribution: Debian, Slackware, and other...
Posts: 20

Rep: Reputation: 3
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, 04:40 AM   #3
narke
Member
 
Registered: Apr 2010
Posts: 177

Original Poster
Rep: Reputation: 3
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, 12:18 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,498

Rep: Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523
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, 01:55 PM   #5
mralk3
Senior Member
 
Registered: May 2015
Location: Utah, USA
Distribution: Slackware 14.2 || Slackware-current && CentOS
Posts: 1,318

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
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, 05:09 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,071

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

Rep: Reputation: 3
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, 06:05 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,498

Rep: Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523Reputation: 3523
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, 03:16 PM   #9
narke
Member
 
Registered: Apr 2010
Posts: 177

Original Poster
Rep: Reputation: 3
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, 03:36 PM   #10
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 293

Rep: Reputation: 99
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:00 AM
Bluetooth can pair devices but there is no connectivity bobsie Slackware 9 11-11-2013 04:42 AM
bluetooth - cant pair phone abourke Linux - Newbie 1 01-26-2010 10:35 AM
unable to pair bluetooth phone raghuram_c Linux - Newbie 3 01-25-2010 07:19 AM
How to pair bluetooth devices? JET-33 Linux - Software 1 08-24-2007 12:24 PM

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

All times are GMT -5. The time now is 12:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration