Remix.run Logo
colordrops 3 hours ago

I've got a relatively new p16s with a hybrid Nvidia/Intel GPU, and a p14s gen 5 with an AMD GPU, and I was able to get both of them to suspend by closing the lid. Not sure if the issue you speak of is unique to the P1 or not, but all my ThinkPads have been decent with Linux.

manaskarekar 3 hours ago | parent [-]

Thanks.

I’ve had issues with T14s for a couple of gens where the machine wakes up during the closed lid and runs the battery down. I’ve tried the usual troubleshooting.

This has been a non issue on Dell machines for almost 20 years.

colordrops 2 hours ago | parent [-]

Oh some kernel params and other settings can help with that. These are mine, and it's been working great:

Kernel params

    ## Seems to be needed for suspend to S0 (s2idle) without hanging (only needed on p16s)
    acpi_osi="Windows 2022"

    # Prevent spurious wakeups from a firmware bug where the EC or SMU generates spurious "heartbeat" interrupts during sleep
    acpi.ec_no_wakeup=1

    # Prevents dock from waking up laptop right after suspend
    usbcore.autosuspend=-1
Other settings (executed with a systemd service) (also only needed on p16s, not on my p14s)

    # Disable Thunderbolt PCIe root port wakeup (RP09)
    echo disabled > /sys/devices/pci0000:00/0000:00:1d.0/power/wakeup || true

    # Disable USB XHCI controller wakeup
    echo disabled > /sys/devices/pci0000:00/0000:00:14.0/power/wakeup || true

    # Disable ACPI wakeup for XHCI and RP09 (toggle if enabled)
    grep -q "XHCI.*enabled" /proc/acpi/wakeup && echo XHCI > /proc/acpi/wakeup || true
    grep -q "RP09.*enabled" /proc/acpi/wakeup && echo RP09 > /proc/acpi/wakeup || true