Here is line 191 in rc.local0 that looks for a USB mouse:
This search relies on the various vendor and product strings that start with the 'S: line'.[ ! "`cat /proc/bus/usb/devices 2>/dev/null | grep -i --extended-regexp "mouse|trackball|netscroll|bt mini\-receiver"`" = "" ] && USBMOUSEDEV="input/mice"
From http://www.linux-usb.org/USB-guide/c607.html,
Note the "if any" in the above quote.The lines that start with S:, if any, are the vendor and product strings that the device returned.
Also the 'S:' lines don't neccessarily contain the search words in the script. Here is one example that was posted on the forum
This mouse is not detected because the string is "USB Receiver".T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=c502 Rev=11.40
S: Manufacturer=Logitech
S: Product=USB Receiver
C:* #Ifs= 2 Cfg#= 1 Atr=a0 MxPwr= 50mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=01 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
I: If#= 1 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=01 Prot=02 Driver=usbhid
E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=10ms
A more reliable method of detecting USB mice is to search for 'Cls=03(HID ) Sub=01 Prot=02' as in the example above.
I've done quite a bit of checking on the net and this 'InterfaceClass, InterfaceSubClass and InterfaceProtocol' appears to be reserved for USB mice.
(Note that, in the same way, 'Cls=03(HID ) Sub=01 Prot=01' appears to be reserved for USB keyboards.)
If you are experiencing USB mouse problems with Puppy 2.12, please try the modified rc.local0.
EDIT3: There was a request that USB keyboard detection also be modified in the same way - to look for string 'Cls=03(HID ) Sub=01 Prot=01'.
This has been added as an attachment below.
EDIT2: I have updated the attached file - it also had the single space instead of the required two spaces
Apologies to Kal and others who downloaded the file
EDIT: The forum has changed the spacing in the line, so I've provided the modified rc.local0 below.
Just backup your old /etc/rc.d/rc.local0 to /etc/rc.d/rc.local0_org, unpack the attached file and copy it to /etc/rc.d/
Save the changed file to pup_save.3fs by rebooting. When rebooting is done, check if your USB mouse works.
Please report your successes/failures in this thread.
Paul