wiki:Hal/InputDeviceConfiguration

Hal による入力デバイスの設定について

Vine Linux 5 から、X の入力デバイスのうちポインタデバイス(マウスやタッチパッド)に ついては Hal が検出したデバイスを X が自動的に利用するようになっています。従来の xorg.confによる設定は今後使われず、デバイスの認識については Hal で、デバイスの設 定については Hal または XINPUT で設定することになります。

マウスデバイスは "evdev" ドライバで利用され、xorg.conf に記述した "mouse" や "vmmouse" は標準では無視されます。

デバイスの設定

デフォルトの Hal の入力デバイスの設定は次のファイルで行われています。

  • /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi (マウス)
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <deviceinfo version="0.2">
      <device>
        <!-- FIXME: Support tablets too. -->
        <match key="info.capabilities" contains="input.mouse">
          <merge key="input.x11_driver" type="string">mouse</merge>
          <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
                 string="Linux">
            <merge key="input.x11_driver" type="string">evdev</merge>
          </match>
        </match>
      </device>
    </deviceinfo>
    
  • /usr/share/hal/fdi/policy/10osvendor/11-x11-synaptics.fdi (タッチパッド)
    ?xml version="1.0" encoding="ISO-8859-1"?>
    <deviceinfo version="0.2">
      <device>
        <match key="info.capabilities" contains="input.touchpad">
            <merge key="input.x11_driver" type="string">synaptics</merge>
            <merge key="input.x11_options.SHMConfig" type="string">true</merge>
            <!-- Arbitrary options can be passed to the driver using
                 the input.x11_options property since xorg-server-1.5. -->
            <!-- EXAMPLES:
            Switch on shared memory, enables the driver to be configured at runtime
    	<merge key="input.x11_options.SHMConfig" type="string">true</merge>
    
    	Maximum movement of the finger for detecting a tap
    	<merge key="input.x11_options.MaxTapMove" type="string">2000</merge>
    
    	Enable vertical scrolling when dragging along the right edge
    	<merge key="input.x11_options.VertEdgeScroll" type="string">true</merge>
    
    	Enable vertical scrolling when dragging with two fingers anywhere on the touchpad
    	<merge key="input.x11_options.VertTwoFingerScroll" type="string">true</merge>
    
    	Enable horizontal scrolling when dragging with two fingers anywhere on the touchpad
    	<merge key="input.x11_options.HorizTwoFingerScroll" type="string">true</merge>
    
    	If on, circular scrolling is used
    	<merge key="input.x11_options.CircularScrolling" type="string">true</merge>
    
    	For other possible options, check CONFIGURATION DETAILS in synaptics man page
            -->
        </match>
      </device>
    </deviceinfo>
    

設定の変更は、これらを直接編集せず、 /etc/hal/fdi/policy にコピーしてから修正 を行って下さい。

Hal 利用の停止

準備中(Halを使わない設定は推奨しない)