8.10里指点杆中键模拟鼠标滚轮的配置方法

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
robust
帖子: 294
注册时间: 2006-07-04 21:56

8.10里指点杆中键模拟鼠标滚轮的配置方法

#1

帖子 robust » 2008-09-22 11:08

指点杆中键模拟鼠标滚轮的方法一:
创建文件:/etc/hal/fdi/policy/mouse-wheel.fdi

代码: 全选

<match key="info.product" string="TPPS/2 IBM TrackPoint">
 <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
 <merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>
xorg.conf不用修改。

方法二:
先查看/var/log/Xorg.0.log,找到以下内容:

代码: 全选

(**) TPPS/2 IBM TrackPoint: always reports core events
(**) TPPS/2 IBM TrackPoint: Device: "/dev/input/event8"
(II) TPPS/2 IBM TrackPoint: Found x and y relative axes
(II) TPPS/2 IBM TrackPoint: Found 3 mouse buttons
(II) TPPS/2 IBM TrackPoint: Configuring as mouse
(II) XINPUT: Adding extended input device "TPPS/2 IBM TrackPoint" (type: MOUSE)
(**) TPPS/2 IBM TrackPoint: YAxisMapping: buttons 4 and 5
(**) TPPS/2 IBM TrackPoint: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
可见设备已经识别,设备名称是/dev/input/event8,只是模拟鼠标滚轮的默认是第4键。所以修改/etc/X11/xorg.conf如下:

代码: 全选

Section "InputDevice"
   Identifier   "Configured Mouse"
   Driver      "evdev"
   Option "CorePointer"
   Option "Device" "/dev/input/event8"
   Option "Emulate3Buttons" "true"
   Option "EmulateWheel" "true"
   Option "EmulateWheelButton" "2"
   Option "ZAxisMapping" "4 5"
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        Inputdevice     "Configured Mouse"
EndSection
和以前的方法不同一个是Device,mice不行了;另一个是Driver,现在是evdev。


原贴:
8.10里的触摸板还没弄明白:viewtopic.php?f=49&t=150054
我又把另一个笔记本thinkpad x40也升级到8.10了。升级后xorg.conf是这样的(升级完重启分辨很低,提示怎样处理,我选择了使用默认值),根本没有鼠标的内容:
Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
按老办法增加了以下内容,但指点杆的滚动功能还是不起作用:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "vmmouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "ZAxisMapping" "4 5"
EndSection
8.10的xorg.conf现在怎么用?是配置方法变了吗?
上次由 robust 在 2008-10-03 21:57,总共编辑 2 次。
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: 8.10里的触摸板和指点杆到底怎么搞?

#2

帖子 想入非非 » 2008-09-22 13:22

我跟你完全相反。。。现在已经完全禁用触摸板了。。。
Ubuntu User
头像
robust
帖子: 294
注册时间: 2006-07-04 21:56

Re: 8.10里的触摸板和指点杆到底怎么搞?

#3

帖子 robust » 2008-09-22 15:27

想入非非 写了:我跟你完全相反。。。现在已经完全禁用触摸板了。。。
我现在指点杆和触摸板都很熟练,因为我不想让右手在外置鼠标和键盘之间不停穿梭。
另外我觉得可以预防“鼠标手”,在家用指点杆,在公司用触摸板,偶尔再用用外置鼠标,多换换姿势。

这位老兄,你是在8.10里禁用的触摸板吗?我看过相关说明,有一种方法是要先修改xorg.conf,再用synclient禁用。虽然相反,步骤差不多。
头像
想入非非
帖子: 8078
注册时间: 2008-07-14 22:42
来自: Beijing
联系:

Re: 8.10里的触摸板和指点杆到底怎么搞?

#4

帖子 想入非非 » 2008-09-22 16:32

robust 写了:
想入非非 写了:我跟你完全相反。。。现在已经完全禁用触摸板了。。。
我现在指点杆和触摸板都很熟练,因为我不想让右手在外置鼠标和键盘之间不停穿梭。
另外我觉得可以预防“鼠标手”,在家用指点杆,在公司用触摸板,偶尔再用用外置鼠标,多换换姿势。

这位老兄,你是在8.10里禁用的触摸板吗?我看过相关说明,有一种方法是要先修改xorg.conf,再用synclient禁用。虽然相反,步骤差不多。
10.触摸板的控制gsynaptics:尚未实现插入USB鼠标自动禁用触摸板的功能。
1)安装
2)系统-首选项-鼠标,禁用“触摸板”即可。以下部分可选,可以跳过。

