IR Keycodes and X
- From: Darren Salt <linux (at) youmustbejoking.demon.co.uk>
- Date: Fri, 12 May 2006 00:42:39 +0100
I demand that Malcolm V may or may not have written...
> I'm creating a patch for the Winfast DTV2000H, the remote it comes with has
> 49 keys with 48 keycodes (it has two stop buttons). I notice that current
> remotes use a lot of keycodes which return a value above 255 (eg KEY_RADIO,
> which is 0x181 (385)). Whilst this works fine for console apps, my version
> of X doesn't allow keyvalues over 255, so I can't use a simple xmodmap
> overlay to access these keypresses.
[snip]
> There is so much redirection already involved in the process of going from
> gpio to keypress to X kbd mapping to X scancode, etc that I don't really
> want to involve lirc in the mix, but perhaps that is a mistake, thoughts?
Three options, AFAICS.
* Use LIRC anyway. irexec, irxevent etc. immediately become available.
* Remap the scan codes (from userspace). You'll need input-utils.
* Alter permissions on the relevant input device node(s) so that users can
gain direct access to them. (udev does this for DVB IR input devices, at
least in Debian testing/unstable.)
--
| Darren Salt | linux or ds at | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
| + Buy less and make it last longer. INDUSTRY CAUSES GLOBAL WARMING.
You've got my dried frog pills and I want them back.
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list