Fedora does not turn off, it stays on logo for ever

Hello,

When I power off or restart Fedora, it does not turn off.

It shows the fedora logo with a spinner,
then the feodra logo only and stays there for ever.

I Just totally re-installed Fedora.
There is no problem with kernel 6.5.6,
but it does not work again as soon as I update the kernel to 6.7.6.

Could you please drive me on how to debug and fix this bug please ?

thank you

You can press the Esc key to see what is preventing the shutdown process.

2 Likes

When I press the Esc key after clicking Power off, it ends up on this screen screenshot

[ 34.408232] systend-shutdowl[1]: Sending SIGKILL to remaining processes...
[ 34.411842] systead-shutdowl[1]: Unmounting file systems.
[ 34.412538] (sd-remount)[3547]: Remounting '/' read-only with options ‘seclabel ,compress=zstd:1,ssd,discar
[ 34.430231] systead-shutdowl[1]: All filesystems unmounted.
[ 34.430248] systead-shutdowl[1]: Deactivating swaps.
[ 34.4982971 systend-shutdowlil]: All swaps deactivated.
[ 34.430386] systead-shutdowl[1]: Detaching loop devices.
[ 34.431265] systend-shutdowl[1]: All loop devices detached.
[ 34.431275] systend-shutdowl[1]: Stopping MD devices.
[ 34.431368] systend-shutdowl[1]: All MD devices stopped.
[ 34.431377] systend-shutdowl[1]: Detaching DM devices.
[ 34.431451] systend-shutdowl[1]: All DM devices detached.
[ 34.431461] systend-shutdowl[1]: All filesystems, swaps, loop devices, MD devices and PM devices detached.
[ 34.455505] systead-shutdowl[i]: Syncing filesystems and block devices.
[ 34.455819] systead-shutdowl[1]: Powering off.
_
2 Likes

It might be a firmware issue.

See if there is an update for the BIOS that you can install that may fix it.

1 Like

What is the command to update the BIOS?

I tried

❯ sudo dnf update && sudo dnf upgrade
Last metadata expiration check: 0:40:49 ago on Sat 24 Feb 2024 10:00:22 AM CET.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 0:40:51 ago on Sat 24 Feb 2024 10:00:22 AM CET.
Dependencies resolved.
Nothing to do.
Complete!

❯ sudo fwupdmgr refresh --force
WARNING: UEFI capsule updates not available or enabled in firmware setup
See https://github.com/fwupd/fwupd/wiki/PluginFlag:capsules-unsupported for more information.
Updating lvfs
Downloading…             [************************************** ] Less than one minute remaining…
Successfully downloaded new metadata: 0 local devices supported

~ took 19s 
❯ sudo fwupdmgr get-updates
WARNING: UEFI capsule updates not available or enabled in firmware setup
See https://github.com/fwupd/fwupd/wiki/PluginFlag:capsules-unsupported for more information.
Devices with no available firmware updates: 
 • APPLE SSD SD0128F
 • Bluetooth USB Host Controller
 • SSD 870 EVO 2TB
No updatable devices

~ 
❯ sudo fwupdmgr update
WARNING: UEFI capsule updates not available or enabled in firmware setup
See https://github.com/fwupd/fwupd/wiki/PluginFlag:capsules-unsupported for more information.
Devices with no available firmware updates: 
 • APPLE SSD SD0128F
 • Bluetooth USB Host Controller
 • SSD 870 EVO 2TB
No updatable devices

