Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bluetooth: command-line equivalent to bluetoothctl commands?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fdelente
n00b
n00b


Joined: 04 Oct 2012
Posts: 40

PostPosted: Tue Feb 18, 2014 3:36 pm    Post subject: Bluetooth: command-line equivalent to bluetoothctl commands? Reply with quote

Hello,

Thanks to the push to bluez-5 and pulseaudio 4.99, I can now again use my bluetooth headset with my gentoo.

To connect the headset, I have to start bluetoothctl in a terminal, and the connect to the device with its MAC address.

Since bluetoothctl only works in interactive mode, I can't script it to automatically connect with the push of a button (e.g. in a GTK GUI).

I have search info on how to do it but can't find anything, the doc. included with bluez is very dry and I find it hard to find any info on Bluetooth in general.

Does something like sdptool, or rfcomm, can establish the connection to the headset? I read the manpages but they don't seem to mention the fact.

Thanks for any help.
Back to top
View user's profile Send private message
ferg
Guru
Guru


Joined: 15 Nov 2002
Posts: 457
Location: Cambridge, UK

PostPosted: Thu Feb 20, 2014 10:03 am    Post subject: Reply with quote

I have a similar problem. I have a Gentoo box that runs as a HTPC (running Mythfrontend and XBMC).

It uses an Apple bluetooth keyboard. This has worked fine for quite a few years now.

Recently after a power cut the keyboard stopped working. The only way to get it back is to start Bluetoothctl and run

Code:
power on


Then the keyboard works fine.

Of course since I need to use SSH to get to the HTPC to do that it makes for a poor televisual experience for anybody who does not know what ssh is!

I cannot even remember how I setup this keyboard (that's the trouble about stuff that works. When i does not you don;t know when/why it went bad! :-)

Any pointers please?

Thanks!
_________________
Climb up it, kayak down it + make sure it runs on GNU/Linux
"cease to exist, giving my goodbye, drive my car into the ocean,
you think I'm dead, but i sail away, on a wave of mutilation!"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum