您尚未登录。

#1 2021-02-13 02:26:11

ifnk
会员
注册时间: 2021-01-25
帖子: 93

archlinux 不能识别外接usb键盘

电脑是 笔记本 lg gram 13 z990  ,键盘 是 anne pro 2 机械键盘
使用usb 连接 笔记本 ,
桌面环境 是 i3wm 
设置了 开机 自动登录  和 自动 startx 到 i3wm 用户界面

现在的问题是 reboot 重启后 外接的 机械键盘 不能用 ,笔记本自带的键盘可以 使用 ,如果 把 机械键盘 的 usb线 拔掉在 插一下的话 就 可以 用 机械键盘了
但是 每次 开机 都要 插拔一下 机械键盘太麻烦 了…… 不知道 怎么解决呢

离线

#2 2021-02-13 15:38:18

deyen
会员
注册时间: 2020-07-25
帖子: 66

Re: archlinux 不能识别外接usb键盘

按照我的理解,是开机的时候系统没挂载usb的那啥?然后重新插之后相应了启动了?:)

离线

#3 2021-02-13 18:04:17

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: archlinux 不能识别外接usb键盘

不正常。检查一下启动时候的内核日志?

离线

#4 2021-02-14 19:22:34

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 不能识别外接usb键盘

deyen 说:

按照我的理解,是开机的时候系统没挂载usb的那啥?然后重新插之后相应了启动了?:)

应该是 ,重新插 键盘 就可以 打字了

离线

#5 2021-03-07 14:06:05

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 不能识别外接usb键盘

依云 说:

不正常。检查一下启动时候的内核日志?


我今天又重新装了一遍 archlinux 笔记本在我的电脑上面 ,又出现这个问题了 5555  我按照你之前另一个帖子的 命令 查看系统日志
➤ journalctl -k -n 100
日志如下
-- Journal begins at Wed 2021-03-03 16:15:33 CST, ends at Sun 2021-03-07 13:07:19 CST. --
3月 07 13:04:30 archlinux kernel: input: py-evdev-uinput as /devices/virtual/input/input30
3月 07 13:04:30 archlinux kernel: audit: type=1131 audit(1615093470.947:85): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:04:40 archlinux kernel: audit: type=1130 audit(1615093480.954:86): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:04:40 archlinux kernel: audit: type=1131 audit(1615093480.954:87): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:04:40 archlinux kernel: audit: type=1130 audit(1615093480.960:88): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:04:41 archlinux kernel: input: py-evdev-uinput as /devices/virtual/input/input31
3月 07 13:04:41 archlinux kernel: audit: type=1131 audit(1615093481.400:89): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:04:51 archlinux kernel: audit: type=1130 audit(1615093491.455:90): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:04:51 archlinux kernel: audit: type=1131 audit(1615093491.455:91): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:04:51 archlinux kernel: audit: type=1130 audit(1615093491.461:92): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:04:51 archlinux kernel: input: py-evdev-uinput as /devices/virtual/input/input32
3月 07 13:04:51 archlinux kernel: audit: type=1131 audit(1615093491.918:93): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:05:01 archlinux kernel: audit: type=1130 audit(1615093501.954:94): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:05:01 archlinux kernel: audit: type=1131 audit(1615093501.954:95): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:05:01 archlinux kernel: audit: type=1130 audit(1615093501.961:96): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:05:02 archlinux kernel: input: py-evdev-uinput as /devices/virtual/input/input33
3月 07 13:05:02 archlinux kernel: audit: type=1131 audit(1615093502.491:97): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:05:12 archlinux kernel: audit: type=1130 audit(1615093512.705:98): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:05:12 archlinux kernel: audit: type=1131 audit(1615093512.705:99): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" exe>
3月 07 13:05:12 archlinux kernel: audit: type=1130 audit(1615093512.712:100): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:12 archlinux kernel: input: py-evdev-uinput as /devices/virtual/input/input34
3月 07 13:05:13 archlinux kernel: audit: type=1131 audit(1615093513.159:101): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:23 archlinux kernel: audit: type=1130 audit(1615093523.204:102): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:23 archlinux kernel: audit: type=1131 audit(1615093523.204:103): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:23 archlinux kernel: audit: type=1130 audit(1615093523.211:104): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:23 archlinux kernel: input: py-evdev-uinput as /devices/virtual/input/input35
3月 07 13:05:23 archlinux kernel: audit: type=1131 audit(1615093523.641:105): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:33 archlinux kernel: audit: type=1130 audit(161509333.703:106): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:33 archlinux kernel: audit: type=1131 audit(1615093533.703:107): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:33 archlinux kernel: audit: type=1130 audit(1615093533.709:108): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:33 archlinux kernel: input: py-evdev-uinput as /devices/virtual/input/input36
3月 07 13:05:34 archlinux kernel: audit: type=1131 audit(1615093534.146:109): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:44 archlinux kernel: audit: type=1130 audit(1615093544.205:110): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:44 archlinux kernel: audit: type=1131 audit(1615093544.205:111): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:44 archlinux kernel: audit: type=1130 audit(1615093544.212:112): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:44 archlinux kernel: input: py-evdev-uinput as /devices/virtual/input/input37
3月 07 13:05:44 archlinux kernel: audit: type=1131 audit(1615093544.688:113): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:54 archlinux kernel: audit: type=1130 audit(1615093554.706:114): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:54 archlinux kernel: audit: type=1131 audit(1615093554.706:115): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:54 archlinux kernel: audit: type=1130 audit(1615093554.709:116): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:05:54 archlinux kernel: input: py-evdev-uinput as /devices/virtual/input/input38
3月 07 13:05:55 archlinux kernel: audit: type=1131 audit(1615093555.159:117): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:06:05 archlinux kernel: audit: type=1130 audit(1615093565.204:118): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:06:05 archlinux kernel: audit: type=1131 audit(1615093565.204:119): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:06:05 archlinux kernel: audit: type=1130 audit(1615093565.207:120): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:06:05 archlinux kernel: input: py-evdev-uinput as /devices/virtual/input/input39
3月 07 13:06:05 archlinux kernel: audit: type=1131 audit(1615093565.640:121): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:06:11 archlinux kernel: usb 1-1: USB disconnect, device number 2
3月 07 13:06:13 archlinux kernel: usb 1-1: new full-speed USB device number 6 using xhci_hcd
3月 07 13:06:13 archlinux kernel: usb 1-1: New USB device found, idVendor=04d9, idProduct=a293, bcdDevice= 1.00
3月 07 13:06:13 archlinux kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
3月 07 13:06:13 archlinux kernel: usb 1-1: Product: OBINS
                                   AnnePro2
