You are not logged in.

#1 2025-08-01 06:54:36

xaggi
Member
Registered: 2025-08-01
Posts: 3

[solved] USB Wakeup not working with keyboard via HP monitor

I have a keyboard connected to an HP U28 4K monitor connected to my ThinkPad T14s via USB C.
When I connect the keyboard directly to the laptop, I can wake it up from suspend with no problem, but in the keyboard via monitor configuration it doesn't wake up.
I'm not sure if this is an issue that can be fixed on the OS side of things. I checked all config options for the monitor and BIOS and did not find anything useful.

I tried to enable wakeup for all relevant devices via the udev rules. I have the following rule:

# cat /etc/udev/rules.d/50-wake-on-ext-keyboard.rules 
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046a", ATTRS{idProduct}=="c098", ATTR{power/wakeup}="enabled", ATTR{driver/7-1.2/power/wakeup}="enabled"
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0610", ATTR{power/wakeup}="enabled", ATTR{driver/7-1/power/wakeup}="enabled"
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046a", ATTRS{idProduct}=="c098", ATTR{power/wakeup}="enabled", ATTR{driver/9-1.2/power/wakeup}="enabled"
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0610", ATTR{power/wakeup}="enabled", ATTR{driver/9-1/power/wakeup}="enabled"
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0002", ATTR{power/wakeup}="enabled", ATTR{driver/usb7/power/wakeup}="enabled"
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0002", ATTR{power/wakeup}="enabled", ATTR{driver/usb9/power/wakeup}="enabled"

The device ids correspond to keyboard, monitor, usb hub (usb7 or usb9 depending on which USB C slot I use).

I get 'enabled' for all these devices now when I do

