![USB 장치(키보드 또는 마우스)가 "lsusb"에 표시되지만 두 번째 USB 장치가 연결된 경우 작동하지 않습니다.](https://linux55.com/image/144000/USB%20%EC%9E%A5%EC%B9%98(%ED%82%A4%EB%B3%B4%EB%93%9C%20%EB%98%90%EB%8A%94%20%EB%A7%88%EC%9A%B0%EC%8A%A4)%EA%B0%80%20%22lsusb%22%EC%97%90%20%ED%91%9C%EC%8B%9C%EB%90%98%EC%A7%80%EB%A7%8C%20%EB%91%90%20%EB%B2%88%EC%A7%B8%20USB%20%EC%9E%A5%EC%B9%98%EA%B0%80%20%EC%97%B0%EA%B2%B0%EB%90%9C%20%EA%B2%BD%EC%9A%B0%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
지난 몇 달 동안 랩톱에 연결된 두 번째 USB 장치가 표시되고 lsusb
괜찮아 dmesg
보이는데도 응답하지 않는 이상한 문제가 발생했습니다.
USB 마우스와 USB 키보드 모두에 해당됩니다. 어떤 장치를 먼저 연결하든(어떤 USB 포트에 연결하든 상관없습니다) 즉시 인식되어 제대로 작동합니다. 연결할 두 번째 장치도 표시되지만 lsusb
입력 dmesg
에 전혀 응답하지 않습니다.
lsusb
키보드(정상 작동)와 마우스(응답 없음)가 연결된 출력은 다음과 같습니다.
[mindtree@mindtree ~]$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 04f3:2356 Elan Microelectronics Corp.
Bus 001 Device 004: ID 1532:0220 Razer USA, Ltd Blade Stealth (2016)
Bus 001 Device 003: ID 0bda:579f Realtek Semiconductor Corp.
Bus 001 Device 002: ID 0cf3:e300 Qualcomm Atheros Communications
Bus 001 Device 016: ID 1a2c:2124 China Resource Semico Co., Ltd <-- keyboard
Bus 001 Device 018: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse <-- mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
출력은 다음과 같습니다 dmesg | tail
.
[ 9358.624908] input: SEM USB Keyboard Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:1A2C:2124.0018/input/input58
[ 9358.681734] input: SEM USB Keyboard System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-2/1-2:1.1/0003:1A2C:2124.0018/input/input59
[ 9358.681902] hid-generic 0003:1A2C:2124.0018: input,hidraw6: USB HID v1.10 Device [SEM USB Keyboard] on usb-0000:00:14.0-2/input1
[ 9360.874780] usb 1-1: new low-speed USB device number 22 using xhci_hcd
[ 9361.018780] usb 1-1: New USB device found, idVendor=046d, idProduct=c05a, bcdDevice=63.00
[ 9361.018786] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 9361.018790] usb 1-1: Product: USB Optical Mouse
[ 9361.018793] usb 1-1: Manufacturer: Logitech
[ 9361.023264] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C05A.0019/input/input60
[ 9361.023673] hid-generic 0003:046D:C05A.0019: input,hidraw7: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:14.0-1/input0
확인해 보니 설치된 커널 버전이 시스템을 마지막으로 부팅한 버전과 다르지 않은 경우 이 오류가 계속 발생합니다.
[mindtree@mindtree ~]$ uname -r
4.18.12-arch1-1-ARCH
[mindtree@mindtree ~]$ pacman -Q linux
linux 4.18.12.arch1-1
노트북이 연결되어 있을 때와 연결되어 있지 않을 때 모두 이런 현상이 발생합니다.
두 장치를 모두 연결한 상태에서 컴퓨터를 다시 시작하면 안정적으로 감지되며, 그놈에 로그인하면 두 장치 모두 응답합니다.
가끔이 오류는 전혀 발생하지 않지만 꽤 자주 발생하며 이유를 알 수 없는 것 같습니다. 예를 들어, 지금은 오류가 더 이상 나타나지 않지만 마지막으로 오류를 뽑았다가 다시 연결한 이후로 해당 텍스트 상자에 입력하는 것 외에는 시스템에서 아무 작업도 수행하지 않았습니다.
내 노트북은 Arch Linux 및 Gnome 3.30.1을 실행하는 Razer Blade Stealth입니다.
- 메모리: 15.6GiB
- 프로세서: Intel® Core™ i7-7500U CPU @ 2.70GHz × 4
- 그래픽 카드: Intel® HD Graphics 620(Kaby Lake GT2)
- 운영 체제 유형: 64비트
- 디스크: 503.0GB
편집: 방금 작업을 시작했는데 문제가 다시 발생하여 이번에는 더 자세한 journalctl
로그를 확인했습니다.
Oct 15 10:47:13 mindtree kernel: usb 1-1: new low-speed USB device number 17 using xhci_hcd
Oct 15 10:47:13 mindtree kernel: usb 1-1: New USB device found, idVendor=046d, idProduct=c05a, bcdDevice=63.00
Oct 15 10:47:13 mindtree kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 15 10:47:13 mindtree kernel: usb 1-1: Product: USB Optical Mouse
Oct 15 10:47:13 mindtree kernel: usb 1-1: Manufacturer: Logitech
Oct 15 10:47:13 mindtree kernel: input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C05A.000E/input/input46
Oct 15 10:47:13 mindtree kernel: hid-generic 0003:046D:C05A.000E: input,hidraw7: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:14.0-1/input0
Oct 15 10:47:13 mindtree mtp-probe[7510]: checking bus 1, device 17: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-1"
Oct 15 10:47:13 mindtree mtp-probe[7510]: bus: 1, device: 17 was not an MTP device
Oct 15 10:47:13 mindtree systemd-udevd[7509]: failed to create db file '/run/udev/data/c189:16' for '/devices/pci0000:00/0000:00:14.0/usb1/1-1'
Oct 15 10:47:13 mindtree systemd-udevd[7509]: failed to create db file '/run/udev/data/+usb:1-1:1.0' for '/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0'
Oct 15 10:47:13 mindtree systemd-udevd[7509]: failed to create db file '/run/udev/data/+hid:0003:046D:C05A.000E' for '/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C05A.000E'
Oct 15 10:47:13 mindtree systemd-udevd[7509]: failed to create db file '/run/udev/data/+input:input46' for '/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C05A.000E/input/input46'
Oct 15 10:47:13 mindtree systemd-udevd[7524]: failed to create db file '/run/udev/data/c13:35' for '/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C05A.000E/input/input46/mouse3'
Oct 15 10:47:13 mindtree /usr/lib/gdm-x-session[721]: (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/mouse3)
Oct 15 10:47:13 mindtree /usr/lib/gdm-x-session[721]: (II) No input driver specified, ignoring this device.
Oct 15 10:47:13 mindtree /usr/lib/gdm-x-session[721]: (II) This device may have been added with another device file.
Oct 15 10:47:13 mindtree systemd-udevd[7509]: failed to create db file '/run/udev/data/c13:87' for '/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C05A.000E/input/input46/event23'
Oct 15 10:47:13 mindtree /usr/lib/gdm-x-session[721]: (II) config/udev: Adding input device Logitech USB Optical Mouse (/dev/input/event23)
Oct 15 10:47:13 mindtree /usr/lib/gdm-x-session[721]: (**) Logitech USB Optical Mouse: Applying InputClass "libinput pointer catchall"
Oct 15 10:47:13 mindtree /usr/lib/gdm-x-session[721]: (II) Using input driver 'libinput' for 'Logitech USB Optical Mouse'
Oct 15 10:47:13 mindtree systemd-udevd[7523]: failed to create db file '/run/udev/data/+hid:0003:046D:C05A.000E' for '/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:046D:C05A.000E'
Oct 15 10:47:13 mindtree systemd-logind[445]: Failed to save session data /run/systemd/sessions/2: No space left on device
Oct 15 10:47:13 mindtree /usr/lib/gdm-x-session[721]: (II) systemd-logind: got fd for /dev/input/event23 13:87 fd 58 paused 0
Oct 15 10:47:13 mindtree /usr/lib/gdm-x-session[721]: (**) Logitech USB Optical Mouse: always reports core events
Oct 15 10:47:13 mindtree /usr/lib/gdm-x-session[721]: (**) Option "Device" "/dev/input/event23"
Oct 15 10:47:13 mindtree /usr/lib/gdm-x-session[721]: (**) Option "_source" "server/udev"
Oct 15 10:47:13 mindtree kernel: rfkill: input handler enabled
Oct 15 10:47:13 mindtree systemd-udevd[7523]: failed to create db file '/run/udev/data/c189:16' for '/devices/pci0000:00/0000:00:14.0/usb1/1-1'
Oct 15 10:47:16 mindtree /usr/lib/gdm-x-session[721]: (EE) libinput bug: udev device never initialized (/dev/input/event23)
Oct 15 10:47:16 mindtree /usr/lib/gdm-x-session[721]: (EE) client bug: Invalid path /dev/input/event23
Oct 15 10:47:16 mindtree /usr/lib/gdm-x-session[721]: (EE) libinput: Logitech USB Optical Mouse: Failed to create a device for /dev/input/event23
Oct 15 10:47:16 mindtree /usr/lib/gdm-x-session[721]: (EE) PreInit returned 2 for "Logitech USB Optical Mouse"
Oct 15 10:47:16 mindtree /usr/lib/gdm-x-session[721]: (II) UnloadModule: "libinput"
Oct 15 10:47:16 mindtree /usr/lib/gdm-x-session[721]: (II) systemd-logind: releasing fd for 13:87
Oct 15 10:47:16 mindtree systemd-logind[445]: Failed to save session data /run/systemd/sessions/2: No space left on device
Oct 15 10:47:18 mindtree nautilus[7452]: invalid (NULL) pointer instance
Oct 15 10:47:18 mindtree nautilus[7452]: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Oct 15 10:48:27 mindtree /usr/lib/gdm-x-session[721]: (EE) event19 - Synaptics TM2438-005: kernel bug: Touch jump detected and discarded.
Oct 15 10:48:27 mindtree /usr/lib/gdm-x-session[721]: See https://wayland.freedesktop.org/libinput/doc/1.12.1/touchpad-jumping-cursors.html for details
이는 적어도 gdm-x-session 로그가 주장하는 내용에 대한 추가 정보를 제공합니다 no input driver specified, ignoring this device
. 이 버그를 조사하고 다시 보고하겠습니다.
답변1
얼굴 가리개
한번은 백업 하드 드라이브를 설정하려고 할 때 실수로 실제로 존재하지 않는 볼륨에 백업 데이터를 쓰기 시작했는데 ... 그 결과 /run/media/$USER/BackupData
파일 시스템에 임의의 백업 데이터 덤프가 발생하여 볼륨run
이 막혔습니다. rm
데이터를 백업한 후 마우스를 다시 연결했더니 작동이 되는 것 같았어요! 나는 이것이 또한 USB 저장 장치에 대한 권한이 신비롭게 변경되는 또 다른 버그를 수정한다고 생각합니다.