LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   USB Mouse -- HELLLLLLLLLLP! :) (https://www.linuxquestions.org/questions/linux-hardware-18/usb-mouse-hellllllllllp-314590/)

JamesGolick 04-18-2005 02:34 PM

USB Mouse -- HELLLLLLLLLLP! :)
 
I bought this little usb mouse for my notebook, but I can't get the thing to work, no matter what I do.

I am running Ubuntu Hoary. 2.6.11. On my desktop, I am running basically hte identical kernel config, and it works fine. When I put the mouse in the usb port of my notebook, tho, nothing shows up in lsusb... if i do -v , it shows that C_Connect on the port, but nothign more. On my desktop, it shows the hardware brand, etc, and even works. The bizarre thing is that my usb flash drive works great.

Help!

Thanks,
James

Thoreau 04-18-2005 02:54 PM

You have to make sure your BIOS can see it first. Most BIOS's disable usb keyboard and mice by default. Enable it.

JamesGolick 04-18-2005 03:11 PM

There's no option for it in my bios.

Also, it works under windoze.

James

gbhil 04-18-2005 03:19 PM

does lsmod show usb HID_core loaded? (not sure of exact module names, but USB, USB HID support both need to be loaded.)

with mouse plugged in run cat /dev/input/mice and see if you get any characters echoed to the console when moving the mouse.

JamesGolick 04-18-2005 03:28 PM

It wasn't loaded, but now it is...still no dice.

I also loaded usbmouse -- nothign

cat /dev/input/mice gets nothing
but neither does /dev/psaux , which is my other mouse...

Is it possible, that for some reason, the usb module won't allow power to the receiver for this mouse? Because when i plug in my desktop keys and mouse i get no power lights on the receiver, and same situation with lsusb, etc. Is there a way to change this?

James

gbhil 04-18-2005 03:45 PM

According to the 2.6.11-7 /Documentation/input/input.txt:


Code:

2. Simple Usage
~~~~~~~~~~~~~~~
  For the most usual configuration, with one USB mouse and one USB keyboard,
you'll have to load the following modules (or have them built in to the
kernel):

        input
        mousedev
        keybdev
        usbcore
        uhci_hcd or ohci_hcd or ehci_hcd
        usbhid

  After this, the USB keyboard will work straight away, and the USB mouse
will be available as a character device on major 13, minor 63:

        crw-r--r--  1 root    root      13,  63 Mar 28 22:45 mice

  This device has to be created, unless you use devfs, in which case it's
created automatically. The commands to do create it by hand are:

        cd /dev
        mkdir input
        mknod input/mice c 13 63

  After that you have to point GPM (the textmode mouse cut&paste tool) and
XFree to this device to use it - GPM should be called like:

        gpm -t ps2 -m /dev/input/mice

  And in X:

        Section "Pointer"
            Protocol    "ImPS/2"
            Device      "/dev/input/mice"
            ZAxisMapping 4 5
        EndSection

  When you do all of the above, you can use your USB mouse and keyboard.

I would make sure the following modules are loaded for your case:
input
mousedev
usbcore
uhci_hcd or ohci_hcd or ehci_hcd
usbhid

The look to see if /dev/input/mice is there. If so, then try the cat /dev/input/mice command again.

JamesGolick 04-18-2005 04:13 PM

okay...maybe we're on to something here.

but i have no mousedev, i tried going to /usr/src/linux/drivers/input/make mousedev

but it fails with a number of errors...
if i have to make-kpkg modules again, what do i change in config to make mousedev compile?

EDIT: I just looked in my config for this kernel, and i build that support in to the kernel...INPUT_MOUSEDEV , that is.

James

JamesGolick 04-18-2005 11:10 PM

bump.........

please help me!!

JamesGolick 04-19-2005 05:25 PM

1 more bump...

gbhil 04-20-2005 05:29 PM

Better late than never...........

I did some experimenting here.
To make my USB mouse work, I either have to have all the required drivers built into the kernel

or

boot WITHOUT the mouse inserted, make sure usb hotplug is running, load the required modules, THEN insert the USB mouse receiver.

kernel 2.4.28 and 2.4.29 DO NOT have this issue, so this leads me to believe it's related to using udev (which I'm using here) dynamic device naming.

In any case, try booting without, modprobe, then insert mouse........see what happens

JamesGolick 04-20-2005 06:03 PM

thanks, but still no luck.

is it possible that input is not loaded? by the soudns of it, i would'nt think that i could have any input without hte "input" module...maybe not?

EDIT: is there any way to check which resources devices are using to determine conflicts?? I think maybe it could be a conflict....

James

JamesGolick 04-21-2005 05:30 PM

bump.

Earl Parker II 04-22-2005 10:14 PM

FWIW I'm having the same problem with a Slack 10.1 box. PS2 mouse works fine but a USB won't. Tomorrow I'm going to try plugging the USB mouse into a PS2 port with an adapter. Yes, if it works it's the easy way out but I just don't have the time to jump through all the hoops. I'll let you know how it comes out.


All times are GMT -5. The time now is 01:55 PM.