My new front panel USB hub wakes my computer instantly when I try to put it to sleep
https://askubuntu.com/questions/1563017/my-new-front-panel-usb-hub-wakes-my-computer-instantly-when-i-try-to-put-it-to-s
I recently bought this front-panel USB hub and installed it. It seems to work fine, but now whenever I put my computer to sleep, it wakes back up again immediately. Super annoying, because I use sleep all the time. At least one reviewer on Amazon noted the same behavior, and it started immediately and consistently after installing this hub, so it's definitely the culprit. It does this whether there's anything plugged into it or not. I'd rather not return it because it's the only hub I found that has the exact features I need, so I figured if I can get my OS to stop allowing this device to wake the computer, I can keep it installed.
I tried the solutions presented here, but what I'm seeing when trying to diagnose the problem doesn't totally seem to match the answers given, and I've tried those things anyway but they aren't working and I'm stumped. I tried following the answer which suggests editing /etc/rc.local, but couldn't seem to get anywhere with it. However, it says to check cat /var/log/syslog to find which device is waking the PC, and I can't tell exactly which device that is, so I might not have done that right.
Here is all the relevant output from sudo dmesg:
[ 535.756444] PM: suspend entry (deep)
[ 535.758122] Filesystems sync: 0.001 seconds
[ 535.862449] Freezing user space processes
[ 535.863761] Freezing user space processes completed (elapsed 0.001 seconds)
[ 535.863763] OOM killer disabled.
[ 535.863763] Freezing remaining freezable tasks
[ 535.864830] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[ 535.864864] printk: Suspending console(s) (use no_console_suspend to debug)
[ 536.166013] serial 00:04: disabled
[ 536.171151] sd 12:0:0:0: [sdb] Synchronizing SCSI cache
[ 536.171172] sd 2:0:0:0: [sda] Synchronizing SCSI cache
[ 536.174089] ata3.00: Entering standby power mode
[ 536.294770] ACPI: EC: interrupt blocked
[ 536.308797] amdgpu 0000:03:00.0: amdgpu: MODE1 reset
[ 536.308802] amdgpu 0000:03:00.0: amdgpu: GPU mode1 reset
[ 536.309150] amdgpu 0000:03:00.0: amdgpu: GPU smu mode1 reset
[ 536.866058] ACPI: PM: Preparing to enter system sleep state S3
[ 537.373922] ACPI: EC: event blocked
[ 537.373929] ACPI: EC: EC stopped
[ 537.373930] ACPI: PM: Saving platform NVS memory
[ 537.374462] Disabling non-boot CPUs ...
[ 537.376608] smpboot: CPU 15 is now offline
[ 537.380227] smpboot: CPU 14 is now offline
[ 537.382584] smpboot: CPU 13 is now offline
[ 537.385006] smpboot: CPU 12 is now offline
[ 537.387430] smpboot: CPU 11 is now offline
[ 537.389796] smpboot: CPU 10 is now offline
[ 537.392118] smpboot: CPU 9 is now offline
[ 537.394417] smpboot: CPU 8 is now offline
[ 537.395258] Spectre V2 : Update user space SMT mitigation: STIBP off
[ 537.396682] smpboot: CPU 7 is now offline
[ 537.398914] smpboot: CPU 6 is now offline
[ 537.401118] smpboot: CPU 5 is now offline
[ 537.403318] smpboot: CPU 4 is now offline
[ 537.405570] smpboot: CPU 3 is now offline
[ 537.407916] smpboot: CPU 2 is now offline
[ 537.410001] smpboot: CPU 1 is now offline
[ 537.411166] ACPI: PM: Low-level resume complete
[ 537.411187] ACPI: EC: EC started
[ 537.411188] ACPI: PM: Restoring platform NVS memory
[ 537.420902] AMD-Vi: Virtual APIC enabled
[ 537.466203] AMD-Vi: Virtual APIC enabled
[ 537.466207] LVT offset 0 assigned for vector 0x400
[ 537.467074] Enabling non-boot CPUs ...
[ 537.467097] smpboot: Booting Node 0 Processor 1 APIC 0x2
[ 537.468072] CPU1 is up
[ 537.468083] smpboot: Booting Node 0 Processor 2 APIC 0x4
[ 537.468769] CPU2 is up
[ 537.468784] smpboot: Booting Node 0 Processor 3 APIC 0x6
[ 537.469467] CPU3 is up
[ 537.469475] smpboot: Booting Node 0 Processor 4 APIC 0x8
[ 537.470172] CPU4 is up
[ 537.470184] smpboot: Booting Node 0 Processor 5 APIC 0xa
[ 537.470844] CPU5 is up
[ 537.470854] smpboot: Booting Node 0 Processor 6 APIC 0xc
[ 537.471583] CPU6 is up
[ 537.471595] smpboot: Booting Node 0 Processor 7 APIC 0xe
[ 537.472341] CPU7 is up
[ 537.472354] smpboot: Booting Node 0 Processor 8 APIC 0x1
[ 537.472995] Spectre V2 : Update user space SMT mitigation: STIBP always-on
[ 537.473000] CPU8 is up
[ 537.473015] smpboot: Booting Node 0 Processor 9 APIC 0x3
[ 537.473102] Spurious APIC interrupt (vector 0xFF) on CPU#9, should never happen.
[ 537.473544] CPU9 is up
[ 537.473553] smpboot: Booting Node 0 Processor 10 APIC 0x5
[ 537.473644] Spurious APIC interrupt (vector 0xFF) on CPU#10, should never happen.
[ 537.474090] CPU10 is up
[ 537.474098] smpboot: Booting Node 0 Processor 11 APIC 0x7
[ 537.474191] Spurious APIC interrupt (vector 0xFF) on CPU#11, should never happen.
[ 537.474642] CPU11 is up
[ 537.474650] smpboot: Booting Node 0 Processor 12 APIC 0x9
[ 537.474744] Spurious APIC interrupt (vector 0xFF) on CPU#12, should never happen.
[ 537.475213] CPU12 is up
[ 537.475221] smpboot: Booting Node 0 Processor 13 APIC 0xb
[ 537.475315] Spurious APIC interrupt (vector 0xFF) on CPU#13, should never happen.
[ 537.475804] CPU13 is up
[ 537.475812] smpboot: Booting Node 0 Processor 14 APIC 0xd
[ 537.475903] Spurious APIC interrupt (vector 0xFF) on CPU#14, should never happen.
[ 537.476404] CPU14 is up
[ 537.476413] smpboot: Booting Node 0 Processor 15 APIC 0xf
[ 537.476507] Spurious APIC interrupt (vector 0xFF) on CPU#15, should never happen.
[ 537.477033] CPU15 is up
[ 537.478743] ACPI: PM: Waking up from system sleep state S3
[ 537.504008] ACPI: EC: interrupt unblocked
[ 537.506617] ACPI: EC: event unblocked
[ 537.506685] pcieport 0000:00:02.1: PME: Spurious native interrupt!
[ 537.507023] [drm] PCIE GART of 512M enabled (table at 0x0000008000300000).
[ 537.507038] amdgpu 0000:03:00.0: amdgpu: PSP is resuming...
[ 537.507055] xhci_hcd 0000:11:00.0: xHC error in resume, USBSTS 0x401, Reinit
[ 537.507057] usb usb3: root hub lost power or was reset
[ 537.507058] usb usb4: root hub lost power or was reset
[ 537.507366] xhci_hcd 0000:0f:00.0: xHC error in resume, USBSTS 0x401, Reinit
[ 537.507367] usb usb1: root hub lost power or was reset
[ 537.507368] usb usb2: root hub lost power or was reset
[ 537.507781] serial 00:04: activated
[ 537.512119] nvme nvme0: 16/0/0 default/read/poll queues
[ 537.534521] nvme nvme2: 16/0/0 default/read/poll queues
[ 537.564858] nvme nvme1: D3 entry latency set to 10 seconds
[ 537.565862] nvme nvme1: 8/0/0 default/read/poll queues
[ 537.566197] nvme nvme1: Ignoring bogus Namespace Identifiers
[ 537.586948] amdgpu 0000:03:00.0: amdgpu: reserve 0xa00000 from 0x81fd000000 for PSP TMR
[ 537.689040] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[ 537.697016] usb 1-5: WARN: invalid context state for evaluate context command.
[ 537.705938] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[ 537.705940] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[ 537.705943] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x0000000f, smu fw if version = 0x00000013, smu fw program = 0, version = 0x003b3100 (59.49.0)
[ 537.705944] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
[ 537.705993] amdgpu 0000:03:00.0: amdgpu: use vbios provided pptable
[ 537.713080] usb 3-8: WARN: invalid context state for evaluate context command.
[ 537.756957] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
[ 537.757601] [drm] kiq ring mec 2 pipe 1 q 0
[ 537.762780] [drm] DMUB hardware initialized: version=0x02020020
[ 537.811068] ata7: SATA link down (SStatus 0 SControl 300)
[ 537.811085] ata10: SATA link down (SStatus 0 SControl 300)
[ 537.811093] ata2: SATA link down (SStatus 0 SControl 330)
[ 537.811104] ata8: SATA link down (SStatus 0 SControl 300)
[ 537.866932] ata1: SATA link down (SStatus 0 SControl 330)
[ 537.867034] ata9: SATA link down (SStatus 0 SControl 300)
[ 537.869761] usb 1-5: reset full-speed USB device number 3 using xhci_hcd
[ 537.885746] usb 3-8: reset full-speed USB device number 4 using xhci_hcd
[ 537.965751] ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 538.007734] ata4.00: configured for UDMA/133
[ 538.117738] ata3: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[ 538.119601] ata3.00: supports DRM functions and may not be fully accessible
[ 538.119968] ata3.00: NCQ Send/Recv Log not supported
[ 538.120360] sd 2:0:0:0: [sda] Starting disk
[ 538.120503] ata3.00: supports DRM functions and may not be fully accessible
[ 538.120841] ata3.00: NCQ Send/Recv Log not supported
[ 538.121223] ata3.00: configured for UDMA/133
[ 538.259261] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[ 538.259263] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.1.0 uses VM inv eng 1 on hub 0
[ 538.259264] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 4 on hub 0
[ 538.259265] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 5 on hub 0
[ 538.259266] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 6 on hub 0
[ 538.259266] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 7 on hub 0
[ 538.259266] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 8 on hub 0
[ 538.259267] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 9 on hub 0
[ 538.259267] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 10 on hub 0
[ 538.259267] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 11 on hub 0
[ 538.259268] amdgpu 0000:03:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 12 on hub 0
[ 538.259268] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 13 on hub 0
[ 538.259269] amdgpu 0000:03:00.0: amdgpu: ring sdma1 uses VM inv eng 14 on hub 0
[ 538.259269] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
[ 538.259270] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 8
[ 538.259270] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 8
[ 538.259271] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 8
[ 538.312106] usb 1-4: reset high-speed USB device number 2 using xhci_hcd
[ 538.326813] usb 3-2: reset high-speed USB device number 3 using xhci_hcd
[ 538.696201] usb 3-1: reset high-speed USB device number 2 using xhci_hcd
[ 539.012527] usb 4-1: reset SuperSpeed Plus Gen 2x1 USB device number 2 using xhci_hcd
[ 539.338615] usb 4-1.2: reset SuperSpeed Plus Gen 2x1 USB device number 3 using xhci_hcd
[ 539.365989] OOM killer enabled.
[ 539.365993] Restarting tasks ...
[ 539.366647] pci_bus 0000:06: Allocating resources
[ 539.367421] done.
[ 539.367509] random: crng reseeded on system resumption
[ 539.367516] PM: suspend exit
[ 539.396556] Bluetooth: hci0: HW/SW Version: 0x008a008a, Build Time: 20250523103438
[ 539.409727] Realtek Internal NBASE-T PHY r8169-0-c00:00: attached PHY driver (mii_bus:phy_addr=r8169-0-c00:00, irq=MAC)
[ 539.498883] r8169 0000:0c:00.0 eno1: Link is Down
[ 539.557362] Bluetooth: hci0: Device setup in 186837 usecs
[ 539.557365] Bluetooth: hci0: HCI Enhanced Setup Synchronous Connection command is advertised, but not supported.
[ 539.838355] Bluetooth: hci0: AOSP extensions version v1.00
[ 539.838358] Bluetooth: hci0: AOSP quality report is supported
[ 539.838421] Bluetooth: MGMT ver 1.23
[ 542.281128] wlp13s0: authenticate with bc:9a:8e:a5:80:e4 (local address=4c:82:a9:7f:9c:d7)
[ 542.295356] wlp13s0: send auth to bc:9a:8e:a5:80:e4 (try 1/3)
[ 542.299536] wlp13s0: authenticated
[ 542.300710] wlp13s0: associate with bc:9a:8e:a5:80:e4 (try 1/3)
[ 542.317775] wlp13s0: RX AssocResp from bc:9a:8e:a5:80:e4 (capab=0x1411 status=0 aid=15)
[ 542.343470] wlp13s0: associated
[ 542.343507] wlp13s0: Limiting TX power to 30 (30 - 0) dBm as advertised by bc:9a:8e:a5:80:e4
I'm not really sure what I'm looking at or for, but I've been doing some googling to try to figure this out, and came across this question, which seems relevant because I notice the same things in my dmesg output. No helpful answer, though.
The output of cat /proc/acpi/wakeup is:
Device S-state Status Sysfs node
GPP3 S4 *disabled
GP17 S4 *enabled pci:0000:00:08.1
XHC0 S4 *enabled pci:0000:14:00.3
XHC1 S4 *enabled pci:0000:14:00.4
XHC2 S4 *enabled pci:0000:15:00.0
GPP0 S4 *enabled pci:0000:00:01.1
SWUS S4 *enabled pci:0000:01:00.0
SWDS S4 *enabled pci:0000:02:00.0
GPP2 S4 *disabled
GPP7 S4 *enabled pci:0000:00:02.1
UP00 S4 *enabled pci:0000:05:00.0
DP00 S4 *enabled pci:0000:06:00.0
NV00 S4 *disabled
DP08 S4 *disabled
EP00 S4 *disabled
DP10 S4 *disabled
WN00 S4 *disabled
DP18 S4 *disabled
LN00 S4 *disabled
DP20 S4 *enabled pci:0000:06:04.0
NV00 S4 *disabled
DP28 S4 *disabled
EP00 S4 *disabled
DP30 S4 *disabled
EP00 S4 *disabled
DP38 S4 *disabled
EP00 S4 *disabled
DP40 S4 *enabled pci:0000:06:08.0
UP00 S4 *enabled pci:0000:09:00.0
DP00 S4 *enabled pci:0000:0a:00.0
NV00 S4 *disabled
DP08 S4 *disabled
EP00 S4 *disabled
DP10 S4 *disabled
WN00 S4 *disabled
DP18 S4 *disabled
LN00 S4 *disabled
DP20 S4 *enabled pci:0000:0a:04.0
NV00 S4 *disabled pci:0000:0c:00.0
DP28 S4 *enabled pci:0000:0a:05.0
EP00 S4 *disabled pci:0000:0d:00.0
DP30 S4 *disabled
EP00 S4 *disabled
DP38 S4 *disabled
EP00 S4 *disabled
DP40 S4 *enabled pci:0000:0a:08.0
EP00 S4 *disabled pci:0000:0e:00.0
DP48 S4 *disabled
EP00 S4 *disabled
DP50 S4 *disabled
EP00 S4 *disabled
DP58 S4 *disabled
EP00 S4 *disabled
DP60 S4 *enabled pci:0000:0a:0c.0
XH00 S4 *enabled pci:0000:0f:00.0
DP68 S4 *enabled pci:0000:0a:0d.0
SA00 S4 *disabled pci:0000:10:00.0
DP48 S4 *disabled
EP00 S4 *disabled
DP50 S4 *disabled
EP00 S4 *disabled
DP58 S4 *disabled
EP00 S4 *disabled
DP60 S4 *enabled pci:0000:06:0c.0
XH00 S4 *enabled pci:0000:11:00.0
DP68 S4 *enabled pci:0000:06:0d.0
SA00 S4 *disabled pci:0000:12:00.0
I noticed that the device GPP7 S4 *enabled pci:0000:00:02.1 shows up in the dmesg logs too, so I tried echo GPP7 > /proc/acpi/wakeup and that didn't seem to help (the device shows as disabled but was apparently not the problem).
Just in case it's useful, here's the output to grep . /sys/bus/usb/devices/*/power/wakeup
/sys/bus/usb/devices/1-5/power/wakeup:enabled
/sys/bus/usb/devices/3-1/power/wakeup:disabled
/sys/bus/usb/devices/3-2/power/wakeup:disabled
/sys/bus/usb/devices/3-8/power/wakeup:disabled
/sys/bus/usb/devices/4-1/power/wakeup:disabled
/sys/bus/usb/devices/7-2/power/wakeup:enabled
/sys/bus/usb/devices/usb10/power/wakeup:disabled
/sys/bus/usb/devices/usb1/power/wakeup:disabled
/sys/bus/usb/devices/usb2/power/wakeup:disabled
/sys/bus/usb/devices/usb3/power/wakeup:disabled
/sys/bus/usb/devices/usb4/power/wakeup:disabled
/sys/bus/usb/devices/usb5/power/wakeup:disabled
/sys/bus/usb/devices/usb6/power/wakeup:disabled
/sys/bus/usb/devices/usb7/power/wakeup:disabled
/sys/bus/usb/devices/usb8/power/wakeup:disabled
/sys/bus/usb/devices/usb9/power/wakeup:disabled
And grep . /sys/bus/usb/devices/*/product
/sys/bus/usb/devices/1-4/product:WEB CAM
/sys/bus/usb/devices/1-5/product:USB Gaming Keyboard
/sys/bus/usb/devices/3-1/product:USB2.1 Hub
/sys/bus/usb/devices/3-2/product:Wireless_Device
/sys/bus/usb/devices/3-8/product:AURA LED Controller
/sys/bus/usb/devices/4-1.2/product:Extreme SSD
/sys/bus/usb/devices/4-1/product:USB3.2 Hub
/sys/bus/usb/devices/7-2/product:2.4G Keyboard Mouse
/sys/bus/usb/devices/usb10/product:xHCI Host Controller
/sys/bus/usb/devices/usb1/product:xHCI Host Controller
/sys/bus/usb/devices/usb2/product:xHCI Host Controller
/sys/bus/usb/devices/usb3/product:xHCI Host Controller
/sys/bus/usb/devices/usb4/product:xHCI Host Controller
/sys/bus/usb/devices/usb5/product:xHCI Host Controller
/sys/bus/usb/devices/usb6/product:xHCI Host Controller
/sys/bus/usb/devices/usb7/product:xHCI Host Controller
/sys/bus/usb/devices/usb8/product:xHCI Host Controller
/sys/bus/usb/devices/usb9/product:xHCI Host Controller
(I'm fairly sure that device 4-1 is the hub, and it's disabled)
I'm stumped, and honestly I don't fully understand what I'm looking at here. Any suggestions?