mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Tony Howat <tony@i-r-genius.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Reading ati_remote keypresses in userland
Date: Sat, 2 Oct 2004 20:09:24 +0200	[thread overview]
Message-ID: <20041002180923.GA4290@elf.ucw.cz> (raw)
In-Reply-To: <20041002135118.M79981@i-r-genius.com>

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!

  reply	other threads:[~2004-10-02 18:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-02 13:58 Tony Howat
2004-10-02 18:09 ` Pavel Machek [this message]
2004-10-02 21:18 Tony Howat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041002180923.GA4290@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony@i-r-genius.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome