在使用Ubuntu浏览网页时,出现每次滚动超过一页的现象,使用极不方便,今天在解决时,看到WIKI有提出如何解决鼠标支持的方法.和其它朋友的经验.
第一种办法,仅针对firefox网页滚动,可设置如下:
1.在地址栏输入
代码: 全选
about:config
代码: 全选
mousewheel.withnokey.sysnumlines
代码: 全选
false
3.过滤
代码: 全选
mousewheel.withnokey.numlines
第二种办法,加入外接鼠标支持,针对系统设置
1.使用WIKI的方案,未验证.
2.本人在10.10中未发现以上提到的gpm.conf与XF86config.4文件,因此未按1验证.而是更改xorg.conf文件.USB 鼠标
请确定你设置了所有必须的 kernel 选项,并在编译的时候编入内核或编成模块了:
在 “Input Core Support”选项下:
"Input core support" (CONFIG_INPUT, input.o),
"Mouse support" (CONFIG_INPUT_MOUSEDEV, mousedev.o),
在 “USB support”选项下:
"Support for USB" (CONFIG_USB, usbcore.o),
"Preliminary USB device filesystem" (CONFIG_USB_DEVICEFS),
"UHCI" or "OHCI" (CONFIG_USB_UHCI || CONFIG_USB_UHCI_ALT || CONFIG_USB_OHCI, usb-uhci.o || uhci.o || usb-ohci.o),
"USB Human Interface Device (full HID) support" (CONFIG_USB_HID, hid.o), and
"HID input layer support" (CONFIG_USB_HIDINPUT)
这儿,模块的名称为小写。
如果你没使用 devfs,则需按下面的方法创建一个设备节点 /dev/input/mice:
# cd /dev
# mkdir input
# mknod input/mice c 13 63
对于典型的滚轴 USB 鼠标,配置如下:
/etc/gpm.conf | /etc/X11/XF86Config-4
=========================+======================================
device=/dev/input/mice | Section "InputDevice"
responsiveness= | Identifier "Generic Mouse"
repeat_type=raw | Driver "mouse"
type=autops2 | Option "SendCoreEvents" "true"
append="" | Option "Device" "/dev/input/mice"
sample_rate= | Option "Protocol" "IMPS/2"
| Option "Buttons" "5"
| Option "ZAxisMapping" "4 5"
| EndSection
在xorg.conf文件中己经有一个鼠标支持,估计是由本本触摸板产生,所以另加一个支持.
代码: 全选
sudo gedit /etc/X11/xorg.conf
代码: 全选
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
代码: 全选
Section "InputDevice"
# generated from default
Identifier "Generic Mouse"
Driver "mouse"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/mice"
Option "Protocol" "IMPS/2"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
EndSection