USB外接鼠标滚轮速度在GNOME下的设置解决办法

CPU/显卡/打印机/USB设备等硬件问题
回复
liurusi
帖子: 6
注册时间: 2009-04-28 17:29

USB外接鼠标滚轮速度在GNOME下的设置解决办法

#1

帖子 liurusi » 2011-03-26 14:00

按WIKI档案里说是因为在编绎内核时,对USB的支持选择的不够.
在使用Ubuntu浏览网页时,出现每次滚动超过一页的现象,使用极不方便,今天在解决时,看到WIKI有提出如何解决鼠标支持的方法.和其它朋友的经验.

第一种办法,仅针对firefox网页滚动,可设置如下:
1.在地址栏输入

代码: 全选

about:config
2.过滤

代码: 全选

mousewheel.withnokey.sysnumlines
双击将值改为

代码: 全选

false
作用是禁用滚轮的系统设置
3.过滤

代码: 全选

mousewheel.withnokey.numlines
双击将值改为你喜欢的行数,与Windows相近的值为3

第二种办法,加入外接鼠标支持,针对系统设置
1.使用WIKI的方案,未验证.
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
2.本人在10.10中未发现以上提到的gpm.conf与XF86config.4文件,因此未按1验证.而是更改xorg.conf文件.
在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
重启后验证,在PDF与gedit中,速度正常.
头像
dukelec
帖子: 410
注册时间: 2010-08-26 22:20
系统: Gentoo
来自: Canton

Re: USB外接鼠标滚轮速度在GNOME下的设置解决办法

#2

帖子 dukelec » 2012-06-15 14:38

回复