LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2542|回复: 2

[==LFS精华系列==]usb鼠标

[复制链接]
发表于 2002-12-11 12:00:52 | 显示全部楼层 |阅读模式
我没有usb鼠标,这些东西都是翻译来的。自己没有实剪过。

这个是专门说怎么用usb鼠标的文章没有什么多余的东西,像usb喇叭什么的。

首先编译内核编译成模块或者内嵌,建议内嵌。
Setup kernel: [make modules if you want]
这个部分反正内核配置是英文的照着一对一就可以了。
在输入支持部分:
      1. Under InputCore Support
                  Enable  <*> Input core support
            Enable  <*>   Mouse support
                 [Ignore resolution, that is for tablets]

在usb支持部分:
      2. Under USB Support
                  Enable <*> Support for USB
            Enable one of the --- USB Controllers
                    [example <*> UHCI (Intel PIIX4, VIA, ...) support]
            Enable <*>   USB Human Interface Device (full HID) support

在char设备支持部分:
      3. Under Character devices ---> Mice
         [may not be nessacey but just in case]
            Enable <*> Mouse Support (not serial and bus mice)
            Enable
  •    PS/2 mouse (aka "auxiliary device") support

    然后就是编译内核了,参见LFS文档的第8章吧。
    Enable any changes made in kernel:
           Recompile Kernel and reboot if nessacery.
              make dep bzImage modules modules_install
              |or if you made everything a module|
              make modules modules_install

    接着用root身份创建dev设备文件
    Make the dev files nessacery:
         1. su to root.
                 su -
         2. create an input directory in /dev
                     mkdir /dev/input
         3. Create the files: [read note below for explination]
                     cd /dev/inputt
                     mknod mouseX c 13 32
                mknod mice c 13 63
                mknod eventX c 13 64

    这个是很重要的,无数的地方都是这么作的,一定要照着作阿。


    Add the USB mouse to your XF86Config-4: [this is my sectiion for X4, I
    have no used X3]
       
    接着编辑XF86config或者XF86config-4文件有“-4”就编辑-4.

         1. Add this section near you other mice:
    这个部分加到原文件里面就可以,但是为了简洁直接把原来相应的部分改过来就好了。
           
                    Section "InputDevice"
                       Identifier      "USB Mouse"
                              Driver          "mouse"
                          Option          "CorePointer"
                       Option          "Device"        "/dev/input/mice"
                       Option          "rotocol"      "ImPS/2"
                       Option           "Buttons"       "5"
                       Option          "ZAxisMapping"  "4 5"
                    EndSection
           
            2. And under ServerLayout add this:       
                       InputDevice     "USB Mouse"
  • 发表于 2002-12-11 14:09:32 | 显示全部楼层

    收到

    多谢帮主
    我准备按您的这方法再编译一次内核(在 Enable <*> USB Human Interface Device (full HID) support
    我上次不记得有没有选)。。。之后再安装一次XF86.
     楼主| 发表于 2002-12-11 14:56:53 | 显示全部楼层
    这个human interface是usb鼠标和键盘的关键。一定摇有
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    快速回复 返回顶部 返回列表