linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Sony BD Remote (help requested)
@ 2008-11-27  9:54 Simon Kenyon
  2008-11-27 10:56 ` Bastien Nocera
  2008-11-27 10:59 ` Jelle de Jong
  0 siblings, 2 replies; 12+ messages in thread
From: Simon Kenyon @ 2008-11-27  9:54 UTC (permalink / raw)
  To: linux-bluetooth

i'm trying to get y BD Remote to work.

this is what i have done so far:

installed bluez from git (as of yesterday)
configured it (i think)
when i:

hidd --search

i see the remote

by using udev rules i create /dev/bdremote (which links to 
/dev/input/event<x>, for the correct <x>)
i can see the key presses on the remote being transmitted (using hcidump)

what i cannot do see is ny events occuring (by loading evbug)
i'm trying to get the events into lirc

i promise to write up the steps if i get it working

i'm running a pretty standard gentoo setup with kde (not gnome)

any help would be appreciated
--
simon


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Sony BD Remote (help requested)
  2008-11-27  9:54 Sony BD Remote (help requested) Simon Kenyon
@ 2008-11-27 10:56 ` Bastien Nocera
  2008-11-27 23:10   ` Simon Kenyon
  2008-11-27 10:59 ` Jelle de Jong
  1 sibling, 1 reply; 12+ messages in thread
From: Bastien Nocera @ 2008-11-27 10:56 UTC (permalink / raw)
  To: Simon Kenyon; +Cc: linux-bluetooth

On Thu, 2008-11-27 at 09:54 +0000, Simon Kenyon wrote:
> i'm trying to get y BD Remote to work.
> 
> this is what i have done so far:
> 
> installed bluez from git (as of yesterday)
> configured it (i think)
> when i:
> 
> hidd --search
> 
> i see the remote

Your remote won't work using hidd. There's no code in hidd to decode the
custom protocol.

Pair it with the bluetooth-wizard and you can be on your way.

Cheers


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Sony BD Remote (help requested)
  2008-11-27  9:54 Sony BD Remote (help requested) Simon Kenyon
  2008-11-27 10:56 ` Bastien Nocera
@ 2008-11-27 10:59 ` Jelle de Jong
  2008-11-27 11:10   ` Bastien Nocera
  1 sibling, 1 reply; 12+ messages in thread
From: Jelle de Jong @ 2008-11-27 10:59 UTC (permalink / raw)
  To: Simon Kenyon; +Cc: linux-bluetooth

Simon Kenyon wrote:
> i'm trying to get y BD Remote to work.
> 
> this is what i have done so far:
> 
> installed bluez from git (as of yesterday)
> configured it (i think)
> when i:
> 
> hidd --search
> 
> i see the remote
> 
> by using udev rules i create /dev/bdremote (which links to 
> /dev/input/event<x>, for the correct <x>)
> i can see the key presses on the remote being transmitted (using hcidump)
> 
> what i cannot do see is ny events occuring (by loading evbug)
> i'm trying to get the events into lirc
> 
> i promise to write up the steps if i get it working
> 
> i'm running a pretty standard gentoo setup with kde (not gnome)
> 
> any help would be appreciated
> --
> simon

I talked to Marcel about the Sony BD Remote on the CELINUX event in the
Netherlands. I took my Sony BD Remote with me to show some issues.
Marcel did some on the fly coding to get the device connected, but there
is missing an hid driver that maps the keys to an input event xorg can use.

So the device is not working yet, until somebody creates a proper hid
driver for the device to map the keys.

I don't know if Marcel commited the code to make the device connect.

I spent far to much time trying to get this device working, there are a
few bug reports and some post on the archive from me about this subject...

Hope this information helps you understand.

Best regards,

