我只有 Linux 计算机 (Ubuntu 22.04),而且我刚刚收到了正式不支持 Linux 的 3D Connexion CadMouse Pro。但我想这与控制软件有关,作为 HID 鼠标,它至少应该移动指针。
恐怕它可能有缺陷。我正在寻找一种方法来了解鼠标本身是否正常工作。
这是我做了一些调试:
$ lsusb
Bus 002 Device 003: ID 05e3:0723 Genesys Logic, Inc. GL827L SD/MMC/MS Flash Card Reader
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 014: ID 1ea7:002c SHARKOON Technologies GmbH USB Gaming Mouse
Bus 003 Device 010: ID 0a5c:2148 Broadcom Corp. BCM92046DG-CL1ROM Bluetooth 2.1 Adapter
Bus 003 Device 009: ID 0a5c:4503 Broadcom Corp. Mouse (Boot Interface Subclass)
Bus 003 Device 008: ID 0a5c:4502 Broadcom Corp. Keyboard (Boot Interface Subclass)
Bus 003 Device 006: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth)
Bus 003 Device 015: ID 256f:c656 3Dconnexion CadMouse Pro
Bus 003 Device 005: ID 04d9:a061 Holtek Semiconductor, Inc. USB Keyboard
Bus 003 Device 004: ID 256f:c635 3Dconnexion SpaceMouse Compact
$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ HID 0a5c:4503 Mouse id=13 [slave pointer (2)]
⎜ ↳ USB Gaming Mouse id=15 [slave pointer (2)]
⎜ ↳ USB Gaming Mouse Consumer Control id=16 [slave pointer (2)]
⎜ ↳ 3Dconnexion CadMouse Pro id=19 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ USB Keyboard id=9 [slave keyboard (3)]
↳ USB Keyboard System Control id=10 [slave keyboard (3)]
↳ USB Keyboard Consumer Control id=11 [slave keyboard (3)]
↳ HID 0a5c:4502 id=12 [slave keyboard (3)]
↳ USB Gaming Mouse id=14 [slave keyboard (3)]
↳ USB Gaming Mouse System Control id=17 [slave keyboard (3)]
↳ USB Gaming Mouse Consumer Control id=18 [slave keyboard (3)]
[10193.373908] usb 3-4.5: new full-speed USB device number 16 using xhci_hcd
[10193.488391] usb 3-4.5: New USB device found, idVendor=256f, idProduct=c656, bcdDevice= 1.08
[10193.488397] usb 3-4.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[10193.488399] usb 3-4.5: Product: CadMouse Pro
[10193.488400] usb 3-4.5: Manufacturer: 3Dconnexion
[10193.497577] input: 3Dconnexion CadMouse Pro as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.5/3-4.5:1.0/0003:256F:C656.0015/input/input47
[10193.497760] hid-generic 0003:256F:C656.0015: input,hidraw8: USB HID v1.11 Mouse [3Dconnexion CadMouse Pro] on usb-0000:00:14.0-4.5/input0
[10193.499613] input: 3Dconnexion CadMouse Pro as /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4.5/3-4.5:1.1/0003:256F:C656.0016/input/input48
[10193.499687] hid-generic 0003:256F:C656.0016: input,hiddev2,hidraw9: USB HID v1.11 Multi-Axis Controller [3Dconnexion CadMouse Pro] on usb-0000:00:14.0-4.5/input1
$ ls -l /dev/input/by-id/
totale 0
lrwxrwxrwx 1 root root 9 mar 17 09:21 usb-04d9_USB_Keyboard-event-if01 -> ../event5
lrwxrwxrwx 1 root root 9 mar 17 09:21 usb-04d9_USB_Keyboard-event-kbd -> ../event4
lrwxrwxrwx 1 root root 10 mar 17 09:21 usb-0a5c_4502-event-kbd -> ../event12
lrwxrwxrwx 1 root root 10 mar 17 09:21 usb-0a5c_4503-event-mouse -> ../event13
lrwxrwxrwx 1 root root 9 mar 17 09:21 usb-0a5c_4503-mouse -> ../mouse1
lrwxrwxrwx 1 root root 9 mar 17 12:00 usb-1ea7_USB_Gaming_Mouse-event-if02 -> ../event9
lrwxrwxrwx 1 root root 9 mar 17 12:00 usb-1ea7_USB_Gaming_Mouse-event-kbd -> ../event7
lrwxrwxrwx 1 root root 9 mar 17 12:00 usb-1ea7_USB_Gaming_Mouse-if01-event-mouse -> ../event8
lrwxrwxrwx 1 root root 9 mar 17 12:00 usb-1ea7_USB_Gaming_Mouse-if01-mouse -> ../mouse0
lrwxrwxrwx 1 root root 10 mar 17 12:10 usb-3Dconnexion_CadMouse_Pro-event-if01 -> ../event24
lrwxrwxrwx 1 root root 10 mar 17 12:10 usb-3Dconnexion_CadMouse_Pro-event-mouse -> ../event23
lrwxrwxrwx 1 root root 9 mar 17 12:10 usb-3Dconnexion_CadMouse_Pro-mouse -> ../mouse2
lrwxrwxrwx 1 root root 9 mar 17 09:21 usb-3Dconnexion_SpaceMouse_Compact-event-if00 -> ../event3
因此,它似乎可以识别我的鼠标在/dev/input/mouse2
和/dev/input/event23
/ 上/dev/input/event24
。
我也尝试cat
在移动鼠标时访问这些文件,但没有输出。相反,如果我sudo cat /dev/input/mouse0
(我现在使用的鼠标)我看到一些输出。
我可以假设鼠标根本不起作用吗?或者还有什么我可以尝试的吗?
答案1
感谢用户@meuh的建议我尝试运行:
sudo evtest
为我的鼠标选择event
文件。输出是:
该设备被另一个进程占用。当另一个抓取处于活动状态时,没有可用于 evtest 的事件。
因此我发出:
$ sudo fuser -v /dev/input/event8
UTENTE PID ACCESSO COMANDO
/dev/input/event8: root 1405 F.... spacenavd
spacenavd
是 3D 导航设备的驱动程序(您可以在ls -l /dev/input/by-id/
上面的输出中看到它)。停止此服务后,鼠标开始工作。
底线:鼠标功能正常,但 3D Connexion SpaceMouse 的驱动程序中存在错误,导致 CadMouse 无法工作。