View previous topic :: View next topic |
Author |
Message |
distruct0 n00b
Joined: 20 Jun 2003 Posts: 4
|
Posted: Sun Jun 22, 2003 5:22 am Post subject: |
|
|
THIS IS ALL FROM THE INSTALL GUILD
http://www.gentoo.org/doc/en/desktop.xml
one big key note in here:
Note: Use either usbmouse OR hid. If you install both, mouse will stop working.
Configuring a USB Mouse
A USB mouse is your friend on a high resolution screen. The kernel takes care of the scaling so you don't have to move your mouse five times across the pad to make it across the screen.
The first thing that has to be done is the installation of the kernel modules. The modules that will be needed for a USB mouse to work are usbmouse, mousedev, hid, usbcore, usb-uhci, and input. After the necessary kernel configuration is done, insmod the modules.
Note: Use either usbmouse OR hid. If you install both, mouse will stop working.
Note: When configuring the Input Core support for the mouse, make sure to enter the screen resolution that you will be using in X. This makes the scaling all pretty and correct.
Now, unplug the mouse, and plug it back in, and check your kernel log for a message that looks something like this
Code listing 2.6: Kernel Message
hub.c: USB new device connect on bus1/1, assigned device number 2
input0,hiddev0: USB HID v1.00 Mouse [Microsoft Microsoft IntelliMouse Optical] on usb1:2.0
Now that the mouse is detected, check /dev/input to make sure that your mouse is there and working.
Code listing 2.7: Checking for USB Mouse
# cd /dev/input
# cat mice
Move your mouse when you cat the device, you should see a lot
of garbage.
Once the mouse is properly detected and installed, now we have to tell X to use the USB mouse. All that is required here is a slight change to what device X uses for the mouse.
Code listing 2.8: Editing XF86Config
# cp /etc/X11/XF86Config /etc/X11/XF86Config.working
# vim /etc/X11/XF86Config
Code listing 2.9: Pointer section of XF86Config
Section "InputDevice"
# Identifier and driver
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Okay, restart X, and the mouse should be working!
Don't forget to add the modules that your mouse uses to modules.autoload.
Code listing 2.10: Adding entries to modules.autoload
# echo $'\n'mousedev $'\n'hid $'\n'usbcore $'\n'input >> /etc/modules.autoload |
|
Back to top |
|
|
0ctane Tux's lil' helper
Joined: 21 Jun 2003 Posts: 115 Location: Cincinnati, OH
|
Posted: Sun Jun 22, 2003 2:37 pm Post subject: |
|
|
distruct0 wrote: | The first thing that has to be done is the installation of the kernel modules. The modules that will be needed for a USB mouse to work are usbmouse, mousedev, hid, usbcore, usb-uhci, and input. After the necessary kernel configuration is done, insmod the modules.
|
I think I installed these into the kernel. lsmod only gives me my NIC. insmod says that these modules cannot be found. /usr/src/linux/drivers/usb has hid.o(h), uhci.o(h,c), usb-ohci.c(h), usb-uhci.c(h), usbcore.o, and usbmouse.c. /usr/src/linux/drivers/input has input.c and mousedev.c.
distruct0 wrote: | Now, unplug the mouse, and plug it back in, and check your kernel log for a message that looks something like this
Code listing 2.6: Kernel Message
hub.c: USB new device connect on bus1/1, assigned device number 2
input0,hiddev0: USB HID v1.00 Mouse [Microsoft Microsoft IntelliMouse Optical] on usb1:2.0
|
Well, dmesg tells me that the USB mouse is seen when I plug it back in. hiddev0: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb1:5:0
Am I okay at this point?
distruct0 wrote: | Now that the mouse is detected, check /dev/input to make sure that your mouse is there and working.
Code listing 2.7: Checking for USB Mouse
# cd /dev/input
# cat mice
Move your mouse when you cat the device, you should see a lot
of garbage.
|
Well, I do not have a /dev/input directory. I wonder where my mouse can be? Any ideas?
BTW, my usb optical mouse is lit up. I used "noapic" in grub when loading the kernel. This is in reference to my previous post about APIC trouble in SMP. |
|
Back to top |
|
|
Weejoker n00b
Joined: 11 Sep 2002 Posts: 69 Location: Scotsman in England
|
Posted: Mon Jul 14, 2003 10:48 pm Post subject: |
|
|
Make sure you not only have:
Code: | USB Support -> USB Human Interface Device (full HID) Support -> HID input layer support |
compiled as modules/into kernel, but that you also have:
Code: | Input core support -> Input core support |
in there too, regardless of whether you are using the "USB HIDBP Mouse (basic) support" or the "Mouse support" (within Input core support).
I missed this out one time i compiled from scratch and I was confused for ages (because I was adamant I had compiled it in).
Hope this helps,
John |
|
Back to top |
|
|
0ctane Tux's lil' helper
Joined: 21 Jun 2003 Posts: 115 Location: Cincinnati, OH
|
Posted: Tue Jul 15, 2003 12:56 am Post subject: |
|
|
I fixed my problem a while ago. Thanks anyhow Weejoker. _________________ <signature></signature>
----------------------------- |
|
Back to top |
|
|
stormrider n00b
Joined: 31 Aug 2003 Posts: 23 Location: NF
|
Posted: Tue Sep 16, 2003 7:45 pm Post subject: |
|
|
can anyone tell me where i can load the Input module? i have all settings in the kernel that i need, cat /dev/input/mice works and all other things are like they should be. except that im missing the iput module. insmod doesnt work and i found nothing in the kernel which smells like input and i didnt try.
thanks _________________ --free DNS at www.orgdns.org-- |
|
Back to top |
|
|
madmax2001 n00b
Joined: 16 Sep 2003 Posts: 18 Location: VA, USA
|
Posted: Tue Sep 16, 2003 8:10 pm Post subject: |
|
|
or you could skip the whole thing and get an adpadter for the ps/2 port. just a thought... _________________ If the minimum wasn't good enough, it wouldn't be the minimum. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20583
|
Posted: Wed Sep 17, 2003 3:56 am Post subject: |
|
|
Moved from Installing Gentoo. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
messy n00b
Joined: 11 Aug 2003 Posts: 34 Location: Houston, TX
|
Posted: Thu Oct 02, 2003 6:35 pm Post subject: |
|
|
AAAHHH
I have a logitech mx310 and i've been monkeying with it for a week.
insmod usb-uhci.o
usb-uhci.o: init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg.
Hrm i found no info.
Dmesg end gives me
usb-uhci.c: $Revision: 1.275 $ time 01:32:35 Oct 3 2003
usb-uhci.c High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
uh ok.
I have all of the necessary modules
i cant insmod it i have to goto /lib/modules/2.4.22/kernel/drivers/usb/host and insmod it and it gives me that.
Any ideas? I want this damn wheel to work |
|
Back to top |
|
|
littlebuddy n00b
Joined: 11 Jul 2003 Posts: 35 Location: Boulder, CO, USA
|
Posted: Mon Oct 13, 2003 7:16 am Post subject: |
|
|
It could be the bios.
With my new laptop the keyboard (usb) wouldn't work until I turned off legacy usb support in the bios. |
|
Back to top |
|
|
|
|
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
|
|