Skip to contentSkip to conversation

Linux and remote control device

DISCUSSION Francis Moreau 4 participants 9 messages Jan 22, 2008

lore
Share & tools
lore
#0 lore raw

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 !

Signature · 1 line
Francis
#1 lore raw
Quoted 9 lines · Francis Moreau

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.

Quoted 5 lines

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.

Quoted 1 line

- All scancodes are embedded in the kernel.

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

Quoted 1 line

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.

Signature · 2 lines
Vojtech Pavlik
Director SuSE Labs
#2 lore raw
Quoted 20 lines · Vojtech Pavlik
Quoted 9 lines · Francis Moreau

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.

Quoted 5 lines

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.

Quoted 8 lines
Quoted 1 line

- All scancodes are embedded in the kernel.

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

Quoted 1 line

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 ?

Signature · 1 line
Francis
#3 lore raw
Quoted 25 lines · Francis Moreau
Quoted 24 lines · Vojtech Pavlik
Quoted 9 lines · Francis Moreau

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.

Quoted 5 lines

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.

Quoted 1 line

- All scancodes are embedded in the kernel.

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

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

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.

Signature · 2 lines
Vojtech Pavlik
Director SuSE Labs
#4 lore raw
Quoted 32 lines · Vojtech Pavlik
Quoted 30 lines · Francis Moreau
Quoted 28 lines · Vojtech Pavlik
Quoted 9 lines · Francis Moreau

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.

Quoted 5 lines

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.

Quoted 1 line

- All scancodes are embedded in the kernel.

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

Quoted 1 line

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.

Quoted 8 lines
Quoted 3 lines

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

Signature · 1 line
Francis
#5 lore raw
Quoted 7 lines · Francis Moreau
Quoted 3 lines

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

Signature · 2 lines
Vojtech Pavlik
Director SuSE Labs
#6 lore raw
In reply to Francis Moreau
Quoted 3 lines · Francis Moreau

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

#7 lore raw
In reply to Francis Moreau
Quoted 9 lines · Francis Moreau

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.

#8 lore raw
Quoted 5 lines · Chuck Ebbert
Quoted 4 lines · Francis Moreau

Hello,

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

Quoted 8 lines
Quoted 5 lines

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 ?

Signature · 1 line
Francis