Hello, My son (15 years old, Linux freak) bought for his PC such an USB keyboard kit: https://d-r.works/products/polygon-7-keyboard-kit (One can build the keyboard layout on own ideas.)
It works fine on his PC connected via USB. On my beloved FreeBSD 14-CURRENT it gives in /var/log/messages on attach: Apr 1 19:22:21 c720-1400094 kernel: ugen0.4: <Hangsheng PG-7> at usbus0 Apr 1 19:22:21 c720-1400094 kernel: ukbd0 on uhub0 Apr 1 19:22:21 c720-1400094 kernel: ukbd0: <Hangsheng PG-7, class 0/0, rev 2.00/0.05, addr 7> on usbus0 Apr 1 19:22:21 c720-1400094 kernel: kbd2 at ukbd0 Apr 1 19:22:21 c720-1400094 kernel: uhid0 on uhub0 Apr 1 19:22:21 c720-1400094 kernel: uhid0: <Hangsheng PG-7, class 0/0, rev 2.00/0.05, addr 7> on usbus0 Apr 1 19:22:21 c720-1400094 kernel: ums0 on uhub0 Apr 1 19:22:21 c720-1400094 kernel: ums0: <Hangsheng PG-7, class 0/0, rev 2.00/0.05, addr 7> on usbus0 Apr 1 19:22:21 c720-1400094 kernel: ums0: 8 buttons and [XYZT] coordinates ID=2 But no keypress is visible in any terminal. I will attach as well, what my Debian Linux cellular says on attache and there it works fine too. The idVendor=1d6b and idProduct=0002 visible in /var/log/syslog in Debian are not shown in FreeBSD. Perhaps we miss them in our driver? matthias -- Matthias Apitz, ✉ g...@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub
Apr 1 19:29:09 pureos kernel: [57355.003675] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller Apr 1 19:29:09 pureos kernel: [57355.003710] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 3 Apr 1 19:29:09 pureos kernel: [57355.003825] xhci-hcd xhci-hcd.5.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x0000008000000010 Apr 1 19:29:09 pureos kernel: [57355.003868] xhci-hcd xhci-hcd.5.auto: irq 207, io mem 0x38100000 Apr 1 19:29:09 pureos kernel: [57355.004049] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller Apr 1 19:29:09 pureos kernel: [57355.004062] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 4 Apr 1 19:29:09 pureos kernel: [57355.004074] xhci-hcd xhci-hcd.5.auto: Host supports USB 3.0 SuperSpeed Apr 1 19:29:09 pureos kernel: [57355.004555] bq25890-charger 3-006a: Upstream supply changed: 0. Apr 1 19:29:09 pureos kernel: [57355.004567] bq25890-charger 3-006a: Enabling OTG_EN pin Apr 1 19:29:09 pureos kernel: [57355.004736] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.06 Apr 1 19:29:09 pureos kernel: [57355.004745] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 Apr 1 19:29:09 pureos kernel: [57355.004751] usb usb3: Product: xHCI Host Controller Apr 1 19:29:09 pureos kernel: [57355.004756] usb usb3: Manufacturer: Linux 6.6.0-1-librem5 xhci-hcd Apr 1 19:29:09 pureos kernel: [57355.004761] usb usb3: SerialNumber: xhci-hcd.5.auto Apr 1 19:29:09 pureos kernel: [57355.007151] hub 3-0:1.0: USB hub found Apr 1 19:29:09 pureos kernel: [57355.007207] hub 3-0:1.0: 1 port detected Apr 1 19:29:09 pureos kernel: [57355.007751] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM. Apr 1 19:29:09 pureos kernel: [57355.007872] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 6.06 Apr 1 19:29:09 pureos kernel: [57355.007884] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 Apr 1 19:29:09 pureos kernel: [57355.007893] usb usb4: Product: xHCI Host Controller Apr 1 19:29:09 pureos kernel: [57355.007901] usb usb4: Manufacturer: Linux 6.6.0-1-librem5 xhci-hcd Apr 1 19:29:09 pureos kernel: [57355.007908] usb usb4: SerialNumber: xhci-hcd.5.auto Apr 1 19:29:09 pureos kernel: [57355.010921] hub 4-0:1.0: USB hub found Apr 1 19:29:09 pureos kernel: [57355.010966] hub 4-0:1.0: 1 port detected Apr 1 19:29:09 pureos kernel: [57355.011506] bq25890-charger 3-006a: Upstream supply changed: 0. Apr 1 19:29:09 pureos kernel: [57355.011521] bq25890-charger 3-006a: Enabling OTG_EN pin Apr 1 19:29:09 pureos kernel: [57355.027887] bq25890-charger 3-006a: Upstream supply changed: 0. Apr 1 19:29:09 pureos kernel: [57355.028003] bq25890-charger 3-006a: Enabling OTG_EN pin Apr 1 19:29:09 pureos usbguard-daemon[680]: uid=0 pid=638 result='SUCCESS' device.rule='allow id 1d6b:0002 serial "xhci-hcd.5.auto" name "xHCI Host Controller" hash "U1nFyrkh8NpSDAU6gmicq7SQ13ff+o3bmO/lcp19jvA=" parent-hash "KXlald6eHhgVzxEC+F9GN7dshRENSCw45OyqsVHzcD8=" via-port "usb3" with-interface 09:00:00 with-connect-type ""' device.system_name='/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3' type='Device.Insert' Apr 1 19:29:09 pureos usbguard-daemon[680]: uid=0 pid=638 result='SUCCESS' device.system_name='/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3' target.new='allow' device.rule='allow id 1d6b:0002 serial "xhci-hcd.5.auto" name "xHCI Host Controller" hash "U1nFyrkh8NpSDAU6gmicq7SQ13ff+o3bmO/lcp19jvA=" parent-hash "KXlald6eHhgVzxEC+F9GN7dshRENSCw45OyqsVHzcD8=" via-port "usb3" with-interface 09:00:00 with-connect-type ""' target.old='allow' type='Policy.Device.Update' Apr 1 19:29:09 pureos usbguard-daemon[680]: uid=0 pid=638 result='SUCCESS' device.rule='allow id 1d6b:0003 serial "xhci-hcd.5.auto" name "xHCI Host Controller" hash "G/QjSJzB6wJUsQhzW88okvkIFDx1hMMGTAEgq65aNxs=" parent-hash "KXlald6eHhgVzxEC+F9GN7dshRENSCw45OyqsVHzcD8=" via-port "usb4" with-interface 09:00:00 with-connect-type ""' device.system_name='/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb4' type='Device.Insert' Apr 1 19:29:09 pureos usbguard-daemon[680]: uid=0 pid=638 result='SUCCESS' device.system_name='/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb4' target.new='allow' device.rule='allow id 1d6b:0003 serial "xhci-hcd.5.auto" name "xHCI Host Controller" hash "G/QjSJzB6wJUsQhzW88okvkIFDx1hMMGTAEgq65aNxs=" parent-hash "KXlald6eHhgVzxEC+F9GN7dshRENSCw45OyqsVHzcD8=" via-port "usb4" with-interface 09:00:00 with-connect-type ""' target.old='allow' type='Policy.Device.Update' Apr 1 19:29:09 pureos kernel: [57355.271992] usb 3-1: new full-speed USB device number 2 using xhci-hcd Apr 1 19:29:09 pureos kernel: [57355.429039] usb 3-1: New USB device found, idVendor=342d, idProduct=e4e6, bcdDevice= 0.05 Apr 1 19:29:09 pureos kernel: [57355.429067] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Apr 1 19:29:09 pureos kernel: [57355.429076] usb 3-1: Product: PG-7 Apr 1 19:29:09 pureos kernel: [57355.429084] usb 3-1: Manufacturer: Hangsheng Apr 1 19:29:09 pureos kernel: [57355.430262] usb 3-1: Device is not authorized for usage Apr 1 19:29:09 pureos usbguard-daemon[680]: uid=0 pid=638 result='SUCCESS' device.rule='block id 342d:e4e6 serial "" name "PG-7" hash "ZeLRPZDRK6+H9CUEzWFW6FUweuQQ1pf69MWmW4+9wtk=" parent-hash "U1nFyrkh8NpSDAU6gmicq7SQ13ff+o3bmO/lcp19jvA=" via-port "3-1" with-interface { 03:01:01 03:00:00 03:00:00 } with-connect-type "unknown"' device.system_name='/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1' type='Device.Insert' Apr 1 19:29:09 pureos kernel: [57355.457571] input: Hangsheng PG-7 as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1:1.0/0003:342D:E4E6.0004/input/input14 Apr 1 19:29:09 pureos kernel: [57355.606733] hid-generic 0003:342D:E4E6.0004: input,hidraw0: USB HID v1.11 Keyboard [Hangsheng PG-7] on usb-xhci-hcd.5.auto-1/input0 Apr 1 19:29:09 pureos kernel: [57355.608536] hid-generic 0003:342D:E4E6.0005: hiddev96,hidraw1: USB HID v1.11 Device [Hangsheng PG-7] on usb-xhci-hcd.5.auto-1/input1 Apr 1 19:29:09 pureos kernel: [57355.611470] input: Hangsheng PG-7 Mouse as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1:1.2/0003:342D:E4E6.0006/input/input15 Apr 1 19:29:09 pureos kernel: [57355.611808] input: Hangsheng PG-7 System Control as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1:1.2/0003:342D:E4E6.0006/input/input16 Apr 1 19:29:09 pureos kernel: [57355.669388] input: Hangsheng PG-7 Consumer Control as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1:1.2/0003:342D:E4E6.0006/input/input17 Apr 1 19:29:09 pureos kernel: [57355.670136] input: Hangsheng PG-7 Keyboard as /devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1/3-1:1.2/0003:342D:E4E6.0006/input/input18 Apr 1 19:29:09 pureos usbguard-daemon[680]: uid=0 pid=638 result='SUCCESS' device.system_name='/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1' target.new='allow' device.rule='block id 342d:e4e6 serial "" name "PG-7" hash "ZeLRPZDRK6+H9CUEzWFW6FUweuQQ1pf69MWmW4+9wtk=" parent-hash "U1nFyrkh8NpSDAU6gmicq7SQ13ff+o3bmO/lcp19jvA=" via-port "3-1" with-interface { 03:01:01 03:00:00 03:00:00 } with-connect-type "unknown"' target.old='block' type='Policy.Device.Update' Apr 1 19:29:09 pureos kernel: [57355.748497] hid-generic 0003:342D:E4E6.0006: input,hidraw2: USB HID v1.11 Mouse [Hangsheng PG-7] on usb-xhci-hcd.5.auto-1/input2 Apr 1 19:29:09 pureos kernel: [57355.748716] usb 3-1: authorized to connect Apr 1 19:29:09 pureos usbguard-daemon[680]: Ignoring unknown UEvent action: sysfs_devpath=/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1 action=change Apr 1 19:29:09 pureos mtp-probe: checking bus 3, device 2: "/sys/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1" Apr 1 19:29:09 pureos mtp-probe: bus: 3, device: 2 was not an MTP device Apr 1 19:29:09 pureos mtp-probe: checking bus 3, device 2: "/sys/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1" Apr 1 19:29:09 pureos mtp-probe: bus: 3, device: 2 was not an MTP device Apr 1 19:29:10 pureos upowerd[922]: treating change event as add on /sys/devices/platform/soc@0/38100000.usb/xhci-hcd.5.auto/usb3/3-1 Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:223] Failed to get cursor display formats Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:269] Failed to pick cursor format Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:354] Failed to render cursor buffer Apr 1 19:29:10 pureos phosh-session[7760]: The XKEYBOARD keymap compiler (xkbcomp) reports: Apr 1 19:29:10 pureos phosh-session[7760]: > Warning: Unsupported maximum keycode 569, clipping. Apr 1 19:29:10 pureos phosh-session[7760]: > X11 cannot support keycodes above 255. Apr 1 19:29:10 pureos phosh-session[7760]: Errors from xkbcomp are not fatal to the X server Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:223] Failed to get cursor display formats Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:269] Failed to pick cursor format Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:354] Failed to render cursor buffer Apr 1 19:29:10 pureos phosh-session[7764]: The XKEYBOARD keymap compiler (xkbcomp) reports: Apr 1 19:29:10 pureos phosh-session[7764]: > Warning: Unsupported maximum keycode 569, clipping. Apr 1 19:29:10 pureos phosh-session[7764]: > X11 cannot support keycodes above 255. Apr 1 19:29:10 pureos phosh-session[7764]: Errors from xkbcomp are not fatal to the X server Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:223] Failed to get cursor display formats Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:269] Failed to pick cursor format Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:354] Failed to render cursor buffer Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:223] Failed to get cursor display formats Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:269] Failed to pick cursor format Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:354] Failed to render cursor buffer Apr 1 19:29:10 pureos phosh-session[7766]: The XKEYBOARD keymap compiler (xkbcomp) reports: Apr 1 19:29:10 pureos phosh-session[7766]: > Warning: Unsupported maximum keycode 569, clipping. Apr 1 19:29:10 pureos phosh-session[7766]: > X11 cannot support keycodes above 255. Apr 1 19:29:10 pureos phosh-session[7766]: Errors from xkbcomp are not fatal to the X server Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:223] Failed to get cursor display formats Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:269] Failed to pick cursor format Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:354] Failed to render cursor buffer Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:223] Failed to get cursor display formats Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:269] Failed to pick cursor format Apr 1 19:29:10 pureos phoc[787]: [types/output/cursor.c:354] Failed to render cursor buffer Apr 1 19:29:10 pureos phosh-session[7768]: The XKEYBOARD keymap compiler (xkbcomp) reports: Apr 1 19:29:10 pureos phosh-session[7768]: > Warning: Unsupported maximum keycode 569, clipping. Apr 1 19:29:10 pureos phosh-session[7768]: > X11 cannot support keycodes above 255. Apr 1 19:29:10 pureos phosh-session[7768]: Errors from xkbcomp are not fatal to the X server