LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   USB Mouse only works when plugged into USB PCI Card (https://www.linuxquestions.org/questions/slackware-14/usb-mouse-only-works-when-plugged-into-usb-pci-card-387179/)

helliax 11-28-2005 02:41 AM

USB Mouse only works when plugged into USB PCI Card
 
My mouse only seems to work when I plug it into a USB 2.0 PCI Card; when I plug the mouse into the ports that are on the motherboard, it's unresponsive, though it does light up (it's an mx510 optical). The odd thing is, when I initially installed Slackware with kernel 2.4 something, it was the same deal. It wasn't until I downloaded kernel 2.6.10 (the one I have now) and compiled it, that it stopped working again.
The only things I can remember between the initial slackware installation and the mosue suddenly working on the motherboard USB ports is that I edited xorg.conf to have /dev/input/mice instead of /dev/mouse.

I ran dmesg, and I can see that it finds a 6 port USB 2.0 hub, another 4 port hub, and a 2 port hub. I am guessing the 6 port is the PCI card, the 4 port is the mobo stuff that's the back panel, and the 2 port is the front panel connectors.

Does anyone know if there's anything else I should check? I downloaded lshw in hopes that it might help, and was gonna try out some other stuff for xorg.conf.

Info in short:
------------------
mouse: Logitech MX510
Current booting Kernel: 2.6.10
Slackware 10.2
Using KDE
Problem: Mouse works when plugged into PCI USB card, but not motherboard's USB connections.

the whole of the InputDevice section is xorg.conf
Code:

Section "InputDevice"
  Driver      "mouse"
  Identifier  "Mouse[1]"
  Option      "ButtonNumber" "7"
  Option      "Buttons" "7"           
  Option      "Device" "/dev/input/mice"
  Option      "InputFashion" "Mouse"
  Option      "Name" "USB-Mouse;ExplorerPS/2"
  Option      "Protocol" "ExplorerPS/2"
  Option      "ZAxisMapping" "6 7"
EndSection

I think I should also mention I run hotplug during boot, since when I disable hotplug the mouse doesn't get picked up (if it gets connected to the PCI card).

Another somewhat related question is, does the "wacom" section in rc.modules help at all if it's activated (uncommented)? I have a Wacom board, and when the mx510 was working on the backpanel mobo USB connections, the wacom magically worked too.Though now since the wacom is still connected to the backpanel, it doesn't work anymore.

Thanks for your help.

Finlay 11-28-2005 05:39 PM

Option "Device" "/dev/mouse"
Option "Protocol" "IMPS/2"

egag 11-28-2005 07:33 PM

can you give the output of " lspci " ?
and the kenel messages when you plug-in the mouse in a working
and non working port ?

( type " tail -f /var/log/messages " in a console and unplug/plug the mouse )

egag

sithscripter 11-29-2005 05:12 AM

I had the same problem with one of my workstations (Dell Optiplex GX280, Intel ICH6 chipset, generic USB optical mouse). Upgrading to some bleeding-edge 2.6 kernel fixed it ... I think 2.6.13 was the lucky number. Oh, and there was some module I had to load explicitly ... I'll look it up when I stagger into the office.

My understanding is that BIOS handles the on-board USB controller during the initial boot phase, and hands control to the kernel only later. Depending on your combo of kernel, USB controller, BIOS, etc. the handover may or may not take place smoothly. I don't know if that's precisely true or not but it makes sense to me. That may explain why you don't have that problem with your PCI USB card.

sithscripter 11-29-2005 06:09 PM

Oh yeah, about those modules ...

Uncomment the following lines in /etc/rc.d/rc.modules ... it might help ...

/sbin/modprobe hid
/sbin/modprobe usbmouse

helliax 11-30-2005 06:08 AM

Changing the protocol and device in xorg.conf didn't help, and neither did editing rc.modules, unfortunately.

Here's the readout from the kernel when plugging an dunplugging mouse:
Code:

