lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4B179F19.60108@redhat.com>
Date:	Thu, 03 Dec 2009 09:20:57 -0200
From:	Mauro Carvalho Chehab <mchehab@...hat.com>
To:	Jon Smirl <jonsmirl@...il.com>
CC:	Jarod Wilson <jarod@...sonet.com>,
	Trent Piepho <xyzzy@...akeasy.org>,
	Dmitry Torokhov <dmitry.torokhov@...il.com>,
	Jarod Wilson <jarod@...hat.com>,
	Devin Heitmueller <dheitmueller@...nellabs.com>,
	Maxim Levitsky <maximlevitsky@...il.com>, awalls@...ix.net,
	j@...nau.net, khc@...waw.pl, linux-input@...r.kernel.org,
	linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
	lirc-list@...ts.sourceforge.net, superm1@...ntu.com,
	Christoph Bartelmus <lirc@...telmus.de>
Subject: Re: [RFC v2] Another approach to IR

Jon Smirl wrote:
> On Wed, Dec 2, 2009 at 11:13 PM, Jarod Wilson <jarod@...sonet.com> wrote:
>> On Dec 2, 2009, at 9:48 PM, Trent Piepho wrote:
>> ...
>>>>>> Now I understand that if 2 remotes send completely identical signals we
>>>>>> won't be able to separate them, but in cases when we can I think we
>>>>>> should.
>>>>> I don't have a problem with that, if its a truly desired feature.  But
>>>>> for the most part, I don't see the point.  Generally, you go from
>>>>> having multiple remotes, one per device (where "device" is your TV,
>>>>> amplifier, set top box, htpc, etc), to having a single universal remote
>>>>> that controls all of those devices.  But for each device (IR receiver),
>>>>> *one* IR command set.  The desire to use multiple distinct remotes with
>>>>> a single IR receiver doesn't make sense to me.  Perhaps I'm just not
>>>>> creative enough in my use of IR.  :)
>>> Most universal remotes I'm familiar with emulate multiple remotes.  I.e.
>>> my tv remote generates one set of scancodes for the numeric keys.  The DVD
>>> remote generates a different set.  The amplifier remote in "tv mode"
>>> generates the same codes as the tv remote, and in "dvd mode" the same codes
>>> as the dvd remote.  From the perspective of the IR receiver there is no
>>> difference between having both the DVD and TV remotes, or using the
>>> aplifier remote to control both devices.
>> Okay, in the above scenario, you've still got a single input device...
>>
>>> Now, my aplifier remote has a number of modes.  Some control devices I
>>> have, like "vcr mode", and there is nothing I can do about that.  Some,
>>> like "md mode" don't control devices I have.  That means they are free to
>>> do things on the computer.  Someone else with the same remote (or any
>>> number of remotes that use the same protocol and scancodes) might have
>>> different devices.
>>>
>>> So I want my computer to do stuff when I push "JVC MD #xx" keys, but ignore
>>> "JVC VCR #yyy" yets.  Someone with an MD player and not a VCR would want to
>>> opposite.  Rather than force everyone to create custom keymaps, it's much
>>> easier if we can use the standard keymaps from a database of common remotes
>>> and simply tell mythtv to only use remote #xxx or not to use remote #yyy.
>> Sure, but the key is that this can't be done automagically. The IR driver has no way of knowing that user A wants JVC MD keys handled and JVC VCR keys ignored, and user B wants vice versa, while user C wants both ignored, etc. This is somewhat tangential to whether or not there's a separate input device per "remote" though. You can use multiple remotes/protocols with a single input device or lirc device already (if the hardware doesn't have to be put explicitly into a mode to listen for that proto, of course, but then its a hardware decoding device feeding a single input device anyway, so...).
>>
>>> It sounds like you're thinking of a receiver that came bundled with a
>>> remote and that's it.  Not someone with a number of remotes that came with
>>> different pieces of AV gear that they want to use with their computer.
>> No, I just pick *one* remote and use it for everything, not schizophrenically hopping from one remote to another, expecting them all the be able to control everything. :) Its a hell of a lot easier to find buttons w/o looking at the remote if you always use the same one for everything, for one.
>>
>> Anyway, I think I'm talking myself in circles. Supporting multiple remotes via multiple input devices (or even via a single input device) isn't at all interesting to me for my own use, but if there really is demand for such support (and it appears there is), then fine, lets do it.
> 
> Simple use case:
> 
> You have a multifunction remote. Press the CABLE key - it sends out
> commands that control the cable box, press the TV key - now the
> commands control the TV, press CD - now the CD player, etc.
> 
> Now imagine a headless Linux box running a music server and a home
> automation app. Press the CD key - commands get routed to the music
> server, press the AUX key - commands get routed to the home automation
> app.
> 
> This is accomplished by recognizing the device code part of the IR
> signal and figuring out that there are two different device codes in
> use. The commands of then routed to two evdev devices corresponding to
> the two different device codes.
> 
> Using things like Alt-Tab to switch apps is impossible. There's no
> screen to look at.

This usecase makes sense to me.

With the risk of repeating myself, you don't have two physical remotes.
The needed feature is a way to split one source of input events (that
happens to be an infrared remote, but it could also be any other type of input
device, like a bluetooth remote) into several different evdev interfaces,
based on scancode groups. 

Also, as you're thinking on 64 bits scancodes, this also means that the
current evdev KABI and API will require changes to support bigger scancodes.

Anyway, IMO, this subject should be handled as a different requirement than
integrating the lirc drivers.

Cheers,
Mauro.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