[RESPONDED] Fedora 39 - 13th Gen Intel - Suspend/Resume issues possibly related to offline-upgrade

Hello,

It looks like this very sequence of events leads to difficulties to resume the laptop from suspend mode:

  1. after I launch an offline-upgrade before shutdown [1]
  2. and after the upgrade the laptop shuts down (as expected)
  3. and after I start it again (usually the next day)
  4. and after it suspends itself (due to inactivity)
  5. it is very difficult and sometimes impossible to resume (wake up) the laptop.

Screen remains dark, power button is blinking, but no response. Tried to unplug/plug in the power cord. Tried to press the power button many times… tried to press it a little longer… tried to close/open the lid…

Sometimes, the laptop eventually wakes up after a while. Sometimes, even after minutes, nothing happens, and I’m forced to perform a hard shutdown and start again the laptop.

Those difficulties never happen when no upgrade has been performed before shutdown.

Does anyone noticed this issue before? Do you think it might be related to Grub/Fedora or BIOS or hardware?

[1] I.e. given an upgrade is available and has been automatically downloaded, when I click on shutdown, Gnome ask me if I’d like to apply offline-upgrade before shutting down (Restarting and Offline Updates - Fedora Magazine)


Kernel: 6.6.4-200.fc39.x86_64
Processor: 13th Gen Intel® Core™ i7-1360P × 16
Ext. cards: 2×USB-C (rear) + 1 HDMI (front) + 1 USB-A (front)
TLP profile as recommended here (gnome power profile removed): Optimizing Fedora Battery Life


$ cat /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rd.luks.uuid=luks-1185776b-e7ce-40c9-8ad1-89f5b2177ccd rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

Last three boots: (did offline-upgrade; did eventually wake up after ~10 seconds)

$ journalctl -b 0 -u systemd-logind
Dec. 13 09:12:13 xyz systemd[1]: Starting systemd-logind.service - User Login Management...
Dec. 13 09:12:13 xyz systemd-logind[1959]: New seat seat0.
Dec. 13 09:12:13 xyz systemd-logind[1959]: Watching system buttons on /dev/input/event0 (Lid Switch)
Dec. 13 09:12:13 xyz systemd-logind[1959]: Watching system buttons on /dev/input/event1 (Power Button)
Dec. 13 09:12:13 xyz systemd-logind[1959]: Watching system buttons on /dev/input/event4 (FRMW0001:00 32AC:0006)
Dec. 13 09:12:13 xyz systemd-logind[1959]: Watching system buttons on /dev/input/event2 (AT Translated Set 2 keyboard)
Dec. 13 09:12:13 xyz systemd[1]: Started systemd-logind.service - User Login Management.
Dec. 13 09:12:16 xyz systemd-logind[1959]: New session c1 of user gdm.
Dec. 13 09:12:30 xyz systemd-logind[1959]: New session 2 of user user1.
Dec. 13 09:12:31 xyz systemd-logind[1959]: Session c1 logged out. Waiting for processes to exit.
Dec. 13 09:12:31 xyz systemd-logind[1959]: Removed session c1.
Dec. 13 09:44:42 xyz systemd-logind[1959]: The system will suspend now!
Dec. 13 10:16:39 xyz systemd-logind[1959]: Operation 'sleep' finished.
Dec. 13 10:17:06 xyz systemd-logind[1959]: Session 2 logged out. Waiting for processes to exit.
Dec. 13 10:17:06 xyz systemd-logind[1959]: Removed session 2.
Dec. 13 10:17:06 xyz systemd-logind[1959]: New session c2 of user gdm.
Dec. 13 10:17:13 xyz systemd-logind[1959]: New session 5 of user user2.
Dec. 13 10:17:15 xyz systemd-logind[1959]: Session c2 logged out. Waiting for processes to exit.
Dec. 13 10:17:15 xyz systemd-logind[1959]: Removed session c2.

$ journalctl -b -1 -u systemd-logind
Dec. 12 23:01:56 xyz systemd[1]: Starting systemd-logind.service - User Login Management...
Dec. 12 23:01:56 xyz systemd-logind[2332]: New seat seat0.
Dec. 12 23:01:56 xyz systemd-logind[2332]: Watching system buttons on /dev/input/event0 (Lid Switch)
Dec. 12 23:01:56 xyz systemd-logind[2332]: Watching system buttons on /dev/input/event1 (Power Button)
Dec. 12 23:01:56 xyz systemd-logind[2332]: Watching system buttons on /dev/input/event4 (FRMW0001:00 32AC:0006)
Dec. 12 23:01:56 xyz systemd-logind[2332]: Watching system buttons on /dev/input/event2 (AT Translated Set 2 keyboard)
Dec. 12 23:01:56 xyz systemd[1]: Started systemd-logind.service - User Login Management.
Dec. 12 23:01:59 xyz systemd[1]: Stopping systemd-logind.service - User Login Management...
Dec. 12 23:01:59 xyz systemd[1]: systemd-logind.service: Deactivated successfully.
Dec. 12 23:01:59 xyz systemd[1]: Stopped systemd-logind.service - User Login Management.