编辑xorg.conf文件:sudo gedit /etc/X11/xorg.conf
找到:
  Section "InputDevice"
  Identifier "Synaptics Touchpad"
  Driver "synaptics"
  Option "SendCoreEvents" "true"
  Option "Device" "/dev/psaux"
  Option "Protocol" "auto-dev"
  Option "HorizEdgeScroll" "0"
  Option "SHMConfig" "on"
  EndSection
在中间添加:
# 打开共享内存控制
Option "SHMConfig" "on"
# 触摸板初始化为关闭
Option "TouchpadOff" "1"
EndSection
3)保存xorg.conf重新启动X
sudo /etc/init.d/gdm restart
4)通过系统-》首选项-》触摸板,进行控制。
我是这样禁用的。。。你看看 :em06 我的是8.04 :|
Ubuntu User
wdboss
帖子: 240
注册时间: 2007-09-12 10:30
联系:

Re: 8.10里的触摸板和指点杆到底怎么搞?

#5

帖子 wdboss » 2008-09-22 17:39

不知道8.10把输入设备的配置放到哪了~
Dell Inspiron 1520
Intel Centrino Duo MTL
Intel 965PM Express
Core 2 Duo T7250 2.0GHz
2GB 667MHz DDR2
NVIDIA GeForce Go 8600M GT
120GB SATA
Intel PRO/Wireless 3945
OS:Ubuntu 8.10 64位
Status:一切正常
wdboss
帖子: 240
注册时间: 2007-09-12 10:30
联系:

Re: 8.10里的触摸板和指点杆到底怎么搞?

#6

帖子 wdboss » 2008-09-22 18:47

I made it! :em05
Dell Inspiron 1520
Intel Centrino Duo MTL
Intel 965PM Express
Core 2 Duo T7250 2.0GHz
2GB 667MHz DDR2
NVIDIA GeForce Go 8600M GT
120GB SATA
Intel PRO/Wireless 3945
OS:Ubuntu 8.10 64位
Status:一切正常
头像
robust
帖子: 294
注册时间: 2006-07-04 21:56

Re: 8.10里的触摸板和指点杆到底怎么搞?

#7

帖子 robust » 2008-09-22 19:49

wdboss 写了:I made it! :em05
用星际译王查了一下,才知道原来楼上成功了,分享一下呀。 :em07
wdboss
帖子: 240
注册时间: 2007-09-12 10:30
联系:

Re: 8.10里的触摸板和指点杆到底怎么搞?

#8

帖子 wdboss » 2008-09-23 0:59

robust 写了:
wdboss 写了:I made it! :em05
用星际译王查了一下,才知道原来楼上成功了,分享一下呀。 :em07
要改的话比较凶险,我的差点就进不了桌面了!
我的xorg.cong文件内容如下:

代码: 全选

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Synaptics Touchpad"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

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     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    Identifier     "Synaptics Touchpad"
    Driver         "synaptics"
    Option         "SendCoreEvents" "true"
    Option         "Device" "/dev/psaux"
    Option         "Protocol" "auto-dev"
    Option         "HorizEdgeScroll" "0"
    Option         "SHMConfig" "on"
    Option         "TouchpadOff" "1"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option	   "NoLogo"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
警告:不能照搬上面的内容,否则可能进不了桌面,硬件不同,配置不同。你可以参考"Synaptics Touchpad"的内容。

"ServerLayout"很关键,没有它的话,即便设置了"Synaptics Touchpad"也不会有作用。"ServerLayout"中必须要有Screen、Keyboard和Mouse,否则可能进不了桌面,或者鼠标键盘无效!
Dell Inspiron 1520
Intel Centrino Duo MTL
Intel 965PM Express
Core 2 Duo T7250 2.0GHz
2GB 667MHz DDR2
NVIDIA GeForce Go 8600M GT
120GB SATA
Intel PRO/Wireless 3945
OS:Ubuntu 8.10 64位
Status:一切正常
头像
robust
帖子: 294
注册时间: 2006-07-04 21:56

Re: 8.10里的触摸板和指点杆到底怎么搞?

#9

帖子 robust » 2008-09-23 11:51

多谢楼上,发现问题了,原来是没往ServerLayout里加。
触摸板的这台,synclient、gsynaptics都能用了,MaxTapMove原来的值只有20,调整到200就好了。
估计指点杆的问题可以解决了,回家再试试。
头像
robust
帖子: 294
注册时间: 2006-07-04 21:56

