个人工具

“UbuntuHelp:Logitech Marblemouse USB”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/Logitech_Marblemouse_USB}} {{Languages|UbuntuHelp:Logitech_Marblemouse_USB}} == Introduction == The newest version of Xorg used in Intrepid brings...)
 
第24行: 第24行:
 
</nowiki></pre>
 
</nowiki></pre>
 
== External Links ==
 
== External Links ==
* [[http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/]] - Explanation of how to find your input device using xinput.
+
* [http://mvogt.wordpress.com/2008/08/15/xorg-evdev-and-emulatewheel/] - Explanation of how to find your input device using xinput.
* [[https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/261400]] - Link to launchpad with further explanation of how the new hal policy works.
+
* [https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/261400] - Link to launchpad with further explanation of how the new hal policy works.
* [[http://ubuntuforums.org/showthread.php?t=938487]] - Link to original thread in intrepid testing forums for the Logitech Marble Mouse USB.
+
* [http://ubuntuforums.org/showthread.php?t=938487] - Link to original thread in intrepid testing forums for the Logitech Marble Mouse USB.
 
----
 
----
 
[[category:CategoryHardware]]  
 
[[category:CategoryHardware]]  
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年10月19日 (日) 23:43的版本

Introduction

The newest version of Xorg used in Intrepid brings changes as to how input devices are detected and set up for use. Hal now plays a large part in the process, and as such xorg.conf is largely ignored, so any settings you had in xorg.conf will no longer be in use when X starts. You will now need to add files to /etc/hal/fdi/policy with an .fdi extension.

Example mouse-wheel.fdi

Placing this file in /etc/hal/fdi/policy/ will enable scrolling while holding down the small, left mouse button on a Logitech Marble Mouse USB.

<match key="info.product" string="Logitech USB Trackball">
 <merge key="input.x11_options.ButtonMapping" type="string">1 8 3 2 9</merge>
 <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelButton" type="string">8</merge>
 <merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>

Middle Click

Currently the button mapping described above is being ignored by HAL. This is particularly problematic if you want one of the small buttons to serve as middle click. A simple workaround is to remap what you need via xmodmap. As an example, let's map the small left button as middle click. Save this in your .Xmodmap file:

pointer = 1 8 3 4 5 6 7 2 9

Note that all we did was to swap the numbers 2 and 8. If you'd like to use the small right button as middle click, swap 2 and 9 instead. The .Xmodmap file will be loaded next time you log in. To run it manually, run:

$ xmodmap .Xmodmap

External Links

  • [1] - Explanation of how to find your input device using xinput.
  • [2] - Link to launchpad with further explanation of how the new hal policy works.
  • [3] - Link to original thread in intrepid testing forums for the Logitech Marble Mouse USB.