Bug 2306298

Summary: On kernel 6.10 Thinkpad T14s Gen 4 AMD wakes when plugged in with the lid closed
Product: [Fedora] Fedora Reporter: Chris Adams <linux>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: acaringi, adscvr, airlied, alciregi, bskeggs, hdegoede, hpa, jbilling, josef, kernel-maint, linville, masami256, mchehab, ptalbert, steved, suraj.ghimire7
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-08-24 14:09:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
dmesg from kernel 6.10.5 none

Description Chris Adams 2024-08-20 22:05:39 UTC
1. Please describe the problem:
With kernel 6.10+ when I use my Thinkpad unplugged and close the lid, it goes to sleep (as expected). However when I then plug in the USB-C power to charge it, it wakes up; it does not do this with 6.9 and before (tried 6.9.12-200.fc40.x86_64).

2. What is the Version-Release number of the kernel:
6.10.5-200.fc40.x86_64 (same behavior on 6.10.3 and 6.10.4)

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :
6.10.3 is the first I observed

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:
Yes: when unplugged, close the lid, goes to sleep - then plug in with lid still closed, wakes up

5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:
Tried kernel-6.11.0-0.rc3.20240814git6b0f8db921ab.32.fc42.x86_64 but had many (unrelated) problems, system wasn't working right, wouldn't go to sleep at all, wouldn't shut down, had to hold the power button. There was a kernel NULL pointer dereference.

6. Are you running any modules that not shipped with directly Fedora's kernel?:
no

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

Reproducible: Always

Comment 1 Chris Adams 2024-08-20 22:06:34 UTC
Created attachment 2044517 [details]
dmesg from kernel 6.10.5

Comment 2 Chris Adams 2024-08-20 23:05:32 UTC
Additional thing I tried (with 6.10.5): I left the lid open, plugged it in, and tried suspending. It went to sleep for a little while, but next time I looked it had wakened itself back up.

Comment 3 Jonathan Billings 2024-08-21 12:44:06 UTC
I believe this is related to this ticket:  https://bugzilla.redhat.com/show_bug.cgi?id=2301921  and the Qualcomm wifi device.

Comment 4 Chris Adams 2024-08-21 13:03:13 UTC
Yep, sounds very similar, although maybe I have slightly different symptoms - I'm pretty sure that when unplugged, when I close the lid and don't plug it in it stays asleep (testing that now).

I figured the Qualcomm wifi code got an update, as my wifi was kind of flakey with 6.9 and got much better with 6.10; too bad that's also potentially the source of the sleep problem.

I'll try to add my debug info to that ticket later today.

Comment 5 Chris Adams 2024-08-24 14:09:09 UTC

*** This bug has been marked as a duplicate of bug 2301921 ***