LinuxSir.cn,穿越时空的Linuxsir!

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

帮手翻译下,多谢

[复制链接]
发表于 2002-12-13 16:24:41 | 显示全部楼层 |阅读模式
SYNOPSIS:
        How to install a USB-mouse

HINT:

1. Recompile the Kernel. You need to turn on:
        USB support  --->
                <M> Support for USB
                <M>   UHCI (Intel PIIX4, VIA, ...) support
                <M>   USB Human Interface Device (full HID) support
               
  •      HID input layer support
            Input core support  --->  
                    <M> Input core support      
                    <M>   Mouse support

    Do _not_ turn on "USB HIDBP Mouse support"
    If you build modules, you need to load "input.o", "hid.o", and "mousedev.o".

    2. Plug in the Mouse and check if it was detected (kernel message)

    3. Create the mouse nodes by running the following commands:
            mkdir /dev/input        \
            mknod /dev/input/mice c 13 63

    4. You probably want to use the mouse under X, you need to edit your XF86Config
    (/etc/X11/XF86Config). Change your InputDevice and ServerLayout sections to
    something like that:

    Section "InputDevice"
        Identifier                        "USB Mice"
        Driver                        "mouse"
        Option "rotocol"            "IMPS/2"
        Option "Device"              "/dev/input/mice"
        Option "ZAxisMapping"         "4 5"
        Option "Buttons"                  "5"
    EndSection

    Section "ServerLayout"
    ...
        InputDevice         "USB Mice"                  "CorePointer"
    ...
    EndSection

    -------------------------------------8<-----------------------------------------

    Hannes Birnbacher asked me to add the following comments:
    "For any software using not X-Window, but libvga, like some Games and like
    links2.1pre4, it is important to check /etc/vga/libvga.config after
    installation of libvga. I had among else to insert the following lines and to
    comment out what was there before for my USB optical mouse for "mdev" and
    "mouse":

            mdev  /dev/input/mice
            mouse imps2

    and, for my Typhoon Optical Mouse with Cable, change mouse_accel_maxdelta and
    mouse_accel_thresh to one tenth of what stood there before."

    I did not check the comments of Hannes but I hope they may be helpful.
                           
    -------------------------------------8<-----------------------------------------

    check out  http://www.linux-usb.org/USB-guide/x194.html for further information!
  • 发表于 2002-12-13 16:37:49 | 显示全部楼层
    我只能尽力而为。
    ----------------------------------------

    概要

    如何安装一个usb鼠标

    提示

    1.重新编译内核。你需要打开:
    USB support --->
    <M> Support for USB
    <M> UHCI (Intel PIIX4, VIA, ...) support
    <M> USB Human Interface Device (full HID) support
  • HID input layer support
    Input core support --->
    <M> Input core support
    <M> Mouse support
    (因为内核配置界面是英文,这一部分我没有翻译。反正在USB支持和input core 支持中把上面的选项编译成模块就是。)
    不要选中"USB HIDBP Mouse support",如果你建立模块,你需要装载input.o", "hid.o", 和 "mousedev.o"。
  • 发表于 2002-12-13 16:39:01 | 显示全部楼层
    辛苦kj兄了。:)
    发表于 2002-12-13 16:53:51 | 显示全部楼层
    2.插上鼠标,然后检查是否被检测到(内核信息)。
    (这部分我的理解是指开机启动时,内核检测硬件的提示信息,用dmesg命令可以查看,如果没有USB设备被检测到,表明可能接触不良或硬件有问题。)
    3.执行下列命令生成鼠标节点:
    mkdir /dev/input \
    mknod /dev/input/mice c 13 63
    (这部分是用mknod生成一个特殊设备文件,在linux里面,设备驱动程序被装入内核后,要通过一个特殊设备文件来访问。你如果学习过linux驱动程序的编写就清楚了。)
    发表于 2002-12-13 16:58:43 | 显示全部楼层
    哦我想起来一个。 你在/etc/fstab里面加一行这个试试
    none           /proc/bus/usb usbdevfs  defaults   0        0
    当然要保障有/proc/bus/usb目录了
    然后看看
    cat /proc/bus/usb/devices
    看看里面有没有鼠标。mouse。
    发表于 2002-12-13 17:00:59 | 显示全部楼层
    4.你可能想在X下使用鼠标,那你需要编辑你的XF86Config文件
    (/etc/X11/XF86Config)。象下面那样修改你的InputDevice 和 ServerLayout部分:
    Section "InputDevice"
    Identifier "USB Mice"
    Driver "mouse"
    Option "rotocol" "IMPS/2"
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5"
    Option "Buttons" "5"
    EndSection

    Section "ServerLayout"
    ...
    InputDevice "USB Mice" "CorePointer"
    ...
    EndSection
    发表于 2002-12-13 17:18:19 | 显示全部楼层
    Hannes Birnbacher要求我增加下面的注解:
    对于一些使用libvga而不是X-Window的软件,就象游戏和links2.1pre4,在安装libvga之后检查/etc/vga/libvga.config是很重要的。我已经为我的USB鼠标在其中注销掉原先的"mdev" 和"mouse"部分,并插入新行:
    mdev /dev/input/mice
    mouse imps2
    并且,对于我的带电缆的台风光学鼠标,将mouse_accel_maxdelta和mouse_accel_thresh改变原先设置值的十分之一。
    我没有核查Hannes的注解,但我希望它能提供帮助。
    发表于 2002-12-13 17:23:03 | 显示全部楼层
    这段英文是很简单的,关键是鼠标要被内核支持和能被检测到,如果还是不行,可以再发贴,然后一起讨论。
     楼主| 发表于 2002-12-14 10:04:40 | 显示全部楼层
    多谢KJ501兄弟
         这个鼠标搞了我很久了,我有PS2转USB的接口,但我不愿意这样做,现在看来我是有希望搞好的。
         我看了LFS下的/dev/input/mics,它是有,但是在上面有个叉子,表明这个连接无效,我准备在LFS下而不是在虚拟环境下最做上面的4步。
          另外提个关于内核编译的问题,如我编译内核时已经将NTFS、EXT3都选了,但我现在要挂载RH、WINXP都说不支持此格式(内核),要怎么做才能支持,难道LFS只与自己玩吗?
    发表于 2002-12-14 10:26:18 | 显示全部楼层
    你是在配设备,当然不能在chroot下了,还有,内核,你是不是也是在chroot下加载其他分区的?你用的命令是什么?
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

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