Re: Enable addition function keys

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

 



On Tue, May 24, 2011 at 8:03 PM, Thadeu Lima de Souza Cascardo
<cascardo@xxxxxxxxxxxxxx> wrote:
> On Tue, May 24, 2011 at 10:52:38AM -0700, Dmitry Torokhov wrote:
>> On Tue, May 24, 2011 at 07:39:22PM +0200, David Christen wrote:
>> >
>> > Yes, you were right. Please find the corrected file attached.
>> >
>> > But it seems that the behavior is exactly the same.
>> >
>> > The kernel I use is 2.6.33 . It's a debian distro running on a risc processor.
>>
>> I am afraid you need 2.6.38. Or you'll have to backport the following
>> commits:
>>
>> 8613e4c Input: add support for large scancodes
>> ab4e019 Input: define separate EVIOCGKEYCODE_V2/EVIOCSKEYCODE_V2
>> de391d1 Input: fix typo in keycode validation supporting large scancodes
>> a0bf0ea Input: hid-input - switch to using new keycode interface
>> f5854fa Input: hid-input - allow mapping unknown usages
>>
>> --
>> Dmitry
>
> Perhaps, he could try using hidraw interface. Would it be OK for you,
> David? Since you said you are only getting these key events and sending
> them through a serial interface, and I'd say your device portability
> does not include non-HID devices right now, this should solve the
> problem without the need for a kernel upgrade.
>
> Regards,
> Cascardo.
>

Dear Cascardo and Dmitry,

Thank you for the hint with the hidraw. I was briefly looking at this
in the beginning of the project, but I found it was a bit too raw for
my purpose. Well, I was wrong...

Based on the example in the Documentation
(http://ns3.spinics.net/lists/linux-input/msg14216.html), together
with the patch for HIDIOCSFEATURE
(http://choon.net/forum/read.php?21,19545) and the same for
HIDIOCGRAWNAME I was able to first write a small test program and
later last night to actually build it into my software project.

Thank you very much the effort in helping me with this.

Take care,
David
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux