-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot shutdown laptop with linux6.6-6.6.31_1 #50417
Comments
I have kernel 6.6.29_1 and my system did not poweroff when I tried shutting it down with with my AGS widgets. I didn't debug whether it was the widgets or the system though, and I'm not in a mood to shutdown now. |
I had this problem on my two Nvidia Optimus laptops: (Intel + Nvidia) and (Amd + Nvidia) while I was in the process of resuming the use of Void Linux, so it only gave me the error while I was using Nouveau. When I finished configuring the system with the Nvidia drivers, it no longer appeared. |
I encountered this problem after I updated the kernel this afternoon. Exactly the same problem like @Sqvid. My system spec:
Since I usually clear caches after an update, so I cannot downgrade the kernel. But I tried installing |
I'm on arch linux but I have the same behavior. I went in my cache and reverted to test:
|
Facing same issue on Laptop with 8845hs during installation (no UI is installed) |
I found this thread through a search engine (I'm on nixOS not void linux), but I have the same issue on nixOS on a framework amd laptop (AMD Ryzen 7 7840U). Shutdown appears to work at first, where the systemd logs zoom right past like always. Then the screen goes black, but the power "stays on" (power led stays lit) indefinitely. I need to manually hold the power button for several seconds to force the shutdown to go through. Rolling back the kernel from 6.6.31 to 6.6.30 fixes the issue. |
Anyone affected by this can you check two things:
|
CC @knurd |
Warning, the following is a totally wild guess. But there was one report about a shutdown problem caused by a commit that went into 6.6.31 as well; wonder if that might be related. https://lore.kernel.org/all/CAE4VaREzY%2Ba2PvQJYJbfh8DwB4OP7kucZG-e28H22xyWob1w_A@mail.gmail.com/ |
Bisected between 6.6.30 and 6.6.31 to find the problem commit:
|
Ok... Does it also fail on 6.9? |
I have bisected it to this commit in https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux.git :
|
The issue is not present on 6.9.1. I would agree it looks like an incomplete/failed backport. |
Interesting. It's supposed to be quite self contained. Can you guys please confirm your firmware versions from debugfs?
|
Its going to take me a while to confirm 6.9.1 because the release version of zfs only supports up to 6.8. I'll have to try the upstream zfs git and if that doesn't work, swap out my SSD and make a new non-zfs install. My firmware on Arch Linux's build of
|
Nevermind, lucked out, upstream zfs git works for 6.9.1. I have confirmed that 6.9.1 shuts down properly. |
Firmware as reported on Manjaro running 6.6.30):
|
Can you guys try this? Ideally please try it both on 6.9.y and 6.6.y: |
That patch works on 6.6.31 Will update once I've tested on 6.9.1 and 6.1.91 (it is also an issue on 6.1.91 - have not tested older LTS kernels). |
Update: 6.9.1 continues to work with that patch, and 6.1.91 is fixed with it. Also tested 5.10.217 and 5.15.159, but neither of those have the issue in question. |
Thanks! I've posted it to the mailing list for review: https://lore.kernel.org/amd-gfx/20240526125908.2742-1-mario.limonciello@amd.com/T/#u If anyone else wants to add A Reported-by or Tested-by tag, link or anything else please respond to that thread. |
I just wanted to report that this kernel also messed up the standby for me. I rarely shutdown the PC but stand by it regularly and now it works only 2 times and then reports "Another instance of zzz is already running". |
Does it bisect to same result? If so please try the fix linked above. If it's bisecting to different commit it should be different issue. |
commit cd94d1b ("dm/amd/pm: Fix problems with reboot/shutdown for some SMU 13.0.4/13.0.11 users") attempted to fix shutdown issues that were reported since commit 31729e8 ("drm/amd/pm: fixes a random hang in S4 for SMU v13.0.4/11") but caused issues for some people. Adjust the workaround flow to properly only apply in the S4 case: -> For shutdown go through SMU_MSG_PrepareMp1ForUnload -> For S4 go through SMU_MSG_GfxDeviceDriverReset and SMU_MSG_PrepareMp1ForUnload Reported-and-tested-by: lectrode <electrodexsnet@gmail.com> Closes: void-linux/void-packages#50417 Cc: stable@vger.kernel.org Fixes: cd94d1b ("dm/amd/pm: Fix problems with reboot/shutdown for some SMU 13.0.4/13.0.11 users") Reviewed-by: Tim Huang <Tim.Huang@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Is this a new report?
Yes
System Info
Void 6.6.31_1 x86_64 AuthenticAMD uptodate rrFFFF
Package(s) Affected
linux6.6-6.6.31_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
No response
Expected behaviour
After runit winds down services the laptop should switch off.
Actual behaviour
Upgrading to kernel 6.6.31_1 prevents the computer from shutting down. Runit seems to stop all services correctly and the screen goes black as expected; however, the keyboard backlight and power light stay on and the fans still run.
##System info:
CPU: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics
GPU: Nvidia GeForce RTX 4060 (disabled and powered off)
WM: Sway
Downgrading to 6.6.30_1 or below fixes this issue and the laptop shuts down immediately as expected.
Not sure how to extract useful debug info but would appreciate any tips.
Steps to reproduce
sudo poweroff now
.The text was updated successfully, but these errors were encountered: