Improving Puppyserialdetect

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

Improving Puppyserialdetect

#1 Post by Dougal »

I have modified the Puppyserialdetect code a bit, to help up detect ALL kinds of mice and also (hopefully) to solve some of the serial-mice detection problems…

Please try running it and see how it works.

It should give output of the following form:

Code: Select all

Type:PS2-mouse|Port:/dev/input/mice

Code: Select all

Type:USB-mouse|Port:/dev/input/mice

Code: Select all

Type:SERIAL-mouse|Port:/dev/ttyS0
(the modem output should remain as before)

Note1: Yes, I know ps/2 shows "input/mice" and not "psaux" like Barry uses in the rc.local0 file, but linking input/mice worked with my ps/2 mouse! (it might show a different port for ps/2, but in my case it was input/mice)

Note2: I tried booting my computer with a serial mouse with the old puppyserialdetect and it detected it fine, but when I tried running puppyserialdetect again in a terminal it returned nothing!
So if you encounter such behaviour, it's not unique to my version.

Note3: If you don't have a serial mouse, you should not put my version into /usr/sbin, as any non-serial mice will be mis-detected by your current rc.local script!


Technical info:
- I have enabled the USB and ps/2 code that Barry skipped, since we are now using a 2.6 kernel (…).
- I have moved the serial-mouse detection out of the mouse_detect function and into the serial_detect function -- I put it before the modem-detection.
Advantages:
1) Running the USB and ps/2 scan code can be done before the serial devices (no dependency on results of serial_detect).
2) The serial-mouse code is run before the serial-modem code! I have evidence of at least one case where running puppyserialdetect with a certain modem took nearly 2 minutes! This way we can hopefully detect the mouse before puppyserialdetect is killed at the timeout limit.
- I have commented out some code in the serial_detect function (just before Barry's "bkspeed") which doesn't seem to look for anything we're interested in. (this can be uncommented for recompiling and shouldn't affect any of my other changes)