Jelle

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Sony BD Remote (help requested)
  2008-11-27 10:59 ` Jelle de Jong
@ 2008-11-27 11:10   ` Bastien Nocera
  2008-11-27 11:17     ` Jelle de Jong
  0 siblings, 1 reply; 12+ messages in thread
From: Bastien Nocera @ 2008-11-27 11:10 UTC (permalink / raw)
  To: Jelle de Jong; +Cc: Simon Kenyon, linux-bluetooth

On Thu, 2008-11-27 at 11:59 +0100, Jelle de Jong wrote:
<snip>
> I talked to Marcel about the Sony BD Remote on the CELINUX event in the
> Netherlands. I took my Sony BD Remote with me to show some issues.
> Marcel did some on the fly coding to get the device connected, but there
> is missing an hid driver that maps the keys to an input event xorg can use.
> 
> So the device is not working yet, until somebody creates a proper hid
> driver for the device to map the keys.

Should just work with a (very) recent distro:
https://bugs.freedesktop.org/show_bug.cgi?id=16519

This might be missing some keys in the X evdev keyboard map, although I
believe Peter already fixed this.

And it should also just work using LIRC (which is how I got it to work
in the first place). Use gnome-lirc-properties to set it up.

Cheers


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Sony BD Remote (help requested)
  2008-11-27 11:10   ` Bastien Nocera
@ 2008-11-27 11:17     ` Jelle de Jong
  2008-11-27 11:30       ` Bastien Nocera
  0 siblings, 1 reply; 12+ messages in thread
From: Jelle de Jong @ 2008-11-27 11:17 UTC (permalink / raw)
  To: Bastien Nocera; +Cc: Simon Kenyon, linux-bluetooth

Bastien Nocera wrote:
> On Thu, 2008-11-27 at 11:59 +0100, Jelle de Jong wrote:
> <snip>
>> I talked to Marcel about the Sony BD Remote on the CELINUX event in the
>> Netherlands. I took my Sony BD Remote with me to show some issues.
>> Marcel did some on the fly coding to get the device connected, but there
>> is missing an hid driver that maps the keys to an input event xorg can use.
>>
>> So the device is not working yet, until somebody creates a proper hid
>> driver for the device to map the keys.
> 
> Should just work with a (very) recent distro:
> https://bugs.freedesktop.org/show_bug.cgi?id=16519
> 
> This might be missing some keys in the X evdev keyboard map, although I
> believe Peter already fixed this.
> 
> And it should also just work using LIRC (which is how I got it to work
> in the first place). Use gnome-lirc-properties to set it up.
> 
> Cheers

So does it create an input event that I can use with evtest and
xbindkeys --key to add commands to the keys. I really really don't like
all those gnome apps.... to get hardware working, hardware should be
graphical destkop independent configured. A month ago the device was not
working yet.

Best regards,

Jelle

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Sony BD Remote (help requested)
  2008-11-27 11:17     ` Jelle de Jong
@ 2008-11-27 11:30       ` Bastien Nocera
  2008-11-27 15:41         ` Simon Kenyon
  0 siblings, 1 reply; 12+ messages in thread
From: Bastien Nocera @ 2008-11-27 11:30 UTC (permalink / raw)
  To: Jelle de Jong; +Cc: Simon Kenyon, linux-bluetooth

On Thu, 2008-11-27 at 12:17 +0100, Jelle de Jong wrote:
> Bastien Nocera wrote:
> > On Thu, 2008-11-27 at 11:59 +0100, Jelle de Jong wrote:
> > <snip>
> >> I talked to Marcel about the Sony BD Remote on the CELINUX event in the
> >> Netherlands. I took my Sony BD Remote with me to show some issues.
> >> Marcel did some on the fly coding to get the device connected, but there
> >> is missing an hid driver that maps the keys to an input event xorg can use.
> >>
> >> So the device is not working yet, until somebody creates a proper hid
> >> driver for the device to map the keys.
> > 
> > Should just work with a (very) recent distro:
> > https://bugs.freedesktop.org/show_bug.cgi?id=16519
> > 
> > This might be missing some keys in the X evdev keyboard map, although I
> > believe Peter already fixed this.
> > 
> > And it should also just work using LIRC (which is how I got it to work
> > in the first place). Use gnome-lirc-properties to set it up.
> > 
> > Cheers
> 
> So does it create an input event that I can use with evtest and
> xbindkeys --key to add commands to the keys.

That's what the point of the patch was.

>  I really really don't like
> all those gnome apps.... to get hardware working, hardware should be
> graphical destkop independent configured.

And that's what those apps do. If you want to configure the stuff by
hand, be my guest, but don't come complaining to me if you can't figure
out how to setup LIRC.

>  A month ago the device was not
> working yet.

It's working, it can talk to the computer and generates input layer
events. Everything on top is minor niggles, and integration. And that
doesn't just happen out of thin air.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Sony BD Remote (help requested)
  2008-11-27 11:30       ` Bastien Nocera
