From nobody Tue Apr 01 18:32:13 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZRxSF1tBDz5rwV2 for ; Tue, 01 Apr 2025 18:32:29 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZRxSD5724z3s7d for ; Tue, 01 Apr 2025 18:32:28 +0000 (UTC) (envelope-from asomers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5e5e8274a74so9479720a12.1 for ; Tue, 01 Apr 2025 11:32:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743532347; x=1744137147; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QdjZBUj6ZNIEFpG3XsaIOmZ43Rxc7IHj+KkW2eSJVmI=; b=EU/Hh2vBZdAmdgULzAcH2InYV7gfACCaFcACnYR3EZPHU+iqKZZxqpXE5dPzvpo+Mx KP9Gz8C4GTPMWXnzl5+CPMDf8bbpQlJb7aZBwxw3q0Gv1WT0X24PzOZ1ChrdMOm3pJZK 3woMvSqbdB7tVEVGF2qcexnGBt6rLVp5OjiEDRCHBQDtxirLEE0y9TxcbA18iVaA5rS5 t9c/7f0yDXTEH7Yxr+Ez0emFsKq+fOOp68RFvoJHP0ChQ3OMKO7J5iG7lrObNYlrEzdb ZHIDVJ/u6GqpvSKVIk3N531n/hLDpdqt3KwsVL9gCuDWh7yN5osy0E3aQvYZJvNfZ+hY h7mw== X-Forwarded-Encrypted: i=1; AJvYcCXAEroVlRLM2VRxuFX+bpiNuLfLBuirsNfMbFz05d83DX+C3zaJdSsZjGBrwOVS43No38n67Xemgo4ITfh28q0=@freebsd.org X-Gm-Message-State: AOJu0Ywkn3oMWDwuX0UB76T3fsqzp2RJdRCUFAcE8W9gAOK8PJ5V4dks lzPP+KivdXrcLZs0RZsRiV1949cLQPDg6f/PQ2eXZR3z6vChxItXQI2M4uNR5/2MNtx0G/LUtHe xvl7FD1JIpbc87EeNRWqH4wLHjwVZBKMZ X-Gm-Gg: ASbGnctz/BTOF66K4sS4cgiT8W5m5wZ0Wgt+tZIw20ILxKbXT55F/k/8LJRRAVyB5MX IlelPLy36lxNCwxYCv1VL2ztSiurxKSZ67mnTx+tAnqVuS6P34HqGI5WX+1h1ciCGjRBpo3Hg1g wJcUQ/MNOSMSK9VhSG41zIw+/dITwyXvkHbIbr X-Google-Smtp-Source: AGHT+IFsFWpsp3QRQpHUUnItQEWfw1S45tczIih26+unTvhIioLkZQaMt4W5E/tNo1KN53aE0CJigUVDOis3OvL8iV8= X-Received: by 2002:a05:6402:2793:b0:5ec:939e:a60e with SMTP id 4fb4d7f45d1cf-5edfb36bf62mr11279201a12.0.1743532346878; Tue, 01 Apr 2025 11:32:26 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Alan Somers Date: Tue, 1 Apr 2025 12:32:13 -0600 X-Gm-Features: AQ5f1JqD25riC1mSgN8EQAMSStr7tXyHGW2XxqccOOvGUUcEKWERVzY79niPNIs Message-ID: Subject: Re: USB keyboard Polygon 7 not recogniced To: Matthias Apitz , freebsd-current@freebsd.org Content-Type: multipart/alternative; boundary="00000000000030b24c0631bbc268" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4ZRxSD5724z3s7d X-Spamd-Bar: ---- --00000000000030b24c0631bbc268 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 1, 2025 at 12:22=E2=80=AFPM Matthias Apitz w= rote: > > 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-CURRE= NT > it gives in /var/log/messages on attach: > > Apr 1 19:22:21 c720-1400094 kernel: ugen0.4: at usbus0 > Apr 1 19:22:21 c720-1400094 kernel: ukbd0 on uhub0 > Apr 1 19:22:21 c720-1400094 kernel: ukbd0: 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: 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: 2.00/0.05, addr 7> on usbus0 > Apr 1 19:22:21 c720-1400094 kernel: ums0: 8 buttons and [XYZT] > coordinates ID=3D2 > > 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=3D1d6b and idProduct=3D0002 visible in /var/log/syslog in De= bian > are not > shown in FreeBSD. Perhaps we miss them in our driver? > > matthias > > -- > Matthias Apitz, =E2=9C=89 guru@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=3D"YES" hw.usb.usbhid.enable=3D1 --00000000000030b24c0631bbc268 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Apr 1, 2025 at 12:22=E2=80=AFPM Matth= ias Apitz <guru@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=C2=A0 1 19:22:21 c720-1400094 kernel: ugen0.4: <Hangsheng PG-7> a= t usbus0
Apr=C2=A0 1 19:22:21 c720-1400094 kernel: ukbd0 on uhub0
Apr=C2=A0 1 19:22:21 c720-1400094 kernel: ukbd0: <Hangsheng PG-7, class = 0/0, rev 2.00/0.05, addr 7> on usbus0
Apr=C2=A0 1 19:22:21 c720-1400094 kernel: kbd2 at ukbd0
Apr=C2=A0 1 19:22:21 c720-1400094 kernel: uhid0 on uhub0
Apr=C2=A0 1 19:22:21 c720-1400094 kernel: uhid0: <Hangsheng PG-7, class = 0/0, rev 2.00/0.05, addr 7> on usbus0
Apr=C2=A0 1 19:22:21 c720-1400094 kernel: ums0 on uhub0
Apr=C2=A0 1 19:22:21 c720-1400094 kernel: ums0: <Hangsheng PG-7, class 0= /0, rev 2.00/0.05, addr 7> on usbus0
Apr=C2=A0 1 19:22:21 c720-1400094 kernel: ums0: 8 buttons and [XYZT] coordi= nates ID=3D2

But no keypress is visible in any terminal.

I will attach as well, what my Debian Linux cellular says on attache and th= ere
it works fine too.

The idVendor=3D1d6b and idProduct=3D0002 visible in /var/log/syslog in Debi= an are not
shown in FreeBSD. Perhaps we miss them in our driver?

=C2=A0 =C2=A0 =C2=A0 =C2=A0 matthias

--
Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

Some fancy keyboards are techni= cally combination keyboard/mouse devices.=C2=A0 FreeBSD's standard keyb= oard driver still doesn't support them, but the usbhid driver does.=C2= =A0 Just add this to your /boot/loader.conf:

usbhi= d_load=3D"YES"
hw.usb.usbhid.enable=3D1
--00000000000030b24c0631bbc268--