$ journalctl -b -2 -u systemd-logind
Dec. 11 12:15:55 xyz systemd[1]: Starting systemd-logind.service - User Login Management...
Dec. 11 12:15:55 xyz systemd-logind[1751]: New seat seat0.
Dec. 11 12:15:55 xyz systemd-logind[1751]: Watching system buttons on /dev/input/event0 (Lid Switch)
Dec. 11 12:15:55 xyz systemd-logind[1751]: Watching system buttons on /dev/input/event1 (Power Button)
Dec. 11 12:15:55 xyz systemd-logind[1751]: Watching system buttons on /dev/input/event4 (FRMW0001:00 32AC:0006)
Dec. 11 12:15:55 xyz systemd-logind[1751]: Watching system buttons on /dev/input/event2 (AT Translated Set 2 keyboard)
Dec. 11 12:15:55 xyz systemd[1]: Started systemd-logind.service - User Login Management.
Dec. 11 12:15:58 xyz systemd-logind[1751]: New session c1 of user gdm.
Dec. 11 12:16:06 xyz systemd-logind[1751]: New session 2 of user user2.
Dec. 11 12:16:11 xyz systemd-logind[1751]: Session c1 logged out. Waiting for processes to exit.
Dec. 11 12:16:11 xyz systemd-logind[1751]: Removed session c1.
Dec. 11 13:05:06 xyz systemd-logind[1751]: The system will suspend now!
Dec. 11 13:05:18 xyz systemd-logind[1751]: Operation 'sleep' finished.
Dec. 11 13:05:31 xyz systemd-logind[1751]: Session 2 logged out. Waiting for processes to exit.
Dec. 11 13:05:31 xyz systemd-logind[1751]: Removed session 2.
Dec. 11 13:05:31 xyz systemd-logind[1751]: New session c2 of user gdm.
Dec. 11 13:05:36 xyz systemd-logind[1751]: New session 5 of user user1.
Dec. 11 13:05:38 xyz systemd-logind[1751]: Session c2 logged out. Waiting for processes to exit.
Dec. 11 13:05:38 xyz systemd-logind[1751]: Removed session c2.
Dec. 11 13:05:51 xyz systemd-logind[1751]: The system will suspend now!
Dec. 11 13:06:11 xyz systemd-logind[1751]: Operation 'sleep' finished.
Dec. 11 13:06:22 xyz systemd-logind[1751]: Session 5 logged out. Waiting for processes to exit.
Dec. 11 13:06:22 xyz systemd-logind[1751]: Removed session 5.
Dec. 11 13:06:22 xyz systemd-logind[1751]: New session c3 of user gdm.
Dec. 11 13:06:28 xyz systemd-logind[1751]: New session 8 of user user2.
Dec. 11 13:06:30 xyz systemd-logind[1751]: Session c3 logged out. Waiting for processes to exit.
Dec. 11 13:06:30 xyz systemd-logind[1751]: Removed session c3.
Dec. 11 13:33:56 xyz systemd-logind[1751]: The system will suspend now!
Dec. 11 14:18:24 xyz systemd-logind[1751]: Operation 'sleep' finished.
Dec. 11 17:26:04 xyz systemd-logind[1751]: The system will suspend now!
Dec. 11 17:33:21 xyz systemd-logind[1751]: Operation 'sleep' finished.
Dec. 11 20:16:35 xyz systemd-logind[1751]: The system will suspend now!
Dec. 11 20:32:36 xyz systemd-logind[1751]: Operation 'sleep' finished.
Dec. 11 21:02:37 xyz systemd-logind[1751]: Lid closed.
Dec. 11 21:02:37 xyz systemd-logind[1751]: Suspending...
Dec. 12 09:33:16 xyz systemd-logind[1751]: Lid opened.
Dec. 12 09:33:17 xyz systemd-logind[1751]: Operation 'sleep' finished.
Dec. 12 12:08:37 xyz systemd-logind[1751]: The system will suspend now!
Dec. 12 13:18:06 xyz systemd-logind[1751]: Operation 'sleep' finished.
Dec. 12 15:31:09 xyz systemd-logind[1751]: The system will suspend now!
Dec. 12 15:44:45 xyz systemd-logind[1751]: Operation 'sleep' finished.
Dec. 12 19:07:29 xyz systemd-logind[1751]: Lid closed.
Dec. 12 19:07:29 xyz systemd-logind[1751]: Suspending...
Dec. 12 20:28:44 xyz systemd-logind[1751]: Lid opened.
Dec. 12 20:28:45 xyz systemd-logind[1751]: Operation 'sleep' finished.
Dec. 12 21:51:44 xyz systemd-logind[1751]: The system will suspend now!
Dec. 12 21:53:21 xyz systemd-logind[1751]: Operation 'sleep' finished.
Dec. 12 23:00:54 xyz systemd-logind[1751]: The system will reboot now!
Dec. 12 23:00:54 xyz systemd-logind[1751]: System is rebooting.
Dec. 12 23:00:54 xyz systemd-logind[1751]: Session 8 logged out. Waiting for processes to exit.
Dec. 12 23:00:54 xyz systemd[1]: Stopping systemd-logind.service - User Login Management...
Dec. 12 23:00:54 xyz systemd-logind[1751]: Removed session 8.
Dec. 12 23:00:55 xyz systemd[1]: systemd-logind.service: Deactivated successfully.
Dec. 12 23:00:55 xyz systemd[1]: Stopped systemd-logind.service - User Login Management.
Dec. 12 23:00:55 xyz systemd[1]: systemd-logind.service: Consumed 6.408s CPU time.

Hi @Benjamin_Menant ,

Welcome to the forums :slight_smile:

Can you first verify if issue is present or not, by booting on a clean fedora 39 live?
This could tell if it’s already hardware or just your current install of fedora which had an offline upgrade.

Thank you for your answer @Loell_Framework

:thinking: I’m not sure how I could reproduce the issue on a Fedora live, since such system does not upgrade (nor offline-upgrade). And from what I’ve seen, the issue only happens after an offline-upgrade.

Just to be sure: an offline-upgrade is not a system-upgrade (i.e. from a major release to the next one). It’s like a dnf upgrade scheduled on a special save-mode boot. Maybe I should have called it an offline update (but the command really is dnf offline-upgrade).

By the way, my system is a rather fresh install of a Fedora 39 (I received my Framework just after the official release of Fedora 39).

might it be a bug in dnf offline-ugprade?

can we try and check dnf logs?

Today, I restarted my laptop to apply an offline update (including kernel updates) and tried to suspend/resume a couple of times without any problem.

I do not see anything suspicious on the DNF side (below are two extracts from /var/logs/dnf.log showing last week’s update and today’s update; they’re pretty much identical).

We’ll see if it happens again and update this post. Maybe last updates has solved what was the cause of this issue?

2023-12-12T23:01:56+0100 INFO --- logging initialized ---
2023-12-12T23:01:56+0100 DDEBUG timer: config: 3 ms
2023-12-12T23:01:56+0100 DEBUG Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, notify-packagekit, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
2023-12-12T23:01:56+0100 DEBUG DNF version: 4.18.2
2023-12-12T23:01:56+0100 DDEBUG Command: dnf-3 system-upgrade upgrade 
2023-12-12T23:01:56+0100 DDEBUG Installroot: /
2023-12-12T23:01:56+0100 DDEBUG Releasever: 39
2023-12-12T23:01:56+0100 DEBUG cachedir: /var/cache/dnf
2023-12-12T23:01:56+0100 DDEBUG Base command: system-upgrade
2023-12-12T23:01:56+0100 DDEBUG Extra commands: ['system-upgrade', 'upgrade']
2023-12-12T23:01:56+0100 INFO trigger file does not exist. exiting quietly.
2023-12-12T23:01:56+0100 DDEBUG Cleaning up.
2023-12-12T23:01:56+0100 DDEBUG Plugins were unloaded.
2023-12-18T15:57:16+0100 INFO --- logging initialized ---
2023-12-18T15:57:16+0100 DDEBUG timer: config: 7 ms
2023-12-18T15:57:16+0100 DEBUG Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, needs-restarting, notify-packagekit, playground, repoclosure, repodiff, repograph, repomanage, reposync, system-upgrade
2023-12-18T15:57:16+0100 DEBUG DNF version: 4.18.2
2023-12-18T15:57:16+0100 DDEBUG Command: dnf-3 system-upgrade upgrade 
2023-12-18T15:57:16+0100 DDEBUG Installroot: /
2023-12-18T15:57:16+0100 DDEBUG Releasever: 39
2023-12-18T15:57:16+0100 DEBUG cachedir: /var/cache/dnf
2023-12-18T15:57:16+0100 DDEBUG Base command: system-upgrade
2023-12-18T15:57:16+0100 DDEBUG Extra commands: ['system-upgrade', 'upgrade']
2023-12-18T15:57:16+0100 INFO trigger file does not exist. exiting quietly.
2023-12-18T15:57:16+0100 DDEBUG Cleaning up.
2023-12-18T15:57:16+0100 DDEBUG Plugins were unloaded.