Nov 30 06:53:27 agnesi kernel: usb 6-1: USB disconnect, address 2
Nov 30 06:53:32 agnesi kernel: usb 3-1: new low speed USB device using uhci_hcd and address 2
Nov 30 06:53:39 agnesi kernel: usb 3-1: new low speed USB device using uhci_hcd and address 3
Nov 30 06:54:03 agnesi kernel: usb 6-1: new low speed USB device using uhci_hcd and address 3
Nov 30 06:54:04 agnesi kernel: input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:02:00.0-1

And the readout from lspci:
Code:

00:00.0 Host bridge: Intel Corporation 82845 845 (Brookdale) Chipset Host Bridge (rev 11)
00:01.0 PCI bridge: Intel Corporation 82845 845 (Brookdale) Chipset AGP Bridge (rev 11)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation NV25 [GeForce4 Ti 4200] (rev a3)
02:00.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
02:00.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
02:00.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63)
02:01.0 Network controller: Texas Instruments ACX 111 54Mbps Wireless Interface
02:02.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)
02:02.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 04)
02:0c.0 Communication controller: Conexant HSF 56k Data/Fax/Voice/Spkp Modem (rev 01)

Those Intel USB Controllers are the mainboard ones I am pretty sure, so I guess this means they're detected, but for some reason the mouse doesn't work.

Below is the readout from lshw, if it helps anymore:
Code:

:dc680000-dc6fffff irq:11
        *-usb:0
            description: USB Controller
            product: 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1
            vendor: Intel Corporation
            physical id: 1d
            bus info: pci@00:1d.0
            version: 01
            width: 32 bits
            clock: 33MHz
            capabilities: uhci bus_master
            configuration: driver=uhci_hcd
            resources: ioport:e800-e81f irq:11
          *-usbhost
                product: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Contro
ller #1
                vendor: Linux 2.6.10 uhci_hcd
                physical id: 1
                bus info: usb@3
                logical name: usb3
                version: 2.06
                capabilities: usb-1.10
                configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
        *-usb:1
            description: USB Controller
            product: 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2
            vendor: Intel Corporation
            physical id: 1d.1
            bus info: pci@00:1d.1
            version: 01
            width: 32 bits
            clock: 33MHz
            capabilities: uhci bus_master
            configuration: driver=uhci_hcd
            resources: ioport:e880-e89f irq:5
          *-usbhost
                product: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Contro
ller #2
                vendor: Linux 2.6.10 uhci_hcd
                physical id: 1
                bus info: usb@4
                logical name: usb4
                version: 2.06
                capabilities: usb-1.10
                configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
        *-usb:2
            description: USB Controller
            product: 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3
            vendor: Intel Corporation
            physical id: 1d.2
            bus info: pci@00:1d.2
            version: 01
            width: 32 bits
            clock: 33MHz
            capabilities: uhci bus_master
            configuration: driver=uhci_hcd
            resources: ioport:ec00-ec1f irq:9
          *-usbhost
                product: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Contro
ller #3
                vendor: Linux 2.6.10 uhci_hcd
                physical id: 1
                bus info: usb@5
                logical name: usb5
                version: 2.06
                capabilities: usb-1.10
                configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
        *-usb:3
            description: USB Controller
            product: 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller
            vendor: Intel Corporation
            physical id: 1d.7
            bus info: pci@00:1d.7
            version: 01
            width: 32 bits
            clock: 33MHz
            capabilities: ehci bus_master cap_list
            configuration: driver=ehci_hcd
            resources: iomemory:febffc00-febfffff irq:10
          *-usbhost
                product: Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB 2.0 EHCI Controller
                vendor: Linux 2.6.10 ehci_hcd
                physical id: 1
                bus info: usb@1
                logical name: usb1
                version: 2.06
                capabilities: usb-2.00
                configuration: driver=hub maxpower=0mA slots=6 speed=480.0MB/s


helliax 12-05-2005 01:18 AM

It worked, and then it didn't work. I figured it might have been something I forgot to compile into the kernel, perhaps a module or something or other, so I got a new kernel and compiled it, and the mouse finally worked, so I figure it was somethign I forgot to check in the config. Thanks.


All times are GMT -5. The time now is 11:55 AM.