The system shutdown process on my Laptop running Fedora 39 (XFCE spin) is very slow. I tried setting “DefaultTimeoutStopSec=20s” in /etc/systemd/system.conf, but that didn’t change anything. The screen turns off a few seconds after shutdown, but the fans keep spinning for about 2 minutes. I have attached the output of “journalctl -rb -1” below (I only included timestamps after I pressed the shutdown button in the UI). Does anyone have an idea what might be the source of this problem? The journal messages stop shortly after the shutdown process starts and don’t indicate what exactly the source of the problem is.
I wonder if the reason the fans keep spinning is bios related and not OS controlled, in that the device is removing heat before it stops the fans.
That the journal stops and the screen turns off would indicate the OS itself is actually shutdown, but the hardware (bios controlled) is still hot and needs cooled down before the fans stop.
If it is a heating issue, then perhaps look into the power profile used and the particular settings. It would be good to take a look at the temps while running to see if they are approaching critical just in case.
I just tested it again, and the CPU temperature was 40°C at shutdown and the fan was completely silent (but the laptop still took about 2 minutes to power off). So I assume it should not be related to heating issues.
What I can definitely say is consistent:
- At first, the splash screen with logo is shown for about 5 seconds.
- Then, the screen goes black (but the screen backlight is still on).
- The keyboard backlight also stays on.
- The system no longer reacts to any key strokes (ctrl+alt+del, ctrl+alt+f6, …).
Is there some way to actually try and find out what the source of this is? This definitely doesn’t happen when I dual boot Windows.
If there is activity being done by the OS at this time you could potentially
[Ctrl][ALT][F2] to get a terminal and view the output. Actually you could try from a terminal to shutdown with
systemctl poweroff or
gnome-session-quit --power-off and view what the output in the terminal is during shutdown to see if the OS is still doing something.
[Edit] : Also there is this … [Systemd] Issue shutdown timeout concerning systemd … and this … Shut down laptop power off takes minutes - #23 by nightromantic, which seems to have some troubleshooting ideas we can try.
Thanks for the idea! The system does indeed react to
[Ctrl][ALT][F2] after the splash screen disappears. I get the following output when using
dracut Warning: Killing all remaining processes
dracut Warning: Unmounted /oldroot
i915 0000:00:02.0: [drm] *ERROR* [CRTC:80:pipe A] flip_done timed out
rtsx_pci 0000:2d:00.0: not ready 65535ms after resume; giving up
rtsx_pci 0000:2d:00.0: Unable to change power state from D3cold to D0, device inaccessible
reboot: Power down
[Screenshot] is the following:
The messages after
[Screenshot] appear shortly before shutdown, so I was only able to get them by recording a video.
So this looks to be related to the power state not being as expected. Laptops have what seems to be varying degrees of support for the different processor states that can be achieved. This does indicate (to me) the OS is keeping the fans running though. I wonder what in the PCI bus is hanging, video maybe?
Here’s the output of
0000:00:02.0 is the Intel iGPU, and
Realtek Semiconductor Co., Ltd. PCI Express Card Reader. On the one hand, in the screenshot it is apparently the iGPU that timed out (?), on the other hand it says the card reader
not ready 65535ms after resume as the last message before finally shutting down.
lspci -s 0000:2d:00.0 -v:
0000:2d:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
Subsystem: ASUSTeK Computer Inc. Device 202f
!!! Unknown header type 7f
Memory at 86200000 (32-bit, non-prefetchable) [size=4K]
Kernel driver in use: rtsx_pci
Kernel modules: rtsx_pci
I can confirm that the microSD card reader does not work under Fedora. All in all, it at least doesn’t sound impossible that it might be the source of the underlying problem, even though I do not understand why the iGPU also seems to time out.
Probably shares some of the bus, or the chip? I wonder if the ASUS utilities would help you with this. asusctl I think is what it’s called. It is meant for asus laptops and power management. It is available in Fedora’s repo’s I believe.
I was able to “solve” the issue by blacklisting the following modules:
So I am certain the source of the problem was the microSD card reader. According to some sources online,
RTS525A should be supported by the kernel by now. Where should I report this bug? bugzilla.redhat.com?
Yeah probably for the kernel dev’s in this case. They may suggest upstream kernel dev’s but it doesn’t hurt to track it at BZ.