Disclaimer: I don't know C, so don't complain about my dirty code… (theoretically we could change the mouse_detect code to not need that whole array of info about serial-devices, as it doesn't detect them anymore… it just seems a lot of work with no real gain.)


Below are tarballs with the binary and the modified source.

Ps - Maybe we should rename this app? It's not just serialdetect anymore… I also thought of enabling USB modem detection, but it doesn't find the device (just port=USB) so I didn't know if it would be very helpful).
Last edited by Dougal on Sun 12 Apr 2009, 09:40, edited 2 times in total.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#2 Post by Sit Heel Speak »

@Dougal: forgive my ignorance, but...when I unpack it, make it executeable, and run it from /root/puppyserialdetect in an xterm console window...

...it trundles a few seconds, but there is no output. I am simply returned to the command prompt.

Do I need to run it from elsewhere?

Or, is this meant as an included script, to be started from within one of Puppy's boot-time scripts?

User avatar
capoverde
Posts: 232
Joined: Wed 28 Jun 2006, 21:36
Location: Sanremo (Italy) with fine seaview

#3 Post by capoverde »

At first the same happened to me, but when I specified the full path (for me /root/puppyserialdetect-all-mice/puppyserialdetect) it worked correctly, showing the output

"Type:PS2-mouse|Port:/dev/input/mice"

for about three seconds.

You probably opened a terminal in the "puppyserialdetect-all-mice" directory then executed the script from there, just as I did: but then it's the old script with the same name that is called, which gives no screen output! :roll:
___________________________
When you feel very smart, get concerned: it's the distinctive symptom of all victims of stupidity.

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#4 Post by Jesse »

Hi,

I did a bit of tidying of the source code, reduced unnecessary code, fixed up the debugging statements, added a -d to command line.
Includes a normal binary, and a static linked one for initial ram disk functionality.
It should run from anywhere... fingers crossed that it does all the same stuff as what it did before, but I really expect it will.

Jesse

1.1b outdated, scroll down for 1.1e
Attachments
puppyserialdetect-1.1b.tar.gz
(30.57 KiB) Downloaded 1241 times
Last edited by Jesse on Thu 10 May 2007, 14:59, edited 2 times in total.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#5 Post by Dougal »

Great job, Jesse.

Now we need more people to test this and see if it detects their mouse correctly!!

SHS: it's really strange that it gave nothing in your case. I don't know about using the full path, I just opened a terminal in the right directory and typed

Code: Select all

./puppyserialdetect
Oh, and it's not a script...
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#6 Post by Sit Heel Speak »

Dougal wrote:./puppyserialdetect
Ah. I forgot the small detail of the ./ before the command.

Both new puppyserialdetect's (the -static version in Jesse's case) now detect my ps2 mouse, showing (in Jesse's):

sh-3.00# ./puppyserialdetect-static
Type:PS2-mouse|Port:/dev/input/mice

However, neither version detects a cordless usb mouse plugged-in simultaneously, even if the cordless usb mouse is present before the computer is booted. Puppy responds to both mice.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#7 Post by Dougal »

I have just updated the attachment in the first post -- recompiled with Jesse's cleaned-up code.

Please will people start testing this? Batter try now than have detection problems when you try and boot 2.16!

SHS: what do you mean plugged in simultaniously? I wonder if it's listed in the file in /proc where the mouse is listed... but in any case you can only "detect" one mouse, so it doesn't matter...

Have you tried the USB alone? If then it isn't detected it's a problem.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#8 Post by Sit Heel Speak »

Dougal wrote:SHS: what do you mean plugged in simultaneously? I wonder if it's listed in the file in /proc where the mouse is listed... but in any case you can only "detect" one mouse, so it doesn't matter...

Have you tried the USB alone? If then it isn't detected it's a problem.
Picture:

http://tinypic.com/4i6f1ow.png

The laptop is running 2.01r2 from the usb stick, with a usb cordless mouse plugged in beside it. The little red "eraser head" in the middle of the keyboard is the "Trackpoint" which acts like (and is detected as) a ps/2 mouse. Puppy responds to both.

(2.01r2 because 2.15CE is too big of a memory hog for this measly 256MB computer).

The laptop's screen shows a second instance, a picture of the rear of another computer, a tower, into which both a ps2 mouse and a usb mouse are plugged-in simultaneously. Puppy 2.15CE on that computer responds to both mice, and your puppyserialdetect detects only the ps2 mouse. If I boot this other computer into Puppy 2.15CE with only the usb mouse plugged in, then puppyserialdetect does not detect the mouse, it merely sends me back to the bash prompt.

Unfortunately I cannot open /proc in 2.15CE; Rox locks up.

I can check in 2.01r2 to see where both mice are listed, if you will clue me in on where to look.

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#9 Post by Jesse »

Hi,

When I have two usb mice plugged in I get two mice detected from puppyserialdetect, so it should work, perhaps this is a bug with the original too? hopefully I diddn't introduce a bug, sorry if I did.


The detection of USB/PS2 mice is from info in this file:

cat /proc/bus/input/devices

can you copy the section from your PS2 mouse? it should look something like this:

I: Bus=0003 Vendor=046d Product=c00e Version=1100
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:02.0-10/input0
S: Sysfs=/class/input/input3
H: Handlers=mouse1
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

I'll check that the source code will parse and detect it propperly.

Jesse

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#10 Post by Sit Heel Speak »

@Jesse and Dougal:

For the tower computer:

Procedure:
--2.15CE live-DVD, first booted with puppy pfix=ram,
--then, Jesse's puppyserialdetect-1[1].1b.tar.gz unpacked to /tmp
--puppyserialdetect-static copied to (overwriting) /usr/sbin/puppyserialdetect...
--the machine was shut down, with creation of a new pup_save.2fs...
--powered off and rebooted for each mouse case, loading the pup_save:


--booted with just a ps2 mouse plugged in:

Code: Select all

I: Bus=0011 Vendor=0002 Product=0002 Version=0051
N: Name="PS2++ Logitech Wheel Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

sh-3.00# puppyserialdetect
Type:PS2-mouse|Port:/dev/input/mice
sh-3.00#

--booted with just a corded usb mouse plugged in:

Code: Select all

I: Bus=0003 Vendor=03ee Product=6402 Version=0105
N: Name="Mitsumi Mitsumi Quick Scroll Mouse (USB)"
P: Phys=usb-0000:00:04.2-1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

sh-3.00# puppyserialdetect
sh-3.00#

--booted with just a cordless usb mouse plugged in:

Code: Select all

I: Bus=0003 Vendor=046d Product=c501 Version=0910
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:04.2-1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=103

sh-3.00# puppyserialdetect
sh-3.00#

--booted with both the above ps2 mouse and the corded usb mouse plugged in :

Code: Select all

I: Bus=0011 Vendor=0002 Product=0002 Version=0051
N: Name="PS2++ Logitech Wheel Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

I: Bus=0003 Vendor=03ee Product=6402 Version=0105
N: Name="Mitsumi Mitsumi Quick Scroll Mouse (USB)"
P: Phys=usb-0000:00:04.2-1/input0
S: Sysfs=/class/input/input2
H: Handlers=mouse1 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

sh-3.00# puppyserialdetect
Type:PS2-mouse|Port:/dev/input/mice
Type:USB-mouse|Port:/dev/input/mice
sh-3.00#
--booted with both the above ps2 mouse and the cordless usb mouse plugged in :

Code: Select all

I: Bus=0011 Vendor=0002 Product=0002 Version=0051
N: Name="PS2++ Logitech Wheel Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

I: Bus=0003 Vendor=046d Product=c501 Version=0910
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:04.2-1/input0
S: Sysfs=/class/input/input2
H: Handlers=mouse1 
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=103

sh-3.00# puppyserialdetect
Type:PS2-mouse|Port:/dev/input/mice
sh-3.00# 

--booted with just the two usb mice plugged in (corded on top port, cordless on bottom):

Code: Select all

I: Bus=0003 Vendor=03ee Product=6402 Version=0105
N: Name="Mitsumi Mitsumi Quick Scroll Mouse (USB)"
P: Phys=usb-0000:00:04.2-1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

I: Bus=0003 Vendor=046d Product=c501 Version=0910
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:04.2-2/input0
S: Sysfs=/class/input/input2
H: Handlers=mouse1 
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=103

sh-3.00# puppyserialdetect
Type:USB-mouse|Port:/dev/input/mice
sh-3.00# 

--booted with a ps2 mouse and both the usb mice plugged in (corded on top port, cordless on bottom):

Code: Select all

I: Bus=0011 Vendor=0002 Product=0002 Version=0051
N: Name="PS2++ Logitech Wheel Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

I: Bus=0003 Vendor=03ee Product=6402 Version=0105
N: Name="Mitsumi Mitsumi Quick Scroll Mouse (USB)"
P: Phys=usb-0000:00:04.2-1/input0
S: Sysfs=/class/input/input2
H: Handlers=mouse1 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

I: Bus=0003 Vendor=046d Product=c501 Version=0910
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:04.2-2/input0
S: Sysfs=/class/input/input3
H: Handlers=mouse2 
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=103

sh-3.00# puppyserialdetect
Type:PS2-mouse|Port:/dev/input/mice
Type:USB-mouse|Port:/dev/input/mice
sh-3.00# 

--booted with cordless usb mouse plugged into ps2 port using usb-to-ps2 adapter:

Code: Select all

I: Bus=0011 Vendor=0002 Product=0006 Version=0038
N: Name="ImExPS/2 Logitech Explorer Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=143

sh-3.00# puppyserialdetect
Type:PS2-mouse|Port:/dev/input/mice
sh-3.00# 

--booted with corded usb mouse plugged into ps2 port using usb-to-ps2 adapter:

Code: Select all

--Puppy does not respond to mouse.
--no entry for mouse in /proc/bus/input/devices.
sh-3.00# puppyserialdetect
sh-3.00# 


IBM Thinkpad T21 laptop booting 2.01r2, puppyserialdetect not modified:
--booted with no mouse plugged in (just using the Trackpoint):

Code: Select all

I: Bus=0011 Vendor=0002 Product=000a Version=0000
N: Name="TPPS/2 IBM TrackPoint"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

sh-3.00# puppyserialdetect
sh-3.00# 

--booted with cordless usb mouse plugged into usb2 pcmcia adapter:

Code: Select all

I: Bus=0011 Vendor=0002 Product=000a Version=0000
N: Name="TPPS/2 IBM TrackPoint"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input1
H: Handlers=mouse0 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0003 Vendor=046d Product=c501 Version=0910
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:02:00.1-1/input0
S: Sysfs=/class/input/input2
H: Handlers=mouse1 
B: EV=7
B: KEY=1f0000 0 0 0 0 0 0 0 0
B: REL=103

sh-3.00# puppyserialdetect
sh-3.00#
HTH,
Sandman time here, back in 18,
SHS

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#11 Post by Jesse »

Hi Sit Heel Speak,

Oh my gosh! :shock: the parsing code was done in a very dubious way.
I have fixed it up and it correctly detects every instance that you posted for, including my computers ones too.

Attached is latest update, with correct compiled binaries too :)

