slackware 上的无线 USB 鼠标问题

slackware 上的无线 USB 鼠标问题

我有一个 Logitech m570 鼠标,但无法在 slackware64 14.1 上使用。

我的问题始于由于屏幕数量错误而无法使用“X-configure”来创建 xorg.conf,因此我使用图形界面来生成它。但默认的鼠标配置不起作用。我可以看到鼠标和罗技统一接收器。

$lsusb
    Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
...

但由于某种原因,它会将我的键盘检测为鼠标和键盘,并为同一件事创建 2 个不同的输入条目。现在我可以在 /dev/usb/ 和 /dev 中看到鼠标,但是当它没有显示为输入中的条目时,如何将它们连接到 xorg.conf

$ cat /proc/bus/input devices

    I: Bus=0003 Vendor=0566 Product=3107 Version=0110
    N: Name="HID 0566:3107"
    P: Phys=usb-0000:00:14.0-4/input0
    S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/input/input0
    U: Uniq=
    H: Handlers=sysrq kbd event0 
    B: PROP=0
    B: EV=120013
    B: KEY=1000000000007 ff800000000007ff febeffdff3cfffff fffffffffffffffe
    B: MSC=10
    B: LED=7

    I: Bus=0003 Vendor=0566 Product=3107 Version=0110
    N: Name="HID 0566:3107"
    P: Phys=usb-0000:00:14.0-4/input1
    S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.1/input/input1
    U: Uniq=
    H: Handlers=kbd event1 
    B: PROP=0
    B: EV=1f
    B: KEY=4837fff072ff32d bf54444600000000 1 20f908b17c000 677bfad941dfed   9ed68000004400 10000002
    B: REL=40
    B: ABS=100000000
    B: MSC=10

因此,基本上我的鼠标不会出现在输入中,我真的很想知道如何将其显示在输入中。我尝试用谷歌搜索符号链接和 mknod 之类的东西,但这似乎不是我正在寻找的东西。我尝试编辑 xorg.conf 以使用 /dev/usb/hiddev0 和 /dev/hidraw2,因此引用它们但写入输入设备条目,但这并没有真正起作用。所以我被困在如何继续,任何帮助将不胜感激,我一直在努力让它工作几个小时。

$dmesg | grep usb
    [    4.023868] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [4.024300] usb usb1: Product: xHCI Host Controller
    [4.024731] usb usb1: Manufacturer: Linux 3.10.17 xhci_hcd
    [4.025163] usb usb1: SerialNumber: 0000:00:14.0
    [4.029717] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
    [4.030152] usb usb2: New USB device strings: Mfr=3, Product=2,SerialNumber=1
    [4.030584] usb usb2: Product: xHCI Host Controller
    [4.031013] usb usb2: Manufacturer: Linux 3.10.17 xhci_hcd
    [4.031442] usb usb2: SerialNumber: 0000:00:14.0
    [4.039385] usbcore: registered new interface driver usbhid
    [4.039832] usbhid: USB HID core driver
    [4.381758] usb 1-3: new full-speed USB device number 2 using xhci_hcd
    [4.395148] usb 1-3: New USB device found, idVendor=046d, idProduct=c52b
    [4.395590] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [4.396039] usb 1-3: Product: USB Receiver
    [4.396478] usb 1-3: Manufacturer: Logitech
    [4.553756] usb 1-4: new low-speed USB device number 3 using xhci_hcd
    [4.569918] usb 1-4: New USB device found, idVendor=0566, idProduct=3107
    [4.570370] usb 1-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [4.570930] usb 1-4: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
    [4.571389] usb 1-4: ep 0x82 - rounding interval to 64 microframes, ep desc says 80 microframes
    [4.575143] input: HID 0566:3107 as /devices/pci0000:00/0000:00:14.0   /usb1/1-4/1-4:1.0/input/input0
    [4.575693] hid-generic 0003:0566:3107.0004: input,hidraw0: USB HID v1.10 Keyboard [HID 0566:3107] on usb-0000:00:14.0-4/input0
    [4.580302] input: HID 0566:3107 as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.1/input/input1
    [4.580898] hid-generic 0003:0566:3107.0005: input,hidraw1: USB HID v1.10 Device [HID 0566:3107] on usb-0000:00:14.0-4/input1
    [5.191385] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
    [5.192020] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [5.192649] usb usb3: Product: EHCI Host Controller
    [5.193287] usb usb3: Manufacturer: Linux 3.10.17 ehci_hcd
    [5.193922] usb usb3: SerialNumber: 0000:00:1a.0
    [5.195491] logitech-djreceiver 0003:046D:C52B.0003: hiddev0,hidraw2: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-3/input2
    [5.211771] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
    [5.211773] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [5.211775] usb usb4: Product: EHCI Host Controller
    [5.211777] usb usb4: Manufacturer: Linux 3.10.17 ehci_hcd
    [5.211778] usb usb4: SerialNumber: 0000:00:1d.0
    [5.499746] usb 3-1: new high-speed USB device number 2 using ehci-pci
    [5.614125] usb 3-1: New USB device found, idVendor=8087, idProduct=8008
    [5.614136] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [5.717741] usb 4-1: new high-speed USB device number 2 using ehci-pci
    [5.833124] usb 4-1: New USB device found, idVendor=8087, idProduct=8000
    [5.833133] usb 4-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

答案1

将物理地址添加到/etc/X11/xorg.conf.d/10-evdev.conf,如下所示:

Section "InputClass"
    Identifier      "evdev pointer catchall"
    MatchIsPointer  "on"
    MatchDevicePath "/dev/input/event*"
    Driver          "evdev"
    Option          "Phys" "usb-0000:00:14.0-10.2/input0"
EndSection

Section "InputClass"
    Identifier      "evdev keyboard catchall"
    MatchIsKeyboard "on"
    Option          "Phys" "usb-0000:00:14.0-13.3/input0"
    Driver          "evdev"
EndSection

(当然,使用的地址你的鼠标和键盘)。

相关内容