View previous topic :: View next topic |
Author |
Message |
Paapaa l33t
Joined: 14 Aug 2005 Posts: 955 Location: Finland
|
Posted: Sun Apr 16, 2006 9:53 pm Post subject: Difference between /dev/input/mouse0, event1 and mice? |
|
|
What is the actual difference between these:
/dev/input/mouse0
/dev/input/mice
/dev/input/event1
It seems that mouse0 and mice produce the exact same output with cat. Event1 produce slightly different output. But obviously they all are mouse device nodes. Can I get rid of unused ones? I only have one mouse. "cat /proc/bus/input/devices" gives:
I: Bus=0011 Vendor=0002 Product=0002 Version=0070
N: Name="PS2++ Logitech MX Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 event1
B: EV=7
B: KEY=ff0000 0 0 0 0 0 0 0 0
B: REL=103
So there is no "mice" listed in Handlers. Why is that? |
|
Back to top |
|
|
Ferdinando Veteran
Joined: 25 Nov 2003 Posts: 1027 Location: Gaeta (LT) - Italy
|
Posted: Sun Apr 16, 2006 9:56 pm Post subject: |
|
|
mice is for handling more than one mouse simultaneously (e.g. touchpad and usb mouse on laptops); mouse and event are two different kernel interfaces to the device.
Bye _________________ La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997 |
|
Back to top |
|
|
Paapaa l33t
Joined: 14 Aug 2005 Posts: 955 Location: Finland
|
Posted: Mon Apr 17, 2006 8:50 am Post subject: |
|
|
Ferdinando wrote: | mice is for handling more than one mouse simultaneously (e.g. touchpad and usb mouse on laptops); |
Ok.
Ferdinando wrote: | mouse and event are two different kernel interfaces to the device. |
Ok, but why does cat produce slightly different output? And is there any difference which one I use in X? |
|
Back to top |
|
|
Ferdinando Veteran
Joined: 25 Nov 2003 Posts: 1027 Location: Gaeta (LT) - Italy
|
Posted: Mon Apr 17, 2006 9:06 am Post subject: |
|
|
Paapaa wrote: | Ok, but why does cat produce slightly different output? And is there any difference which one I use in X? |
Well, the two are different, in output too; I read somewhere that the event interface (CONFIG_INPUT_EVDEV), which is relatively new, is meant to be the default one in the future, so you may want to use that. Still, for a normal ps2 mouse the old interface (CONFIG_MOUSE_PS2) is probably still the best one, since it's more tested and in many cases has better response times.
In X you only need to specify the appropriate protocol: if I recall correctly, "event" for the first and "ps/2" or "imps/2" for the second one.
Bye _________________ La risposta, non la devi cercare fuori, la devi cercare dentro di te: e però è SBAGLIATA!
-- Corrado Guzzanti, "Pippo Chennedy Show", 1997 |
|
Back to top |
|
|
|
|
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
|
|