Jesse

1.1c outdated, scroll down for 1.1e
Attachments
puppyserialdetect-1.1c.tar.gz
(26.58 KiB) Downloaded 1287 times
Last edited by Jesse on Thu 10 May 2007, 15:00, edited 2 times in total.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#12 Post by Dougal »

SHS: thanks for all the great info.


Just an hour ago, when writing the new code for rc.local0, I noticed that in the past (when searching for a usb-mouse in /proc/bus/usb/devices), there were mice that were'nt named "mouse", but other things, so I went and looked at the code, since I remembered it only checked for "mouse" or "pad"... but since it checks /proc/input/devices I assumed it's ok.

Jesse: thanks for saving me the work...

i'll message MU to see what his file says.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
Nathan F
Posts: 1764
Joined: Wed 08 Jun 2005, 14:45
Location: Wadsworth, OH (occasionally home)
Contact:

#13 Post by Nathan F »

Give me this with a normal ps2.

Code: Select all

Type:PS2-mouse|Port:/dev/input/mice
I'll boot up with a usb mouse a little later and report that to you.

Nathan
Bring on the locusts ...

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#14 Post by Sit Heel Speak »

@Dougal and Jesse:
Dougal wrote:Just an hour ago, when writing the new code for rc.local0, I noticed that in the past (when searching for a usb-mouse in /proc/bus/usb/devices), there were mice that weren't named "mouse", but other things...
Please examine the thread

