NetBSD Problem Report #60212
From www@netbsd.org Sun Apr 26 13:53:58 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 88D1E1A923C
for <gnats-bugs@gnats.NetBSD.org>; Sun, 26 Apr 2026 13:53:58 +0000 (UTC)
Message-Id: <20260426135357.92BE41A9241@mollari.NetBSD.org>
Date: Sun, 26 Apr 2026 13:53:57 +0000 (UTC)
From: gold@1codim.ru
Reply-To: gold@1codim.ru
To: gnats-bugs@NetBSD.org
Subject: After waking up from sleep, the keyboard and touchpad don't work. (fix patch attached)
X-Send-Pr-Version: www-1.0
X-From4GNATS: "gold@1codim.ru via gnats" <gnats-admin@NetBSD.org>
>Number: 60212
>Category: kern
>Synopsis: After waking up from sleep, the keyboard and touchpad don't work. (fix patch attached)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 26 13:55:00 +0000 2026
>Last-Modified: Sun Apr 26 14:30:01 +0000 2026
>Originator: Dmitriy Golondarev
>Release: 10.1
>Organization:
Home
>Environment:
NetBSD catbsd 10.1 NetBSD 10.1 (GENERIC) #12: Sat Apr 18 20:49:04 MSK 2026
>Description:
pckbc_resume was never called because the PMF handler wasn't registered in pckbc_attach.
>How-To-Repeat:
sysctl -w hw.acpi.sleep.state=3
The keyboard doesn't work after waking up from sleep.
>Fix:
I recompiled the kernel with these changes. This solved the problem.
sys/dev/ic/pckbc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/dev/ic/pckbc.c b/sys/dev/ic/pckbc.c
--- a/sys/dev/ic/pckbc.c
+++ b/sys/dev/ic/pckbc.c
@@ -376,6 +376,9 @@ pckbc_attach(struct pckbc_softc *sc)
t->t_haveaux = 0;
}
+ if (!pmf_device_register(sc->sc_dv, NULL, pckbc_resume))
+ aprint_error("pckbc+: register resume hendler error\n");
+
nomouse:
/* enable needed interrupts */
t->t_cmdbyte |= cmdbits;
>Audit-Trail:
From: Jared McNeill <jmcneill@invisible.ca>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/60212: After waking up from sleep, the keyboard and touchpad
don't work. (fix patch attached)
Date: Sun, 26 Apr 2026 11:25:42 -0300 (ADT)
> I recompiled the kernel with these changes. This solved the problem.
>
> sys/dev/ic/pckbc.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/sys/dev/ic/pckbc.c b/sys/dev/ic/pckbc.c
> --- a/sys/dev/ic/pckbc.c
> +++ b/sys/dev/ic/pckbc.c
> @@ -376,6 +376,9 @@ pckbc_attach(struct pckbc_softc *sc)
> t->t_haveaux = 0;
> }
>
> + if (!pmf_device_register(sc->sc_dv, NULL, pckbc_resume))
> + aprint_error("pckbc+: register resume hendler error\n");
> +
> nomouse:
> /* enable needed interrupts */
> t->t_cmdbyte |= cmdbits;
We have code in pckbc_acpi and pckbc_isa that does this already, I'd like
to find out why that didn't work. Can you provide a full dmesg and if
possible, trace the relevant attach glue (pckbc_isa.c or pckbc_acpi.c) to
see why the pmf_device_register calls there weren't reached?
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.