moreil ([info]moreil) wrote,
@ 2008-09-13 08:02:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Happiness
So I did a daring thing, and bought set of Bluetooth headphones for use with my MythTV box.

This is daring, because Bluetooth is a black art to me, and the linux bluetooth implementation has interesting document (in the sense of: there's very few errors in the documentation, because there's very little of it.. )

And so it came to pass that I tried to pair my bluetooth headphones with a linux box. The user interface on the headphone is .. sparse. One button, one flashing light. So when the linux box said "Yay! Paired" and the Headphones said "flash .. flash .. flash", I despaired as the grimore informed me that the headphone was not in fact paired.

It turns out that D-Bus is an excellent and wonderful thing, except when it's not. The hcid (bluetooth daemon) was trying to find something d-bus registered to tell it the PIN for my headphones, and nothing was registered (unsurprising, this is mostly a server). After hacking together a helper agent, all was paired. And there was much rejoicing in the land.

Much fumbling around config files followed with frequent references to the source code (did I mention the documentation?) and it's now mostly automatic.

And so now, I can turn the headphones on, the linux box says "link_key_request (sba=x, dba=y)" and sound stops coming out of the TV and starts coming out of the headphones.

I am in the happiness place.



Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…