|
首先必须安装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易用
|