NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/60212: After waking up from sleep, the keyboard and touchpad don't work. (fix patch attached)
>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
>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;
Home |
Main Index |
Thread Index |
Old Index