Typo
[linux_from_scratch_hints.git] / OLD / usbmouse.txt
blobefde231ea9493d02f148c34a585822fb8650ef97
1 TITLE:          USBMOUSE
2 LFS VERSION     ALL (Linux >= 2.4.19)
3 AUTHOR:         Konrad Miller <konrad_miller@gmx.net>
5 SYNOPSIS:
6         How to install a USB-mouse
8 HINT:
10 1. Recompile the Kernel. You need to turn on:
11         USB support  ---> 
12                 <M> Support for USB
13                 <M>   UHCI (Intel PIIX4, VIA, ...) support 
14                 <M>   USB Human Interface Device (full HID) support 
15                 [*]     HID input layer support 
16         Input core support  --->  
17                 <M> Input core support       
18                 <M>   Mouse support
20 Do _not_ turn on "USB HIDBP Mouse support"
21 If you build modules, you need to load "input.o", "hid.o", and "mousedev.o".
23 2. Plug in the Mouse and check if it was detected (kernel message)
25 3. Create the mouse nodes by running the following commands:
26         mkdir /dev/input        \
27         mknod /dev/input/mice c 13 63
29 4. You probably want to use the mouse under X, you need to edit your XF86Config
30 (/etc/X11/XF86Config). Change your InputDevice and ServerLayout sections to
31 something like that:
33 Section "InputDevice"
34     Identifier                  "USB Mice"
35     Driver                      "mouse"
36     Option "Protocol"           "IMPS/2"
37     Option "Device"             "/dev/input/mice"
38     Option "ZAxisMapping"       "4 5"
39     Option "Buttons"            "5"
40 EndSection
42 Section "ServerLayout"
43 ...
44     InputDevice         "USB Mice"              "CorePointer"
45 ...
46 EndSection
48 -------------------------------------8<-----------------------------------------
50 Hannes Birnbacher asked me to add the following comments:
51 "For any software using not X-Window, but libvga, like some Games and like 
52 links2.1pre4, it is important to check /etc/vga/libvga.config after 
53 installation of libvga. I had among else to insert the following lines and to 
54 comment out what was there before for my USB optical mouse for "mdev" and 
55 "mouse":
57         mdev  /dev/input/mice
58         mouse imps2
60 and, for my Typhoon Optical Mouse with Cable, change mouse_accel_maxdelta and 
61 mouse_accel_thresh to one tenth of what stood there before."
63 I did not check the comments of Hannes but I hope they may be helpful.
64                         
65 -------------------------------------8<-----------------------------------------
67 check out  http://www.linux-usb.org/USB-guide/x194.html for further information!