Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No USB Mouse. Apparently non 'xorg.conf' related...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Treppiede
n00b
n00b


Joined: 10 Feb 2006
Posts: 12
Location: Miami, FL

PostPosted: Tue Apr 18, 2006 10:50 pm    Post subject: No USB Mouse. Apparently non 'xorg.conf' related... Reply with quote

Good Evening Gentlemen,
I tried getting my USB Optical mouse to work with my Laptop (Toshiba Tecra M3 - Centrino Sonoma based) without luck.

I am running Fluxbox, and both the Touchpad and the Pointer (the M3 has both) work fine.
I have searched the Forum and made sure to use the xorg.conf suggested in this thread, with no luck.
I then started to suspect that my mouse was not being seen at all, so I proceeded to verify the following:
- It lights up on the bottom
- I am unable to recognize it if I do dmesg | grep USB but...
- ...if I run lsusb it does show the following:
Quote:
Bus 002 Device 003: ID 046d:c016 Logitech, Inc. M-UV69a Optical Wheel Mouse

If useful, here is the .config file I used to recompile my kernel. I 'borrowed' it from Pavuk, which is a guy that got his M3 running almost perfectly with Gentoo. For those users that use the Search link, here I link to his site since it's full of good information for M3 owners wishing to run Gentoo.

I am starting to think that the USB Mouse support isn't correctly configured in the Kernel.

Do you have any advice for me?

Thank you in advance,

-Walter
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Tue Apr 18, 2006 11:05 pm    Post subject: Reply with quote

You need to enable full HID support, currently you have it disabled.

From your .config:

# CONFIG_USB_HID is not set

I would also enable:

#
# USB Input Devices
#
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
# CONFIG_HID_FF is not set
CONFIG_USB_HIDDEV=y


Just to be safe.
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
Treppiede
n00b
n00b


Joined: 10 Feb 2006
Posts: 12
Location: Miami, FL

PostPosted: Wed Apr 19, 2006 1:05 am    Post subject: Reply with quote

Yabadabbadont: Thank you for your reply.

I went ahead and changed my .config file's 'USB Input Devices' section with this:
Quote:
#
# USB Input Devices
#
CONFIG_USB_HID=y
CONFIG_USB_HIDINPUT=y
CONFIG_USB_HIDDEV=y

I recompiled the kernel, made the changes in Lilo, rebooted using the new kernel, no luck. The mouse is still not working,

Any further suggestions?

Thank you in advance,

-Walter
Back to top
View user's profile Send private message
AaronPPC
Guru
Guru


Joined: 29 May 2005
Posts: 522
Location: Tucson, AZ

PostPosted: Wed Apr 19, 2006 1:41 am    Post subject: Reply with quote

This caught my eye:
Code:
# CONFIG_USB_MOUSE is not set

Maybe it is that.
_________________
--Aaron
Back to top
View user's profile Send private message
Treppiede
n00b
n00b


Joined: 10 Feb 2006
Posts: 12
Location: Miami, FL

PostPosted: Thu Apr 20, 2006 2:12 pm    Post subject: Reply with quote

AaronPPC wrote:
# CONFIG_USB_MOUSE is not set
Aaron, thank you for the tip. I have enabled that flag, recompiled the kernel once again, no luck. :?

Any further advice?

Thank you for the support,

-Walter
Back to top
View user's profile Send private message
Corona688
Veteran
Veteran


Joined: 10 Jan 2004
Posts: 1204

PostPosted: Thu Apr 20, 2006 2:46 pm    Post subject: Reply with quote

[edit] nevermind, obviously those are compiled in or loaded since it shows in lsusb! Doh.

Instead of my previous nonsense, could you post your kernel config again please? What kernel are you using? Are you changing the kernel options with 'make menuconfig' or are you just editing the .config file by hand? menuconfig's smarter, it knows what settings depend on what settings.
_________________
Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html
Back to top
View user's profile Send private message
synapscape
Apprentice
Apprentice


Joined: 07 Apr 2003
Posts: 234
Location: Germany

PostPosted: Thu Apr 20, 2006 4:36 pm    Post subject: Ahem... Reply with quote

Hi!

I'm currently installing gentoo on a new machine and also had issues with my usb mouse. First i thought of usbfs trouble, because lsusb did not work, but the solution was simple because of a braindead issue: I had compiled the (E/U/O]HCI-HCD as modules and did not load them! :roll:

So, if you have compiled EHCI-HCD, OHCI-HCD or UHCI-HCD as modules and not included them into your kernel, check with lsmod if they are loaded already. If not, do:

Code:

root ~ # modprobe ehci-hcd
root ~ # modprobe uhci-hcd


Of course, depending on your HW, you need to exchange UHCI with OHCI if necessary. Also check if modules usbmouse, usbhid and usbcore are loaded (lsmod).

And NO, if you thought that usbcore would automagically pull in the correct drivers - it does not :lol: But it won't work without hw-drivers :wink:

EDIT: I rechecked your .config and saw that you have indeed compiled all *HCI-HCD as modules. But do you really need OHCI AND UHCI?! As you have an Intel-based system, i suppose you only need UHCI-HCD...

HTH,
markus
_________________
mad season forever
Back to top
View user's profile Send private message
Treppiede
n00b
n00b


Joined: 10 Feb 2006
Posts: 12
Location: Miami, FL

PostPosted: Thu Apr 20, 2006 5:23 pm    Post subject: Re: Ahem... Reply with quote

Corona688 wrote:
Instead of my previous nonsense, could you post your kernel config again please?
Here you go Corona688. That is my current .config file.
Quote:
What kernel are you using?
Kernel 2.6.14-gentoo-r5
Quote:
Are you changing the kernel options with 'make menuconfig' or are you just editing the .config file by hand?
I have been editing the .config file by hand.

Markus: Here's the output of lsmod on my system. Looks like usbcore is loaded, but usbmouse and usbhid aren't. How would I go about loading them at startup? What about removing ohci as you have suggested? Unfortunately this module situation is still quite confusing to me, I appreciate any clarifications about it.

Thank you guys for the input.

-Walter
Back to top
View user's profile Send private message
synapscape
Apprentice
Apprentice


Joined: 07 Apr 2003
Posts: 234
Location: Germany

PostPosted: Thu Apr 20, 2006 5:52 pm    Post subject: Reply with quote

Ok Walter, here we go :)

1) Loading modules on startup:

There is a file /etc/modules.autoload.d/kernel-2.6 which automatically loads modules for a 2.6.x-kernel at startup. Just add some lines with the modules you need loaded on startup, like:

Code:

<snipped content from beginning of file>

# For example:
# 3c59x

uhci-hcd
ehci-hcd
usbhid
usbmouse


This should be enough to use an USB mouse. To see the modulenames you may need, look under /lib/modules/<your-kernel-version>/kernel/drivers/usb/ where all usb-related modules are kept. Of course, they must be compiled as modules to show up there and not compiled into the kernel :wink:



2) OHCI vs UHCI vs EHCI

These HCDs are the basic usb-devices the kernel talks to, an interface if you like. This has nothing to do with the device-drivers for mouse, keyboard, usb-pendrive and so on - it's the plain basic USB-HW. If you have any USB2.0 Hardware, you definitely need EHCI-HCD. For USB1.x Hardware, you either need OHCI or UHCI, depending on your hardware. As you have an Intel-based system, you only need UHCI. OHCI is a slightly different driver for Compaq et. al. hardware. Take a look at the help when you configure your kernel with make menuconfig, it explains it. I'd try without loading the OHCI module. If everything works, you don't need it :wink:

Any more questions? Ask! :wink:

Markus
_________________
mad season forever
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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