I have the same problem on a ThinkPad T14 Gen 5 Intel (21MM, Core Ultra 5
125U, BIOS N47ET30W 1.19), kernel 6.18.63, NixOS: it powers back on a few
seconds after a clean poweroff, on battery, with nothing plugged in.
On my machine it comes from the onboard Ethernet, Intel I219 at 00:1f.6
[8086:550b], driver e1000e. No cable is connected.
What makes it stay off:
- BIOS > Security > I/O Port Access > "Ethernet LAN" disabled (found by
bisecting that menu: everything disabled stays off, only Ethernet LAN
disabled also stays off)
- "modprobe -r e1000e && systemctl poweroff"
- a systemd unit that runs "rmmod e1000e" right before systemd-poweroff
(below). 3 of 3 shutdowns stayed off so far.
What does NOT help:
- Wake-on-LAN off (systemd .link with WakeOnLan=off, confirmed applied)
- disabling every power/wakeup under /sys/bus/{pci,usb,thunderbolt}
- disabling every entry in /proc/acpi/wakeup (LID, SLPB, AWAC included)
- xhci_hcd.quirks=0x42000
- powering off through EFI ResetSystem instead of ACPI S5 (the RFC patch
"ACPI: PM: Use EFI power off on Lenovo ThinkPad T14 Gen 5", built as a
module)
- all BIOS wake options off, BIOS update, emergency reset hole
Other observations:
- Powering off from the systemd-boot menu after a cold start stays off.
After "systemctl reboot" from Linux, the same menu poweroff bounces back
on. So whatever Linux sets survives a warm reboot.
- Hibernate (S4) stays off.
- 00:1f.6 has power/control=auto (TLP) and is runtime-suspended while the
system runs.
I have not found which part of e1000e's shutdown path does it. Could
others with this bug try "sudo modprobe -r e1000e && systemctl poweroff"
and report back?
Workaround unit, saved as
/etc/systemd/system/e1000e-unload-on-poweroff.service and enabled with
"sudo systemctl enable e1000e-unload-on-poweroff.service":
[Unit]
Description=Unload e1000e before power off
DefaultDependencies=no
After=shutdown.target
Before=systemd-poweroff.service systemd-halt.service
[Service]
Type=oneshot
ExecStart=-/usr/bin/rmmod e1000e
[Install]
WantedBy=poweroff.target halt.target
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2162837
Title:
ThinkPad T14 Gen 5 Intel automatically powers on after successful
shutdown
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2162837/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs