You are not logged in.

#1 2022-11-13 16:07:22

evilmegadroid
Member
Registered: 2022-08-15
Posts: 7

Cannot resume from USB device if its connected after suspending.

Hello,

I'm using a Bluetooth + USB keyboard between two computers. On my laptop which I used for docking (Trying to switch everything there) I'm facing an issue where, if I suspend the laptop and remove the keyboard usb cable (switch it to bluetooth to use with the other pc) then I cannot resume the laptop from sleep anymore when i decide to reconnect.

Basically, if the keyboard is disconnected by removing the usb cable, then if i reconnect it that way I cannot resume from sleep.

I disabled autosuspend on arch via arch wiki and still cannot fix this issue. Is this even possible?

Offline

#2 2022-11-13 16:34:12

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: Cannot resume from USB device if its connected after suspending.

cat /proc/acpi/wakeup
lspci

For clarification, do you plug the keyboard into the dock or the notebook directly?

Offline

#3 2022-11-13 16:56:16

evilmegadroid
Member
Registered: 2022-08-15
Posts: 7

Re: Cannot resume from USB device if its connected after suspending.

Device	S-state	  Status   Sysfs node
GPP0	  S3	*enabled   pci:0000:00:01.1
GPP1	  S3	*enabled   pci:0000:00:01.2
GPP2	  S3	*disabled
GPP3	  S3	*enabled   pci:0000:00:02.1
GPP4	  S3	*enabled   pci:0000:00:02.2
GPP5	  S3	*disabled
GP17	  S3	*enabled   pci:0000:00:08.1
XHC0	  S3	*enabled   pci:0000:05:00.3
XHC1	  S3	*enabled   pci:0000:05:00.4
GP19	  S3	*disabled
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:01.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
01:00.0 VGA compatible controller: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GA106 High Definition Audio Controller (rev a1)
02:00.0 Non-Volatile memory controller: Sandisk Corp WD Black SN750 / PC SN730 NVMe SSD
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
04:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852AE 802.11ax PCIe Wireless Network Adapter
05:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function (rev c5)
05:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
05:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1
05:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
06:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)
06:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 81)

It does not work in both cases. As long as the USB is removed and readded when linux is sleeping. I cannot resume.

Offline

#4 2022-11-13 17:30:17

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: Cannot resume from USB device if its connected after suspending.

There're two usb controllers, both are enabled for wakeup.
1. does simply plugging a usb key wake the system
2. are there XHCI Hand-off settings in the UEFI/BIOS and have you tried toggling the mode?
3. (ceterum censeo) is there a parallel windows installation? 3rd link below
4. does the notebook not wake on the power button?
5. if you can't wake it otherwise, try "rtcwake -m standby --date +2min" what should™ send the system to sleep and auto-wake it 2 minutes later w/o further interaction

Offline

#5 2022-11-13 18:25:52

evilmegadroid
Member
Registered: 2022-08-15
Posts: 7

Re: Cannot resume from USB device if its connected after suspending.

seth wrote:

There're two usb controllers, both are enabled for wakeup.
1. does simply plugging a usb key wake the system
2. are there XHCI Hand-off settings in the UEFI/BIOS and have you tried toggling the mode?
3. (ceterum censeo) is there a parallel windows installation? 3rd link below
4. does the notebook not wake on the power button?
5. if you can't wake it otherwise, try "rtcwake -m standby --date +2min" what should™ send the system to sleep and auto-wake it 2 minutes later w/o further interaction

1. No it does not
2. No there are no such settings, there was a settings called Always On USB (which is enabled)
3. No it only runs arch with kde on the single nvme drive it has
4. It does, i just want to make things simplier so I don't have to wake it up when i need by opening the lid from its docked state (which hanging below the desk)
5. I can wake it up, just that this will make the workflow more efficient.

Offline

#6 2022-11-13 18:45:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: Cannot resume from USB device if its connected after suspending.

I can wake it up

Great.
Please provide a system journal covering an affected S3 cycle (ie. w/ removing and re-adding the keyboard and waking w/ the power button)

Offline

#7 2022-11-13 19:30:00

evilmegadroid
Member
Registered: 2022-08-15
Posts: 7

Re: Cannot resume from USB device if its connected after suspending.

seth wrote:

I can wake it up

Great.
Please provide a system journal covering an affected S3 cycle (ie. w/ removing and re-adding the keyboard and waking w/ the power button)

1. This is without disconnecting the usb port (1 hour log of journalctl) https://www.klgrth.io/paste/mo53z
2. This is with disconnecting the usb port, i tried both connecting to the dock and connecting to the laptop usb port. Neither worked https://www.klgrth.io/paste/4megq

Offline

#8 2022-11-13 20:25:10

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,307

Re: Cannot resume from USB device if its connected after suspending.

There's also a mouse (two, logitech unifying receiver?) and a usb ethernet dongle (sidebar: you're concurrently running NM and dhcpcd - pick one and disable the other)
Try to boot the system w/ every external usb device but the desired keyboard removed and if you can, try the behavior w/ a less fancy $5 keyboard (in case the keyboard gets reset or switches mode when cut from usb power…)

Offline

Board footer

Powered by FluxBB