Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Apr 2025 12:32:13 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Matthias Apitz <guru@unixarea.de>, freebsd-current@freebsd.org
Subject:   Re: USB keyboard Polygon 7 not recogniced
Message-ID:  <CAOtMX2i8TFFfE0AYA7MosoyApkYo1ktOvJrA9oVastq_K=vUag@mail.gmail.com>
In-Reply-To: <Z-wuu2ttoQnOggQX@c720-1400094>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Tue, Apr 1, 2025 at 12:22 PM Matthias 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  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, ✉ 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="YES"
hw.usb.usbhid.enable=1

[-- Attachment #2 --]
<div dir="ltr"><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Apr 1, 2025 at 12:22 PM Matthias Apitz &lt;<a href="mailto:guru@unixarea.de">guru@unixarea.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hello,<br>
<br>
My son (15 years old, Linux freak) bought for his PC such an USB<br>
keyboard kit: <a href="https://d-r.works/products/polygon-7-keyboard-kit" rel="noreferrer" target="_blank">https://d-r.works/products/polygon-7-keyboard-kit</a><br>;
(One can build the keyboard layout on own ideas.)<br>
<br>
It works fine on his PC connected via USB. On my beloved FreeBSD 14-CURRENT<br>
it gives in /var/log/messages on attach:<br>
<br>
Apr  1 19:22:21 c720-1400094 kernel: ugen0.4: &lt;Hangsheng PG-7&gt; at usbus0<br>
Apr  1 19:22:21 c720-1400094 kernel: ukbd0 on uhub0<br>
Apr  1 19:22:21 c720-1400094 kernel: ukbd0: &lt;Hangsheng PG-7, class 0/0, rev 2.00/0.05, addr 7&gt; on usbus0<br>
Apr  1 19:22:21 c720-1400094 kernel: kbd2 at ukbd0<br>
Apr  1 19:22:21 c720-1400094 kernel: uhid0 on uhub0<br>
Apr  1 19:22:21 c720-1400094 kernel: uhid0: &lt;Hangsheng PG-7, class 0/0, rev 2.00/0.05, addr 7&gt; on usbus0<br>
Apr  1 19:22:21 c720-1400094 kernel: ums0 on uhub0<br>
Apr  1 19:22:21 c720-1400094 kernel: ums0: &lt;Hangsheng PG-7, class 0/0, rev 2.00/0.05, addr 7&gt; on usbus0<br>
Apr  1 19:22:21 c720-1400094 kernel: ums0: 8 buttons and [XYZT] coordinates ID=2<br>
<br>
But no keypress is visible in any terminal.<br>
<br>
I will attach as well, what my Debian Linux cellular says on attache and there<br>
it works fine too.<br>
<br>
The idVendor=1d6b and idProduct=0002 visible in /var/log/syslog in Debian are not<br>
shown in FreeBSD. Perhaps we miss them in our driver?<br>
<br>
        matthias<br>
<br>
-- <br>
Matthias Apitz, ✉ <a href="mailto:guru@unixarea.de" target="_blank">guru@unixarea.de</a>, <a href="http://www.unixarea.de/" rel="noreferrer" target="_blank">http://www.unixarea.de/</a>; +49-176-38902045<br>
Public GnuPG key: <a href="http://www.unixarea.de/key.pub" rel="noreferrer" target="_blank">http://www.unixarea.de/key.pub</a><br>;
</blockquote><div><br></div><div></div><div>Some fancy keyboards are technically combination keyboard/mouse devices.  FreeBSD&#39;s standard keyboard driver still doesn&#39;t support them, but the usbhid driver does.  Just add this to your /boot/loader.conf:</div><div><br></div><div>usbhid_load=&quot;YES&quot;<br>hw.usb.usbhid.enable=1</div></div></div>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2i8TFFfE0AYA7MosoyApkYo1ktOvJrA9oVastq_K=vUag>