LinuxQuestions.org
Register a domain and help support LQ
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 07-24-2013, 12:35 AM   #1
bobsie
LQ Newbie
 
Registered: Apr 2013
Posts: 25

Rep: Reputation: Disabled
Bluetooth can pair devices but there is no connectivity


I wonder if someone can help me to get bluetooth working.

I am using the Blueman applet. I can pair my laptop with my Android tablet, but can neither transfer files to the device nor browse its file system.

When I first installed Slackware 14.0 (64-bit) on this Acer Aspire V3-571G laptop bluetooth would not work at all. After I compiled and installed a more recent kernel (3.9.6) it came to life, and I can now pair with another device. But if I start the "Devices" window and run the device setup for the tablet I get a window headed "Connect", in which I get to choose to connect to a "Network Access Point" (whatever that is...?) or "Don't connect". If I choose to try to connect, it fails, with the message "Device added successfully, but failed to connect".

Then I try to transfer a file from the laptop to the tablet, but it always fails, and only tells me there was a "request timeout". If I try to browse the files on the tablet, i get a message about "failed to mount" on the obexfs directory for the device (which does exist).

I have 2 other devices which I can also add but give similar connection failure messages when I try to set them up. All 3 devices work with each other via bluetooth, so the failure must be strictly in the laptop.

I have no idea how to proceed with this. I really need bluetooth working, as I have a Samsung tablet, which does not support mounting as a mass storage device. It requires MTP, which seems to be only available in Windows, so I cannot copy any files to it.
 
Old 07-24-2013, 05:33 PM   #2
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 160

Rep: Reputation: 3
Just a shot in the dark here. Try running hcidump in a terminal while you attempt to connect to your device. With any luck it will give you some sort of error. I don't know much about bluetooth though.
 
Old 07-24-2013, 08:51 PM   #3
bobsie
LQ Newbie
 
Registered: Apr 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
I know nothing about bluetooth. I had never even heard of hci (which must be an acronym for something, I guess?).
Anyway, no result from hcidump, so I read the manual and decided to try 'hcidump -i 14:89:FD:C8:6C:83' as that appears to be the name of the device I am trying to connect with. Here is the result --

$ hcidump -i 14:89:FD:C8:6C:83
HCI sniffer - Bluetooth packet analyzer ver 2.4
Can't open device: No such device

But the blueman device window shows all three of my devices, and the first one is the tablet with the address as above. So what does it mean when blueman sees the device but hcitool does not? Is it because the device is only paired, and not connected? To what should it be connected?

I wonder, why is bluetooth so easy and automatic on mobile devices running Android, and so impossibly frustratingly difficult on computers running Linux? This is not the first time I have struggled with bluetooth on Linux and given up in battle-scarred defeat. It seems to be about where USB support was around the year 2000!

Another aside; I tried to follow the link to online help in blueman, and discovered that the domain blueman-project.org is parked, so apparently they have given up too...
 
Old 07-24-2013, 09:06 PM   #4
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 160

Rep: Reputation: 3
Oh man, I have never had any luck with bluetooth either. But in my case I can't get the two devices to pair. If you have gotten that far, then the only way I know to use bluetooth is with command-line utilities.

To verify that "14:89:FD:C8:6C:83" is your android device, pop open a command line and run:

hcitool scan

This should return a MAC address and a quick description (my phone returns lg and some numbers) Then use hciconfig to verify the name of you bluetooth device. Mine is hci0.

Finally, try to use rfcomm to connect. Something like

rfcomm connect 14:89:FD:C8:6C:83

Hopefully this along with hcidump can steer you in the correct direction. I probably won't be able to offer a real solution though, sorry.
 
Old 07-24-2013, 09:45 PM   #5
bobsie
LQ Newbie
 
Registered: Apr 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
$ hcitool scan
Scanning ...

That is all I get. But according to the blueman device list I have three devices already paired, and one is connected (a headset, although it still does not work).

With the tablet, when I try to "connect to Network Access Point", I get the message "Connection refused (111)". I have no idea what this means, but it doesn't sound good
 
Old 07-24-2013, 10:05 PM   #6
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 160

Rep: Reputation: 3
What does hciconfig say? Try hciconfig hci0 up to make sure the interface is up. Also I know it sounds silly, but verify that bluetooth is on on your android device.
 
Old 07-24-2013, 11:42 PM   #7
bobsie
LQ Newbie
 
Registered: Apr 2013
Posts: 25

Original Poster
Rep: Reputation: Disabled
It is up and running:-

$ hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 9C:2A:70:4F:10:08 ACL MTU: 1022:8 SCO MTU: 183:5
UP RUNNING PSCAN ISCAN
RX bytes:891 acl:0 sco:0 events:41 errors:0
TX bytes:973 acl:0 sco:0 commands:41 errors:0


Bluetooth is running, and works, on the Android tablet. I have used it to transfer files from a phone, and frequently play audio from it on a bluetooth speaker.
 
Old 07-24-2013, 11:45 PM   #8
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 160

Rep: Reputation: 3
That is quite strange. If bluetooth is up and running and you can't discover the device, I'm curious how blueman-applet sees it and hcitool scan does not. I'm sorry, but I don't have a solution here.
 
Old 11-11-2013, 03:05 AM   #9
bartgymnast
Member
 
Registered: Feb 2003
Location: Lelystad, Netherlands
Distribution: slack 7.1 till latest and -current, LFS
Posts: 262

Rep: Reputation: 87
you will need to update your bluez to v5 most likely.

kernel sees your bluetooth device
and bluez5 will probably fix some issues.
 
Old 11-11-2013, 03:42 AM   #10
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,014

Rep: Reputation: 146Reputation: 146
First of all, if you use Blueman, I'd suggest to turn off KDE bluetooth support. Also please don't forget to enable the file transfer plugin of blueman if you transfer files, and enable PPP support but disable the NMDUN (networkmanager dial-up network) support if you connect to dial-up network with bluetooth.

Quote:
Originally Posted by bobsie View Post
$ hcitool scan
Scanning ...

That is all I get.
Have you set your bluetooth devices (phone, tablet, etc.) "discoverable"?

Quote:
Originally Posted by bobsie View Post
But according to the blueman device list I have three devices already paired
This means the computer will allow the device to connect to the computer, not vice versa. Check on the device if the computer is paired to it.

Quote:
Originally Posted by bobsie View Post
and one is connected (a headset, although it still does not work).
How did you connect? What's meaning of does not work? (What have you done? What did you expect? What did you actually get?)

Quote:
Originally Posted by bobsie View Post
With the tablet, when I try to "connect to Network Access Point", I get the message "Connection refused (111)". I have no idea what this means, but it doesn't sound good
Try refreshing services and / or connect again.

Last edited by guanx; 11-11-2013 at 03:45 AM.
 
  


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
Can't pair with bluetooth dongle - Rejected send message BrutalMusic Linux - Newbie 1 07-05-2013 06:21 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
Bluetooth problem - openSuse 11.2 cant pair phone! abourke Suse/Novell 1 01-24-2010 06:46 AM
How to pair bluetooth devices? JET-33 Linux - Software 1 08-24-2007 11:24 AM


All times are GMT -5. The time now is 11:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration