Opened 11 years ago

Closed 11 years ago

#35 closed defect (fixed)

mouse stops working with 188

Reported by: abwillis Owned by: somebody
Priority: major Component: basedrv
Version: Keywords:
Cc:

Description

With versions prior to 188 were ok. The mouse actually does work when plugged into the laptop directly but not when plugged into the port replicator. Plugged in a 8G stick into the port replicator and it can be accessed just fine. USBDock and USBResmanager both see the mouse when plugged into the port replicator. They show the same as when I plug it into the machine itself. There is a beep when I boot with the mouse plugged into the port replicator and there is also one whenever I unplug it or plug it back into the port replicator. It does not beep when plugged directly into the laptop. I don't know how to tell if the port it is plugged into is using the UHCI or the EHCI driver. There are 6 ports for the UHCI and 2 for EHCI.

Attachments (1)

trace.zip (84.2 KB) - added by abwillis 11 years ago.
Trace

Download all attachments as: .zip

Change History (16)

comment:1 Changed 11 years ago by abwillis

From Resource manager: <<< Device Description >>>

Type : 01 USB Rev : 110 Class : Reserved (0) Subclass : Reserved (0) Protocol : Reserved (0)

Device Information is defined at interface Level

Max. packetsize : 08 Vendor ID : 046D Product ID : C404 Device Release# : 0220 Strings:

Manufacturer Name : Logitech Product Name : Trackball Serial number : Not implemented

Number of Configurations : 1

Configuration 0 :

Lenght : 34 Name : <NONE> Value : 1 Attributes : 0xA0 Power : 100 mA Interfaces : 1

Interface 0

Alt Setting : 0 Name : <NONE> Class : Human Interface Device (HID) SubClass? : Boot Interface Subclass Protocol : Mouse Endpoints : 1 HID Description:

Length : 09 HID Rel. Number : 110 Country Code : 0000 Descriptors : 1

Type : 22 Length : 0 Type : 07 Length : 0

Endpoint 0:

Address : 81 Attributes : 03 Packetsize : 0008 Interval : 10

comment:2 Changed 11 years ago by abwillis

From USBDock: USB Dock: Logitech TrackMan? Wheel Identifier: 046d:c404

<<< Device Description >>> Type :01 USB Rev :110 Class : Reserved (0x00) Subclass : Unknown (0x00) Protocol : Unknown (0x00) Device Information is defined at interface Level Max. packetsize :8 Vendor ID :0x046D Product ID :0xC404 Device Release# :0220 Number of Configurations:1

Configuration: 0 Length : 34 ConfigurationValue? : 1 Attributes : 0xA0 MaxPower? : 0x32 NumInterfaces? : 1

Interface: 0 AlternateSetting? : 0 Class : Human Interface Device (0x03) SubClass? : Boot Interface Subclass (0x01) Protocol : Mouse (0x02) Endpoints : 1

HID revision : 0110 HID descriptors : 1 HID report type : 0x22 HID report length : 103

Endpoint: 0 Address : 0x81 Attributes : 0x03 (Irq) MaxPacketSize? : 8 Interval : 10

comment:3 Changed 11 years ago by Lars Erdmann

What is a port replicator ? Do you mean a USB hub ?

Exchange, one after the other, USBEHCD.SYS, USBUHCD.SYS, USBD.SYS against the 10.162 versions. Let me know which combination fixes the problem. I suspect the error to be in USBEHCD.SYS. You are not using USBOHCD.SYS, correct ?

comment:4 Changed 11 years ago by abwillis

Port replicator... often miscalled a docking station. This link has a picture of one but it is not this model that I have but will show what I mean: http://www.jr.com/lenovo/pe/LEN_433615W/ The difference in a port replicator and a docking station is that a docking station can add such peripherals as Video card, harddrive, and CD (not via USB but IDE and pci connections - I haven't kept up to see if they still actually make them with SATA drives etc.). There is no ohci in use.

comment:5 Changed 11 years ago by abwillis

I had returned to 187 where everything was working. I replaced usbehcd.sys from 188 and it stopped working. Replaced usbehcd from 187 and replaced everything else from 188 and it works so it is a change in usbehcd.sys of 188.

comment:6 Changed 11 years ago by abwillis

This issue still exists with the just released 189.

comment:7 Changed 11 years ago by Lars Erdmann

try doug.zip from Ticket #45. Follow the instructions given there.

comment:8 Changed 11 years ago by abwillis

Hmm, I had been getting emails on updates but did not on this last one. I'll test it.

comment:9 Changed 11 years ago by abwillis

I tried doug.2.zip (if you want I'll go back to the doug.zip). I also have now built USB from the latest svn and am still having an issue. I found a ps2->usb converter (has mouse and keyboard connections) that does work when connected to the dock. Another model of ps2->usb adapter did not work, as the trackball does not work. Everything is shown in the usbdock and resource manager fine and works fine when connected to the laptop directly. I've been trying to backout changes that would affect usbehcd that occurred between ,187 and .188 release but have not had any success with that so far.

Changed 11 years ago by abwillis

Attachment: trace.zip added

Trace

comment:10 Changed 11 years ago by abwillis

It'll be Monday before I can test the Trackball but I have a keyboard that was also not working and it now works with this change:

Index: ehci/ehcirq.c
===================================================================
--- ehci/ehcirq.c	(revision 757)
+++ ehci/ehcirq.c	(working copy)
@@ -575,6 +575,7 @@
 
    KernRequestExclusiveMutex16(&g_UsbrbMutex);
 
+   ioRB->lastTD->next_qTD = NULL;
    UnallocateTDs(ioRB->firstTD, TRUE, ELEMENT_TYPE_TOBEDEL); // release TDs chain
    UnallocateUsbrbData(ioRB->usbrb_numb);

comment:11 Changed 11 years ago by abwillis

This same line (ioRB->lastTD->next_qTD = NULL;) was also removed from two location in ehcaccio.c (also followed by the same two lines that follow it here. I initially had also replaced them there as well and it worked. I removed those two and left just the one in ehcirq.c and it is still working (for the keyboard anyhow).

comment:12 Changed 11 years ago by abwillis

It was removed in changeset 627 (r627). The checkin did not specify why it was being removed so I don't know if it broke something else or ...

comment:13 Changed 11 years ago by abwillis

Verified with another USB keyboard that this helps it too.

comment:14 Changed 11 years ago by abwillis

Verified the change does allow the Logitech Trackman Trackball to work while plugged into the dock.

comment:15 Changed 11 years ago by abwillis

Resolution: fixed
Status: newclosed

Corrected in changeset 770, released as 10.190.

Note: See TracTickets for help on using tickets.