本版版主招募中

 
标题: 在Debian3.0的console中使用USB鼠标
i2era
LU幼天使
Rank: 2



UID 221
精华 2
积分 193
帖子 372
活跃指数 4
LU金币 1024 个
LU金条 1000 个
阅读权限 20
注册 2003-9-29
 
发表于 2003-10-7 22:23  资料  个人空间  短消息  加为好友 
首先必须安装gpm软件包
要有usb的支持:

cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a "#", and everything on the line after them are ignored.
usb-ohci
input
keybdev
mousedev
usbmouse

用dmesg看看:
dmesg | grep usb
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xc8840000, IRQ 12
usb-ohci.c: usb-00:02.3, Silicon Integrated Systems [SiS] 7001 (#2)
usb.c: new USB bus registered, assigned bus number 1
usb-ohci.c: USB OHCI at membase 0xc8842000, IRQ 12
usb-ohci.c: usb-00:02.2, Silicon Integrated Systems [SiS] 7001
usb.c: new USB bus registered, assigned bus number 2
usb.c: registered new driver keyboard
usbkbd.c: :USB HID Boot Protocol keyboard driver
usb.c: registered new driver usb_mouse
usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
input0: Logitech USB-PS/2 Optical Mouse on usb1:2.0

已经支持拉
然后配置gpm
可用gpmconfig或edit /etc/gpm.conf
这是我的:
$cat /etc/gpm.conf
# /etc/gpm.conf - configuration file for gpm(1)
#
# If mouse response seems to be to slow, try using
# responsiveness=15. append can contain any random arguments to be
# appended to the commandline.
#
# If you edit this file by hand, please be aware it is sourced by
# /etc/init.d/gpm and thus all shell meta characters must be
# protected from evaluation (i.e. by quoting them).
#
# This file is used by /etc/init.d/gpm and can be modified by
# /usr/sbin/gpmconfig.
#
device=/dev/input/mice
responsiveness=15
repeat_type=
type=exps2
append=""
sample_rate=

多试几种组合就ok了

PS:个人认为gpm没有FreeBSD的moused易用





none
顶部
无双
荣誉斑竹
Rank: 14Rank: 14Rank: 14Rank: 14
天才猪



UID 4
精华 84
积分 5863
帖子 11390
活跃指数 0
LU金币 4248 个
LU金条 0 个
阅读权限 200
注册 2003-9-16
来自 杭州
 
发表于 2003-10-7 22:27  资料  个人空间  主页 短消息  加为好友 

GPM只是控制台下的东东
我一般就是使用来复制粘贴





不要问我结果 我只研究过程与思路
无双客栈
顶部
i2era
LU幼天使
Rank: 2



UID 221
精华 2
积分 193
帖子 372
活跃指数 4
LU金币 1024 个
LU金条 1000 个
阅读权限 20
注册 2003-9-29
 
发表于 2003-10-7 22:32  资料  个人空间  短消息  加为好友 
QUOTE(无双 @ 2003-10-07 22:27:01)
GPM只是控制台下的东东
我一般就是使用来复制粘贴

是罗,我在控制台下离不开鼠标 smile.gif





none
顶部
 



当前时区 GMT+8, 现在时间是 2008-11-23 08:58
乐悠LoveUnix论坛-京ICP备05005823号

Thanks to Discuz!  © 2001-2007    Power by LoveUnix.net
Processed in 0.052963 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - 乐悠LoveUnix - Archiver