cat /sys/bus/usb/devices/*/power/wakeup

This had no effect. Any ideas what else I could try or how I can find out if the monitor even sends a signal when the laptop is in sleep? (It does power delivery still in this state and waking up the monitor by waking up the laptop works.)

Edit (Aug 7): Just to be clear: the monitor seems to have no problem letting the keyboard signal through even when turned off. I can type with the monitor off. The laptop just does not get the wake-up signal.

Outputs of acpi/wakeup, lshw, lspci, lsusb:

# cat /proc/acpi/wakeup 
Device  S-state   Status   Sysfs node
GPP6      S0    *enabled   pci:0000:00:02.2
GPP7      S0    *disabled
GP11      S0    *disabled
SWUS      S4    *disabled
GP12      S0    *enabled   pci:0000:00:04.1
SWUS      S4    *disabled
XHC0      S3    *enabled   pci:0000:33:00.3
XHC1      S3    *enabled   pci:0000:33:00.4
NHI0      S0    *disabled
NHI1      S0    *enabled   pci:0000:34:00.6
XHC2      S3    *enabled   pci:0000:34:00.0
XHC3      S3    *enabled   pci:0000:34:00.3
XHC4      S3    *enabled   pci:0000:34:00.4
LID       S4    *enabled   platform:PNP0C0D:00
SLPB      S3    *enabled   platform:PNP0C0E:00
# lshw -businfo -numeric
Bus info          Device          Class          Description
============================================================
                                  system         21CQ004TUS (LENOVO_MT_21CQ_BU_Think_FM_ThinkPad T14s Gen 3)
                                  bus            21CQ004TUS
                                  memory         512KiB L1 cache
                                  memory         4MiB L2 cache
                                  memory         16MiB L3 cache
cpu@0                             processor      AMD Ryzen 7 PRO 6850U with Radeon Graphics
                                  memory         16GiB System Memory
                                  memory         4GiB Synchronous Unbuffered (Unregistered) 6400 MHz (0.2 ns)
                                  memory         4GiB Synchronous Unbuffered (Unregistered) 6400 MHz (0.2 ns)
                                  memory         4GiB Synchronous Unbuffered (Unregistered) 6400 MHz (0.2 ns)
                                  memory         4GiB Synchronous Unbuffered (Unregistered) 6400 MHz (0.2 ns)
                                  memory         128KiB BIOS
pci@0000:00:00.0                  bridge         Family 17h-19h PCIe Root Complex [1022:14B5]
pci@0000:00:00.2                  generic        Family 17h-19h IOMMU [1022:14B6]
pci@0000:00:02.2                  bridge         Family 17h-19h PCIe GPP Bridge [1022:14BA]
pci@0000:01:00.0  wlan0           network        QCNFA765 Wireless Network Adapter [17CB:1103]
pci@0000:00:02.4                  bridge         Family 17h-19h PCIe GPP Bridge [1022:14BA]
pci@0000:02:00.0  /dev/nvme0      storage        SHGP31-2000GM
                  hwmon4          disk           NVMe disk
                  /dev/ng0n1      disk           NVMe disk
nvme@0:1          /dev/nvme0n1    disk           2TB NVMe disk
nvme@0:1,1        /dev/nvme0n1p1  volume         1023MiB Windows FAT volume
nvme@0:1,2        /dev/nvme0n1p2  volume         1862GiB EFI partition
pci@0000:00:04.1                  bridge         Family 19h USB4/Thunderbolt PCIe tunnel [1022:14CD]
pci@0000:00:08.1                  bridge         Family 17h-19h Internal PCIe GPP Bridge [1022:14B9]
pci@0000:33:00.0  /dev/fb0        display        Rembrandt [Radeon 680M] [1002:1681]
pci@0000:33:00.1  card0           multimedia     Radeon High Definition Audio Controller [Rembrandt/Strix] [1002:1640]
                  input27         input          HD-Audio Generic HDMI/DP,pcm=3
                  input28         input          HD-Audio Generic HDMI/DP,pcm=7
                  input29         input          HD-Audio Generic HDMI/DP,pcm=8
pci@0000:33:00.2                  generic        Family 19h PSP/CCP [1022:1649]
pci@0000:33:00.3                  bus            Rembrandt USB4 XHCI controller #3 [1022:161D]
usb@1             usb1            bus            xHCI Host Controller [1D6B:2]
usb@1:3                           bus            USB2.0 Hub [5E3:610]
usb@1:3.1                         communication  Bluetooth wireless interface
usb@2             usb2            bus            xHCI Host Controller [1D6B:3]
pci@0000:33:00.4                  bus            Rembrandt USB4 XHCI controller #4 [1022:161E]
usb@3             usb3            bus            xHCI Host Controller [1D6B:2]
usb@3:3                           generic        Goodix USB2.0 MISC [27C6:6594]
usb@4             usb4            bus            xHCI Host Controller [1D6B:3]
pci@0000:33:00.5  card2           multimedia     Audio Coprocessor [1022:15E2]
pci@0000:33:00.6  card1           multimedia     Family 17h/19h/1ah HD Audio Controller [1022:15E3]
                  input30         input          HD-Audio Generic Mic
                  input31         input          HD-Audio Generic Headphone
pci@0000:33:00.7                  generic        Sensor Fusion Hub [1022:15E4]
pci@0000:00:08.3                  bridge         Family 17h-19h Internal PCIe GPP Bridge [1022:14B9]
pci@0000:34:00.0                  bus            Rembrandt USB4 XHCI controller #8 [1022:161F]
usb@5             usb5            bus            xHCI Host Controller [1D6B:2]
usb@5:1                           multimedia     Integrated Camera [4F2:B74F]
usb@6             usb6            bus            xHCI Host Controller [1D6B:3]
pci@0000:34:00.3                  bus            Rembrandt USB4 XHCI controller #5 [1022:15D6]
usb@7             usb7            bus            xHCI Host Controller [1D6B:2]
usb@8             usb8            bus            xHCI Host Controller [1D6B:3]
pci@0000:34:00.4                  bus            Rembrandt USB4 XHCI controller #6 [1022:15D7]
usb@9             usb9            bus            xHCI Host Controller [1D6B:2]
usb@9:1                           bus            USB2.1 Hub [3F0:610]
usb@9:1.2         input47         input          Cherry GmbH CHERRY Corded Device
usb@9:1.3         input49         input          Logitech USB Optical Mouse
usb@10            usb10           bus            xHCI Host Controller [1D6B:3]
pci@0000:34:00.6                  bus            Rembrandt USB4/Thunderbolt NHI controller #2 [1022:162F]
pci@0000:00:14.0                  bus            FCH SMBus Controller [1022:790B]
pci@0000:00:14.3                  bridge         FCH LPC Bridge [1022:790E]
                                  system         Motherboard registers
                                  system         AT Real-Time Clock
                                  system         Motherboard registers
                                  system         System Board
                                  generic        PnP device LEN0071
                                  generic        PnP device LEN030b
pci@0000:00:01.0                  bridge         Family 17h-19h PCIe Dummy Host Bridge [1022:14B7]
pci@0000:00:02.0                  bridge         Family 17h-19h PCIe Dummy Host Bridge [1022:14B7]
pci@0000:00:03.0                  bridge         Family 17h-19h PCIe Dummy Host Bridge [1022:14B7]
pci@0000:00:04.0                  bridge         Family 17h-19h PCIe Dummy Host Bridge [1022:14B7]
pci@0000:00:08.0                  bridge         Family 17h-19h PCIe Dummy Host Bridge [1022:14B7]
pci@0000:00:18.0                  bridge         Rembrandt Data Fabric: Device 18h; Function 0 [1022:1679]
pci@0000:00:18.1                  bridge         Rembrandt Data Fabric: Device 18h; Function 1 [1022:167A]
pci@0000:00:18.2                  bridge         Rembrandt Data Fabric: Device 18h; Function 2 [1022:167B]
pci@0000:00:18.3                  bridge         Rembrandt Data Fabric: Device 18h; Function 3 [1022:167C]
pci@0000:00:18.4                  bridge         Rembrandt Data Fabric: Device 18h; Function 4 [1022:167D]
pci@0000:00:18.5                  bridge         Rembrandt Data Fabric: Device 18h; Function 5 [1022:167E]
pci@0000:00:18.6                  bridge         Rembrandt Data Fabric: Device 18h; Function 6 [1022:167F]
pci@0000:00:18.7                  bridge         Rembrandt Data Fabric: Device 18h; Function 7 [1022:1680]
                                  power          5B10W51877
                  input0          input          Power Button
                  input1          input          Lid Switch
                  input11         input          PC Speaker
                  input12         input          TPPS/2 Elan TrackPoint
                  input2          input          Sleep Button
                  input20         input          ELAN901C:00 04F3:2EA3
                  input21         input          ELAN901C:00 04F3:2EA3 UNKNOWN
                  input22         input          ELAN901C:00 04F3:2EA3 UNKNOWN
                  input24         input          SYNA8018:00 06CB:CE67 Mouse
                  input25         input          SYNA8018:00 06CB:CE67 Touchpad
                  input3          input          Power Button
                  input32         input          keyd virtual keyboard
                  input33         input          keyd virtual pointer
                  input4          input          AT Translated Set 2 keyboard
                  input6          input          Video Bus
                  input7          input          ThinkPad Extra Buttons
# lspci -DPPnn
0000:00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Root Complex [1022:14b5] (rev 01)
0000:00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Family 17h-19h IOMMU [1022:14b6]
0000:00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge [1022:14b7] (rev 01)
0000:00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge [1022:14b7] (rev 01)
0000:00:02.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge [1022:14ba]
0000:00:02.4 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe GPP Bridge [1022:14ba]
0000:00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge [1022:14b7] (rev 01)
0000:00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge [1022:14b7] (rev 01)
0000:00:04.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 19h USB4/Thunderbolt PCIe tunnel [1022:14cd]
0000:00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h-19h PCIe Dummy Host Bridge [1022:14b7] (rev 01)
0000:00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h-19h Internal PCIe GPP Bridge [1022:14b9] (rev 10)
0000:00:08.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h-19h Internal PCIe GPP Bridge [1022:14b9] (rev 10)
0000:00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 71)
0000:00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
0000:00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 0 [1022:1679]
0000:00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 1 [1022:167a]
0000:00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 2 [1022:167b]
0000:00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 3 [1022:167c]
0000:00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 4 [1022:167d]
0000:00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 5 [1022:167e]
0000:00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 6 [1022:167f]
0000:00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Rembrandt Data Fabric: Device 18h; Function 7 [1022:1680]
0000:00:02.2/01:00.0 Network controller [0280]: Qualcomm Technologies, Inc QCNFA765 Wireless Network Adapter [17cb:1103] (rev 01)
0000:00:02.4/02:00.0 Non-Volatile memory controller [0108]: SK hynix Gold P31/BC711/PC711 NVMe Solid State Drive [1c5c:174a]
0000:00:08.1/33:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] [1002:1681] (rev d1)
0000:00:08.1/33:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Radeon High Definition Audio Controller [Rembrandt/Strix] [1002:1640]
0000:00:08.1/33:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 19h PSP/CCP [1022:1649]
0000:00:08.1/33:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #3 [1022:161d]
0000:00:08.1/33:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #4 [1022:161e]
0000:00:08.1/33:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] Audio Coprocessor [1022:15e2] (rev 60)
0000:00:08.1/33:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h/1ah HD Audio Controller [1022:15e3]
0000:00:08.1/33:00.7 Signal processing controller [1180]: Advanced Micro Devices, Inc. [AMD] Sensor Fusion Hub [1022:15e4]
0000:00:08.3/34:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #8 [1022:161f]
0000:00:08.3/34:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #5 [1022:15d6]
0000:00:08.3/34:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4 XHCI controller #6 [1022:15d7]
0000:00:08.3/34:00.6 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Rembrandt USB4/Thunderbolt NHI controller #2 [1022:162f]
# lsusb -tvv
/:  Bus 001.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/4p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb1  /dev/bus/usb/001/001
    |__ Port 003: Dev 002, If 0, Class=Hub, Driver=hub/2p, 480M
        ID 05e3:0610 Genesys Logic, Inc. Hub
        /sys/bus/usb/devices/1-3  /dev/bus/usb/001/002
        |__ Port 001: Dev 003, If 0, Class=Wireless, Driver=btusb, 12M
            ID 10ab:9309 USI Co., Ltd 
            /sys/bus/usb/devices/1-3.1  /dev/bus/usb/001/003
        |__ Port 001: Dev 003, If 1, Class=Wireless, Driver=btusb, 12M
            ID 10ab:9309 USI Co., Ltd 
            /sys/bus/usb/devices/1-3.1  /dev/bus/usb/001/003
/:  Bus 002.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb2  /dev/bus/usb/002/001
/:  Bus 003.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/3p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb3  /dev/bus/usb/003/001
    |__ Port 003: Dev 002, If 0, Class=Vendor Specific Class, Driver=[none], 12M
        ID 27c6:6594 Shenzhen Goodix Technology Co.,Ltd. 
        /sys/bus/usb/devices/3-3  /dev/bus/usb/003/002
/:  Bus 004.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/2p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb4  /dev/bus/usb/004/001
/:  Bus 005.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb5  /dev/bus/usb/005/001
    |__ Port 001: Dev 002, If 0, Class=Video, Driver=uvcvideo, 480M
        ID 04f2:b74f Chicony Electronics Co., Ltd 
        /sys/bus/usb/devices/5-1  /dev/bus/usb/005/002
    |__ Port 001: Dev 002, If 1, Class=Video, Driver=uvcvideo, 480M
        ID 04f2:b74f Chicony Electronics Co., Ltd 
        /sys/bus/usb/devices/5-1  /dev/bus/usb/005/002
    |__ Port 001: Dev 002, If 2, Class=Video, Driver=uvcvideo, 480M
        ID 04f2:b74f Chicony Electronics Co., Ltd 
        /sys/bus/usb/devices/5-1  /dev/bus/usb/005/002
    |__ Port 001: Dev 002, If 3, Class=Video, Driver=uvcvideo, 480M
        ID 04f2:b74f Chicony Electronics Co., Ltd 
        /sys/bus/usb/devices/5-1  /dev/bus/usb/005/002
    |__ Port 001: Dev 002, If 4, Class=Application Specific Interface, Driver=[none], 480M
        ID 04f2:b74f Chicony Electronics Co., Ltd 
        /sys/bus/usb/devices/5-1  /dev/bus/usb/005/002
/:  Bus 006.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/0p, 5000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb6  /dev/bus/usb/006/001
/:  Bus 007.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb7  /dev/bus/usb/007/001
/:  Bus 008.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb8  /dev/bus/usb/008/001
/:  Bus 009.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 480M
    ID 1d6b:0002 Linux Foundation 2.0 root hub
    /sys/bus/usb/devices/usb9  /dev/bus/usb/009/001
    |__ Port 001: Dev 009, If 0, Class=Hub, Driver=hub/4p, 480M
        ID 03f0:0610 HP, Inc Z24i Monitor Hub
        /sys/bus/usb/devices/9-1  /dev/bus/usb/009/009
        |__ Port 002: Dev 010, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 046a:c098 CHERRY 
            /sys/bus/usb/devices/9-1.2  /dev/bus/usb/009/010
        |__ Port 002: Dev 010, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 046a:c098 CHERRY 
            /sys/bus/usb/devices/9-1.2  /dev/bus/usb/009/010
        |__ Port 003: Dev 011, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
            ID 046d:c077 Logitech, Inc. Mouse
            /sys/bus/usb/devices/9-1.3  /dev/bus/usb/009/011
/:  Bus 010.Port 001: Dev 001, Class=root_hub, Driver=xhci_hcd/1p, 10000M
    ID 1d6b:0003 Linux Foundation 3.0 root hub
    /sys/bus/usb/devices/usb10  /dev/bus/usb/010/001

Last edited by xaggi (2025-08-07 17:57:48)

Offline

#2 2025-08-07 17:57:29

xaggi
Member
Registered: 2025-08-01
Posts: 3

Re: [solved] USB Wakeup not working with keyboard via HP monitor

Embarrassingly, it had not occurred to me sooner to check whether there might be a firmware update for my ThinkPad. Upgrading the firmware to the newest version fixed the issue. (I assume this was the issue. I upgraded the kernel from 6.15.8 to 6.15.9 at the same time, but I doubt that this had anything to do with it.)

Offline

Board footer

Powered by FluxBB