虚拟机里的Ubuntu鼠标滚轮不能使用解决方法

昨天下午闲来无事,我在虚拟机重新安装了好久没有用过的Ubuntu,发现以前一直不能上网的问题终于给解决了,在新建虚拟机的时候,联网方式才用NAT,然后没设置就可以上网了,真的很爽…

发现一个问题,就是我的鼠标滚轮在Ubuntu下面不能使用,就是不起作用,后来google了一下,找到了解决方法,下面记录一下

用vwmare安装ubuntu, 解决鼠标自由切换问题:
在 安装vmware-tools 后, 编辑配置文件
sudo gedit /etc/X11/xorg.conf
找到并修改内容:
Section “InputDevice”
Identifier “Configured Mouse”
Driver “vmmouse” #使用vmware的鼠标驱动,
Option “CorePointer” #解决“鼠标有效边界混乱”问题
Option “Device” “/dev/input/mice”
Option “Protocol” “Imps/2″ #使用Imps/2协议,解决“鼠标滚轮失效”问题。
Option “ZAxisMapping” “4 5″
Option “Emulate3Buttons” “true”
EndSection


引用:“/etc/X11/xorg.conf”中鼠标部分的配置详解

贴一个配置样例:

引用:
Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
Option “Device” “/dev/input/mice”
Option “Protocol” “ExplorerPS/2″
Option “Emulate3Buttons” “false”
Option “Buttons” “7″
Option “ZAxisMapping” “4 5″
Option “ButtonMapping” “1 2 3 6 7″
Option “Resolution” “100″
Option “EmulateWheel” “on”
Option “EmulateWheelButton” “2″
EndSection

说明如下:

引用:
Section “InputDevice”……EndSection
说明这是对输入设备的配置,配置文件在Section和EndSection之间。注:保持默认即可。
引用:
Identifier “Configured Mouse”
输入设备类型:鼠标。注:保持默认即可。
引用:
Driver “mouse”
设备驱动:mouse。注:保持默认即可。
引用:
Option “CorePointer”
将当前鼠标作为首选设备。注:保持默认即可
引用:
Option “Device” “/dev/input/mice”
设备对应的文件。这里mice指混合的输入设备,也就是系统能同时识别“鼠标+触摸板”或“鼠标+小红点”,如果希望系统只识别一个,那么可以将mice改为/dev/input/下的mouse0-mouse3中的一个即可,具体的对应关系还需要自己试验下。
引用:
Option “Protocol” “ExplorerPS/2″
鼠标使用的传输协议。
协议列表
    Auto:让X window自已检测,但可能不准确
    BusMouse:总线型鼠标,早期的串口鼠标
    ExplorerPS/2:使用微软PS/2版本的多键IntelliMouse及其兼容产品
    GlidePoint:使用ALPS串口版本的GlidePoint触摸屏及其兼容产品
    GlidePointPS/2:使用ALPS PS2版本的GlidePoint触摸屏及其兼容产品
    IMPS/2:使用微软PS/2版本的IntelliMouse及其兼容产品
    IntelliMouse:使用微软串口版本的IntelliMouse及其兼容产品
    Logitech:使用旧版Logitech串口鼠标,新版的已改为“Microsoft”协议
    Microsoft:在1992年起的5-8年间使用的串口鼠标
    MMHitTab:使用旧版Logitech串口的HitTablet手机板
    MMSeries:使用旧版Logitech串口的MouseMan鼠标
    MouseMan:使用中期的Logitech串口的MouseMan鼠标
    MouseManPlusPS/2:使用LogitechPS/2版本的天貂及其兼容产品
    MouseSystem:采用MouseSystem传输协议的串口鼠标可以使用该选项
    NetMosuePS/2:使用Genius PS/2版本的NetMouse网络鼠标及其兼容产品
    NetScrollPS/2:使用Genius PS/2版本的NetScroll滚轮鼠标及其兼容产品
    OSMouse:使用由操作系统控制的鼠标,而非让X Window控制鼠标
    PS/2:现在最广泛使用的PS/2接口的鼠标
    SysMouse:让FreeBSD能够使用外围设备代号为/dev/sysmouse的鼠标设备
    ThinkingMouse:使用Kensington串口版本的Thinking鼠标
    ThinkingMousePS/2:使用PS/2版本的Thinking鼠标及其兼容产品
    Xqueue:假如你在键盘设备段让键盘使用X队列传输协议,则这里也要
引用:
Option “Emulate3Buttons” “false”
当使用2键(左,右)鼠标时,这一项设置为“true”,则可以模拟3键(左,中,右)鼠标的功能。注:由于2键鼠标已经绝迹市场数年,所以这一项都可以设为false,据传在ubuntu8.04中,这一项将取消。
引用:
Option “Buttons” “7″
设置鼠标的按键数。 注:标准鼠标默认是5个按键,分别是左,右,滚轮点击,滚轮上滑,滚轮下滑。
如果鼠标还有多出的功能键,可以按个数增加。
引用:
Option “ZAxisMapping” “4 5″
Z轴映射,就是将“滚轮上滑”和“滚轮下滑”设置键的序号,这里设置成4键和5键。注:通过终端运行$xev,在方框内点击鼠标按键,就可以直到这个键的序号。
引用:
Option “ButtonMapping” “1 2 3 6 7″
按键映射,就是手动指定按键的序号。注:在Ubuntu7.04及以上,这一项可以不必添加。
引用:
Option “Resolution” “100″
设定鼠标的分辨率。 注:仅针对罗技等少数鼠标有效。
引用:
Option “EmulateWheel” “on”
Option “EmulateWheelButton” “2″
模拟鼠标滚轮。注:当使用Thinkpad的小红点时,添加上这两行,将激活小红点配合第三键实现滚动的功能。

参考:http://forum.ubuntu.org.cn/viewtopic.php?p=702960&highlight=

7 comments

  1. zylew 说道:

    不错,收藏了

  2. robin 说道:

    试用了果然有效,不国要重启系统:)

  3. control de flotas 说道:

    the world after decades of mobile phones,…

    exclusively from the beginning to the big gang of paid off, and, to the rise of numerous workshops replication industry want to grab a slice of the market fact, it is sufficient to see the most popular products in all markets…

  4. control de flotas 说道:

    it could show mapping and path information…

    for the device. when thinking about a gps device, you also need to hold in concern some using the trusted names inside the company like garmin, tomtom, magellan, cobra, lowrance and navman. it does not necessarily mean products from these names…

  5. Buy Facebook Fans 说道:

    Sources…

    [...]here are some links to sites that we link to because we think they are worth visiting[...]…

  6. Kola 说道:

    @zylew, 哈..搜索到的~~

发表评论