QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 777|回复: 0

升级内核后USB鼠标使用不正常

[复制链接]
发表于 2004-8-31 21:03:03 | 显示全部楼层 |阅读模式
升级内核后,按照网上贴子的指示,USB鼠标是可以用了。但是有时用着用着会突然动不了了。要拔出来,再插进去,又能使用了。经常这样。是什么原因阿?
我的rc.sysinit内容如下
# Initialize USB controller and HID devices
usb=0
if ! LC_ALL=C grep -iq "nousb" /proc/cmdline 2>/dev/null && ! LC_ALL=C grep -q "usb" /proc/devices 2>/dev/null ; then
    aliases=`/sbin/modprobe -c | awk '/^alias usb-controller/ { print $3 }'`
    if [ -n "$aliases" -a "$aliases" != "off" ]; then
      modprobe usbcore
      for alias in $aliases ; do
              [ "$alias" != "off" ] && action $"Initializing USB controller ($alias): " modprobe uhci-hcd
      done
      [ $? -eq 0 -a -n "$aliases" ] && usb=1
    fi
fi

if ! LC_ALL=C grep -iq "nousb" /proc/cmdline 2>/dev/null && LC_ALL=C grep -q "usb" /proc/devices 2>/dev/null ; then
  usb=1
fi

if [ $usb = 1 -a ! -f /sys/bus/usb/devices ]; then
    action $"Mounting USB filesystem: "  mount -t usbdevfs usbdevfs /sys/bus/usb
fi

needusbstorage=
if [ $usb = "1" ]; then
    needusbstorage=`LC_ALL=C grep -e "^I.*Cls=08" /sys/bus/usb/devices 2>/dev/null`
    LC_ALL=C grep 'usbhid' /sys/bus/usb/drivers || action $"Initializing USB HID interface: " modprobe usbhid 2> /dev/null
    action $"Initializing USB 2.0 host controller: " modprobe ehci-hcd 2> /dev/null
    action $"Initializing USB keyboard: " modprobe usbkbd 2> /dev/null
    action $"Initializing USB mouse: " modprobe usbmouse 2> /dev/null
fi

modprobe.conf里面也改了相应选项:
alias usbdevfs usbcore
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd

望各位大侠指点一下,谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-14 17:55 , Processed in 0.054180 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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