USB4 Wake-On-Connect / Wake-On-Disconnect Ready For Linux 6.2

Written by Michael Larabel in Hardware on 5 December 2022 at 07:02 AM EST. Add A Comment
HARDWARE
Last month I wrote about Intel having worked on USB4 wake-on-connect and wake-on-disconnect handling for the Linux kernel and those patches are indeed primed to be introduced next week with the Linux 6.2 merge window.

Since that prior Phoronix article, the wake-on-connect/disconnect handling for USB4 ports support has worked its way from the Thunderbolt development tree and now picked up by Greg Kroah-Hartman as part of the USB subsystem updates.

The Thunderbolt updates for Linux 6.2 have been merged into USB-next ahead of the Linux 6.2 merge window opening next week.

For Linux systems run-time suspended, this allows optionally waking the system upon USB4 connect or disconnect events. The functionality is disabled by default but can be toggled via the new "wakeup" attribute under each USB4 port with sysfs. The patch by Intel engineer Rajat Khandelwal explains, "This patch adds 'wakeup' attribute under 'usb4_portX/power' sysfs attribute and only enables wakes on connect/disconnect to the respective port when 'wakeup' is set to 'enabled'. The attribute is set to 'disabled' by default." A small but nice feature for some use-cases with Linux 6.2.


This patch along with many other changes are queuing in usb-next.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week