|
2008-02-29
, 14:54
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#32
|
evrouter /dev/input/event*
The Following User Says Thank You to Benson For This Useful Post: | ||
|
2008-02-29
, 21:33
|
Posts: 101 |
Thanked: 54 times |
Joined on Jul 2007
|
#33
|
|
2008-03-01
, 04:27
|
Posts: 23 |
Thanked: 2 times |
Joined on Aug 2007
|
#34
|
#!/bin/sh killall evrouter mouse_poll rm /tmp/.evrouter\:0.0 for devfile in /dev/input/event*; do sudo /bin/chmod a+r $devfile done mouse_poll `evrouter /dev/input/event* |head -6 | grep Mouse| cut -d: -f2`& while [ "x`grep Mouse /proc/bus/input/devices`" != x ]; do sleep 10 done killall evrouter mouse_poll
evrouter -D /dev/input/events*
|
2008-03-04
, 20:05
|
Posts: 12 |
Thanked: 2 times |
Joined on Mar 2008
|
#35
|
The Following User Says Thank You to mikebell For This Useful Post: | ||
|
2008-03-07
, 17:23
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#36
|
Yes, I have got mouse working on my N800 with OS2008.
Problems about Benson's script:
1,There cannot contain blanks before "sudo".Code:#!/bin/sh killall evrouter mouse_poll rm /tmp/.evrouter\:0.0 for devfile in /dev/input/event*; do sudo /bin/chmod a+r $devfile done mouse_poll `evrouter /dev/input/event* |head -6 | grep Mouse| cut -d: -f2`& while [ "x`grep Mouse /proc/bus/input/devices`" != x ]; do sleep 10 done killall evrouter mouse_poll
2, I think "head -6" isn't necessary. Sometimes, my mouse has been recognized, but there are more than 6 devices connected to my N800.
3, "Mouse" may not be a key word of your mouse devices. You can firstly use following command to find your own word to replace "Mouse":
This command will list all of your input devices, and you can find a appropriate word to describe your mouse.Code:evrouter -D /dev/input/events*
Thanks for Benson providing compiled evrouter, mouse_poll and script!
The Following User Says Thank You to Benson For This Useful Post: | ||
|
2008-03-08
, 21:04
|
Posts: 101 |
Thanked: 54 times |
Joined on Jul 2007
|
#37
|
|
2008-03-08
, 21:59
|
Posts: 101 |
Thanked: 54 times |
Joined on Jul 2007
|
#38
|
|
2008-03-09
, 09:15
|
Posts: 23 |
Thanked: 2 times |
Joined on Aug 2007
|
#39
|
|
2008-03-10
, 15:33
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#40
|
Evrouter reports 'touchpad' or similar strings, so I replaced mouse with sth. that identifies it better - but it doesn't work :-(
Can you tell me if your programs are a workaround against the not included mouse support in the kernel / x-server?
So would be a solution via a kernel /x-server modification support probably more (touchpad) devices ?
Hi Benson,
I connected a chesen USB to PS/2 converter to my ps/2 keyboard/trackball combination (cherry ml4400).
evrouter reports the chesen usb adapter as:
NOKIA:/home/user ROOT#evrouter /dev/input/event*
device 0: /dev/input/event0: Internal keyboard
device 1: /dev/input/event1: retu-pwrbutton
device 2: /dev/input/event2: retu-headset
device 3: /dev/input/event3: TSC2301 touchscreen
device 4: /dev/input/event4: CHESEN PS2 to USB Converter
device 5: /dev/input/event5: CHESEN PS2 to USB Converter
mouse_poll works fine on event5 if I call mouse_poll 5 directly.
So in your script I have to modify the last grep, too, because
cat /proc/bus/input/devices
says
-----
....
I: Bus=0003 Vendor=0a81 Product=0205 Version=0110
N: Name="CHESEN PS2 to USB Converter"
P: Phys=usb-musb_hdrc-1/input0
S: Sysfs=/class/input/input4
H: Handlers=kbd event4
B: EV=120003
B: KEY=10000 7 ff800000 7ff febeffdf ffefffff ffffffff fffffffe
B: LED=7
I: Bus=0003 Vendor=0a81 Product=0205 Version=0110
N: Name="CHESEN PS2 to USB Converter"
P: Phys=usb-musb_hdrc-1/input1
S: Sysfs=/class/input/input5
H: Handlers=kbd mouse0 event5
B: EV=7
B: KEY=1f001f 0 20000 3878 d801d101 1e0000 0 0 0
B: REL=103
------
So I modify your script to grep for mouse0 and it works.
Sorry, I follow your instruction, but mouse still cannot work.
evrouter and mouse+poll could work, and no error message.
Here, I list what I do:
1, write following code to /home/user/.verouterrc
5, Running mouse.sh, and I got following message in xterm:
Could you help me?
Last edited by casparmin; 2008-02-29 at 09:13.