1

On my Lenovo Thinkpad T14s with AMD CPU, when the machine is suspended, plugging the USB-C power cable in or out causes the machine to wake up. I want to disable that.

Some information I think is relevant:

  • Kernel version is 6.14.0-33-generic #33~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 19 17:02:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

  • I don't see any relevant entry in dmesg or the systemd journal for what ACPI event is causing the wakeup.

  • I tried disabling all the GP*, NHI* and XHC* devices in /proc/acpi/wakeup, to no avail.

  • Adding acpi_sleep=nonvs or acpi.ec_no_wake=1 as a kernel flag doesn't help

  • I see these two entries for the USB-C power input under /sys/class/power_supply:

    lrwxrwxrwx 1 root root 0 Oct  3 21:55 AC -> ../../devices/pci0000:00/0000:00:14.3/PNP0C09:00/ACPI0003:00/power_supply/AC
    lrwxrwxrwx 1 root root 0 Oct  3 21:55 BAT0 -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:47/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
    lrwxrwxrwx 1 root root 0 Oct  3 21:56 ucsi-source-psy-USBC000:001 -> ../../devices/platform/USBC000:00/power_supply/ucsi-source-psy-USBC000:001
    lrwxrwxrwx 1 root root 0 Oct  3 21:56 ucsi-source-psy-USBC000:002 -> ../../devices/platform/USBC000:00/power_supply/ucsi-source-psy-USBC000:002
    
  • Under /sys/devices/platform/USBC000:00/power, there is no wakeup setting.

EDITED TO ADD with PM debugging enabled, I do see some stuff in dmesg that might be relevant:

[ 2013.964391] PM: Triggering wakeup from IRQ 9
[ 2022.475524] ucsi_acpi USBC000:00: ucsi_handle_connector_change: GET_CONNECTOR_STATUS failed (-110)
2
  • 1
    Is the charger connected to the laptop directly? Or via some kind of dock? Commented Oct 4 at 3:25
  • @TomYan It's a third-party USB-C charger connected directly to one of the two USB-C ports of the laptop. Commented Oct 4 at 11:03

1 Answer 1

2

It seems that writing a 1 to /sys/module/acpi/parameters/ec_no_wakeup fixes the issue, which makes me think that maybe the kernel parameter I tried, acpi.ec_no_wake=1 is a typo I found in some documentation, and should actually be acpi.ec_no_wakeup=1.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.