~ 
❯ sudo fwupdmgr get-devices
WARNING: UEFI capsule updates not available or enabled in firmware setup
See https://github.com/fwupd/fwupd/wiki/PluginFlag:capsules-unsupported for more information.
Apple Inc. iMac14,2
│
├─88SS9183 PCIe SSD Controller:
│     Device ID:          5987c136e0024e0f45943927a31c5c4c711f3eb0
│     Current version:    14
│     Vendor:             Marvell Technology Group Ltd. (PCI:0x1B4B, PCI:0x8086)
│     GUIDs:              55787138-6588-53fa-904a-31af11c2d425 ← PCI\VEN_1B4B&DEV_9183
│                         bb9bbd96-e479-5b35-95de-9efdffc7fec6 ← PCI\VEN_1B4B&DEV_9183&SUBSYS_1B4B9183
│                         59137b70-10c4-5212-b759-b78671e7dc33 ← PCI\VEN_8086&DEV_8C10
│                         f4633701-6b31-5950-b3b6-897283b9f8d5 ← PCI\VEN_8086&DEV_8C10&SUBSYS_80867270
│     Device Flags:       • Internal device
│                         • Cryptographic hash verification is available
│   
├─APPLE SSD SD0128F:
│     Device ID:          270d4e5fd841cc85f256e3d085996f07ed1dbdc6
│     Summary:            ATA drive
│     Current version:    A222621
│     Vendor:             SanDisk (ATA:0x101C, ATA:0x15B7, OUI:001b44)
│     Serial Number:      1339A0408196
│     GUIDs:              701899d1-5b24-5c04-abfb-afa342d381fe ← IDE\APPLE_SSD_SD0128F_______________________A222621
│                         2a2d141e-eb62-54df-a6c2-b3aeaa3881d6 ← IDE\0APPLE_SSD_SD0128F_______________________
│                         e2081536-db5a-5bd5-ba33-f530d1164cbe ← APPLE SSD SD0128F
│     Device Flags:       • Internal device
│                         • Updatable
│                         • System requires external power source
│                         • Needs a reboot after installation
│                         • Device is usable for the duration of the update
│   
├─Bluetooth USB Host Controller:
│     Device ID:          a1f3f6ff1e1ea935ef5303e9e0de4fbf9a925e94
│     Current version:    1.50
│     Vendor:             Apple Inc. (USB:0x05AC)
│     GUID:               fd9e3e9b-6467-5307-a5be-c42143b1c743 ← USB\VID_05AC&PID_828D
│     Device Flags:       • Updatable
│   
├─Core™ i7-4771 CPU @ 3.50GHz:
│     Device ID:          4bde70ba4e39b28f9eab1628f9dd6e6244c03027
│     Current version:    0x00000028
│     Vendor:             Intel
│     GUIDs:              dd2cdaeb-2b08-599d-aaec-5a8374add8d6 ← CPUID\PRO_0&FAM_06&MOD_3C
│                         112c1ba3-2c29-5ab2-bd72-ea65bd10dd67 ← CPUID\PRO_0&FAM_06&MOD_3C&STP_3
│     Device Flags:       • Internal device
│   
├─GK104M [GeForce GTX 780M Mac Edition]:
│     Device ID:          ce4c74a5188d5b9cdb1e72ed32dad2d313c1c999
│     Current version:    a1
│     Vendor:             NVIDIA Corporation (PCI:0x10DE, PCI:0x8086)
│     GUIDs:              01577363-f01c-5202-9d3b-144fbb703ed8 ← PCI\VEN_10DE&DEV_119E
│                         f9d8b325-0209-5e9a-82ce-347425ba618b ← PCI\VEN_10DE&DEV_119E&SUBSYS_106B0121
│                         5006e997-5789-5967-9f7e-14c1d06716b8 ← PCI\VEN_8086&DEV_0C01
│                         c92f3e2f-25cc-5736-8722-b0955dd1b03f ← PCI\VEN_8086&DEV_0C01&SUBSYS_106B0123
│     Device Flags:       • Internal device
│                         • Cryptographic hash verification is available
│   
└─SSD 870 EVO 2TB:
      Device ID:          602b0a6cc821d155208724f0e22f8d111542b74c
      Summary:            ATA drive
      Current version:    SVT01B6Q
      Vendor:             Samsung (ATA:0x144D, OUI:002538)
      Serial Number:      S621NF0R818357X
      GUIDs:              8b62ca61-8b96-58f6-b1e9-281087a83995 ← IDE\Samsung_SSD_870_EVO_2TB_________________SVT01B6Q
                          ea4b26cf-ffd9-5fb0-a207-c230a5d621e9 ← IDE\0Samsung_SSD_870_EVO_2TB_________________
                          e0518d76-10bc-5c2d-9693-ee18a7e91881 ← Samsung SSD 870 EVO 2TB
      Device Flags:       • Internal device
                          • Updatable
                          • System requires external power source
                          • Needs a reboot after installation
                          • Device is usable for the duration of the update

It would be helpful to post hardware details such as the output from running inxi -Fzxx in a terminal (paste as preformatted text usign the </> button). This will aid others with the same issue and hardware find this thread with a search.

When reporting problem it is best to fully update your system so others can easily have the same software versions.

Not all vendors participate in fwupd, and those that do are sometimes slow, so it is worth checking the vendor’s site and vendor-specific forums.

❯ inxi -Fzxx
System:
  Kernel: 6.7.5-200.fc39.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.40-14.fc39
  Desktop: GNOME v: 45.4 tk: GTK v: 3.24.41 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 39 (Workstation Edition)
Machine:
  Type: Desktop System: Apple product: iMac14,2 v: 1.0
    serial: <superuser required> Chassis: type: 13 v: Mac-27ADBB7B4CEE8E61
    serial: <superuser required>
  Mobo: Apple model: Mac-27ADBB7B4CEE8E61 v: iMac14,2
    serial: <superuser required> UEFI: Apple v: 433.140.2.0.0 date: 04/18/2022
