Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB Mouse Problems [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
CrEsPo
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2005
Posts: 130
Location: Canada

PostPosted: Tue Sep 05, 2006 4:03 pm    Post subject: USB Mouse Problems [SOLVED] Reply with quote

I've been trying to get my USB mouse to install for about a day now. I've had no luck so I thought I'd post.

xorg.conf
Code:

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "USB" "CorePointer"
        InputDevice    "TouchPad" "AlwaysCore"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

. . .

Section "InputDevice"
        Identifier  "USB"
        Driver      "mouse"
        Option      "Protocol" "auto"
        Option      "Device" "/dev/input/mice"
        Option      "Buttons" "9"
        Option      "ZAxisMapping" "4 5"
EndSection


I used that configuration on my recent 64-bit installation of Gentoo, it works for the touchpad, but the USB does not work anymore. Unless I'm missing something my kernel configuration seems correct:

MOUSE
Code:

cat .config | grep MOUSE
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1280
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1024
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_USB_IDMOUSE is not set


USB
Code:

# V4L USB devices
# CONFIG_USB_DSBR is not set
# CONFIG_USB_VICAM is not set
# CONFIG_USB_IBMCAM is not set
# CONFIG_USB_KONICAWC is not set
# CONFIG_USB_ET61X251 is not set
# CONFIG_USB_OV511 is not set
# CONFIG_USB_SE401 is not set
# CONFIG_USB_SN9C102 is not set
# CONFIG_USB_STV680 is not set
# CONFIG_USB_W9968CF is not set
# CONFIG_USB_ZC0301 is not set
# CONFIG_USB_PWC is not set
# CONFIG_USB_DABUSB is not set
# USB devices
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_USX2Y is not set
# USB support
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set
# Miscellaneous USB options
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_SUSPEND is not set
# CONFIG_USB_OTG is not set
# USB Host Controller Drivers
CONFIG_USB_EHCI_HCD=y
# CONFIG_USB_EHCI_SPLIT_ISO is not set
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_OHCI_HCD is not set
CONFIG_USB_UHCI_HCD=y
# CONFIG_USB_SL811_HCD is not set
# USB Device Class drivers
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
# may also be needed; see USB_STORAGE Help for more information
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_USBAT is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_STORAGE_ALAUDA is not set
# CONFIG_USB_LIBUSUAL is not set
# USB Input Devices
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_USB_HIDINPUT_POWERBOOK is not set
# CONFIG_USB_HIDDEV is not set
# CONFIG_USB_AIPTEK is not set
# CONFIG_USB_WACOM is not set
# CONFIG_USB_ACECAD is not set
# CONFIG_USB_KBTAB is not set
# CONFIG_USB_POWERMATE is not set
# CONFIG_USB_TOUCHSCREEN is not set
# CONFIG_USB_YEALINK is not set
# CONFIG_USB_XPAD is not set
# CONFIG_USB_ATI_REMOTE is not set
# CONFIG_USB_ATI_REMOTE2 is not set
# CONFIG_USB_KEYSPAN_REMOTE is not set
# CONFIG_USB_APPLETOUCH is not set
# USB Imaging devices
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# USB Network Adapters
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_USBNET is not set
# CONFIG_USB_ZD1201 is not set
# CONFIG_USB_MON is not set
# USB port drivers
# CONFIG_USB_USS720 is not set
# USB Serial Converter support
# CONFIG_USB_SERIAL is not set
# USB Miscellaneous drivers
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_AUERSWALD is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_PHIDGETKIT is not set
# CONFIG_USB_PHIDGETSERVO is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TEST is not set
# USB DSL modem support
# USB Gadget Support
# CONFIG_USB_GADGET is not set


I've tryed setting 'X11_USBMICE_HACK=true' in '/etc/conf.d/usb', but that also doesn't work. I also tried using different drivers such as evdev, but they all fail. Any ideas on what could be the problem?


Last edited by CrEsPo on Sun Sep 10, 2006 1:37 am; edited 1 time in total
Back to top
View user's profile Send private message
Fallen_Angel
n00b
n00b


Joined: 13 Sep 2004
Posts: 57
Location: Germany

PostPosted: Wed Sep 06, 2006 8:42 pm    Post subject: Reply with quote

Try gpm first so you can be sure it is not your xorg-config.

http://www.gentoo-portage.com/sys-libs/gpm

this one is setup in my xorg.conf for usb-mouse

Code:


# Identifier and driver

    Identifier  "Mouse1"
    Driver      "mouse"
    Option "Protocol"    "IMPS/2"
    Option "Device"      "/dev/input/mice"
    Option          "Emulate3Buttons"       "true"
    Option          "ZAxisMapping"          "4 5"
...


and this for my touchpad(synaptics)
Code:

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "synaptics"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
...

_________________
Building an operation system without soruce code,
is like buying a self assemble space shuttle without
instructions.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Wed Sep 06, 2006 8:52 pm    Post subject: Reply with quote

I think you need CONFIG_USB_IDMOUSE.

I installed a new system recently, and for the first time tried to get X working in Gentoo. There seemed to be several changes in the kernel which weren't like that a couple months ago. One was the IDE disk driver being gone, and the other involved the mouse. I think they became non-automatic very recently.

Anyway, I had the same problem you did, my mouse would not work. I have almost exactly the same settings as yours, except the IDMOUSE one.
Back to top
View user's profile Send private message
CrEsPo
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2005
Posts: 130
Location: Canada

PostPosted: Wed Sep 06, 2006 10:37 pm    Post subject: Reply with quote

Concerning CONFIG_USB_IDMOUSE, I looked at that earlier, but didn't think it had anything to do with my problem because it's labeled as "Siemens ID USB Mouse Fingerprint sensor support" and is described as:

Code:

_Professional_, which has not been tested with this driver,             x 
  x but uses the same sensor and may therefore work.                        x 
  x                                                                         x 
  x This driver creates an entry "/dev/idmouseX" or "/dev/usb/idmouseX",    x 
  x which can be used by, e.g.,"cat /dev/idmouse0 > fingerprint.pnm".


I'll give it a try anyway, you just never know with computers these days :P.

As for gpm, I already had it installed and launched it with the command 'gpm -m /dev/input/mice -t imps2' and the USB mouse did not work. I also tried different drivers, but they all produced the same output.

Thanks for the replies, I appreciate them both. I'm going out for a little so wont have time to test out CONFIG_USB_IDMOUSE right now, but I'll post back on that soon. Any other suggestions/input are welcome.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Wed Sep 06, 2006 11:47 pm    Post subject: Reply with quote

Somewhere in the documentation, there's a troubleshooting tip where you cat /dev/mouse or something like that, and when you move the mouse around garbage comes out on the terminal. If you get garbage, your mouse driver works. If not, then you need to fix your kernel.

Here's what I have:
Code:

egrep -i '^config.*(usb|mouse)' .config
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1280
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=1024
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=y
CONFIG_MOUSE_SERIAL=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_STORAGE=y
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_IDMOUSE=y
Back to top
View user's profile Send private message
CrEsPo
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2005
Posts: 130
Location: Canada

PostPosted: Thu Sep 07, 2006 1:56 am    Post subject: Reply with quote

Well, IDMOUSE didn't work, like I suspected.

Thanks for reminding me about the 'cat' option, I forgot to post about it in my first post. What I noticed was I don't get any characters when doing 'cat /dev/input/mice', the problem is I don't get any characters even with my working mouse. I know it's supposed to produce output, but for some reason the working mouse isn't producing any output at all, which is weird because on my Gentoo 64 bit install it was producing output. This leads me to believe I'm missing something big in the kernel somewhere, because why else would I get no output from a working mouse?

Thanks for posting your config, after taking a look at it I realize I have the exact same thing, with the exception of having 'CONFIG_INPUT_MOUSEDEV_PSAUX=y', which is support for older mice.

<i>edit: I just forgot to mention I tried making mousedev a module, but that did not work either.</i>
Back to top
View user's profile Send private message
Insanity5902
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1228
Location: Fort Worth, Texas

PostPosted: Thu Sep 07, 2006 1:58 pm    Post subject: Reply with quote

Here is my server layout

Code:
Section "ServerLayout"
        Identifier     "Server Layout"
        Screen         "Screen0" 0 0
        InputDevice    "Mouse1" "CorePointer"
        InputDevice    "USBMouse" "SendCoreEvents"
        InputDevice    "Keyboard1" "CoreKeyboard"
EndSection


Mouse1 is my touchpad, try switching it to CorePointer, and then have the USB be SendcoreEvents

For reference, here are the configs for the two mice
Code:
Section "InputDevice"
        Identifier  "Mouse1"
        Driver      "synaptics"
        Option      "Device" "/dev/input/mice"
        Option      "Protocol" "auto-dev"
...


Code:
Section "InputDevice"
        Identifier      "USBMouse"
        Driver          "mouse"
        Option  "Protocol"      "auto"
        Option  "Device"        "/dev/input/mice"
        Option  "ZAxisMapping"  "4 5"
EndSection


It looks like everything is set okay in your kernel. The main points are the event inteferace, and USB HID support.
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2569

PostPosted: Thu Sep 07, 2006 3:29 pm    Post subject: Reply with quote

Do you have a /dev/input/mouse0?

I turned on a whole bunch of stuff in the kernel in hopes of getting it to work. When it worked, I went on to something else because I had to get my system running. One of these days I'll try to narrow down what really needs to happen on my system.

For what it's worth, until you figure out which device the mouse is hooked to, screwing with your X config is pointless and can only make things worse.

I just checked, mouse0 and mice both produce output in my system. You're missing something in your kernel, or a device isn't loaded, or something. Maybe it has to do with something not USB or MOUSE specific?
Back to top
View user's profile Send private message
CrEsPo
Tux's lil' helper
Tux's lil' helper


Joined: 15 Mar 2005
Posts: 130
Location: Canada

PostPosted: Sat Sep 09, 2006 9:08 pm    Post subject: Reply with quote

Thanks for the replies and sorry for such a late reply. I got busy suddenly and couldn't really work on anything. I have other stuff to do soon, but once done I decided I'm going to run genkernel and see if I can get it working with a generated kernel. If so I can comapre the two and see if I have anything missing from my manually configured kernel. I'll post back the results, by the way, I have the following in '/dev/input':

Code:

event0  event1  mice  mouse0


None of those produces an output from the 'cat' command, but I'm still able to use my touchpad using '/dev/input/mice'.

<i>edit: Well, I finally solved it :D. Before going to try genkernel I decided to compile it myself one last time. I added a couple things, but I think the major thing was 'CONFIG_USB_ARCH_HAS_OHCI=y', I didn't have it compiled in or as a module, but I think that's the one that made everything click. Even though one of my previous posts states that it was compiled in, with make menuconfig I didn't see it as compiled it. No wonder we couldn't get anywhere with the .config, it was lying to me :o.</i>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum