linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux and remote control device
@ 2008-01-22  8:01 Francis Moreau
  2008-01-22  8:19 ` Vojtech Pavlik
  2008-01-22 19:32 ` Chuck Ebbert
  0 siblings, 2 replies; 9+ messages in thread
From: Francis Moreau @ 2008-01-22  8:01 UTC (permalink / raw)
  To: vojtech; +Cc: linux-kernel

Hello,

I'd like to add support for my Infrared remote control to Linux.

So far I only see LIRCD project that make the kernel support
such device but I'm not sure if this project is the best choice
since it's not part of mainline kernels. And there are certainly
good reasons which I'm not aware of.

Another possibility is to make the remote controle device an input
device. But I see several flaws:

- The IR receiver on my board can't be use as a transmitter any
more
- All scancodes are embedded in the kernel.

Do you think it's still the way to go despite the 2 points raised above ?

Thanks !
-- 
Francis

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

* Re: Linux and remote control device
  2008-01-22  8:01 Linux and remote control device Francis Moreau
@ 2008-01-22  8:19 ` Vojtech Pavlik
  2008-01-22  9:47   ` Francis Moreau
  2008-01-22 19:32 ` Chuck Ebbert
  1 sibling, 1 reply; 9+ messages in thread
From: Vojtech Pavlik @ 2008-01-22  8:19 UTC (permalink / raw)
  To: Francis Moreau; +Cc: linux-kernel

On Tue, Jan 22, 2008 at 09:01:10AM +0100, Francis Moreau wrote:
> Hello,
> 
> I'd like to add support for my Infrared remote control to Linux.
> 
> So far I only see LIRCD project that make the kernel support
> such device but I'm not sure if this project is the best choice
> since it's not part of mainline kernels. And there are certainly
> good reasons which I'm not aware of.
> 
> Another possibility is to make the remote controle device an input
> device. But I see several flaws:
> 
> - The IR receiver on my board can't be use as a transmitter any
> more

The input subsystem moves events in both directions. It would need some
additional hacking to work with IR transmitters, but it might be
possible.

> - All scancodes are embedded in the kernel.

While they reside in the kernel, they can be changed from userspace.

> Do you think it's still the way to go despite the 2 points raised above ?

It might be, but I'm not 100% convinced either.

-- 
Vojtech Pavlik
Director SuSE Labs

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

* Re: Linux and remote control device
  2008-01-22  8:19 ` Vojtech Pavlik
@ 2008-01-22  9:47   ` Francis Moreau
  2008-01-22 10:14     ` Vojtech Pavlik
  0 siblings, 1 reply; 9+ messages in thread
From: Francis Moreau @ 2008-01-22  9:47 UTC (permalink / raw)
  To: Vojtech Pavlik; +Cc: linux-kernel

On Jan 22, 2008 9:19 AM, Vojtech Pavlik <vojtech@suse.cz> wrote:
> On Tue, Jan 22, 2008 at 09:01:10AM +0100, Francis Moreau wrote:
> > Hello,
> >
> > I'd like to add support for my Infrared remote control to Linux.
> >
> > So far I only see LIRCD project that make the kernel support
> > such device but I'm not sure if this project is the best choice
> > since it's not part of mainline kernels. And there are certainly
> > good reasons which I'm not aware of.
> >
> > Another possibility is to make the remote controle device an input
> > device. But I see several flaws:
> >
> > - The IR receiver on my board can't be use as a transmitter any
> > more
>
> The input subsystem moves events in both directions. It would need some
> additional hacking to work with IR transmitters, but it might be
> possible.
>
> > - All scancodes are embedded in the kernel.
>
> While they reside in the kernel, they can be changed from userspace.
>
> > Do you think it's still the way to go despite the 2 points raised above ?
>
> It might be, but I'm not 100% convinced either.
>

All your answers sound good however.

Could you please tell me why you're not sure ?

-- 
Francis

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

* Re: Linux and remote control device
  2008-01-22  9:47   ` Francis Moreau
@ 2008-01-22 10:14     ` Vojtech Pavlik
  2008-01-22 10:20       ` Francis Moreau
  0 siblings, 1 reply; 9+ messages in thread
From: Vojtech Pavlik @ 2008-01-22 10:14 UTC (permalink / raw)
  To: Francis Moreau; +Cc: linux-kernel

On Tue, Jan 22, 2008 at 10:47:22AM +0100, Francis Moreau wrote:
> On Jan 22, 2008 9:19 AM, Vojtech Pavlik <vojtech@suse.cz> wrote:
> > On Tue, Jan 22, 2008 at 09:01:10AM +0100, Francis Moreau wrote:
> > > Hello,
> > >
> > > I'd like to add support for my Infrared remote control to Linux.
> > >
> > > So far I only see LIRCD project that make the kernel support
> > > such device but I'm not sure if this project is the best choice
> > > since it's not part of mainline kernels. And there are certainly
> > > good reasons which I'm not aware of.
> > >
> > > Another possibility is to make the remote controle device an input
> > > device. But I see several flaws:
> > >
> > > - The IR receiver on my board can't be use as a transmitter any
> > > more
> >
> > The input subsystem moves events in both directions. It would need some
> > additional hacking to work with IR transmitters, but it might be
> > possible.
> >
> > > - All scancodes are embedded in the kernel.
> >
> > While they reside in the kernel, they can be changed from userspace.
> >
> > > Do you think it's still the way to go despite the 2 points raised above ?
> >
> > It might be, but I'm not 100% convinced either.
> >
> 
> All your answers sound good however.
> 
> Could you please tell me why you're not sure ?

It would still limit the IR ability to sending/receiving "just"
keypresses. You may want to send and receive more (arbitrary data) over
an IR dongle attached to the machine.

-- 
Vojtech Pavlik
Director SuSE Labs

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

* Re: Linux and remote control device
  2008-01-22 10:14     ` Vojtech Pavlik
@ 2008-01-22 10:20       ` Francis Moreau
  2008-01-22 10:43         ` Vojtech Pavlik
  2008-01-22 15:00         ` Lennart Sorensen
  0 siblings, 2 replies; 9+ messages in thread
From: Francis Moreau @ 2008-01-22 10:20 UTC (permalink / raw)
  To: Vojtech Pavlik; +Cc: linux-kernel

On Jan 22, 2008 11:14 AM, Vojtech Pavlik <vojtech@suse.cz> wrote:
>
> On Tue, Jan 22, 2008 at 10:47:22AM +0100, Francis Moreau wrote:
> > On Jan 22, 2008 9:19 AM, Vojtech Pavlik <vojtech@suse.cz> wrote:
> > > On Tue, Jan 22, 2008 at 09:01:10AM +0100, Francis Moreau wrote:
> > > > Hello,
> > > >
> > > > I'd like to add support for my Infrared remote control to Linux.
> > > >
> > > > So far I only see LIRCD project that make the kernel support
> > > > such device but I'm not sure if this project is the best choice
> > > > since it's not part of mainline kernels. And there are certainly
> > > > good reasons which I'm not aware of.
> > > >
> > > > Another possibility is to make the remote controle device an input
> > > > device. But I see several flaws:
> > > >
> > > > - The IR receiver on my board can't be use as a transmitter any
> > > > more
> > >
> > > The input subsystem moves events in both directions. It would need some
> > > additional hacking to work with IR transmitters, but it might be
> > > possible.
> > >
> > > > - All scancodes are embedded in the kernel.
> > >
> > > While they reside in the kernel, they can be changed from userspace.
> > >
> > > > Do you think it's still the way to go despite the 2 points raised above ?
> > >
> > > It might be, but I'm not 100% convinced either.
> > >
> >
> > All your answers sound good however.
> >
> > Could you please tell me why you're not sure ?
>
> It would still limit the IR ability to sending/receiving "just"
> keypresses. You may want to send and receive more (arbitrary data) over
> an IR dongle attached to the machine.
>

Don't know about such devices. The device I actually have, an infrared
remote control, seems simple enough to use the input device model. I
have a wheel on it but I think I can make it work too...

Thanks
-- 
Francis

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

* Re: Linux and remote control device
  2008-01-22 10:20       ` Francis Moreau
@ 2008-01-22 10:43         ` Vojtech Pavlik
  2008-01-22 15:00         ` Lennart Sorensen
  1 sibling, 0 replies; 9+ messages in thread
