You are not logged in.

#1 2022-02-19 17:28:29

j-james
Member
From: Hisui
Registered: 2021-04-29
Posts: 18
Website

Suspend broken after recent update

Hello all,

My suspend has been broken on my Thinkpad X1 since a few days ago.

I found this out after closing my laptop's lid last night and waking up to it having completely drained the battery. I had also ran into an issue that same day where I opened the lid to find that it had gone to a black screen filled with `@`s and logged me out, but upon logging back in all my applications were still open so I discounted it a bit (the normal behavior there is to open to the lock screen, not the login screen).

Normally I would just downgrade, find the package breaking my system, and wait to update until it's fixed upstream. But I've updated my computer a couple of times in the last few days, and am not sure what the package causing this could be (nor have a recent Timeshift snapshot to roll back to :-().

I'm running the GNOME desktop under Wayland with Pipewire, installed using `archinstall`, and with `linux-lts`. Here is a list of recent pacman updates: https://0x0.st/oKJ8.txt

This is a new issue within the last few days - definitely new within the last week. I'd appreciate any help in debugging the problem or narrowing it down.

Manually activating suspend from within GNOME seems to work fine, so I'd imagine this is a bug related to suspend-on-timeout.

Last edited by j-james (2022-02-25 06:28:11)

Offline

#2 2022-02-21 06:26:21

j-james
Member
From: Hisui
Registered: 2021-04-29
Posts: 18
Website

Re: Suspend broken after recent update

After some more testing, this problem happens inconsistently (hooray :-P).

When it's not fine, it briefly shows the lock screen, then boots me out to the login screen, and sometimes shows the TTY with a bunch of @ symbols. The keyboard stops working when this happens. The TTY sometimes shows my password from attempts at logging in (so it isn't being passed to GDM?)

If I do manage to log in, I'm still unable to use the keyboard and there are performance and cursor problems, so I need to reboot anyway.

Offline

#3 2022-02-21 09:38:42

adamjbc
Member
Registered: 2022-02-21
Posts: 4

Re: Suspend broken after recent update

I have a similar sounding issue.  My X1 nano is getting hot when suspended, and the battery is draining a lot more than usual.  It seems to wake up fine (albeit a bit slower) with no software crashes (using sway) and I can't see anything obvious in top or powertop that's been running.  Powertop showed around 12W usage immediately after waking up instead of the usual <1W.

Offline

#4 2022-02-24 00:46:14

branch
Member
Registered: 2014-03-16
Posts: 209

Re: Suspend broken after recent update

I'm having the same problem on a Samsung Galaxy Book Pro 360. I'm also running Gnome/Wayland with Pipewire, also iwd, and it was fine up until a week or so ago. System log shows abnormal termination of the systemd-journald process with a core dump after resume. There are no log entries during the time the system was suspended (as expected) even though the fan was on full blast and the battery draining. The final log entries prior to suspending appear to show successful entry into state s2idle.

My symptoms are very similar to those described above. A while (maybe 5 to 30 minutes) after suspend, the fans come on and the system warms up. If I open the lid before the battery drains completely it does not resume without pressing keys and/or messing with the touchpad. I can then log into gnome, but once in gnome the keyboard sometimes does not work. Upon resume, the fans slow down and later stop; system activity seems back to normal before I can log in and run top.

Offline

#5 2022-02-25 01:29:21

j-james
Member
From: Hisui
Registered: 2021-04-29
Posts: 18
Website

Re: Suspend broken after recent update

I ran into this issue again after putting my computer in my backpack - after taking it out, I noticed the fans were on and the computer was overheating. It still seems to be inconsistently triggered, it's happened with a bunch of applications open and it's happened with none. I'm temporarily working around it by just disabling suspend on timeout, but that's obviously not a long-term solution...

@branch, @adamjbc - could you post the output of `paclog --action upgrade` (since about 2022-02-12?) so we can cross-reference what packages were updated to try and find the program causing this issue? I updated systemd on the 12th, but didn't notice this until around the 17th, so I'm leaning towards it being an issue with something else (definitely could be wrong though).

Also, what kernel are you two on?

Offline

#6 2022-02-25 05:52:57

makikatze
Member
Registered: 2017-08-28
Posts: 6

Re: Suspend broken after recent update

Unfortunately, I rarely upgrade (at least more rarely than I should). But since I also encountered this problem after my update yesterday, here we go with my personal upgrade log to help finding the problematic package: https://pastebin.com/Biwk8Unc

My current workaround is to call "systemctl suspend" (depending on your setup, this might work only if you call it as "sudo systemctl suspend", of course). After the system went into power saving mode, I close the lid and everything is as if closing the lid did the suspend. Would be nice to not need to remember this in the future, though wink

EDIT: Oh, and I use the default linux kernel instead of the LTS version.

Last edited by makikatze (2022-02-25 05:54:00)

Offline

#7 2022-02-25 15:13:55

adamjbc
Member
Registered: 2022-02-21
Posts: 4

Re: Suspend broken after recent update

@j-james my paclog output is here: https://0x0.st/oKvP.txt

I am 99% sure it happened after my upgrade on the 20th.  I'm on kernel 5.16.10

After a bit more use, I'm finding that sometimes it's suspending fine, and sometimes it isn't.  For example, until just now it was suspended for about 4 days with occasional use and it was fine.  But then just now I used my laptop, suspended, and within a few minutes it was getting warm.  I think I only opened firefox and a terminal (alacritty) each time.

Offline

#8 2022-02-25 15:59:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 16,239

Re: Suspend broken after recent update

If systemctl suspend works but closing the lid doesn't then this is possibly this bug in the current upower package: https://bugs.archlinux.org/task/73942

Offline

#9 2022-02-25 16:41:35

thinman
Member
Registered: 2018-08-14
Posts: 13

Re: Suspend broken after recent update

V1del wrote:

If systemctl suspend works but closing the lid doesn't then this is possibly this bug in the current upower package: https://bugs.archlinux.org/task/73942

I was experiencing similar issues to the ones reported here and can confirm that on my Lenovo x250, downgrading to upower-0.99.15-1 has solved my issue of not being able to suspend on lid close.

Offline

#10 2022-02-25 18:06:32

makikatze
Member
Registered: 2017-08-28
Posts: 6

Re: Suspend broken after recent update

Thank you very much, downgrading to upower 0.99.15-1 indeed fixed my problems, too!

Offline

#11 2022-02-26 07:56:48

adamjbc
Member
Registered: 2022-02-21
Posts: 4

Re: Suspend broken after recent update

V1del wrote:

If systemctl suspend works but closing the lid doesn't then this is possibly this bug in the current upower package: https://bugs.archlinux.org/task/73942

Thanks.  Unfortunately I don't use upower, so I don't think this can be related to the issue I am having.  For me, it appears that the laptop screen is turning off correctly.  And according to dmesg it is reaching s2idle.  But it carries on doing something because it starts to get warm.  When I open the lid, it does not resume (or rather the screen does not come on) until I start hitting buttons.

The problem happens regardless of whether I shut the lid or use systemctl suspend.

Offline

#12 2022-02-26 16:14:42

oxygen_wobble
Member
Registered: 2012-05-20
Posts: 92

Re: Suspend broken after recent update

Seems like there are two things going on here, one about the device heating up in suspend mode and the other one about problems with the screen ?

In any case, the "heating up while suspended" mode happens on my device (Lenovo IdeaPad Flex 5i 14ITL05) as well, can't point to a specific update.

It doesn't make a difference whether I run "systemctl suspend" or just close the lid ...

Offline

#13 2022-02-26 17:49:42

ishaanbhimwal
Member
Registered: 2022-01-21
Posts: 48
Website

Re: Suspend broken after recent update

@oxygen_wobble This issue is now fixed in upower 0.99.16-2.

Offline

#14 2022-02-26 18:05:46

oxygen_wobble
Member
Registered: 2012-05-20
Posts: 92

Re: Suspend broken after recent update

Ah neat ! So I can close my lid with confidence again ...

Offline

#15 2022-02-26 20:14:34

j-james
Member
From: Hisui
Registered: 2021-04-29
Posts: 18
Website

Re: Suspend broken after recent update

Unfortunately, I think I'm in the same boat as @adamjbc - while I do use upower, I didn't update it to 0.99.16 until the 25th (and this issue appeared somewhere around the 17th).

Offline

#16 2022-02-26 22:48:17

branch
Member
Registered: 2014-03-16
Posts: 209

Re: Suspend broken after recent update

I tried backing out to upower-0.99.15-1 and then to upower-0.99.13-1 but the problem persists.

Offline

#17 2022-02-27 01:01:22

branch
Member
Registered: 2014-03-16
Posts: 209

Re: Suspend broken after recent update

I see no difference in behavior between closing the lid and running systemctl suspend. The problem persists in either case.

Offline

#18 2022-02-27 02:33:56

j-james
Member
From: Hisui
Registered: 2021-04-29
Posts: 18
Website

Re: Suspend broken after recent update

Hmm. Here are the packages both adamjrc and I recently updated (since the 17th): https://0x0.st/oK0X.txt

Last edited by j-james (2022-02-27 02:36:36)

Offline

#19 2022-02-27 04:23:46

branch
Member
Registered: 2014-03-16
Posts: 209

Re: Suspend broken after recent update

Thanks. I've reverted to the following packages and initial results seem positive, but further testing is needed. If it remains working in this config I'll narrow it down more.

intel-ucode-20210608-1-any.pkg.tar.zst
linux-5.15.7.arch1-1-x86_64.pkg.tar.zst
linux-firmware-20211216.f682ecb-1-any.pkg.tar.zst
upower-0.99.13-1-x86_64.pkg.tar.zst

Offline

#20 2022-02-27 05:52:02

branch
Member
Registered: 2014-03-16
Posts: 209

Re: Suspend broken after recent update

That config seems ok. Brought upower back up to 0.99.16-1, so current reversions are:

intel-ucode-20210608-1-any.pkg.tar.zst
linux-5.15.7.arch1-1-x86_64.pkg.tar.zst
linux-firmware-20211216.f682ecb-1-any.pkg.tar.zst

Initial results are positive, testing further...

Offline

#21 2022-02-27 06:54:45

branch
Member
Registered: 2014-03-16
Posts: 209

Re: Suspend broken after recent update

Still seems OK, pretty sure it's not upower. Brought back linux-firmware 20220209.6342082-1 and intel-ucode 20220207-1, so current reversion is just:

linux 5.15.7.arch1-1

Initial results positive, testing further....

Offline

#22 2022-02-27 08:31:39

j-james
Member
From: Hisui
Registered: 2021-04-29
Posts: 18
Website

Re: Suspend broken after recent update

Ran into the issue again just now, even though I had disabled suspend. Interesting things of note:
- Normally my caps lock key is remapped to escape and switches the little light to being controlled by Esc - it was controlled by CapsLock here.
  - (the keyboard still wasn't working)
- The trackpad worked fine, gestures included. Sometimes it hasn't, though.
- There was no wifi, and when I opened up settings, it said it couldn't find my (integrated) wifi adapter.
- My usb mouse was not recognized.

Leaning towards this being a bug in linux-firmware. I'm running linux-lts 5.15.25 (although I do have linux 5.16.11 installed), so it'd probably not (?) be in linux since adamjrc was running 5.16.

Last edited by j-james (2022-02-27 11:32:17)

Offline

#23 2022-02-27 15:45:07

branch
Member
Registered: 2014-03-16
Posts: 209

Re: Suspend broken after recent update

My system is behaving normally with the only reversion being linux 5.15.7.arch1-1. I'll try to narrow it down more, but my set of old kernel packages is very incomplete.

@j-james - I wonder if the "fix" that broke it got back-ported to the 5.15.x branch? Your 5.15.25 kernel was released Feb 23, well after the problem showed up.

Offline

#24 2022-02-27 15:58:41

branch
Member
Registered: 2014-03-16
Posts: 209

Re: Suspend broken after recent update

Preliminary testing indicates the problem was introduced in linux-5.16.10.arch1-1. I've had good results so far with linux-5.16.9.arch1-1, but will test more to confirm.

Offline

#25 2022-02-27 20:12:51

branch
Member
Registered: 2014-03-16
Posts: 209

Re: Suspend broken after recent update

Confirmed linux-5.16.9.arch1-1 is good. I built my own package of linux-5.16.9.arch1-1 with the updated toolchain (gcc, binutils, etc.) and it's still fine so the cause must just be the changes in the linux package. I might try to bisect if I have time. There are 2 commits between 5.16.9 and 5.16.10 labeled as relating to s2idle, so might start there.

Offline

Board footer

Powered by FluxBB