
私の顧客の1人は、次のようなLinuxシステムを持っています:
Suse Linux 15
私はラリタンのKVM-over-IPデバイス(DKX4-101)を接続しました。これは、絶対マウスモードでキーボード+マウスを備えたUSBデバイスを導入します。絶対マウスモード使用しています。KVM
を介してシステムを操作できますが、マウスは相対マウスモードKVMが絶対マウス座標を送信していることに100%確信しています。説明Linux にはレガシー マウス ドライバー (mousedev) があり、これによりレガシー アプリケーションは /dev/input/mice 経由で ps2 スタイルのインターフェイスを使用するようになり、絶対マウス座標を使用するマウスを相対座標に変換することもできます。したがって、KVM の絶対マウスはアプリケーションによって直接使用されるのではなく、ps2 ベースで絶対マウス モードをサポートしないレガシー mousedev インターフェイスを介して「パイプ/変換」されると考えられます。
私が今実現しようとしているのは、このシステムで、mousedev でローカル マウスを使用でき、KVM が絶対マウス モードをサポートする「通常の」ドライバーを使用することです。顧客から、システムでは何も変更しない (可能な場合) ように言われているため、mousedev アプローチを維持したいと考えています。何かを変更する場合は、KVM に何かを導入するだけで、既存のデバイスで使用されているドライバーなど、何も変更しないでください。
したがって、私の質問は次のようになります。
- そんなことが可能なのでしょうか?
- xorg.conf を変更すればこれを実現できるでしょうか?
ご協力ありがとうございます。以下に、私が見つけた関連するすべての設定ファイル/ログを添付します。
J.
udev マウスルールは次のとおりです。
# serial ps/2 mouse
KERNELS=="input*", SUBSYSTEMS=="input", ATTRS(name)=="PS/2 Logitech Mouse", ATTRS(phys)=="isa0060/serio1/input0", SYMLINK+="input/pmouse0", MODE="0660", RUN="/usr/bin/killall -10 X"
# usb mouse
KERNELS=="mouse*", SUBSYSTEM=="input", ATTRS(name)=="USB*Mouse*", MODE="0660", SYMLINK="input/pmouse0", RUN="/usr/bin/killall -10 X"
そして、より一般的なevdev udevルール
Section "InputClass"
Identifier "evdev pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
Section "InputClass"
Identifier "evdev tablet catchall"
MatchIsTablet "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
EndSection
そして、より一般的なlibinput udevルール
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput tablet catchall"
MatchIsTablet "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
xorg.confでこれを見つけた
...
Section "ServerLayout"
Identifier "NVidia"
Screen "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "ServerFlags"
Option "AutoAddDevices" "false"
Option "AutoEnableDevices" "true"
Option "AllowEmptyInput" "false"
EndSection
...
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "explorerps/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection
xinput list を実行しても、KVM デバイスのマウスが表示されません
Virtual core pointer
Virtual core XTEST pointer
Mouse0
Virtual core keygoard
Virtual core XTEST keyboard
Keyboard0
lsusb を実行すると、2 つのローカル デバイス (キーボード + マウス) と KVM が表示されます。
lsusb
...
BUS 001 Device 012: ID 03f0:034a HP, Inc Elite Keyboard
BUS 001 Device 010: ID 03f0:134a HP, Inc Optical Mouse
Bus 002 Device 014: ID 14dd:1010 Raritan Computer, Inc. KX4-101
...
boot.msgでデバイスがどのように登録されているかを確認します
input: Raritan KX4-101 as /devices/pci0000:00/0000:00:14,0/usb1/1-6/6:1.0/0003:1400:1010.0001/input/input1
hid-generic: 0003:1400:1010.0001: input.hidraw0: USB HID v1.01 Keyboard [Raritan KX4-101] on usb-0000:00:14.0-6/input0
input: Raritan KX4-101 as /devices/pci0000:00/0000:00:14,0/usb1/1-6/6:1.0/0003:1400:1010.0002/input/input2
hid-generic: 0003:1400:1010.0002: input.hidraw1: USB HID v1.01 Mouse [Raritan KX4-101] on usb-0000:00:14.0-6/input1
xorg.log で次の内容を見つけました:
(II) config/udev: Adding input device Raritan KX4-101 (/dev/input/mouse0)
(II) AutoAddDevices is off - not adding device.
(II) config/udev: Adding input device Raritan KX4-101 (/dev/input/event1)
(II) AutoAddDevices is off - not adding device.
...
(II) LoadModule: "mouse"
(II) Loading /usr/lib64/xorg/modules/input/mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
compiled for 1.20.3, module version = 1.9.2
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 24.1
...
(II)Using input driver 'mouse' for 'Mouse1'
(**) Option "CorePointer"
(**) Mouse1: always reports core events
(**) Option "Protocol" "PS/2"
(**) Option "Device" "/dev/input/
/dev/inputにはたくさんのイベントがあり、最後に
... input 13 ... mice
... input 13 ... mouse0
... input 13 ... mouse1
... input 13 ... mouse2
... input 13 ... mouse3
... input 13 ... mouse4
... root ... pmouse0 -> mouse3