tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Suggestions for reporting remote control button presses to userland



Iain Hibbert wrote:
On Tue, 7 Oct 2008, Jared D. McNeill wrote:

I have a 24-button IR remote control here that I want to use with NetBSD.

There is a Sony Bluetooth remote (intended for the PS/3) that would be
neat to be able to use also. I didn't look into it but there was some
mention on the freebsd bluetooth list a while ago.

I have one, they are very nice indeed.

My driver decodes the key presses, but I don't know how to deliver them
to userland. wskbd seems a bit heavy, and even if there was an easier
way I'm not sure how I would represent a button named eg. "DVD menu" or
"Guide" with wskbd.

how do keyboards (or computers) with 'media buttons' work?  If they
translate into some kind of keycode then I think a remote control should
probably just do that also.. (it is a key press on a board of keys :)

It looks like the USB HID spec has provisions for this type of thing:

``
The HID class consists primarily of devices that are used by humans to control the operation of computer systems. Typical examples of HID class devices include:
[..]
Controls that might be found on devices such as telephones, VCR remote
controls, games or simulation devices—for example: data gloves, throttles, steering wheels, and rudder pedals.
''

It would be nice of there was a uhidev compatible layer that any driver could implement..

Cheers,
Jared


Home | Main Index | Thread Index | Old Index