System shuts down while sleeping

Hello, I’m running kernel 5.12.8 on Thinkpad T490 and for some reason the system crashes and shuts down when sleeping. This has been happening for weeks. No crashes while actively using the computer.

last -x | grep "crash" shows that a crash occurred and I tried to go through journalctl and found these appear during that moment:

tpm tpm0: [Firmware Bug]: TPM interrupt not working, polling instead
lightdm[796]: gkr-pam: unable to locate daemon control file

Probably something related to this https://github.com/canonical/lightdm/issues/70 ?

First: @jupe welcome to the forum!
And now your questions.

With kernel 5.12.x there were problems especially with suspend (see Need help with suspend under 5.12 kernel). One of my laptops had that problem all the time. With kernel 5.12.7 the problem was gone.

Does your laptop behaves like described in the thread above?
If not, what happens?

Can you please post following things:
To see which kernel is used at the moment:
uname -a
The last 20 entries before the crash. Please run this right after restarting your laptop:
journalctl -b -1 -r -n 20

No, your problem is not related to that bug in lightdm. This error message is annoying but not a real problem.

Thanks for the answer. The description on the thread pretty much matches my problems, but I don’t have led indicators so I thought the system had shut down instead of being unresponsive. I’ll be on the 5.12.8 kernel until I can reproduce the crash since it doesn’t always happen and try out 5.12.7 and LTS/Zen afterwards.

uname -a
Linux juhis-school 5.12.8-arch1-1 #1 SMP PREEMPT Fri, 28 May 2021 15:10:20 +0000 x86_64 GNU/Linux

Steps to reproduce:

  1. Let the system go to sleep after being idle
  2. Close the lid
  3. Open the lid and no key combination works, completely blank

All the led indicators on the keyboard I had previously on were lit. The “power on” indicator on the think pad logo on the lid was on, but no blinking like usually. Had to force shutdown.

journalctl -b -1 -r -n 20
hastebin

I would recommend to install linux-lts additionally and run this kernel as long as kernel 5.12.x has this problem with your laptop.

Did you push the power button after opening the lid? What a question? Sure you did. :wink:

Can you please test following:

  1. Run the laptop.
  2. Click on suspend in the shutdown menu.
    Does the system go to suspend?
  3. If it does go to suspend, wait 20 seconds and then push power button.
    Does the laptop makes a startup from bios or does it return to DE as expected?

Your discription and the logfile shows that the system did not go to sleep before closing the lid.

To me your problem looks slightly different to the problem mentioned in the thread above.
Please check your settings according to https://wiki.archlinux.org/title/Laptop and https://wiki.archlinux.org/title/Power_management