Problem with input device

Kristian Høgsberg krh at bitplanet.net
Thu Jun 3 15:15:18 PDT 2004


Joe Shaw wrote:
> On Wed, 2004-06-02 at 14:32 -0400, Bill Nottingham wrote:
> 
>>Well, all of the input devices are in /proc/bus/input/devices; so you
>>can determine keyboard/ps2-mouse/touchpad, etc.
> 
> 
> Ah, good call.  I often forget about /proc because it's evil and I hate
> it. :)  Ideally it'd all by in sysfs but hey, what can you do.
> 
> Kristian, if you want to whip up a patch to parse
> /proc/bus/input/devices, that'd be fine by me.

I'll give it a shot.  I think all of the /proc info is also available 
from ioctls on the device files, I'll use that instead of parsing.

I was thinking about just changing the input class accept function from 
class_device_accept() to a custom accept function that accepts even if 
there is no sysfs device.  How far would that get me?

Kristian

_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list