http://murga-linux.com/puppy/viewtopic.php?t=17451

where within the last week I have been swinging wildly at the problem MStar is having with the menu in 2.15CE misbehaving (and mtPaint goes into an endless loop as well) with his Microsoft Wireless Optical Desktop 1000 usb keyboard and mouse. Now that the clue is before me that maybe it isn't an xorg.conf problem, but rather perhaps a puppyserialdetect problem...taking my hint from this thread, I requested over there that MStar post his /proc/bus/input/devices, and he has done so.

HTH,
SHS

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#15 Post by Jesse »

Hello,

Heres another update, 1.1d, source code & binaries.

+ FIX: for working with Mstars USB Wireless combo device.

+ ADDED: optional keyboard detection USB/PS2
+ ADDED: easy-use command options
+ ADDED: get specific devices io device file.

Jesse

Code: Select all

sh-3.00# ./puppyserialdetect    
Type:USB-mouse|Port:/dev/input/mice
sh-3.00# ./puppyserialdetect -k
Type:USB-mouse|Port:/dev/input/mice
Type:PS2-kbd|Port:/dev/input/keyboard
sh-3.00# ./puppyserialdetect -ke
Type:USB-mouse|Port:/dev/input/mice|Direct:/dev/input/mouse0|Model:Microsoft Microsoft 3-Button Mouse with IntelliEye(TM)
Type:PS2-kbd|Port:/dev/input/keyboard|Direct:/dev/input/keyboard|Model:AT Translated Set 2 keyboard
sh-3.00# ./puppyserialdetect-testcases -ke
Type:PS2-mouse|Port:/dev/input/mice|Direct:/dev/input/mouse0|Model:PS2++ Logitech Wheel Mouse
Type:USB-mouse|Port:/dev/input/mice|Direct:/dev/input/mouse1|Model:Mitsumi Mitsumi Quick Scroll Mouse (USB)
Type:USB-mouse|Port:/dev/input/mice|Direct:/dev/input/mouse2|Model:Logitech USB Receiver
Type:PS2-mouse|Port:/dev/input/mice|Direct:/dev/input/mouse0|Model:ImExPS/2 Logitech Explorer Mouse
Type:PS2-mouse|Port:/dev/input/mice|Direct:/dev/input/mouse0|Model:TPPS/2 IBM TrackPoint
Type:PS2-mouse|Port:/dev/input/mice|Direct:/dev/input/mouse0|Model:TPPS/2 IBM TrackPoint
Type:USB-mouse|Port:/dev/input/mice|Direct:/dev/input/mouse1|Model:Logitech USB Receiver
Type:PS2-mouse|Port:/dev/input/mice|Direct:/dev/input/mouse0|Model:ImPS/2 Generic Wheel Mouse
Type:USB-mouse|Port:/dev/input/mice|Direct:/dev/input/mice|Model:Microsoft Microsoft Wireless Optical Desktop® 2.10
Type:PS2-kbd|Port:/dev/input/keyboard|Direct:/dev/input/keyboard|Model:AT Translated Set 2 keyboard
Type:USB-kbd|Port:/dev/input/keyboard|Direct:/dev/input/keyboard|Model:Microsoft Microsoft Wireless Optical Desktop® 2.10
sh-3.00# ./puppyserialdetect -? 
Application to detect Mouse/Keyboard on PS2/USB/Serial
and some Serial modems. Uses /proc filesystem and /dev nodes
    command options:
        -d    debugging info
        -k    detect keyboards
        -e    extra info like model name

Original code borrowed and modified from Mandrake & Red Hat
Now: puppyserialdetect, for Puppy, www.puppyos.com

1.1d outdated, scroll down for 1.1e
Attachments
puppyserialdetect-1.1d.tar.gz
(28.59 KiB) Downloaded 1233 times
Last edited by Jesse on Thu 10 May 2007, 15:02, edited 1 time in total.

User avatar
Sit Heel Speak
Posts: 2595
Joined: Fri 31 Mar 2006, 03:22
Location: downwind

#16 Post by Sit Heel Speak »

I'll try the new version about 10 hours from now. I see Mstar's negative report in the other thread, but it is not clear to me whether he rebooted before testing the mouse-menu-action or not. Nor do I know whether it is necessary to reboot, in order for the new puppyserialdetect's sensings to take effect--is it? Presuming that to be a possibility, I gave Mstar instructions to replace /usr/sbin/puppyserialdetect with the new version and then reboot and see if there is any change.

Puppy user jonyo has also posted his /proc/bus/input/devices, over at

http://murga-linux.com/puppy/viewtopic.php?t=17655

It is a 2.15CE, but not the Final-2, puppyserialdetect is unmodified, and his /proc/bus/input/devices appears to suffer a drastic problem (***EDITED no, no drastic problem, just his first attempt at posting it went awry).

