免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1025 | 回复: 3
打印 上一主题 下一主题

各位大哥,求教在linux下怎样配置usb鼠标! [复制链接]

ishasha 该用户已被删除
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-23 12:18 |只看该作者 |倒序浏览
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
2 [报告]
发表于 2003-06-23 19:53 |只看该作者

各位大哥,求教在linux下怎样配置usb鼠标!

http://rtfm.dyndns.info/tips/2002/02/01/44.shtml
============================================

Setting Up a USB Mouse in Linux
Norman Jordan
February 1, 2002 Hardware/ Input Devices
Applies to Linux


You can use USB devices in Linux with 2.4.x kernels, or with a 2.2 kernel that is at least 2.2.18.

You will need the following kernel modules
usbcore
usb-ohci or usb-uhci or uhci
hid
mousedev

Find out which module you need for your USB interface. You choices are usb-ohci, usb-uhci or uhci.

Try loading each module with the command"modprobe [module name]".

If you get some error messages, then you didn't load the correct module, so try a different one.

Now that you have the correct USB interface driver installed, load the modules hid and mousedev.

modprobe hid

modprobe mousedev

Now that you know what modules you need, you should update the file"/etc/modules" or"/etc/modules.conf" or"/etc/conf.modules", depending on which distribution you have.

By updating the necessary file, the modules will be loaded automatically when you boot up.

Now you may need to add an entry to /dev for the new mouse.

If you don't have the directory"/dev/input", then create it ("mkdir /dev/input" as root).

If you don't have the file"/dev/mice" then you will need to add the following.

Add the device"/dev/mice" with major number 13 and minor number 63.

mknod /dev/mice c 13 63

Now if you want to use the mouse with GPM, then you will need to run"gpmconfig" and set the mouse device to"/dev/input/mice" and set the type to"S/2".

If you want to use the mouse with X-Windows, then you will need to have the following lines in the mouse section of you XF86Config file.

Option"rotocol""ImPS/2"

Option"Device""/dev/mice"

If you have similar lines in the mouse section, as you should then just change them to match the above lines.

You will need to restart X-Windows for the changes to take effect.

Now you can use your USB mouse in Linux.     


呵呵,purge为了容易看加了许多空格。

论坛徽章:
0
3 [报告]
发表于 2003-06-23 20:47 |只看该作者

各位大哥,求教在linux下怎样配置usb鼠标!

我的杂牌儿3键光电鼠儿(我还加装了两个蓝色发光二极管),东北话说就是贼漂亮了~!而且lRedhat9装的特顺利!~
    你那"苯"Q怎能行啊~!按东北话说就是太埋汰了~!  

论坛徽章:
0
4 [报告]
发表于 2003-06-24 08:45 |只看该作者

各位大哥,求教在linux下怎样配置usb鼠标!

nb!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP