|
|
XFree86 No. 320 USBマウスを追加する
【準備】
USBデバイスを使用するためには、Turbolinux 7 Workstation 以降が必要です。
【設定】
(1) murasaki の起動
USBデバイスを認識するためには、murasakiの起動が必要です。起動されていない場合は
# /etc/init.d/murasaki start
と実行し、起動してください。chkconfig コマンドを使用し、起動時に常に起動され
るように設定しておくと良いでしょう。
# chkconfig murasaki on
(2) デバイス認識状況の確認
USBデバイスを接続し、usbprobeコマンドを実行します。
接続したデバイスの情報が出力されていることを確認します。
(3) XF86Config ファイルを編集する
/etc/X11/XF86Config ファイルを編集し、新しいポインティングデバイスを追加します。
なお、マウスの機種によっては、プロトコルが異なる場合があるので、マウスカーソル
の動作が正常でない場合には、Protocolの値を変更して下さい。
[/etc/X11/XF86Config](一部省略)
--------------------------------------------------------------
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Mouse1" "SendCoreEvents" <- 追加
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "ServerFlags"
AllowMouseOpenFail <- 他のポインティングデバイスを併用する場合
EndSection
...
(ホイールマウスの場合)
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mouse0"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
EndSection
(2ボタンマウスの場合)
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/input/mouse0"
Option "Buttons" "2"
Option "Emulate3Buttons" "yes"
EndSection
--------------------------------------------------------------
ノートパソコン等を使用していて、内蔵ポインティングデバイスと併用したい場合には、
"AllowMouseOpenFail"フラグを設定してください。USBポインティングデバイスが接続
されていない場合にも、エラーが発生しなくなります。
【参考】
USBデバイスに関する詳細な情報は、以下のサイトを参考にして下さい。
Linux USB Project
http://www.linux-usb.org/
USB mania
http://www.powerbook.org/linux/usb.html
XF86Config XFree86 USB 関連文書 対象製品
Last modified : Wed May 29 JST 2002 # 5
|
Copyright © Turbolinux, Inc..All Right Reserved.