@ 2008-11-27 15:41         ` Simon Kenyon
  0 siblings, 0 replies; 12+ messages in thread
From: Simon Kenyon @ 2008-11-27 15:41 UTC (permalink / raw)
  To: linux-bluetooth

Bastien Nocera wrote:
> It's working, it can talk to the computer and generates input layer
> events. Everything on top is minor niggles, and integration. And that
> doesn't just happen out of thin air.
>   
i am running code from git which i fetched yesterday
so i have all the patches i believe

what do i have to do the generate input events?
i'm running bluetoothd. do i need to run hid2hci and if so, should the 
option be -0 or -1?

i have bluez-gnome installed. is there any documentation to tell me how 
to run them?
when i run bluetooth-wizard the list of devices is empty


evtest shows no events being generated

i only get an entry in /dev/input/ when i go hidd --search
is there some other way of doing that?


thanks in advance
--
simon

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Sony BD Remote (help requested)
  2008-11-27 10:56 ` Bastien Nocera
@ 2008-11-27 23:10   ` Simon Kenyon
  2008-11-27 23:13     ` Bastien Nocera
  2008-11-28  3:18     ` David Sainty
  0 siblings, 2 replies; 12+ messages in thread
From: Simon Kenyon @ 2008-11-27 23:10 UTC (permalink / raw)
  To: Bastien Nocera; +Cc: linux-bluetooth

Bastien Nocera wrote:
> On Thu, 2008-11-27 at 09:54 +0000, Simon Kenyon wrote:
>   
>> i'm trying to get y BD Remote to work.
>>
>> this is what i have done so far:
>>
>> installed bluez from git (as of yesterday)
>> configured it (i think)
>> when i:
>>
>> hidd --search
>>
>> i see the remote
>>     
>
> Your remote won't work using hidd. There's no code in hidd to decode the
> custom protocol.
>
> Pair it with the bluetooth-wizard and you can be on your way.
>
> Cheers
>
>   
but when i run bluetooth-wizard nothing is shown

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Sony BD Remote (help requested)
  2008-11-27 23:10   ` Simon Kenyon
@ 2008-11-27 23:13     ` Bastien Nocera
  2008-11-28  8:49       ` Simon Kenyon
  2008-11-28  3:18     ` David Sainty
  1 sibling, 1 reply; 12+ messages in thread
From: Bastien Nocera @ 2008-11-27 23:13 UTC (permalink / raw)
  To: Simon Kenyon; +Cc: linux-bluetooth

On Thu, 2008-11-27 at 23:10 +0000, Simon Kenyon wrote:
> Bastien Nocera wrote:
> > On Thu, 2008-11-27 at 09:54 +0000, Simon Kenyon wrote:
> >   
> >> i'm trying to get y BD Remote to work.
> >>
> >> this is what i have done so far:
> >>
> >> installed bluez from git (as of yesterday)
> >> configured it (i think)
> >> when i:
> >>
> >> hidd --search
> >>
> >> i see the remote
> >>     
> >
> > Your remote won't work using hidd. There's no code in hidd to decode the
> > custom protocol.
> >
> > Pair it with the bluetooth-wizard and you can be on your way.
> >
> > Cheers
> >
> >   
> but when i run bluetooth-wizard nothing is shown

Then probably don't even have a bluetooth adapter setup, or no visible
devices around.

To setup the remote:
https://fedoraproject.org/wiki/Documentation/Bluetooth#Remote_controls_.28PS3_Blu-Ray_remote.29


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Sony BD Remote (help requested)
  2008-11-27 23:10   ` Simon Kenyon
  2008-11-27 23:13     ` Bastien Nocera
@ 2008-11-28  3:18     ` David Sainty
  2008-11-28  8:54       ` Simon Kenyon
  1 sibling, 1 reply; 12+ messages in thread
From: David Sainty @ 2008-11-28  3:18 UTC (permalink / raw)
  To: Simon Kenyon; +Cc: Bastien Nocera, linux-bluetooth

Simon Kenyon wrote:
> Bastien Nocera wrote:
>>
>> Pair it with the bluetooth-wizard and you can be on your way.
>>
>> Cheers
>>
>>   
> but when i run bluetooth-wizard nothing is shown

In great excitement I rushed out and bought one of these :)  A Bluetooth 
remote - brilliant!  I might even think about buying a Playstation 3 to 
go with it :)  Infrared is for suckers...

In order to get it into pairing mode (and thus be able to see it from 
bluetooth-wizard) it looks like you need to press *AND HOLD* the "Enter" 
and "Start" buttons at the same time (for something like one second).  
The Fedora Wiki page is lamely unclear about that.

Sadly I can't pair with it yet, pairing fails - for reasons I'll try and 
figure out later...

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Sony BD Remote (help requested)
  2008-11-27 23:13     ` Bastien Nocera
