Oracle® Solaris 11.2 デスクトップ管理者ガイド

印刷ビューの終了

更新: 2014 年 7 月
 
 

HAL fdi ファイルの操作

ハードウェア抽象化層 (HAL) システムデーモン hald によって読み取られる fdi ファイルを使用して、Xorg サーバーの入力デバイスを構成できます。

たとえば、マウスデバイスの Emulate3Buttons オプションで左右のボタンを一緒に押すと中央ボタンとして動作できるようにするには、次の XML 抜粋を /etc/hal/fdi/policy/30user/10-x11-3button.fdi ファイルに含めます。

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
		<device>
			<!--Default X.org input configuration is defined in:
	    	/etc/hal/fdi/policy/30user/10-x11-input.fdi
    	Settings here modify or override the default configuration.
    	See comment in the file above for more information.

    	To see the currently active hal X.org input configuration
    	run lshal or hal-device(1m) and search for "input.x11*" keys.

     	Hal and X must be restarted for changes here to take any effect -->

			<match key="info.capabilities" contains="input.mouse">
			<merge key="input.x11_options.Emulate3Buttons" type="string">on</merge>
			</match>
		</device>
</deviceinfo>

lshal コマンドは、HAL で認識されている使用可能な入力デバイスをチェックして、その入力デバイスで設定されているオプションを確認するために使用できます。詳細は、lshal(1M)hal(5)、および fdi(4) のマニュアルページを参照してください。