On Tue, Apr 1, 2025 at 12:22 PM Matthias Apitz <g...@unixarea.de> wrote:
> > 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 > Some fancy keyboards are technically combination keyboard/mouse devices. FreeBSD's standard keyboard driver still doesn't support them, but the usbhid driver does. Just add this to your /boot/loader.conf: usbhid_load="YES" hw.usb.usbhid.enable=1