@ 2008-11-28  8:49       ` Simon Kenyon
  0 siblings, 0 replies; 12+ messages in thread
From: Simon Kenyon @ 2008-11-28  8:49 UTC (permalink / raw)
  To: Bastien Nocera; +Cc: linux-bluetooth

Bastien Nocera wrote:
> Then probably don't even have a bluetooth adapter setup, or no visible
> devices around.
>   
but i do.
as i said previously, i can see the key presses coming from the ps3 
remote if i use hcidump
what i don't know is how to configure things to get the events into the 
input subsystem.
do you know what to do?
--
simon

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Sony BD Remote (help requested)
  2008-11-28  3:18     ` David Sainty
@ 2008-11-28  8:54       ` Simon Kenyon
  0 siblings, 0 replies; 12+ messages in thread
From: Simon Kenyon @ 2008-11-28  8:54 UTC (permalink / raw)
  To: David Sainty; +Cc: Bastien Nocera, linux-bluetooth

David Sainty wrote:
> Simon Kenyon wrote:
>> Bastien Nocera wrote:
>>>
>>> Pair it with the bluetooth-wizard and you can be on your way.
>>>
>>> Cheers
>>>
>>>   
>> but when i run bluetooth-wizard nothing is shown
>
> In great excitement I rushed out and bought one of these :)  A 
> Bluetooth remote - brilliant!  I might even think about buying a 
> Playstation 3 to go with it :)  Infrared is for suckers...
>
> In order to get it into pairing mode (and thus be able to see it from 
> bluetooth-wizard) it looks like you need to press *AND HOLD* the 
> "Enter" and "Start" buttons at the same time (for something like one 
> second).  The Fedora Wiki page is lamely unclear about that.
>
> Sadly I can't pair with it yet, pairing fails - for reasons I'll try 
> and figure out later...
>
i did know that thanks

why is this so difficult?

i suspect all these suboptimal solutions like bdremoted are around 
because people having been banging there head against a brick wall have 
mostly given up on doing things the "correct" way and resort to 
"anything that will work"

i really didn't want to do this as my focus was on mythtv, but i will 
have to start hacking the bluetooth system (just like i had to do with 
lirc before)
seems kind of crazy that all the snippets of bluetooth documentation is 
spread all over the place and not on the bluez.org site. oh well.
--
simon

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-11-28  8:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-27  9:54 Sony BD Remote (help requested) Simon Kenyon
2008-11-27 10:56 ` Bastien Nocera
2008-11-27 23:10   ` Simon Kenyon
2008-11-27 23:13     ` Bastien Nocera
2008-11-28  8:49       ` Simon Kenyon
2008-11-28  3:18     ` David Sainty
2008-11-28  8:54       ` Simon Kenyon
2008-11-27 10:59 ` Jelle de Jong
2008-11-27 11:10   ` Bastien Nocera
2008-11-27 11:17     ` Jelle de Jong
2008-11-27 11:30       ` Bastien Nocera
2008-11-27 15:41         ` Simon Kenyon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).