lkml.org 
[lkml]   [2004]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Reading ati_remote keypresses in userland
Hi!

> I have an ati_ remote, and the ati_remote module loaded, the 2.2.0 version
> with kernel version 2.6.5-1. It works in that I can see data
> on /dev/input/mice when I use the mouse type controls on the remote. However
> I need to use the keyboardish buttons to control my application.
>
> Having read round it seemed the /dev/input/event devices would be the key. I
> put together some code to find the right event device and dump the output
> from a linux journal article :
>
> The device on /dev/input/event0 says its name is PS/2 Generic Mouse
> The device on /dev/input/event1 says its name is AT Translated Set 2
> keyboard
> The device on /dev/input/event2 says its name is X10 Wireless Technology Inc
> USB Receiver
> evdev driver version is 1.0.0
>
> ...but there's no output turning up when I read from the file descriptor.
> However, running the module in debug mode does give meaningful output to
> /var/log/messages :

You need to read in slightly special way, see for example evtest.

Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:06    [W:0.030 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site