NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/60043: ACPI suspend does not work properly with ps/2 keyboard and track-pad
>Number: 60043
>Category: kern
>Synopsis: ACPI suspend does not work properly with ps/2 keyboard and track-pad
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 27 11:20:00 +0000 2026
>Originator: Stephane Tranchemer
>Release: 11.0-rc1
>Organization:
-
>Environment:
>Description:
On a Thinkpad X270.
When configuring /etc/powerd/scripts/lid_switch like indicated in https://www.netbsd.org/docs/guide/en/chap-power.html#chap-power-ex-powerd-lid_switch, closing the lid makes the system go to sleep, but have difficulties to get back on re-opening.
When closing the lid everything looks fine, the LED goes to sleep after a few seconds.
Reopening the lid, you are greeted by a fixed cursor on a black screen for like a minute.
When at last your Desktop is back, the laptop track-pad and keyboard are unresponsive.
The system is indeed back from sleep, you can regain control of it by plugin in a USB mouse and keyboard.
However the track-pad and keyboard are basically dead.
That allowed me to get the console log:
> [ 212.905639] acpi0: entering state S3
> [ 212.935639] Flushing disk caches: 4 done
> [ 213.485685] iwm0: autoconfiguration error: Unable to init nic
> [ 214.875638] ioapic0 reenabling [ 219.154878] nvme0: for admin queue interrupting at msix3 vec 0
> [ 219.174874] nvme0: for io queue 1 interrupting at msix3 vec 1 affinity to cpu0
> [ 219.174874] nvme0: for io queue 2 interrupting at msix3 vec 2 affinity to cpu1
> [ 219.174874] nvme0: for io queue 3 interrupting at msix3 vec 3 affinity to cpu2
> [ 219.174874] nvme0: for io queue 4 interrupting at msix3 vec 4 affinity to cpu3
> [ 269.174933] ubt0: detached
> [ 269.174933] ubt0: at uhub1 port 7 (addr 4) disconnected
> [ 269.654934] ubt0 at uhub1 port 7
> [ 269.654934] ubt0: Intel (0x8087) product 0a2b (0x0a2b), rev 2.00/0.10, addr 5
> [ 270.244935] pckbport: command timeout
> [ 272.294936] pckbport: command timeout
> [ 282.984946] autoconfiguration error: pms_enable: command error 35
So the culprit here is the PS/2 driver that connects the track-pad and keyboard, is there a way to detach it so we can put in the lid-close script to do so before going to sleep, then re-attach when waking-up?
Tried the following trick to no avail:
drvctl -Q pckbcN # keyboard controller
drvctl -Q pckbdN # PC keyboard
drvctl -Q pmsN # PS/2 mouse
Also, after wake-up the system can show some kind of freezes, typing in a terminal a command like ifconfig takes a few seconds to complete.
Related output of drvctl -lt
[...]
acpi0
pckbc1
pckbd0
wskbd0
pms0
wsmouse0
>How-To-Repeat:
-Configure /etc/powerd/scripts/lid_switch like indicated in https://www.netbsd.org/docs/guide/en/chap-power.html#chap-power-ex-powerd-lid_switch
-Close the laptop lid
-Wait a few seconds for it to go to sleep
-Re-open the lid
>Fix:
Home |
Main Index |
Thread Index |
Old Index