Would it serve a useful purpose for me to rerun the above test series on the "d" version?

Cheers,
SHS

jonyo

#17 Post by jonyo »

edit-(oopps just noticed your above note SHS..guess i'll leave mine here for now)

I'm running live cd save file to hard drive 2.15 CE with a combo logitech wifi keyboard & mouse (no drivers afaik). Had some probs with the mouse pointer disappearing from the screen once in a blue moon so plugged in a secondary usb corded mouse to see if it'd still work if I lost the wifi one.

Both mice work at the same time & haven't lost the pointer since, so might be a wifi mouse bug.
http://www.murga-linux.com/puppy/viewtopic.php?t=17655
Dougal wrote: Please will people start testing this? Batter try now than have detection problems when you try and boot 2.16!

SHS: what do you mean plugged in simultaniously? I wonder if it's listed in the file in /proc where the mouse is listed... but in any case you can only "detect" one mouse, so it doesn't matter...

Have you tried the USB alone? If then it isn't detected it's a problem.

User avatar
pakt
Posts: 1157
Joined: Sat 04 Jun 2005, 16:54
Location: Sweden

#18 Post by pakt »

Ok, finally had a chance to try puppyserialdetect-1.1d.tar.gz

I used a laptop with PS/2 mousepad plus these three mice connected:

- Old MS two-button serial mouse
- Logitech Optical USB mouse
- Brand X Optical USB mouse

Running 2.14 - results from within a rxvt terminal (same results running text mode):

Code: Select all

# puppyserialdetect 
Type:PS2-mouse|Port:/dev/input/mice
Type:PS2-mouse|Port:/dev/input/mice
Type:USB-mouse|Port:/dev/input/mice
Type:USB-mouse|Port:/dev/input/mice
Type:SERIAL-mouse|Port:/dev/ttyS0
# 

Code: Select all

# cat /proc/bus/input/devices 
I: Bus=0011 Vendor=0001 Product=0001 Version=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/class/input/input0
H: Handlers=kbd 
B: EV=120013
B: KEY=4 2000000 3802078 f840d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0011 Vendor=0002 Product=0008 Version=0000
N: Name="PS/2 Mouse"
P: Phys=isa0060/serio1/input1
S: Sysfs=/class/input/input1
H: Handlers=mouse0 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0002 Product=0008 Version=7321
N: Name="AlpsPS/2 ALPS GlidePoint"
P: Phys=isa0060/serio1/input0
S: Sysfs=/class/input/input2
H: Handlers=mouse1 
B: EV=f
B: KEY=420 0 70000 0 0 0 0 0 0 0 0
B: REL=3
B: ABS=1000003

I: Bus=0003 Vendor=1267 Product=0210 Version=2270
N: Name="PS/2+USB Mouse"
P: Phys=usb-0000:00:1d.0-1/input0
S: Sysfs=/class/input/input3
H: Handlers=mouse2 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

I: Bus=0003 Vendor=046d Product=c03d Version=2000
N: Name="Logitech USB-PS/2 Optical Mouse"
P: Phys=usb-0000:00:1d.1-1/input0
S: Sysfs=/class/input/input7
H: Handlers=mouse3 
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103

# 
It was interesting to note that I could use both USB mice and the mousepad at the same time :lol: - however the serial mouse didn't react.

Paul
Methinks Raspberry Pi were ideal for runnin' Puppy Linux

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#19 Post by Dougal »

Pakt: the reason the serial mouse worked when the others did is that all the others seem to automatically work with /input/mice, but serial doesn't.

So what you have, in fact, is that /input/mice will work for all modern mice (i.e. no need to do the detection), but serial need to be detected.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

jonyo

#20 Post by jonyo »

Wonder why puppyserialdetect comes up with zip though I have 2 mice working & they show up with
> cat /proc/bus/input/devices <in console.

sh-3.00# puppyserialdetect
sh-3.00#

Post Reply