Re: 8.10里的触摸板和指点杆到底怎么搞[已解决]

#10

帖子 robust » 2008-09-30 21:47

Synaptics驱动升级后不用什么调整就好用了。指点杆模拟滚动一直不好使,最终是用这个方法解决的:

创建文件:/etc/hal/fdi/policy/mouse-wheel.fdi

代码: 全选

<match key="info.product" string="TPPS/2 IBM TrackPoint">
 <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
 <merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>
xorg.conf不用修改。

参见:
https://bugs.launchpad.net/ubuntu/+sour ... bug/261400
http://mvogt.wordpress.com/2008/08/15/x ... latewheel/
头像
robust
帖子: 294
注册时间: 2006-07-04 21:56

Re: 8.10里的触摸板和指点杆到底怎么搞[已解决]

#11

帖子 robust » 2008-10-03 21:48

因为每天都在升级,10楼的方法曾经一度不起作用,摸索出另一方法:
先查看/var/log/Xorg.0.log,找到以下内容:
(**) TPPS/2 IBM TrackPoint: always reports core events
(**) TPPS/2 IBM TrackPoint: Device: "/dev/input/event8"
(II) TPPS/2 IBM TrackPoint: Found x and y relative axes
(II) TPPS/2 IBM TrackPoint: Found 3 mouse buttons
(II) TPPS/2 IBM TrackPoint: Configuring as mouse
(II) XINPUT: Adding extended input device "TPPS/2 IBM TrackPoint" (type: MOUSE)
(**) TPPS/2 IBM TrackPoint: YAxisMapping: buttons 4 and 5
(**) TPPS/2 IBM TrackPoint: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
可见设备已经识别,设备名称是/dev/input/event8,只是模拟鼠标滚轮的默认是第4键。所以修改/etc/X11/xorg.conf如下:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "evdev"
Option "CorePointer"
Option "Device" "/dev/input/event8"
Option "Emulate3Buttons" "true"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "ZAxisMapping" "4 5"
EndSection

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
Inputdevice "Configured Mouse"
EndSection
起作用了 :em11 ,再看日志:
(II) config/hal: Adding input device TPPS/2 IBM TrackPoint
(**) TPPS/2 IBM TrackPoint: always reports core events
(**) TPPS/2 IBM TrackPoint: Device: "/dev/input/event8"
(EE) Grab failed. Device already configured?
(II) UnloadModule: "evdev"
(EE) PreInit returned NULL for "TPPS/2 IBM TrackPoint"
(EE) config/hal: NewInputDeviceRequest failed
头像
milujite
帖子: 644
注册时间: 2007-01-01 22:14
联系:

Re: 8.10里指点杆中键模拟鼠标滚轮的配置方法

#12

帖子 milujite » 2008-10-04 10:24

gsynaptics这个驱动可以在插入USB鼠标时候自动禁用触摸板和指点么?
ThinkPad SL400 DC
CPU:Intel® Core 2 Duo processor T5670
RAM:2x1GB,Dual
HARDDISK:Seagate 160G SATA
CD-ROM:COMBO
huzhiyongbc
帖子: 44
注册时间: 2008-10-05 3:42

Re: 8.10里指点杆中键模拟鼠标滚轮的配置方法

#13

帖子 huzhiyongbc » 2008-10-08 15:13

这种方法只能让使用上下滚动,怎么实现左右滚动啊?
还有3d桌面本来在桌面使用滚轮就可以3d翻转,但设了这个之后就不行了,只能左右切换了,怎么才能恢复中键3d翻转?
huzhiyongbc
帖子: 44
注册时间: 2008-10-05 3:42

Re: 8.10里指点杆中键模拟鼠标滚轮的配置方法

#14

帖子 huzhiyongbc » 2008-10-08 15:49

左右滚动解决了,在/etc/X11/xorg.conf里加上
Option "YAxisMapping" "4 5"
Option "XAxisMapping" "6 7"
3d桌面旋转还不知道怎么办。
头像
robust
帖子: 294
注册时间: 2006-07-04 21:56

Re: 8.10里指点杆中键模拟鼠标滚轮的配置方法

#15

帖子 robust » 2008-10-09 9:43

我都不配左右滚动,firefox还要改配置。
桌面毕竟是次要的。3d桌面试试就取消了。
回复