From: Vojtech Pavlik @ 2008-01-22 10:43 UTC (permalink / raw)
  To: Francis Moreau; +Cc: linux-kernel

On Tue, Jan 22, 2008 at 11:20:53AM +0100, Francis Moreau wrote:

> > It would still limit the IR ability to sending/receiving "just"
> > keypresses. You may want to send and receive more (arbitrary data) over
> > an IR dongle attached to the machine.
> 
> Don't know about such devices. The device I actually have, an infrared
> remote control, seems simple enough to use the input device model. I
> have a wheel on it but I think I can make it work too...
 
Yes, wheel isn't a problem. I should have said 'input events'.

-- 
Vojtech Pavlik
Director SuSE Labs

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

* Re: Linux and remote control device
  2008-01-22 10:20       ` Francis Moreau
  2008-01-22 10:43         ` Vojtech Pavlik
@ 2008-01-22 15:00         ` Lennart Sorensen
  1 sibling, 0 replies; 9+ messages in thread
From: Lennart Sorensen @ 2008-01-22 15:00 UTC (permalink / raw)
  To: Francis Moreau; +Cc: Vojtech Pavlik, linux-kernel

On Tue, Jan 22, 2008 at 11:20:53AM +0100, Francis Moreau wrote:
> Don't know about such devices. The device I actually have, an infrared
> remote control, seems simple enough to use the input device model. I
> have a wheel on it but I think I can make it work too...

My IR receiver and remote also do mouse events.  The Imon Pad.

So yes such devices exist.

--
Len Sorensen

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

* Re: Linux and remote control device
  2008-01-22  8:01 Linux and remote control device Francis Moreau
  2008-01-22  8:19 ` Vojtech Pavlik
@ 2008-01-22 19:32 ` Chuck Ebbert
  2008-01-22 20:01   ` Francis Moreau
  1 sibling, 1 reply; 9+ messages in thread
From: Chuck Ebbert @ 2008-01-22 19:32 UTC (permalink / raw)
  To: Francis Moreau; +Cc: vojtech, linux-kernel

On 01/22/2008 03:01 AM, Francis Moreau wrote:
> Hello,
> 
> I'd like to add support for my Infrared remote control to Linux.
> 
> So far I only see LIRCD project that make the kernel support
> such device but I'm not sure if this project is the best choice
> since it's not part of mainline kernels. And there are certainly
> good reasons which I'm not aware of.
> 

lirc is being worked on and is nearly ready for upstream submission.


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

* Re: Linux and remote control device
  2008-01-22 19:32 ` Chuck Ebbert
@ 2008-01-22 20:01   ` Francis Moreau
  0 siblings, 0 replies; 9+ messages in thread
From: Francis Moreau @ 2008-01-22 20:01 UTC (permalink / raw)
  To: Chuck Ebbert; +Cc: vojtech, linux-kernel

On Jan 22, 2008 8:32 PM, Chuck Ebbert <cebbert@redhat.com> wrote:
> On 01/22/2008 03:01 AM, Francis Moreau wrote:
> > Hello,
> >
> > I'd like to add support for my Infrared remote control to Linux.
> >
> > So far I only see LIRCD project that make the kernel support
> > such device but I'm not sure if this project is the best choice
> > since it's not part of mainline kernels. And there are certainly
> > good reasons which I'm not aware of.
> >
>
> lirc is being worked on and is nearly ready for upstream submission.
>

Really ?

I'm wondering why lirc doesn't use the input subsystem, do you have any ideas ?

-- 
Francis

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

end of thread, other threads:[~2008-01-22 20:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-22  8:01 Linux and remote control device Francis Moreau
2008-01-22  8:19 ` Vojtech Pavlik
2008-01-22  9:47   ` Francis Moreau
2008-01-22 10:14     ` Vojtech Pavlik
2008-01-22 10:20       ` Francis Moreau
2008-01-22 10:43         ` Vojtech Pavlik
2008-01-22 15:00         ` Lennart Sorensen
2008-01-22 19:32 ` Chuck Ebbert
2008-01-22 20:01   ` Francis Moreau

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).