The manual on how to set up a desktop may be your best resource here.  I got 
the below info from: http://www.gentoo.org/doc/en/desktop.xml

Kevin

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. To exit, simply press control-C. 

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
# nano -w /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.d/kernel-2.4.

Code listing 2.10: Adding entries to modules.autoload.d/kernel-2.4

# nano -w /etc/modules.autoload.d/kernel-2.4
 # We will add the following lines to the file.
mousedev
hid
usbcore
input
-------------------------------------------------------------------------------------------------

On Friday 03 October 2003 02:55 pm, YOON. Joo-Yung wrote:
> Hi, all!
>
> I really need to use usb keboard and mouse in my system.
> When my box boots, they are recognized and work well under BIOS
> and WindowsXP.
>
> But after the box gets booted under Gentoo-LiveCD, then
> the usb keyboard and mouse are gone.
>
> I even wonder whether they are recognized.
> The gentoo is RC4 (or RC5) and the kernel is 2.4.22.
>
> Could you give me a hint on what I am missing in my configurations.
> Here are the logs of syslog and dmesg, and also kernel configs.
>
>
> * kernel - my settings
>
> ** INPUT
>    CONFIG_INPUT=y
>    CONFIG_INPUT_KEYBDEV=y
>    CONFIG_INPUT_MOUSEDEV=y
>    CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
>    CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
>    CONFIG_INPUT_JOYDEV=y
>    CONFIG_INPUT_EVDEV=y
>
> ** SCSI
>    CONFIG_BLK_DEV_IDESCSI=y
>    CONFIG_SCSI=y
>
> ** USB
>    CONFIG_USB=y
>    CONFIG_USB_DEBUG=y
>    CONFIG_USB_DEVICEFS=y
>    CONFIG_USB_PRINTER=y
>    CONFIG_USB_HID=y
>    CONFIG_USB_HIDINPUT=y
>    CONFIG_USB_SCANNER=y
>
>
> * error in dmesg
>   usb_control/bulk_msg: timeout
>   usbdevfs: USBDEVFS_CONTROL failed dev 4 rqt 128 rq 6 len 18 ret -110
>
> * error in syslog
>   Oct  3 22:52:12 [kernel] usb_control/bulk_msg: timeout
>   Oct  3 22:52:12 [kernel] input: USB HID v1.10 Mouse [Cypress Semi.
> Panwest Combi Mouse] on usb1:4.0
>   Oct  3 22:52:12 [default.hotplug] arguments (usb) env
> (DEVFS=/proc/bus/usb OLDPW   D=/ PATH=/bin:/sbin:/usr/sbin:/usr/bin
> ACTION=add PWD=/etc/hotplug HOME=/ SHLVL= 2 DEVICE=/proc/bus/usb/001/004
> INTERFACE=3/1/2 PRODUCT=ac7/150/1 TYPE=0/0/0 DEBU   G=kernel _=/bin/env)
>   Oct  3 22:52:12 [default.hotplug] invoke /etc/hotplug/usb.agent ()
>   Oct  3 22:52:13 [kernel] usb_control/bulk_msg: timeout
>   Oct  3 22:52:13 [kernel] hub.c: usb_hub_port_status (2) failed (err =
> -110) Oct  3 22:52:14 [kernel] usb_control/bulk_msg: timeout
>
> Thnks in advance,
>
> YOON, Joo-Yung
> from Korea
>
> --
> [EMAIL PROTECTED] mailing list

-- 
Kevin Miller, Jr.
Masters of Public Affairs,
Comparative and International Affairs, Information Systems, and Nonprofit 
Management,
School of Public and Environmental Affairs
Indiana University - Bloomington
http://e-civilsociety.org
[EMAIL PROTECTED]
mobile: 812-219-5047



--
[EMAIL PROTECTED] mailing list

Reply via email to