CPU:
  Info: quad core model: Intel Core i7-4771 bits: 64 type: MT MCP
    arch: Haswell rev: 3 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 1561 high: 3900 min/max: 800/3900 cores: 1: 800 2: 3492
    3: 800 4: 3900 5: 800 6: 1000 7: 800 8: 900 bogomips: 55869
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GK104M [GeForce GTX 780M Mac Edition] vendor: Apple
    driver: nouveau v: kernel arch: Kepler pcie: speed: 2.5 GT/s lanes: 16
    ports: active: DP-1,DP-2 empty: DP-3 bus-ID: 01:00.0 chip-ID: 10de:119e
    temp: 55.0 C
  Device-2: Apple FaceTime HD Camera (Display) driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 2-1.5:4 chip-ID: 05ac:1112
  Device-3: Apple FaceTime HD Camera (Built-in) driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 4-7:6 chip-ID: 05ac:8511
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 23.2.4
    compositor: gnome-shell driver: gpu: nouveau display-ID: 0
  Monitor-1: DP-1 model: Apple iMac res: 2560x1440 dpi: 109
    diag: 685mm (27")
  Monitor-2: DP-2 model: Apple Thunderbolt res: 2560x1440 dpi: 109
    diag: 685mm (27")
  API: OpenGL v: 4.3 vendor: mesa v: 23.3.5 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: NVE4 device-ID: 10de:119e display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel 8 Series/C220 Series High Definition Audio
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20
  Device-2: NVIDIA GK104 HDMI Audio driver: snd_hda_intel v: kernel pcie:
    speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:0e0a
  Device-3: Apple Thunderbolt Display Audio
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 bus-ID: 2-1.4:3 chip-ID: 05ac:1107
  API: ALSA v: k6.7.5-200.fc39.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Broadcom BCM4360 802.11ac Dual Band Wireless Network Adapter
    vendor: Apple driver: wl v: kernel pcie: speed: 2.5 GT/s lanes: 1
    bus-ID: 03:00.0 chip-ID: 14e4:43a0
  IF: wlp3s0 state: dormant mac: <filter>
  Device-2: Broadcom NetXtreme BCM57766 Gigabit Ethernet PCIe driver: tg3
    v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: N/A bus-ID: 04:00.0
    chip-ID: 14e4:1686
  IF: enp4s0f0 state: down mac: <filter>
  Device-3: Broadcom NetXtreme BCM57761 Gigabit Ethernet PCIe vendor: Apple
    driver: tg3 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: N/A
    bus-ID: 3e:00.0 chip-ID: 14e4:16b0
  IF: enp62s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
  Device-1: Apple Bluetooth Host Controller driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 4-8.3:12 chip-ID: 05ac:828d
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 4.0 lmp-v: 6
Drives:
  Local Storage: total: 3.75 TiB used: 709.7 GiB (18.5%)
  ID-1: /dev/sda vendor: Samsung model: SSD 870 EVO 2TB size: 1.82 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-2: /dev/sdb vendor: Apple model: SSD SD0128F size: 113 GiB
    speed: 6.0 Gb/s serial: <filter>
  ID-3: /dev/sdc vendor: Samsung model: PSSD T7 size: 1.82 TiB type: USB
    rev: 2.1 spd: 480 Mb/s lanes: 1 serial: <filter>
Partition:
  ID-1: / size: 1.82 TiB used: 33.09 GiB (1.8%) fs: btrfs dev: /dev/sda3
  ID-2: /boot size: 973.4 MiB used: 279.4 MiB (28.7%) fs: ext4
    dev: /dev/sda2
  ID-3: /boot/efi size: 600 MiB used: 36.5 MiB (6.1%) fs: hfsplus
    dev: /dev/sda1
  ID-4: /home size: 1.82 TiB used: 33.09 GiB (1.8%) fs: btrfs dev: /dev/sda3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 59.0 C mobo: N/A gpu: nouveau temp: 55.0 C
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB available: 31.28 GiB used: 3.9 GiB (12.5%)
  Processes: 420 Power: uptime: 1h 35m wakeups: 0 Init: systemd v: 254
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 20 Compilers: gcc: 13.2.1 Shell: Bash
    v: 5.2.26 running-in: gnome-terminal inxi: 3.3.32

I have the same model (iMac14,2 v: 1.0) and no shutdown problems. I got it after my wife switched to Apple Silicon (the internal SSD overheats in hot summer weather). I now have Fedora installed on the original Apple SSD and keep the iMac in a cooler part of the house. The iMac was upgraded to the last supported macOS version (Catalina?) after the SSD problem. It is possible that the firmware was modified with the OS update.

Apple firmware doesn’t rise to the level of problems you get with old firmware in Windows systems. Systems failing shutdown is often due to some “hung” process that fails to terminate. If that is your issue, you should see some some error messages using journalctl.

You are using the open source reverse engineered nouveau driver. You could try the Nvidia driver from rpmfusion. It is not difficult to switch back to nouveau – I generally run nouveau and only switch to Nvidia when necessary because Nvidia doesn’t support Wayland on my older (hardware.

here are the logs from journalctl :

I see many errors in here, but is there anything relevant?

I tried the nvidia drivers in the past, but at one point it totally prevented the computer to start and I had to go back to nouveau. see: Can't boot after update to kernel v6.3.4 - #15 by francoisromain

Not sure if if I want to go back on this route.

You have many entries with AVC avc: denied that come from Security-Enhanced Linux (SELinux) . On both my F39 systems I get:

% journalctl -b -1 -g 'AVC.avc:.*denied'
-- No entries --

See: Relabel files with the latest SELinux policy.

I have the same result whit this command here:

❯ journalctl -b -1 -g 'AVC.avc:.*denied'
-- No entries --

I update selinux anyway

❯ sudo fixfiles -B onboot
System will relabel on next boot
❯ journalctl -b -1 -g 'AVC.avc:.*denied'
-- No entries --

Try just journalctl -b -1 -g denied. I looked at one of the files you posted and saw many lines with
AVC avc: denied, but not sure is ther are spaces or a tab after the :, and can’t really test on my systems as there are no messages with denied.

yes many

févr. 26 16:26:32 localhost-live.home audit[6324]: AVC avc: denied { checkpoint_restore } for pid=6324 comm="plymouthd" capability=40 scontext=system_u:s>

Even after I made sudo fixfiles -B onboot and rebooted.

And the computer still hangs on the fedora logo when powering off.

Looks like Bug 2259622, but that refers to fc40. This seems to be a comon bug with many duplicates, including some for selinux-policy-39.4-1.fc39, which is the version on my system. Dogs are telling me it is dinner time, so can’t investigate further until later tonight or tomorrow.

again, I format the disk and re-install Fedora.
The computer powers off and restarts correctly.

Then I update the kernel from version 6.5.6 to 6.7.6
and now it hangs up on the fedora logo when powered off or restarted.

I just updated the kernel and its dependencies, nothing else.

We need more information to understand the problem. Potential reasons that my core i5 iMac14,2 doesn’t have the issue include different firmware (e.g., different Apple updates, devices), different hardware (external displays, storage, CPU), and hardware failures. Are you still getting audit[...]: AVC avc: denied { checkpoint_restore } messages in journalctl? What was the last macOS version installed on the system?

From the inxi output, we both have UEFI: Apple v: 433.140.2.0.0 date: 04/18/2022. I’m using the original Apple drives, with Fedora installed on the SSD, and don’t have an external monitor. I’m using a very old Apple keyboard.

yes journalctl -b -1 -g denied shows 200+ lines like this :

Feb 29 00:00:43 localhost-live.home audit[18445]: AVC avc:  denied  { checkpoint_restore } for  pid=18445 comm="plymouthd" capability=40  scontext=system_u:system_r:plymouthd_t:s0 tcontext=system_u:system_r:plymouthd_t:s0 tclass=capability2 permissive=0

This imac had a fusion drive (HDD + SDD).

  • I kept the original 121go ssd which still has the latest version of MacOs catalina installed on it. I never use it
  • I replaced the original internal hard drive with a 2to samsung ssd which has fedora installed on it.

I am using an usb apple keyboard US and an apple thunderbolt display as a second screen.

Power management in linux kernels is far from static. Every vendor does it differently, so things change with new kernels, and old hardware is sometimes a casuality.

One significant difference is your external display. I have thunderbolt to DVI adapters, but they stopped working when macOS was updated. You may have some firmware I don’t have (e.g., supporting the external monitor), but it would be interesting to know if the issue occurs with the external monitor disconnected. On my system, connecting an external monitor with a DVI adapter doesn’t change the entry in inxi.

I assume the original optical drive was an Apple USB SuperDrive. I have booted older versions of Fedora from an a couple different external USB3 SSD cases, but all relatively new. Is it possible that the external case is causing your issue?

Same problem if I boot and power off without the second display plugged in.

I made a mistake in my previous message: I didn’t mean optical drive but hard drive. So the samsung 2to SSD with Fedora is inside the computer. I edited the message.

Is there anything else I can try?