Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cat /proc/bus/input/devices
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
beppu
n00b
n00b


Joined: 17 Mar 2003
Posts: 9
Location: SoCal

PostPosted: Sat Oct 09, 2004 8:24 pm    Post subject: cat /proc/bus/input/devices Reply with quote

I've been told that people using 2.6 kernels are being encouraged to use /sys instead of /proc whenever possible.

I'd like to do that, BUT I haven't been able to figure out the equivalent of this simple cat statement in /proc:

Code:
cat /proc/bus/input/devices


which gives me information like:

Code:
I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
H: Handlers=event0 kbd
B: EV=40001
B: SND=6

I: Bus=0011 Vendor=0002 Product=0001 Version=0000
N: Name="PS/2 Generic Mouse"
P: Phys=isa0060/serio1/input0
H: Handlers=mouse0 event1
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0001 Product=0001 Version=ab54
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
H: Handlers=event2 kbd
B: EV=120003
B: KEY=4 2000000 3802078 f840d001 f2ffffdf ffefffff ffffffff fffffffe
B: LED=7

I: Bus=0003 Vendor=0428 Product=4001 Version=0200
N: Name="Gravis GamePad Pro USB "
P: Phys=usb-0000:00:09.1-1/input0
H: Handlers=js0 event3
B: EV=b
B: KEY=3ff0000 0 0 0 0 0 0 0 0 0
B: ABS=100 3


Where do I have to look in /sys to get information like that. For my purposes, the most important piece of information is the handlers and then the name. Everything after that would be gravy.

Thanks in advance.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum