At 21.29 01/05/00 +0000, Brad Hards wrote:

>You can get it from the same site that you got the backport patch:
>ftp://ftp.suse.cz/pub/development/input/ - you need evtest.c
>Basically you compile it (gcc -Wall -o evtest evtest.c, or something
>like that)

I'm actually a newbye... I tried, but I obtained the following:
[root@localhost tmp]# gcc -Wall -o evtest evtest.c
In file included from evtest.c:29:
/usr/include/linux/input.h:54: parse error before `__u16'
/usr/include/linux/input.h:54: warning: no semicolon at end of struct or union
/usr/include/linux/input.h:55: warning: data definition has no type or
storage class
/usr/include/linux/input.h:56: parse error before `product'
/usr/include/linux/input.h:56: warning: data definition has no type or
storage class
[root@localhost tmp]#

Which nonsense have I done??:-)

>> - But when I continued to the next step, I obtained the result:
>> [root@localhost /root]# mkdir /dev/usb
>> [root@localhost /root]# mknod /dev/usb/usbmouse0 c 13 32
>> [root@localhost /root]# cat /dev/usb/usbmouse0
>> cat: /dev/usb/usbmouse0: No such device
>OK, probably the mousedev part isn't properly associated with the hid
>and input parts. This is almost certainly a bug in the backport
>(not-exported symbols?). I am sure Vojtech will fix it eventually,
>although most developers seem to be looking to 2.4...
>I noted Harold Oga's suggestion to use modules, which is probably what
>Vojtech tested. Does this fix it?

Yes!! Using modules, either keyboard or mouse work, separately, even if
keep not working if passing through the monitor hub. Here follow
/proc/bus/bus/devices contents, in different configuration:

#Using modules, with only keyboard on USB port
[root@localhost usb]# cat devices
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB OHCI Root Hub
S:  SerialNumber=c4033000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=046e ProdID=6782 Rev=21.10
S:  Manufacturer=BTC
S:  Product=USB Keyboard and Mouse
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 50mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=01 Driver=hid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl= 20ms
I:  If#= 1 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=hid
E:  Ad=82(I) Atr=03(Int.) MxPS=   5 Ivl= 10ms 

#Using modules, with only mouse on USB port
[root@localhost usb]# cat devices
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB OHCI Root Hub
S:  SerialNumber=c4031000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=046d ProdID=c001 Rev= 4.00
S:  Manufacturer=Logitech
S:  Product=N48
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 26mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=hid
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl= 10ms
[root@localhost usb]#
(In this last case (obviously) even cat /dev/usb/usbmouse0 reacts and shows
bizarre characters, as preview)

#Using modules, with only monitor hub on USB port (with mouse and keyboard
connected or disconnected)
[root@localhost usb]# cat devices
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB OHCI Root Hub
S:  SerialNumber=c4033000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=1063 ProdID=1555 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=60 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=255ms

>Use XInput extensions if you only want X support.

OK, perfect, both touchpad and USB mouse works fine.

>> The directory /proc/bus/usb exists, but it is empty in any of the three
>> above configurations I tried.
>Err, did you mount usbdevfs? Try
>mount -t usbdevfs usbdevfs /proc/bus/usb

OK, even if I should mount it manually after having loaded manually
modules. By the way, is it normal that, when I load modules manually, I
should load them in a precise order (usbcore, input, hid, usb-ohci, keybdev
(or mousedev)) for avoiding loading errors and obtain correct working?

>> #keyboard connected to usb port, monitor hub and mouse disconnected
>> usb.c: registered new driver usbdevfs
>> usb.c: registered new driver hub
>> usb.c: registered new driver hid
>> mice: PS/2 mouse device common for all mice
>> PCI: Enabling bus mastering for device 00:a0
>> usb-ohci.c: USB OHCI at membase 0xc4000000, IRQ 5
>> usb.c: new USB bus registered, assigned bus number 1
>> usb.c: USB new device connect, assigned device number 1
>> hub.c: USB hub found
>> hub.c: 2 ports detected
>> (...)
>> usb.c: USB new device connect, assigned device number 2
>> keybdev.c: Adding keyboard: input0
>> event0: Event device for input0
>> input0: USB HID v1.00 Keyboard
>> mouse0: PS/2 mouse device for input1
>> keybdev.c: Adding keyboard: input1
>> event1: Event device for input1
>> input1: USB HID v1.00 device
>>
>> ...and, wonderful, the keyboard works very fine!
>Has this keyboard got a mouse socket on it? Or is this the touchpad? Or
>is some kind of multimedia / web keyboard? That should (somewhat) work
>too - try the evtest on input1 with the keyboard plugged in

Indeed, the keyboard has a PS\2 mouse port. And this may be a momentary
solution, waiting for monitor hub working: I plug the keyboard in the USB
port, a PS/2 mouse in the keyboard PS/2 port (one plug less to connect and
disconnect when I take the laptop away and back home:-)), and load both
keyboard and mouse modules. It works really fine, even if mouse is quite
slow if I switch to Win98: worse for it!

Thank you Brad, Harold and Randy for your kind and careful help!
Stefano

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to