pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.34k stars 79 forks source link

Shutdown not powering off laptop with kernel 6.8.0-76 #3269

Open david0rk opened 1 month ago

david0rk commented 1 month ago

This may be related #530. I initially replied there because there are recent replies in the thread, but i noticed the issue was closed so i figured I'd open a new issue as this could also be new and completely unrelated

My hardware is a thinkpad t460 and the current kernel 6.8.0-76060800daily20240311-generic has an issue with shutting down.

When I shut down the machine either with the GUI or using shutdown now - P The power button light goes out ,screen goes off but the keyboard backlight doesn't go out, and pressing FN+Space still toggles the brightness levels on the keyboard.

So the EFI is still in control of the hardware. The OS appears to have unloaded but the EFI hasn't actually been given the proper "shutdown signal"

however, my old 6.5 kernel (whatever linux-image-generic-hwe) is shuts down just fine.

After some testing i've found a workaround:

it appears Intel PTT or how the kernel interacts with it is the issue

in the efi under security tab>security chip - there is an option for disabled, discrete tpm 1.2, or Intel PTT.

with the discrete TPM enabled and intel trusted execution enabled or disabled my laptop shuts down fine.

with the security chip disabled - no shutdown issues.

toggling SGX on/off seems to make no difference.

but if set the security chip option to Intel PTT my laptop will act like it is shutting down, the screen goes off, power light goes off, but i can still enable/disable the keyboard backlight with the FN+spacebar key, and it'll drain my battery

i realized i had this issue after leaving my laptop in my bag and the battery being completely dead the next day, i want to say this was maybe 2 or 3 weeks ago, and i think applies to the previous kernel prior to the current 6.8.0-76 as well, i want to say i started having suspend/resume issues after closing the lid or letting the laptop sit running for a while.

The laptop would go to sleep, and no amount of spamming the spacebar, windows key, fiddling with the touchpad or even plugging in a mouse and clicking around would get the laptop to wake up- but the power button would do the slow on/off pulsing indicating the laptop was in a standby/sleep and i'd have to hold the power button for 10 seconds till it shut down to get the machine back up again.

Hopefully this helps either as a workaround and maybe helps track down the cause of this issue.

--one other thing i forgot to mention - i'm dual booting. Maybe windows is doing something weird with the TPM/PTT thats causing this?

david0rk commented 1 month ago

Looking at recent issues it seems to be related to #3253 and #3256 as I've had the exact same symptoms. Doesn't appear to be lenovo specific either.

Anybody who ends up coming here, PLEASE BE AWARE my workaround DISABLING intel PTT OR changing your TPM CONFIGURATION may end up WIPING THE SECURITY KEYS THAT DECRYPT YOUR DISK AT BOOT. if you have full disk encryption enabled you probably do not want use this workaround.

hfc2x commented 3 weeks ago

Happens to me as well with an old Asus laptop. Model is GL553VE, which is a very problematic laptop when it comes to Linux. It has a bunch of problems with every distro, like automatically unmounting internal drives and such, both on Arch and Fedora, but Pop!_OS has worked almost flawlessly for the most part. The only real problem it has with Pop is the shutdown process, because 1 out of like 10 shutdowns, it simply stays on a black screen and has to be forced.

jackblk commented 2 weeks ago

Happens to me on PC as well. I'm also dual booting with windows. Might be the case with TPM, Secure boot...?

kernel 6.8.0-76060800daily20240311-generic
Asrock B650M Pro RS WiFi
CPU AMD 7600
GPU AMD 580