LinuxSir.cn,穿越时空的Linuxsir!

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

[求助] 新内核下,USB鼠标不能用了

[复制链接]
发表于 2003-6-17 01:11:47 | 显示全部楼层 |阅读模式
mobo:epox 8rda+ nForce2
mouse:Logitech 极光旋貂
kernel:2.4.20 + patch 2.4.21
redhat9

用新内核启动,鼠标灯不亮;换一个接口,灯可以亮,但还是不能用。

用原内核启动,就又可以正常工作了。

新内核所用的配置文件就是 redhat9 自带的。USB 配置方式 和 XF86Config 在附件里

请高人指点一二

多谢

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2003-6-17 11:10:19 | 显示全部楼层
这个比较好办

  Input core support  --->   

   
                                        <*> Input core support                                 
                                        <M>   Keyboard support                                 
                                        <M>   Mouse support                                    
                                        (1024)    Horizontal screen resolution                  
                                        (768)    Vertical screen resolution

USB support  --->  

                 
                          <*> Support for USB                                                   
                          
  •    USB verbose debug messages                                      
                              --- Miscellaneous USB options                                         
                              
  •    Preliminary USB device filesystem                              
                              --- USB Host Controller Drivers                                       
                              <*>   UHCI Alternate Driver (JE) support                              
                              < >   OHCI (Compaq, iMacs, OPTi, SiS, ALi, ...) support   
    --- USB Human Interface Devices (HID)                                 
                              <M>   USB Human Interface Device (full HID) support                  
                              
  •      HID input layer support                                       
                              [ ]     /dev/hiddev raw HID device support                           
                              < >   USB HIDBP Keyboard (basic) support                              
                              <M>   USB HIDBP Mouse (basic) support  

    就是这些项
  •  楼主| 发表于 2003-6-17 20:05:34 | 显示全部楼层
    试过了,还是老样子

    用新内核第一次启动时,会显示 USB mouse 什么的 failed ,一共连着有三个红色的 failed ,都是 USB 的,好像是找不到需要加载的文件

    第二次用新内核启动就都是绿色的 passed

    附件是内核的配置文件

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有帐号?注册

    x
    发表于 2003-6-18 21:54:45 | 显示全部楼层
    兄弟,是否把模块安装了呢??上面说的是没有错的,我一开始也出现这样的问题,所以能判断出问题出在这里。

    #make mrproper
    #make menuconfig或者 make xconfig
    #make dep
    #make modules
    #make modules_install
     楼主| 发表于 2003-6-18 23:05:30 | 显示全部楼层
    是指编译的时候?我没有执行 make mrproper ,我再试试

    我编译的过程:
    #cd /usr/src
    #mkdir linux
    #mv linux linux-2.4.20
    #ln -s /usr/src/linux-2.4.20 /usr/src/linux

    #patch -p0 < patch-2.4.21

    #cd linux-2.4.20
    #cp /usr/src/linux-2.4.20-8/configs/kernel-2.4.20-athlon.config .config

    #make xconfig
    #make dep
    #make clean
    #make bzImage
    #make modules
    #make modules_install
    #depmod -a

    #cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.4.21
    #cp /usr/src/linux/System.map /boot/System.map-2.4.21
    #new-kernel-pkg --mkinitrd --rmmoddep --install 2.4.21
     楼主| 发表于 2003-6-19 00:08:16 | 显示全部楼层
    我改了一下:

    <*> Keyboard support
    <*> Mouse support

    <*> USB HIDBP Mouse (basic) support

    每次启动时都显示:

    Initializing USB HID interface: modprobe: can't locate module keydev which is needed for HID [FAIDED]

    Initializing USB keyboard: modprobe: can't locate module keybdev [FAIDED]

    Initializing USB mouse: modprobe: can't locate module mousedev [FAIDED]

    鼠标还是用不了
    发表于 2003-6-19 22:38:24 | 显示全部楼层
    #new-kernel-pkg --mkinitrd --rmmoddep --install 2.4.21



    #new-kernel-pkg --mkinitrd --depmod  --install 2.4.21

    这样来试一下。
    发表于 2003-6-19 23:06:44 | 显示全部楼层
    用gentoo的方法应该可以,注意要选择hid
    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.

    Section "InputDevice"

    # Identifier and driver

    Identifier        "Mouse1"
    Driver        "mouse"
    Option "rotocol"    "IMPS/2"
    Option "Device"      "/dev/input/mice"
    Option "ZAxisMapping"        "4 5"
     楼主| 发表于 2003-6-20 23:12:40 | 显示全部楼层
    北南南北兄的方法试过了,还是不行

    sonnyxin兄的方法看不懂的说

    完全按照北南南北兄第一次的方法改了一下
    Initializing USB keyboard [OK]
    其他的两个还是 [FAIDED]
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

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