我在Linux桌面和Windows 10笔记本之间使用一个旧的KVM开关,所有这些都工作得很好。现在,我正在尝试一个新的4K显示功能KVM开关和鼠标,键盘只有在切换到Windows 10笔记本时才能工作。

当我启动Linux桌面时,鼠标和键盘会输入bios设置并选择内核版本,但是当它启动到Linux时,鼠标和键盘就会丢失。我尝试了各种bios USB配置。
专用鼠标和键盘端口有EDID编程。这种模拟允许开关接收热键和鼠标手势,但与游戏外围设备发生冲突,并选择鼠标/键盘品牌。这是所有具有热键和鼠标手势切换的KVM开关的问题。我们建议使用带有电源的USB集线器的USB端口作为解决办法。由于USB端口没有EDID仿真,所以使用USB输入的设备无法使用键盘热键和鼠标手势切换。
当我的设备切换到Windows时,这个EDID问题是否是问题所在?
当键盘和鼠标连接到桌面usb端口时,它们的显示方式如下
$ lsusb | grep Dell
Bus 003 Device 012: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 003 Device 016: ID 413c:301d Dell Computer Corp. Dell Universal Receiver当将鼠标从桌面USB断开并重新连接到桌面USB时,dmesg输出:
[44207.307355] usb 3-1: USB disconnect, device number 16
[44237.459814] usb 3-1: new full-speed USB device number 17 using xhci_hcd
[44237.588780] usb 3-1: New USB device found, idVendor=413c, idProduct=301d, bcdDevice= 0.09
[44237.588793] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[44237.588795] usb 3-1: Product: Dell Universal Receiver
[44237.588796] usb 3-1: Manufacturer: Dell
[44237.592182] input: Dell Dell Universal Receiver as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/0003:413C:301D.001D/input/input42
[44237.644089] hid-generic 0003:413C:301D.001D: input,hidraw3: USB HID v1.11 Keyboard [Dell Dell Universal Receiver] on usb-0000:00:14.0-1/input0
[44237.646362] input: Dell Dell Universal Receiver Mouse as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.1/0003:413C:301D.001E/input/input43
[44237.646539] input: Dell Dell Universal Receiver Consumer Control as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.1/0003:413C:301D.001E/input/input44
[44237.697939] input: Dell Dell Universal Receiver System Control as /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.1/0003:413C:301D.001E/input/input45
[44237.698040] hid-generic 0003:413C:301D.001E: input,hidraw4: USB HID v1.11 Mouse [Dell Dell Universal Receiver] on usb-0000:00:14.0-1/input1
[44237.699622] hid-generic 0003:413C:301D.001F: hiddev96,hidraw5: USB HID v1.11 Device [Dell Dell Universal Receiver] on usb-0000:00:14.0-1/input2当连接到kvm专用端口时,它们不会显示。
我想kvm专用端口在这里:
$ lsusb | grep Terminus
Bus 003 Device 011: ID 1a40:0101 Terminus Technology Inc. Hub当kvm连接到桌面并附加设备时,dmesg输出:
[44978.128957] usb 3-4: new high-speed USB device number 24 using xhci_hcd
[44978.255178] usb 3-4: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[44978.255181] usb 3-4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[44978.255183] usb 3-4: Product: USB 2.0 Hub
[44978.256899] hub 3-4:1.0: USB hub found
[44978.257119] hub 3-4:1.0: 4 ports detected
[44978.638953] usb 3-4.2: new low-speed USB device number 25 using xhci_hcd
[44978.830754] usb 3-4.2: New USB device found, idVendor=046d, idProduct=c534, bcdDevice= 1.01
[44978.830757] usb 3-4.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[44978.838801] logitech-djreceiver 0003:046D:C534.002A: hidraw0: USB HID v1.00 Keyboard [HID 046d:c534] on usb-0000:00:14.0-4.2/input0
[44978.895119] logitech-djreceiver 0003:046D:C534.002B: hidraw1: USB HID v1.11 Mouse [HID 046d:c534] on usb-0000:00:14.0-4.2/input1所以这些设备可以被看作是logitech-djreceiver。是否有可以传递给内核的参数或驱动程序黑客来使其工作?怎么麻烦?
每当我按下键或移动鼠标时,这一行就一直出现在dmesg输出中:
[19064.570003] delayedwork_callback: delayedwork queued before hidpp interface was enumerated因此,设备信号正在传递,但Linux并没有将其作为鼠标和键盘设备。
我已经安装了统一接收器-udev和重新启动,但仍然不工作。
同样的结果也尝试了罗技鼠标。
发布于 2020-12-03 14:23:45
我的朋友在Linux5.8.18上的16端口TESmart 4k HDMI交换机也有同样的问题。
当开关在引导加载程序中正常工作时,这个选项修复了它:
sudo su
echo "blacklist hid_logitech_dj" > /etc/modprobe.d/logitech_dj.conf
reboot因此,只需黑名单hid_logitech_dj内核模块。
发布于 2022-02-02 09:22:30
thx @lubosz!你救了我的命!!
实际上,没有必要重新启动:
sudo su -
echo "blacklist hid_logitech_dj" > /etc/modprobe.d/tesmart-kvm.conf现在断开kvm与pc之间的电缆,然后:
sudo rmmod hid_logitech_dj然后重新连接电缆,它就不会再加载hid_logitech_dj了。
用(不应给出任何结果)核实:
lsmod | grep hid_logitech_dj如果你看到它还在列,重新启动。
https://unix.stackexchange.com/questions/601078
复制相似问题