Public bug reported:

Dear Linux Kernel and Ubuntu Developers,I am writing to report a major power 
management issue regarding the suspend/resume speed on Apple MacBook 2015 
models running Ubuntu.By default, when opening the laptop lid from a deep 
suspend state (mem_sleep = deep), the system takes approximately 17 to 20 
seconds to wake up and display the login screen. On macOS, this behavior is 
instantaneous.After continuous troubleshooting, I discovered that the delay is 
caused by two major hardware/driver bottlenecks during the ACPI resume 
phase:XHC1 (USB 3.0 Controller) Blockage: The USB controller gets stuck in a 
loop scanning for nonexistent devices upon wake-up. Disabling it via ACPI 
wakeup (echo XHC1 > /proc/acpi/wakeup) immediately cuts the resume time in 
half.NVMe SSD Power State Latency: The Apple proprietary NVMe SSD enters an 
ultra-low power state from which it cannot recover efficiently under the 
standard Linux nvme driver. Setting the latency parameter 
nvme_core.default_ps_max_latency_us=0 resolves this issue.By combining these 
two workarounds, my resume time dropped drastically from 17 seconds down to 
just 3 seconds.Since the MacBook 2015 lineup is widely used within the Linux 
community, please consider implementing a kernel quirk or a hardware-specific 
udev/systemd rule that applies these parameters (button.lid_init_state=open and 
nvme_core.default_ps_max_latency_us=0) by default for Apple hardware.Thank you 
for your hard work and for keeping these older, capable machines alive!Best 
regards,
Stanko

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: linux-image-7.0.0-30-generic 7.0.0-30.30~24.04.1
ProcVersionSignature: Ubuntu 7.0.0-30.30~24.04.1-generic 7.0.12
Uname: Linux 7.0.0-30-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC1:  home       1455 F.... wireplumber
 /dev/snd/controlC0:  home       1455 F.... wireplumber
 /dev/snd/seq:        home       1449 F.... pipewire
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri Aug 28 11:58:59 2026
InstallationDate: Installed on 2026-03-26 (155 days ago)
InstallationMedia: Ubuntu 24.04.4 LTS "Noble Numbat" - Release amd64 (20260210)
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 002: ID 05ac:8290 Apple, Inc. Bluetooth Host Controller
 Bus 001 Device 003: ID 05ac:0273 Apple, Inc. Internal Keyboard/Trackpad (ISO)
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
MachineType: Apple Inc. MacBookPro12,1
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-7.0.0-30-generic 
root=UUID=dec10f30-28f1-4afc-a954-57cc2d7d673a ro quiet splash 
button.lid_init_state=open nvme_core.default_ps_max_latency_us=0 vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-7.0.0-30-generic N/A
 linux-backports-modules-7.0.0-30-generic  N/A
 linux-firmware                            20240318.git3b128b60-0ubuntu2.26
SourcePackage: linux-hwe-7.0
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/07/2023
dmi.bios.release: 0.1
dmi.bios.vendor: Apple Inc.
dmi.bios.version: 489.0.0.0.0
dmi.board.name: Mac-E43C1C25D4880AD6
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookPro12,1
dmi.chassis.type: 9
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-E43C1C25D4880AD6
dmi.modalias: 
dmi:bvnAppleInc.:bvr489.0.0.0.0:bd10/07/2023:br0.1:svnAppleInc.:pnMacBookPro12,1:pvr1.0:rvnAppleInc.:rnMac-E43C1C25D4880AD6:rvrMacBookPro12,1:cvnAppleInc.:ct9:cvrMac-E43C1C25D4880AD6:sku:pfaMacBookPro:
dmi.product.family: MacBook Pro
dmi.product.name: MacBookPro12,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

** Affects: linux-hwe-7.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2165660

Title:
  Bug Report: Extremely slow resume from suspend (17s) on MacBook 2015
  (MacBookPro12,1 / MacBookAir7,2) under Ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-hwe-7.0/+bug/2165660/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to