Keyboard not working in master branch (thinkpad Z16)

Michael Neumann mneumann at ntecs.de
Sat May 31 07:11:51 PDT 2025


On Tue, May 27, 2025 at 07:17:08PM +0200, Roman Marcinek wrote:
> Michael,

Hi Roman,

Sorry for the long delay. I am currently travelling through
South-America and didn't find the time to get my laptop out the bag as I
was moving too quickly...
Asuncion (Paraguay) seems to be "tranquillo" enough to look into this
issue :)

So the last working version is v6.4.0.69.gddada0-RELEASE from around
Dec 30, 2022.

In commit https://github.com/DragonFlyBSD/DragonFlyBSD/commit/a162a738eca94f99d45d88429e86cfd0fbfbe95d
I synced atkbd driver with FreeBSD HEAD. That was Sat Apr 6 12:40:13 2024.

I assume any version before that commit would work with your keyboard
and any version after this commit won't.

Could you please try setting the following tunable in /boot/loader.conf:

	hw.psm.mux_disabled=1

And reboot? Does it work? I have a reminder in the commit log to sync
the quirks code from FreeBSD... If the tunable above is a solution, I will
try to sync the quirks code from FreeBSD.

Another possible solution:

Just today I saw a patch on FreeBSD HEAD regarding atkbd:

https://github.com/freebsd/freebsd-src/commit/cba5d7ab32fd0b4e9c4312cc967baf137377f812

atkbd: Fix first keystroke force reset

I will try to bring in this commit to DragonFly (minus the typos :) and
once this hits our snapshot builds, I'd ask you to try with a recent
snapshot again. But please first try the "hw.psm.mux_disabled=1"
approach.

Best regards,

  Michael

> after trying all possible values of atkbd flags (i.e. all between 0x01 to
> 0x0f) I was not able to make that internal keyboard of this one laptop
> (Z16) working for me. There is nothing interesting in dmesg's - I have sent
> some of them to you around last Sun., I hope you've got them. I have more
> available if needed but I cannot see anything interesting in them - it is
> loading in atkbd (with flags as given) and ... nothing happens. Keyboard is
> dead! Probably something switches it off while trying to configure as it
> stops working only after kernel being loaded - loader still uses it OK :-(
> 
> The same laptop with FreeBSD (14.2) works not problem (at least keyboard),
> same with OpenBSD (7.6 and lately 7.7 as well).
> 
> When I attach usb keyboard it works also without problems - probably that's
> why I was not seeing problems with my stationary computer :-) And I kind of
> hoped that after attaching USB keyboard I will be able to use the build-in
> as well but no - only usb one works and after detaching it the build-in
> still does not.
> 
> If anyone has any idea what I can try more to diagnose the problem I would
> do my best to try it.
> 
> And I kind of came across some other problem with openvpn package: originally
> it tries to configure tunX device but system answers that it cannot be done
> dynamically. So as a hack I put a line
> /sbin/ifconfig tun0 create
> just before statring openvpn binary in the starting script
> (/usr/local/etc/rc.d/openvpn) but I guess there is some better way to handle
> this problem in package, no?
> 
> R


More information about the Users mailing list