Linux suspend problems (Thinkpad E580)

Hello,

I have a really strange problem with my laptop when it comes to suspending it.

When I tried putting it to sleep using

systemctl suspend

The laptop suspends… and the power light blinks rapidly when compared to when just closing the lid, and there is no way to wakeup the laptop, I can open/close the lid how many times I want, plug in/out any devices, press the power button how many times I want - it stays suspended, the only ‘fix’ for that situation is to hold the power button and wait for the motherboard to kill power.

Just closing the lid works ok most of the time, but sometimes I get a strange situation when I close the lid and nothing happens, then I can open/close the lid how many times I want and the thing worn’t go to sleep.
In that situation the fix is to poweroff the laptop, but it won’t shut down completely either, when every process in the system is dead I’m stuck on a dmesg screen with message “Preparing for system sleep state S5”… and it can be in this state indefinitely (or longer than 30 minutes because I once tested what would happen if I left it alone).

Does anyone have any idea how I could debug this problem?

OS: ArchLinux
Kernel: 4.19.150-2-lts

Hi, there isn’t enough information for me to be able to tell you exactly what’s going on. But maybe you should start by using a newer kernel and seeing if there is a bios update (just in case there are any ACPI issues that were fixed).

Otherwise boot up with the following kernel parameter:

systemd.log_level=debug

and run the following commands and upload the output to pastebin (or anywhere you like).

sudo journalctl --unit=systemd-logind --follow

Ok, so I haven’t attatched the arguments to the kernel cmdline (I’m using efi for booting kernel and every time I need to change something It’s a 10 minute hunt just for the documentation), however I had the suspend problem again, and I don’t really know any way of checking the dmesg beyond certain point, and the entire dmesg is just spam from something (PAM?)

[34594.397807] kauditd_printk_skb: 5 callbacks suppressed
[34594.397809] audit: type=1101 audit(1604844535.630:86871): pid=320055 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="larry" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34594.398025] audit: type=1110 audit(1604844535.630:86872): pid=320055 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34594.398318] audit: type=1105 audit(1604844535.630:86873): pid=320055 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34594.418065] audit: type=1106 audit(1604844535.650:86874): pid=320055 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34594.418136] audit: type=1104 audit(1604844535.650:86875): pid=320055 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34596.402102] audit: type=1101 audit(1604844537.630:86876): pid=320072 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="larry" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34596.402352] audit: type=1110 audit(1604844537.640:86877): pid=320072 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34596.402670] audit: type=1105 audit(1604844537.640:86878): pid=320072 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34596.424351] audit: type=1106 audit(1604844537.660:86879): pid=320072 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34596.424424] audit: type=1104 audit(1604844537.660:86880): pid=320072 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34600.404205] kauditd_printk_skb: 5 callbacks suppressed
[34600.404207] audit: type=1101 audit(1604844541.640:86886): pid=320108 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="larry" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34600.404487] audit: type=1110 audit(1604844541.640:86887): pid=320108 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34600.404801] audit: type=1105 audit(1604844541.640:86888): pid=320108 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34600.427152] audit: type=1106 audit(1604844541.660:86889): pid=320108 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34600.427229] audit: type=1104 audit(1604844541.660:86890): pid=320108 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34602.401504] audit: type=1101 audit(1604844543.630:86891): pid=320125 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="larry" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34602.401739] audit: type=1110 audit(1604844543.630:86892): pid=320125 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34602.402013] audit: type=1105 audit(1604844543.630:86893): pid=320125 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34602.430118] audit: type=1106 audit(1604844543.660:86894): pid=320125 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34602.430212] audit: type=1104 audit(1604844543.660:86895): pid=320125 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34606.398666] kauditd_printk_skb: 5 callbacks suppressed
[34606.398668] audit: type=1101 audit(1604844547.630:86901): pid=320166 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="larry" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34606.398924] audit: type=1110 audit(1604844547.630:86902): pid=320166 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34606.399179] audit: type=1105 audit(1604844547.630:86903): pid=320166 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34606.418663] audit: type=1106 audit(1604844547.650:86904): pid=320166 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34606.418729] audit: type=1104 audit(1604844547.650:86905): pid=320166 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34608.400289] audit: type=1101 audit(1604844549.630:86906): pid=320194 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="larry" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34608.400497] audit: type=1110 audit(1604844549.630:86907): pid=320194 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34608.400733] audit: type=1105 audit(1604844549.630:86908): pid=320194 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34608.418203] audit: type=1106 audit(1604844549.650:86909): pid=320194 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34608.418267] audit: type=1104 audit(1604844549.650:86910): pid=320194 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34612.511718] kauditd_printk_skb: 5 callbacks suppressed
[34612.511719] audit: type=1101 audit(1604844553.740:86916): pid=320244 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="larry" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34612.511879] audit: type=1110 audit(1604844553.740:86917): pid=320244 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34612.512076] audit: type=1105 audit(1604844553.750:86918): pid=320244 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34612.528216] audit: type=1106 audit(1604844553.760:86919): pid=320244 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34612.528273] audit: type=1104 audit(1604844553.760:86920): pid=320244 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34614.398197] audit: type=1101 audit(1604844555.630:86921): pid=320261 uid=1000 auid=1000 ses=3 subj==unconfined msg='op=PAM:accounting grantors=pam_permit,pam_time acct="larry" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34614.398458] audit: type=1110 audit(1604844555.630:86922): pid=320261 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34614.398717] audit: type=1105 audit(1604844555.630:86923): pid=320261 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34614.418162] audit: type=1106 audit(1604844555.650:86924): pid=320261 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
[34614.418229] audit: type=1104 audit(1604844555.650:86925): pid=320261 uid=0 auid=1000 ses=3 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=? res=success'
...

How do I increase the amount of lines shown by dmesg?