Computer logs out when suspending on wayland but not X11

Hi, Thanks for any help in advance.

My Imac Mid 2011 (i5 2400s, 12GB RAM, AMD Radeon HD 6750M graphics) logs out when suspending. It does this on wayland but not X11. Happens on both F39 Workstation and Silverblue. It has done this for a while now.

Any ideas?

Thanks

Guy

Is your system fully updated – a) so you aren’t chasing a bug that has been fixed, and b) so others can replicate your configuration.

We can’t help without more information. It is probably best to start with Workstation (more people use it, and it is easier to tweak the configuration). Please also provide the output (as pre-formatted text using the </> button) from running inxi -Fzxx in a terminal. The inxi output helps others with similar problems/hardware find this thread with a search.

To collect relevant error messages you should use journalctl.

Run journalctl -b [N] in a terminal to compare the last entries for the two types of session. Because journalctl captures enormous detail, it can take some effort to find a filter that captures only the relevant entries. Also note that journalctl often produces very long lines. Once you find a good filter, you can run journalctl --no-hostname ...|cat to get complete lines (without hostname as it is rarely useful in forum posts) suitable for posting.

Hi George,
Thanks for the reply. Yes, it’s fully updated. Here’s the output of inxi (journalctl outputs to follow):

System:
  Kernel: 6.7.9-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.20240314.0 (Silverblue)
Machine:
  Type: Desktop System: Apple product: iMac12,1 v: 1.0
    serial: <superuser required> Chassis: type: 13 v: Mac-942B5BF58194151B
    serial: <superuser required>
  Mobo: Apple model: Mac-942B5BF58194151B serial: <superuser required>
    UEFI: Apple v: 87.0.0.0.0 date: 06/14/2019
Battery:
  Device-1: hidpp_battery_0 model: Logitech M350 Wireless Mouse
    serial: <filter> charge: 100% (should be ignored) status: discharging
CPU:
  Info: quad core model: Intel Core i5-2400S bits: 64 type: MCP
    arch: Sandy Bridge rev: 7 cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB
  Speed (MHz): avg: 1614 high: 1656 min/max: 1600/3300 cores: 1: 1600
    2: 1600 3: 1656 4: 1600 bogomips: 20002
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    driver: i915 v: kernel arch: Gen-6 ports: active: none empty: VGA-1
    bus-ID: 00:02.0 chip-ID: 8086:0102
  Device-2: AMD Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M]
    vendor: Apple driver: radeon v: kernel arch: TeraScale-2 pcie: speed: 5 GT/s
    lanes: 16 ports: active: eDP-1 empty: DP-1, DP-2, DP-3, VGA-2
    bus-ID: 01:00.0 chip-ID: 1002:6741
  Device-3: Apple FaceTime HD Camera (Built-in) driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 2-2:3 chip-ID: 05ac:850b
  Display: wayland server: X.org v: 1.20.14 with: Xwayland v: 23.2.4
    compositor: gnome-shell driver: X: loaded: modesetting,radeon
    unloaded: fbdev,vesa dri: r600,crocus gpu: radeon display-ID: 0
  Monitor-1: eDP-1 model: Apple iMac res: 1920x1080 dpi: 103
    diag: 545mm (21.5")
  API: OpenGL v: 4.5 vendor: mesa v: 23.3.6 glx-v: 1.4 es-v: 3.1
    direct-render: yes renderer: AMD TURKS (DRM 2.50.0 / 6.7.9-200.fc39.x86_64
    LLVM 17.0.6) device-ID: 1002:6741 display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20
  Device-2: AMD Turks HDMI Audio [Radeon HD 6500/6600 / 6700M Series]
    vendor: Apple driver: snd_hda_intel v: kernel pcie: speed: 5 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 1002:aa90
  API: ALSA v: k6.7.9-200.fc39.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.0.4 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Broadcom NetXtreme BCM57765 Gigabit Ethernet PCIe driver: tg3
    v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: N/A bus-ID: 02:00.0
    chip-ID: 14e4:16b4
  IF: enp2s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros AR93xx Wireless Network Adapter
    vendor: Apple AirPort Extreme driver: ath9k v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 bus-ID: 03:00.0 chip-ID: 168c:0030
  IF: wlp3s0 state: up mac: <filter>
Bluetooth:
  Device-1: Apple Built-in Bluetooth 2.0+EDR HCI driver: btusb v: 0.8
    type: USB rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 2-1.1.1:6
    chip-ID: 05ac:8215
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 2.1 lmp-v: 4
Drives:
  Local Storage: total: 111.79 GiB used: 100.57 GiB (90.0%)
  ID-1: /dev/sda vendor: Palit model: PSP120 SSD size: 111.79 GiB
    speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: /boot size: 973.4 MiB used: 278.9 MiB (28.7%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 600 MiB used: 25.6 MiB (4.3%) fs: hfsplus
    dev: /dev/sda1
  ID-3: /var size: 110.2 GiB used: 100.27 GiB (91.0%) 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: 43.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 1200
Info:
  Memory: total: 12 GiB available: 11.65 GiB used: 1.91 GiB (16.4%)
  Processes: 298 Power: uptime: 1m wakeups: 0 Init: systemd v: 254
    target: graphical (5) default: graphical
  Packages: pm: flatpak pkgs: 39 Compilers: N/A Shell: Bash v: 5.2.26
    running-in: gnome-terminal inxi: 3.3.33

Hi George,
The problem seems to have gone away. I updated yesterday and now when suspending I’m no longer logged out. Some of the updates were for audio components (see below) so perhaps they solved the problem? Anyway, good news, thanks for your help.

1 Like

I spoke too soon and the problem is back again - being logged out on suspend when using Wayland (X11 works fine). I ran journalctl after suspending on both wayland and x11 with “-p err” to show errors only.

Output on wayland:

Mar 18 17:55:26 kernel: debugfs: File 'radeon_ring_gfx' in directory '0000:01:00.0' already present!
Mar 18 17:55:26 kernel: debugfs: File 'radeon_ring_dma1' in directory '0000:01:00.0' already present!
Mar 18 17:55:26 kernel: debugfs: File 'radeon_ring_uvd' in directory '0000:01:00.0' already present!
Mar 18 17:55:26 gdm[1141]: GLib: Source ID 82 was not found when attempting to remove it
Mar 18 17:55:26 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:26 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:26 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:26 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:26 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:26 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:26 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:26 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:27 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:27 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:27 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:27 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:31 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:31 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:31 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:31 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:35 gdm-password][7376]: gkr-pam: unable to locate daemon control file
Mar 18 17:55:36 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:36 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:36 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:36 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:55:36 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:36 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:36 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:36 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:55:36 systemd[4947]: Failed to start app-gnome-gnome\x2dkeyring\x2dpkcs11-7553.scope - Application launched by gnome-session-binary.
Mar 18 17:55:36 systemd[4947]: Failed to start app-gnome-gnome\x2dkeyring\x2dsecrets-7561.scope - Application launched by gnome-session-binary.
Mar 18 17:55:36 systemd[4947]: Failed to start app-gnome-gnome\x2dkeyring\x2dssh-7550.scope - Application launched by gnome-session-binary.

Output on X11:

Mar 18 17:58:19 kernel: debugfs: File 'radeon_ring_gfx' in directory '0000:01:00.0' already present!
Mar 18 17:58:19 kernel: debugfs: File 'radeon_ring_dma1' in directory '0000:01:00.0' already present!
Mar 18 17:58:19 kernel: debugfs: File 'radeon_ring_uvd' in directory '0000:01:00.0' already present!
Mar 18 17:58:19 gdm[1141]: GLib: Source ID 166 was not found when attempting to remove it
Mar 18 17:58:19 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:58:19 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:58:19 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:58:19 bluetoothd[936]: Failed to remove UUID: Failed (0x03)
Mar 18 17:58:20 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:58:20 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:58:20 bluetoothd[936]: Failed to add UUID: Failed (0x03)
Mar 18 17:58:20 bluetoothd[936]: Failed to add UUID: Failed (0x03)

My systems don’t suspend, so I don’t know if the log out on suspend, but for a Wayland session I see the same

gdm-password][NNNN]: gkr-pam: unable to locate daemon control file
... systemd[NNNN]: Failed to start app-gnome-gnome\x2dkeyring\x2dpkcs11-2493.scope - Application launched by gnome-session binary.
... systemd[NNNN]: Failed to start app-gnome-gnome\x2dkeyring\x2dsecrets-2496.scope - Application launched by gnome-sessiion-binary.
... systemd[NNNN]: Failed to start app-gnome-gnome\x2dkeyring\x2dssh-2490.scope - Application launched by gnome-session-binary.

So I don’t think the -p err filter captures the underlying problem. It could be helpful to rule out user configuration (e.g., startup scripts and Gnome extensions) by checking for the issue by creating a new user login and verifying that the problem still occurs.

Thanks George,
I created a test user and found that it also logs out after suspending on that user. What I did notice is that the screen gets corrupted just before bringing up the login screen (see screenshot). I guess the problem happens at that time.

Probably a side effect of the graphics system failing to resume properly.

Make a note of time this happens. In man journalctl you can read about using filters based on time. You might also try journalctl -b -g login.

It might be helpful to read Arch Linux Power Management Suspend and Hibernate (Arch Linux has a record of excellent documentation).
Since my iMac runs continuously, I haven’t investigated how suspend is done, but journalctl should have the details.

Great, that’s helpful George. Some investigating to be done.
Guy