Re: Enable addition function keys

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

 



Hi David,

On Mon, May 16, 2011 at 09:54:49PM +0200, David Christen wrote:
> I have a custom made keyboard with 48 Function keys attached to an embedded
> PC running on a RISC CPU. With hid module in the kernel the regular part of
> the keyboard (i.e. all letters, num pad and Fxx keys up to F12) are working
> perfectly fine. However with the additional keys I don't get any events in
> /dev/input/event0. This is the same behavior as found on a regular Linux PC
> and also under Windows. Although the manufacturer of the keyboard confirmed
> that those keys do send proper HID codes (0x68 to 0x8b for F13 to F48).
> I don't have any experience in programming on the Kernel level. Could you
> maybe direct me in how to get the input events of those keys running?
> 

Even though the usage codes are not mapped you should be able to map
them yourself using EVIOCSKEYCODE ioctl. See udev sources for how to
adjust keymaps on input devices.

We have F1 through F24 keycode defines, but no F25-F48 (nor do I want to
add these since userspace would not really know what to do with these,
they are device-specific); you'll have to pick some standard ones that
match the functions you want to assign to your extended keys.

Hope this helps.

-- 
Dmitry
--
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