3月 07 13:06:13 archlinux kernel: usb 1-1: Manufacturer: OBINS
3月 07 13:06:13 archlinux kernel: usb 1-1: SerialNumber: SN0000000001
3月 07 13:06:14 archlinux kernel: input: OBINS OBINS
                                   AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:04D9:A293.0003/input/input40
3月 07 13:06:14 archlinux kernel: hid-generic 0003:04D9:A293.0003: input,hidraw2: USB HID v1.10 Keyboard [OBINS OBINS
                                   AnnePro2] on usb-0000:00:14.0-1/input0
3月 07 13:06:14 archlinux kernel: input: OBINS OBINS
                                   AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.1/0003:04D9:A293.0004/input/input41
3月 07 13:06:14 archlinux kernel: hid-generic 0003:04D9:A293.0004: input,hidraw3: USB HID v1.10 Device [OBINS OBINS
                                   AnnePro2] on usb-0000:00:14.0-1/input1
3月 07 13:06:14 archlinux kernel: input: OBINS OBINS
                                   AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.2/0003:04D9:A293.0005/input/input42
3月 07 13:06:14 archlinux kernel: hid-generic 0003:04D9:A293.0005: input,hidraw4: USB HID v1.10 Device [OBINS OBINS
                                   AnnePro2] on usb-0000:00:14.0-1/input2
3月 07 13:06:14 archlinux kernel: input: OBINS OBINS
                                   AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.3/0003:04D9:A293.0006/input/input43
3月 07 13:06:14 archlinux kernel: hid-generic 0003:04D9:A293.0006: input,hidraw5: USB HID v1.10 Gamepad [OBINS OBINS
                                   AnnePro2] on usb-0000:00:14.0-1/input3
3月 07 13:06:15 archlinux kernel: audit: type=1130 audit(1615093575.704:122): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:06:15 archlinux kernel: audit: type=1131 audit(1615093575.704:123): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:06:15 archlinux kernel: audit: type=1130 audit(1615093575.711:124): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xkeysnail comm="systemd" ex>
3月 07 13:06:15 archlinux kernel: input: py-evdev-uinput as /devices/virtual/input/input445

13 点 04 13点05 这个是机器刚刚开开,然后 外接键盘没有反应, 13点06的时候 我 把键盘拔了 ,然后在插了一遍 就出现 anne 键盘的日志 了,麻烦 管理员帮我看一下……

离线

#6 2021-03-07 15:01:07

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: archlinux 不能识别外接usb键盘

你禁用 xkeysnail 服务试试呢?看起来它遇到了问题。也可以去掉「-k」选项看看 systemd 那边的日志。

离线

#7 2021-03-07 17:06:36

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 不能识别外接usb键盘

依云 说:

你禁用 xkeysnail 服务试试呢?看起来它遇到了问题。也可以去掉「-k」选项看看 systemd 那边的日志。

我禁用 了 xkeysnail 后 还是不行呢
执行
➤ journalctl -k -n 100

结果是这个

-- Journal begins at Wed 2021-03-03 16:15:33 CST, ends at Sun 2021-03-07 17:02:20 CST. --
Mar 07 17:01:27 archlinux kernel: RIP: 0010:nl80211_get_reg_do+0x228/0x290 [cfg80211]
Mar 07 17:01:27 archlinux kernel: Code: 89 ef c7 44 24 0c 01 00 00 00 e8 b3 49 63 cd 85 c0 74 cc e9 ff fe ff ff 48 89 ef 48 89 04 24 e8 0e 78 96 cd 48 8b 04 24 eb 89 <0f> 0b 48 89 ef e8 fe 77 96 cd b8 ea ff ff ff e9 75 ff ff ff b8 97
Mar 07 17:01:27 archlinux kernel: RSP: 0018:ffffb5354151bb48 EFLAGS: 00010202
Mar 07 17:01:27 archlinux kernel: RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
Mar 07 17:01:27 archlinux kernel: RDX: ffff9433cad70008 RSI: 0000000000000000 RDI: ffff9433cad70300
Mar 07 17:01:27 archlinux kernel: RBP: ffff9433c488fd00 R08: 0000000000000014 R09: ffff9433d3245014
Mar 07 17:01:27 archlinux kernel: R10: 0000000000000021 R11: ffff9433c4993f80 R12: ffffb5354151bba8
Mar 07 17:01:27 archlinux kernel: R13: ffff9433d3245014 R14: 0000000000000000 R15: ffff9433cad70300
Mar 07 17:01:27 archlinux kernel: FS:  00007fbfb65bd740(0000) GS:ffff943732740000(0000) knlGS:0000000000000000
Mar 07 17:01:27 archlinux kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Mar 07 17:01:27 archlinux kernel: CR2: 00007fbfb653ef07 CR3: 000000010d836005 CR4: 00000000003706e0
Mar 07 17:01:27 archlinux kernel: Call Trace:
Mar 07 17:01:27 archlinux kernel:  genl_family_rcv_msg_doit+0xfd/0x160
Mar 07 17:01:27 archlinux kernel:  genl_rcv_msg+0xef/0x1e0
Mar 07 17:01:27 archlinux kernel:  ? nl80211_vendor_cmd_dump+0x5e0/0x5e0 [cfg80211]
Mar 07 17:01:27 archlinux kernel:  ? nl80211_send_regdom.constprop.0+0x1b0/0x1b0 [cfg80211]
Mar 07 17:01:27 archlinux kernel:  ? genl_get_cmd+0xd0/0xd0
Mar 07 17:01:27 archlinux kernel:  netlink_rcv_skb+0x5b/0x100
Mar 07 17:01:27 archlinux kernel:  genl_rcv+0x24/0x40
Mar 07 17:01:27 archlinux kernel:  netlink_unicast+0x242/0x340
Mar 07 17:01:27 archlinux kernel:  netlink_sendmsg+0x243/0x480
Mar 07 17:01:27 archlinux kernel:  sock_sendmsg+0x5e/0x60
Mar 07 17:01:27 archlinux kernel:  __sys_sendto+0x120/0x180
Mar 07 17:01:27 archlinux kernel:  __x64_sys_sendto+0x25/0x30
Mar 07 17:01:27 archlinux kernel:  do_syscall_64+0x33/0x40
Mar 07 17:01:27 archlinux kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Mar 07 17:01:27 archlinux kernel: RIP: 0033:0x7fbfb66c0680
Mar 07 17:01:27 archlinux kernel: Code: c0 ff ff ff ff eb b8 0f 1f 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 1d 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 68 c3 0f 1f 80 00 00 00 00 55 48 83 ec 20 48
Mar 07 17:01:27 archlinux kernel: RSP: 002b:00007fffc1ac0408 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
Mar 07 17:01:27 archlinux kernel: RAX: ffffffffffffffda RBX: 00005579394d8870 RCX: 00007fbfb66c0680
Mar 07 17:01:27 archlinux kernel: RDX: 000000000000001c RSI: 00005579394eef30 RDI: 0000000000000004
Mar 07 17:01:27 archlinux kernel: RBP: 00005579394eb6d0 R08: 0000000000000000 R09: 0000000000000000
Mar 07 17:01:27 archlinux kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffc1ac0470
Mar 07 17:01:27 archlinux kernel: R13: 00007fffc1ac046c R14: 00005579394e2500 R15: 0000000000000000
Mar 07 17:01:27 archlinux kernel: ---[ end trace f911a7bb5776b0c8 ]---
Mar 07 17:01:27 archlinux kernel: random: crng init done
Mar 07 17:01:27 archlinux kernel: random: 7 urandom warning(s) missed due to ratelimiting
Mar 07 17:01:28 archlinux kernel: wlan0: authenticate with 00:bb:1c:bc:a9:34
Mar 07 17:01:28 archlinux kernel: wlan0: send auth to 00:bb:1c:bc:a9:34 (try 1/3)
Mar 07 17:01:28 archlinux kernel: wlan0: authenticated
Mar 07 17:01:28 archlinux kernel: wlan0: associate with 00:bb:1c:bc:a9:34 (try 1/3)
Mar 07 17:01:28 archlinux kernel: wlan0: RX AssocResp from 00:bb:1c:bc:a9:34 (capab=0x1531 status=0 aid=52)
Mar 07 17:01:28 archlinux kernel: wlan0: associated
Mar 07 17:01:28 archlinux kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Mar 07 17:01:28 archlinux kernel: wlan0: Limiting TX power to 27 (27 - 0) dBm as advertised by 00:bb:1c:bc:a9:34
Mar 07 17:01:28 archlinux kernel: mc: Linux media interface: v0.10
Mar 07 17:01:28 archlinux kernel: videodev: Linux video capture interface: v2.00
Mar 07 17:01:28 archlinux kernel: uvcvideo: Found UVC 1.00 device LG Camera (04f2:b678)
Mar 07 17:01:28 archlinux kernel: input: LG Camera: LG Camera as /devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/input/input12
Mar 07 17:01:28 archlinux kernel: usbcore: registered new interface driver uvcvideo
Mar 07 17:01:28 archlinux kernel: USB Video Class driver (1.1.1)
Mar 07 17:01:28 archlinux kernel: Bluetooth: Core ver 2.22
Mar 07 17:01:28 archlinux kernel: NET: Registered protocol family 31
Mar 07 17:01:28 archlinux kernel: Bluetooth: HCI device and connection manager initialized
Mar 07 17:01:28 archlinux kernel: Bluetooth: HCI socket layer initialized
Mar 07 17:01:28 archlinux kernel: Bluetooth: L2CAP socket layer initialized
Mar 07 17:01:28 archlinux kernel: Bluetooth: SCO socket layer initialized
Mar 07 17:01:28 archlinux kernel: usbcore: registered new interface driver btusb
Mar 07 17:01:28 archlinux kernel: Bluetooth: hci0: Firmware revision 0.1 build 168 week 48 2020
Mar 07 17:01:28 archlinux kernel: [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
Mar 07 17:01:28 archlinux kernel: ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
Mar 07 17:01:28 archlinux kernel: input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input13
Mar 07 17:01:28 archlinux kernel: snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
Mar 07 17:01:29 archlinux kernel: fbcon: i915drmfb (fb0) is primary device
Mar 07 17:01:29 archlinux kernel: Console: switching to colour frame buffer device 240x67
Mar 07 17:01:29 archlinux kernel: i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
Mar 07 17:01:29 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0: CX8200: BIOS auto-probing.
Mar 07 17:01:29 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0: autoconfig for CX8200: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
Mar 07 17:01:29 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
Mar 07 17:01:29 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:    hp_outs=1 (0x16/0x0/0x0/0x0/0x0)
Mar 07 17:01:29 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:    mono: mono_out=0x0
Mar 07 17:01:29 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:    inputs:
Mar 07 17:01:29 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:      Internal Mic=0x1a
Mar 07 17:01:29 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:      Mic=0x19
Mar 07 17:01:29 archlinux kernel: snd_hda_codec_hdmi hdaudioC0D2: Monitor plugged-in, Failed to power up codec ret=[-13]
Mar 07 17:01:29 archlinux kernel: input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
Mar 07 17:01:29 archlinux kernel: input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
Mar 07 17:01:29 archlinux kernel: input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
Mar 07 17:01:29 archlinux kernel: input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
Mar 07 17:01:29 archlinux kernel: input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
Mar 07 17:01:29 archlinux kernel: input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
Mar 07 17:01:29 archlinux kernel: input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
Mar 07 17:01:30 archlinux kernel: kauditd_printk_skb: 41 callbacks suppressed
Mar 07 17:01:30 archlinux kernel: audit: type=1130 audit(1615107690.689:46): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-backlight@backlight:intel_backlight comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 07 17:01:33 archlinux kernel: audit: type=1131 audit(1615107693.686:47): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 07 17:02:16 archlinux kernel: usb 1-1: USB disconnect, device number 2
Mar 07 17:02:20 archlinux kernel: usb 1-1: new full-speed USB device number 6 using xhci_hcd
Mar 07 17:02:20 archlinux kernel: usb 1-1: New USB device found, idVendor=04d9, idProduct=a293, bcdDevice= 1.00
Mar 07 17:02:20 archlinux kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 07 17:02:20 archlinux kernel: usb 1-1: Product: OBINS
                                  AnnePro2
Mar 07 17:02:20 archlinux kernel: usb 1-1: Manufacturer: OBINS
Mar 07 17:02:20 archlinux kernel: usb 1-1: SerialNumber: SN0000000001
Mar 07 17:02:20 archlinux kernel: input: OBINS OBINS
                                  AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:04D9:A293.0003/input/input21
Mar 07 17:02:20 archlinux kernel: hid-generic 0003:04D9:A293.0003: input,hidraw2: USB HID v1.10 Keyboard [OBINS OBINS
                                  AnnePro2] on usb-0000:00:14.0-1/input0
Mar 07 17:02:20 archlinux kernel: input: OBINS OBINS
                                  AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.1/0003:04D9:A293.0004/input/input22
Mar 07 17:02:20 archlinux kernel: hid-generic 0003:04D9:A293.0004: input,hidraw3: USB HID v1.10 Device [OBINS OBINS
                                  AnnePro2] on usb-0000:00:14.0-1/input1
Mar 07 17:02:20 archlinux kernel: input: OBINS OBINS
                                  AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.2/0003:04D9:A293.0005/input/input23
Mar 07 17:02:20 archlinux kernel: hid-generic 0003:04D9:A293.0005: input,hidraw4: USB HID v1.10 Device [OBINS OBINS
                                  AnnePro2] on usb-0000:00:14.0-1/input2
Mar 07 17:02:20 archlinux kernel: input: OBINS OBINS
                                  AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.3/0003:04D9:A293.0006/input/input24
Mar 07 17:02:20 archlinux kernel: hid-generic 0003:04D9:A293.0006: input,hidraw5: USB HID v1.10 Gamepad [OBINS OBINS
                                  AnnePro2] on usb-0000:00:14.0-1/input3


17:02:20  这个时候重新插了 键盘

离线

#8 2021-03-07 17:11:02

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 不能识别外接usb键盘

这是我 去掉 -k 之后 的日志

-- Journal begins at Wed 2021-03-03 16:15:33 CST, ends at Sun 2021-03-07 17:09:11 CST. --
Mar 07 17:08:58 archlinux systemd[1]: Starting User Manager for UID 1000...
Mar 07 17:08:58 archlinux dbus-daemon[358]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.7' (uid=0 pid=857 comm="(systemd) ")
Mar 07 17:08:58 archlinux dbus-daemon[358]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Mar 07 17:08:58 archlinux systemd[857]: pam_systemd_home(systemd-user:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Mar 07 17:08:58 archlinux audit[857]: USER_ACCT pid=857 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:accounting grantors=pam_access,pam_unix,pam_permit,pam_time acct="ifnk" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 07 17:08:58 archlinux audit[857]: CRED_ACQ pid=857 uid=0 auid=4294967295 ses=4294967295 msg='op=PAM:setcred grantors=? acct="ifnk" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Mar 07 17:08:58 archlinux audit[857]: SYSCALL arch=c000003e syscall=1 success=yes exit=4 a0=9 a1=7fff389c6940 a2=4 a3=3e8 items=0 ppid=1 pid=857 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm="(systemd)" exe="/usr/lib/systemd/systemd" key=(null)
Mar 07 17:08:58 archlinux audit: PROCTITLE proctitle="(systemd)"
Mar 07 17:08:58 archlinux audit[857]: USER_START pid=857 uid=0 auid=1000 ses=2 msg='op=PAM:session_open grantors=pam_loginuid,pam_loginuid,pam_keyinit,pam_limits,pam_unix,pam_permit,pam_mail,pam_systemd,pam_env acct="ifnk" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 07 17:08:58 archlinux systemd[857]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8002 service=[systemd-user] terminal=[] user=[ifnk] ruser=[<unknown>] rhost=[<unknown>]
Mar 07 17:08:58 archlinux systemd[857]: pam_unix(systemd-user:session): session opened for user ifnk(uid=1000) by (uid=0)
Mar 07 17:08:58 archlinux systemd[857]: pam_env(systemd-user:session): deprecated reading of user environment enabled
Mar 07 17:08:58 archlinux audit: BPF prog-id=17 op=LOAD
Mar 07 17:08:58 archlinux audit[857]: SYSCALL arch=c000003e syscall=321 success=yes exit=8 a0=5 a1=7ffc534f7f10 a2=70 a3=7ffc534f7f10 items=0 ppid=1 pid=857 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm="systemd" exe="/usr/lib/systemd/systemd" key=(null)
Mar 07 17:08:58 archlinux audit: PROCTITLE proctitle="(systemd)"
Mar 07 17:08:58 archlinux audit: BPF prog-id=17 op=UNLOAD
Mar 07 17:08:59 archlinux systemd[857]: Queued start job for default target Main User Target.
Mar 07 17:08:59 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@1000 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 07 17:08:59 archlinux audit[527]: USER_START pid=527 uid=0 auid=1000 ses=1 msg='op=PAM:session_open grantors=pam_loginuid,pam_keyinit,pam_limits,pam_unix,pam_permit,pam_mail,pam_systemd,pam_env acct="ifnk" exe="/usr/bin/login" hostname=archlinux addr=? terminal=/dev/tty1 res=success'
Mar 07 17:08:59 archlinux audit[527]: CRED_REFR pid=527 uid=0 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_securetty,pam_shells,pam_faillock,pam_permit,pam_env,pam_faillock acct="ifnk" exe="/usr/bin/login" hostname=archlinux addr=? terminal=/dev/tty1 res=success'
Mar 07 17:08:59 archlinux login[527]: pam_env(login:session): deprecated reading of user environment enabled
Mar 07 17:08:59 archlinux systemd[857]: -.slice: Failed to migrate controller cgroups from /user.slice/user-1000.slice/user@1000.service, ignoring: Permission denied
Mar 07 17:08:59 archlinux login[527]: LOGIN ON tty1 BY ifnk
Mar 07 17:08:59 archlinux systemd[857]: Created slice User Application Slice.
Mar 07 17:08:59 archlinux systemd[857]: Reached target Paths.
Mar 07 17:08:59 archlinux systemd[857]: Reached target Timers.
Mar 07 17:08:59 archlinux systemd[857]: Starting D-Bus User Message Bus Socket.
Mar 07 17:08:59 archlinux systemd[857]: Listening on GnuPG network certificate management daemon.
Mar 07 17:08:59 archlinux systemd[857]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Mar 07 17:08:59 archlinux systemd[857]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Mar 07 17:08:59 archlinux systemd[857]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Mar 07 17:08:59 archlinux systemd[857]: Listening on GnuPG cryptographic agent and passphrase cache.
Mar 07 17:08:59 archlinux systemd[857]: Listening on p11-kit server.
Mar 07 17:08:59 archlinux systemd[857]: Listening on Sound System.
Mar 07 17:08:59 archlinux systemd[857]: Listening on D-Bus User Message Bus Socket.
Mar 07 17:08:59 archlinux systemd[857]: Reached target Sockets.
Mar 07 17:08:59 archlinux systemd[857]: Reached target Basic System.
Mar 07 17:08:59 archlinux systemd[857]: Reached target Main User Target.
Mar 07 17:08:59 archlinux systemd[857]: Startup finished in 85ms.
Mar 07 17:08:59 archlinux systemd[1]: Started User Manager for UID 1000.
Mar 07 17:08:59 archlinux systemd[1]: Started Session 1 of user ifnk.
Mar 07 17:08:59 archlinux kernel: fbcon: i915drmfb (fb0) is primary device
Mar 07 17:08:59 archlinux systemd-networkd[249]: wlan0: Gained IPv6LL
Mar 07 17:08:59 archlinux systemd-timesyncd[348]: Network configuration changed, trying to establish connection.
Mar 07 17:08:59 archlinux kernel: Console: switching to colour frame buffer device 240x67
Mar 07 17:08:59 archlinux kernel: i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
Mar 07 17:08:59 archlinux systemd[1]: Starting Load/Save Screen Backlight Brightness of backlight:intel_backlight...
Mar 07 17:08:59 archlinux dhcpcd[364]: wlan0: rebinding lease of 192.168.1.188
Mar 07 17:08:59 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0: CX8200: BIOS auto-probing.
Mar 07 17:08:59 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0: autoconfig for CX8200: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
Mar 07 17:08:59 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
Mar 07 17:08:59 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:    hp_outs=1 (0x16/0x0/0x0/0x0/0x0)
Mar 07 17:08:59 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:    mono: mono_out=0x0
Mar 07 17:08:59 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:    inputs:
Mar 07 17:08:59 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:      Internal Mic=0x1a
Mar 07 17:08:59 archlinux kernel: snd_hda_codec_conexant hdaudioC0D0:      Mic=0x19
Mar 07 17:08:59 archlinux dhcpcd[364]: wlan0: probing address 192.168.1.188/24
Mar 07 17:08:59 archlinux kernel: snd_hda_codec_hdmi hdaudioC0D2: Monitor plugged-in, Failed to power up codec ret=[-13]
Mar 07 17:08:59 archlinux kernel: input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
Mar 07 17:08:59 archlinux kernel: input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
Mar 07 17:08:59 archlinux kernel: input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
Mar 07 17:08:59 archlinux kernel: input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
Mar 07 17:08:59 archlinux kernel: input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input18
Mar 07 17:08:59 archlinux kernel: input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input19
Mar 07 17:08:59 archlinux kernel: input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input20
Mar 07 17:08:59 archlinux systemd-udevd[276]: controlC0: Process '/usr/bin/alsactl restore 0' failed with exit code 99.
Mar 07 17:08:59 archlinux systemd[857]: Reached target Sound Card.
Mar 07 17:08:59 archlinux systemd[1]: Condition check resulted in Save/Restore Sound Card State being skipped.
Mar 07 17:08:59 archlinux systemd[1]: Condition check resulted in Manage Sound Card State (restore and store) being skipped.
Mar 07 17:08:59 archlinux systemd[1]: Reached target Sound Card.
Mar 07 17:09:00 archlinux systemd[1]: Finished Load/Save Screen Backlight Brightness of backlight:intel_backlight.
Mar 07 17:09:00 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-backlight@backlight:intel_backlight comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 07 17:09:00 archlinux kernel: kauditd_printk_skb: 37 callbacks suppressed
Mar 07 17:09:00 archlinux kernel: audit: type=1130 audit(1615108140.636:42): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-backlight@backlight:intel_backlight comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 07 17:09:03 archlinux systemd[1]: systemd-rfkill.service: Succeeded.
Mar 07 17:09:03 archlinux kernel: audit: type=1131 audit(1615108143.693:43): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 07 17:09:03 archlinux audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Mar 07 17:09:05 archlinux dhcpcd[364]: wlan0: leased 192.168.1.188 for 86400 seconds
Mar 07 17:09:05 archlinux dhcpcd[364]: wlan0: adding route to 192.168.1.0/24
Mar 07 17:09:05 archlinux systemd-timesyncd[348]: Network configuration changed, trying to establish connection.
Mar 07 17:09:05 archlinux dhcpcd[364]: wlan0: adding default route via 192.168.1.1
Mar 07 17:09:05 archlinux dhcpcd[364]: wlan0: dhcp_envoption 213: Operation not supported
Mar 07 17:09:08 archlinux kernel: usb 1-1: USB disconnect, device number 2
Mar 07 17:09:11 archlinux kernel: usb 1-1: new full-speed USB device number 6 using xhci_hcd
Mar 07 17:09:11 archlinux kernel: usb 1-1: New USB device found, idVendor=04d9, idProduct=a293, bcdDevice= 1.00
Mar 07 17:09:11 archlinux kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 07 17:09:11 archlinux kernel: usb 1-1: Product: OBINS
                                  AnnePro2
Mar 07 17:09:11 archlinux kernel: usb 1-1: Manufacturer: OBINS
Mar 07 17:09:11 archlinux kernel: usb 1-1: SerialNumber: SN0000000001
Mar 07 17:09:11 archlinux kernel: input: OBINS OBINS
                                  AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:04D9:A293.0003/input/input21
Mar 07 17:09:11 archlinux kernel: hid-generic 0003:04D9:A293.0003: input,hidraw2: USB HID v1.10 Keyboard [OBINS OBINS
                                  AnnePro2] on usb-0000:00:14.0-1/input0
Mar 07 17:09:11 archlinux kernel: input: OBINS OBINS
                                  AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.1/0003:04D9:A293.0004/input/input22
Mar 07 17:09:11 archlinux kernel: hid-generic 0003:04D9:A293.0004: input,hidraw3: USB HID v1.10 Device [OBINS OBINS
                                  AnnePro2] on usb-0000:00:14.0-1/input1
Mar 07 17:09:11 archlinux kernel: input: OBINS OBINS
                                  AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.2/0003:04D9:A293.0005/input/input23
Mar 07 17:09:11 archlinux kernel: hid-generic 0003:04D9:A293.0005: input,hidraw4: USB HID v1.10 Device [OBINS OBINS
                                  AnnePro2] on usb-0000:00:14.0-1/input2
Mar 07 17:09:11 archlinux kernel: input: OBINS OBINS
                                  AnnePro2 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.3/0003:04D9:A293.0006/input/input24
Mar 07 17:09:11 archlinux kernel: hid-generic 0003:04D9:A293.0006: input,hidraw5: USB HID v1.10 Gamepad [OBINS OBINS
                                  AnnePro2] on usb-0000:00:14.0-1/input3
Mar 07 17:09:11 archlinux dhcpcd[364]: wlan0: no IPv6 Routers available
Mar 07 17:09:11 archlinux systemd-logind[363]: Watching system buttons on /dev/input/event19 (OBINS OBINS
Mar 07 17:09:11 archlinux systemd-logind[363]: AnnePro2)

离线

#9 2021-03-07 17:31:55

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: archlinux 不能识别外接usb键盘

看来 xkeysnail 那个不是导致问题的原因,而也是问题导致的结果。
你第一个日志开头有个不完整的内核报错信息。在 -n 后加更大的数字可以看更多。也可以直接 journal -b 看本次启动的所有日志(很多,就不要直接贴这里了,可以上传到某个地方,然后贴链接(注意不要用百度网盘,我不想装客户端,下载不了的。 https://transfer.sh/ 这个还活着。

离线

#10 2021-03-07 18:05:03

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 不能识别外接usb键盘

依云 说:

看来 xkeysnail 那个不是导致问题的原因,而也是问题导致的结果。
你第一个日志开头有个不完整的内核报错信息。在 -n 后加更大的数字可以看更多。也可以直接 journal -b 看本次启动的所有日志(很多,就不要直接贴这里了,可以上传到某个地方,然后贴链接(注意不要用百度网盘,我不想装客户端,下载不了的。 https://transfer.sh/ 这个还活着。


https://gitee.com/ifnk/ifnk_arch_config … ter/11.log

我放到 码云里面 去了, 不知道你能不能看的到 我的地址 是 https://gitee.com/ifnk/ifnk_arch_config.git ,里面 有个 11.log 的日志 就是  使用  journal -b  > 11.log 生成 的 ,麻烦 管理员了

离线

#11 2021-03-07 18:38:06

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: archlinux 不能识别外接usb键盘

看到报错了:

Mar 07 17:57:44 archlinux kernel: usbhid 1-1:1.0: can't add hid device: -71
Mar 07 17:57:44 archlinux kernel: usbhid: probe of 1-1:1.0 failed with error -71
Mar 07 17:57:44 archlinux kernel: usbhid 1-1:1.1: can't add hid device: -71
Mar 07 17:57:44 archlinux kernel: usbhid: probe of 1-1:1.1 failed with error -71
Mar 07 17:57:44 archlinux kernel: usbhid 1-1:1.2: can't add hid device: -71
Mar 07 17:57:44 archlinux kernel: usbhid: probe of 1-1:1.2 failed with error -71
Mar 07 17:57:44 archlinux kernel: usbhid 1-1:1.3: can't add hid device: -71
Mar 07 17:57:44 archlinux kernel: usbhid: probe of 1-1:1.3 failed with error -71

你可以在开机时跑一下 modprobe -r usbhid; modprobe usbhid 来重新加载这个模块试试。

离线

#12 2021-03-07 18:58:43

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 不能识别外接usb键盘

依云 说:

看到报错了:

Mar 07 17:57:44 archlinux kernel: usbhid 1-1:1.0: can't add hid device: -71
Mar 07 17:57:44 archlinux kernel: usbhid: probe of 1-1:1.0 failed with error -71
Mar 07 17:57:44 archlinux kernel: usbhid 1-1:1.1: can't add hid device: -71
Mar 07 17:57:44 archlinux kernel: usbhid: probe of 1-1:1.1 failed with error -71
Mar 07 17:57:44 archlinux kernel: usbhid 1-1:1.2: can't add hid device: -71
Mar 07 17:57:44 archlinux kernel: usbhid: probe of 1-1:1.2 failed with error -71
Mar 07 17:57:44 archlinux kernel: usbhid 1-1:1.3: can't add hid device: -71
Mar 07 17:57:44 archlinux kernel: usbhid: probe of 1-1:1.3 failed with error -71

你可以在开机时跑一下 modprobe -r usbhid; modprobe usbhid 来重新加载这个模块试试。


modprobe -r usbhid;modprobe usbhid 报错

modprobe : error : could not insert 'usbhid': operation not permitted

离线

#13 2021-03-07 19:02:09

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 不能识别外接usb键盘

可以 了  ,要用  sudo modprobe -r usbhid;sudo modprobe usbhid 才行

离线

#14 2021-03-07 19:12:06

ifnk
会员
注册时间: 2021-01-25
帖子: 93

Re: archlinux 不能识别外接usb键盘

现在的问题是 这 个得 用 sudo 才行, 那 我 放到  .zprofile (我用zsh)也没有意义呀 ,得输入 密码 ,有没有办法 在  登录  之前 就 执行 这个 sudo modprobe -r usbhid;sudo modprobe usbhid  的呢?

离线

#15 2021-03-07 20:06:04

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,961
个人网站

Re: archlinux 不能识别外接usb键盘

你放到你的系统服务里去呀,加上 After=graphical.target 之类的让它晚点执行。

离线

页脚