X1 Carbon: Realtek 0bda:0328 reader stalls S3 resume; targeted reset-resume quirk verified
System details
- Lenovo ThinkPad X1 Carbon, Intel graphics using i915.
omarchy-dev 4.0.0.r7643.g61887f2-1.linux-omarchy 7.2.15-2(running release7.2.15-2-omarchy).- Hyprland
0.57.1-2; Quickshell0.3.2.r7.g2b4501a-7. - Stock
omarchy.idleandomarchy.lockenabled. - Internal USB SD reader: Realtek
0bda:0328,bcdDevice=0x2908, productUSB3.0-CRW, driverusb-storage, below integrated PCI0000:00:14.0. - Deep/S3 sleep. Tests were undocked.
What's wrong?
After normal lid-close suspend and wake, the visible lock screen appeared frozen and accepted no input for several seconds, before password entry.
Diagnosis found a measured USB resume stall, rather than a demonstrated lock/PAM bug. Sharing the hardware finding and verified workaround for kernel/hardware triage; I am not proposing a general lock-screen or USB-power-policy change.
Reproduction observed
- Use the reader with its original settings: device quirks
0x0,power/persist=1,power/control=on. - Close the lid normally, wait about ten seconds, then open it.
- Observe the delay before the lock screen accepts ordinary input.
The delay persisted after the card was safely unmounted and physically removed, so it was not cured by removing mounted media. Runtime autosuspend was already disabled.
Evidence
An explicitly bounded diagnostic trial with pm_print_times identified:
usb 2-3: PM: usb_dev_resume returned 0 after 5588546 usecs
The reader's SCSI descendants and task restart followed that callback. Graphics/camera callbacks finished much earlier. A separate Thunderbolt xHCI warning was not the long callback.
An empty-reader baseline measured 6.373817 seconds from kernel low-level resume complete to suspend exit. Shell/compositor IPC was responsive immediately after userspace thawed. Later reproductions had secured the lock before suspend and PAM success was followed promptly by unlock.
Targeted workaround verified on this machine
The reader-specific setting is:
usbcore.quirks=0bda:0328:b
Here b is USB_QUIRK_RESET_RESUME. A guarded live test applied it and refreshed this reader once while it was empty and unmounted. No USB reset was performed on mounted media. Readback confirmed device quirks 0x2; persistence 1, control on and the driver were preserved.
With diagnostic timing output restored to 0:
- Empty reader: the same kernel resume interval was 1.136717 seconds.
- Original card reinserted and normally mounted vfat read/write: a matched S3 wake measured 1.143450 seconds. Attended acceptance was about one second or instant.
- The reader/card remained present and mounted read/write, with no reader disconnect or card I/O/FAT error recorded in that cycle. File contents and filesystem integrity were not tested.
The intervals use native kernel source monotonic timestamps; they are not first-paint or precise first-input measurements. A failed normal status request before fallback recovery is a hypothesis, not a separately traced transfer.
USB core is built into this kernel, so persistence used a host-specific Limine entry-tool drop-in appending only this kernel argument. The exact existing arguments were preserved, the selected native limine-mkinitcpio linux-omarchy build completed, and the generated UKI's embedded arguments and menu verification hash were checked. A later normal boot remains untested; the accepted wakes used the live quirk.
Scope and upstream routing
This is verified on one reader/revision and the Omarchy vendor kernel only. There is no vanilla-mainline reproduction or established kernel regression boundary, so an automatic workaround for every device sharing this ID would need more evidence. An initial report has been emailed to [email protected], with the USB and usb-storage maintainers copied: mailing-list archive lookup (archive indexing may still be pending).
No locking/authentication bypass, reboot, driver unbind, global USB power change or filesystem repair was used. A general debug-log upload is omitted in favour of the relevant redacted measurements above.
I read the S3 resume measurements, the empty-reader and mounted-card comparisons, and the note that persistence after a fresh boot remains untested. My assessment is a hardware compatibility issue, but I have not reproduced it; no worker tests were run.
This was reviewed by Codex (GPT-6; reasoning effort not exposed). The required second classifier, deepseek-v4p1-flash, returned no usable classification, so classification remains unsettled and further triage is waiting on that result.
The classification is now settled as bug and compatibility. I checked the current quattro hardware setup and sleep/lock paths. Your measured USB resume callback accounts for most of the reported delay; the kernel resumes devices before thawing userspace, which explains why the lock screen can display a frozen frame during that interval. I found no contained Omarchy userspace fix. This remains a reading of your measurements. I did not reproduce it or run worker tests; a VM lacks this reader’s S3 path.
The next useful check is whether the improvement persists after a normal boot, without the one-time live reader refresh. On your next normal boot into the entry you already prepared, with the reader empty, please post:
- The X1 Carbon generation or DMI product name/version, BIOS/EC versions, and running kernel release.
- The active
usbcore.*arguments from/proc/cmdline, and the matching reader’sidVendor,idProduct,bcdDevice,quirks,power/persist, andpower/controlreadbacks. Locate it by0bda:0328; its USB path may change after boot. - One S3 wake’s kernel source-monotonic timestamps from
Low-level resume completethroughRestarting tasksand suspend exit, including any reader reset/resume lines. Existing before/after kernel excerpts would also help distinguish the measured stall from the hypothesized status-request timeout.
The kernel documents usbcore.quirks flags as toggles, so please check the effective reader quirk after kernel updates too: :b can clear the bit if a future kernel enables it by default. The related T480s report #8447 concerns 0bda:0316 and additional device stalls; it does not verify this workaround for 0328.
Codex (GPT-6; reasoning effort not exposed) did this diagnosis. Opus 5.5 High and muse-wonder via pi, thinking high reviewed it and agreed; independence is not guaranteed. Muse-wonder highlighted the one-time live refresh as a limit of the trial. This waits on your boot result and any response from the upstream USB report you already sent; the vendor-kernel cause and scope across reader revisions remain unresolved.