Dell desktop intermittent shutdown on suspend

UPDATE: Issue actually seems to be related to a “Wake On USB” problem, specifically if the machine is sleeping, and i attempt to wake it with keyboard/mouse it immediately shuts down. Going to do some more troubleshooting around BIOS configuration to see if there’s anything I can change to help the situation, but it’s looking less like a Linux issue and more of a Dell issue…



Need some help troubleshooting a suspend issue.

Have a Dell Optiplex 3050 USFF desktop with a fully updated Fedora 38 KDE install. I usually sleep/suspend the machine when not in use, but intermittently it will “shut down” while in sleep (i.e. not immediately, but some time after being put into sleep).

Example being…

  • Suspend the machine either specifically via KDE menu, or via sleep timer
  • Machine is seen to go into sleep (power button light “breathes”)
  • At some point machine “powers off” (power button light is off when I return)
  • Machine requires a cold boot to power back on.

Example of a successful suspend/resume (blank line added by me at point of suspend/resume):

Oct 19 13:58:44 bandit chronyd[733]: Source 46.17.63.196 offline
Oct 19 13:58:44 bandit systemd[1]: Starting systemd-hostnamed.service - Hostname Service...
Oct 19 13:58:44 bandit chronyd[733]: Can't synchronise: no selectable sources
Oct 19 13:58:44 bandit chronyd[733]: Source 85.199.214.101 offline
Oct 19 13:58:44 bandit systemd[1]: Reached target sleep.target - Sleep.
Oct 19 13:58:44 bandit systemd[1]: Starting systemd-suspend.service - System Suspend...
Oct 19 13:58:44 bandit systemd-sleep[4549]: Entering sleep state 'suspend'...
Oct 19 13:58:44 bandit kernel: PM: suspend entry (deep)
Oct 19 13:58:44 bandit systemd[1]: Started systemd-hostnamed.service - Hostname Service.
Oct 19 13:58:44 bandit audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-hostname>
Oct 19 13:58:44 fedora systemd-hostnamed[4543]: Hostname set to <fedora> (transient)
Oct 19 13:58:44 fedora systemd-resolved[672]: System hostname changed to 'fedora'.
Oct 19 13:58:44 fedora kernel: Filesystems sync: 0.092 seconds

Oct 19 16:31:09 fedora kernel: Freezing user space processes
Oct 19 16:31:09 fedora kernel: Freezing user space processes completed (elapsed 0.004 seconds)
Oct 19 16:31:09 fedora kernel: OOM killer disabled.
Oct 19 16:31:09 fedora kernel: Freezing remaining freezable tasks
Oct 19 16:31:09 fedora kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
Oct 19 16:31:09 fedora kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Oct 19 16:31:09 fedora kernel: serial 00:01: disabled
Oct 19 16:31:09 fedora kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
Oct 19 16:31:09 fedora kernel: sd 0:0:0:0: [sda] Stopping disk
Oct 19 16:31:09 fedora kernel: PM: suspend devices took 0.200 seconds
Oct 19 16:31:09 fedora kernel: ACPI: PM: Preparing to enter system sleep state S3
Oct 19 16:31:09 fedora kernel: ACPI: PM: Saving platform NVS memory
Oct 19 16:31:09 fedora kernel: Disabling non-boot CPUs ...
Oct 19 16:31:09 fedora kernel: smpboot: CPU 1 is now offline
Oct 19 16:31:09 fedora kernel: smpboot: CPU 2 is now offline
Oct 19 16:31:09 fedora kernel: smpboot: CPU 3 is now offline
Oct 19 16:31:09 fedora kernel: ACPI: PM: Low-level resume complete
Oct 19 16:31:09 fedora kernel: ACPI: PM: Restoring platform NVS memory
Oct 19 16:31:09 fedora kernel: Enabling non-boot CPUs ...
Oct 19 16:31:09 fedora kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
Oct 19 16:31:09 fedora kernel: CPU1 is up
Oct 19 16:31:09 fedora kernel: smpboot: Booting Node 0 Processor 2 APIC 0x4
Oct 19 16:31:09 fedora kernel: CPU2 is up
Oct 19 16:31:09 fedora kernel: smpboot: Booting Node 0 Processor 3 APIC 0x6
Oct 19 16:31:09 fedora kernel: CPU3 is up
Oct 19 16:31:09 fedora kernel: ACPI: PM: Waking up from system sleep state S3
Oct 19 16:31:09 fedora kernel: i915 0000:00:02.0: [drm] [ENCODER:94:DDI B/PHY B] is disabled/in DSI mode with an ungated DDI clock, gate it
Oct 19 16:31:09 fedora kernel: i915 0000:00:02.0: [drm] [ENCODER:104:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it
Oct 19 16:31:09 fedora kernel: i915 0000:00:02.0: [drm] [ENCODER:115:DDI D/PHY D] is disabled/in DSI mode with an ungated DDI clock, gate it
Oct 19 16:31:09 fedora kernel: i915 0000:00:02.0: [drm] [ENCODER:125:DDI E/PHY E] is disabled/in DSI mode with an ungated DDI clock, gate it
Oct 19 16:31:09 fedora kernel: ACPI BIOS Error (bug): AE_AML_BUFFER_LIMIT, Field [DRQL] at bit offset/length 136/8 exceeds size of target Buffer (128>
Oct 19 16:31:09 fedora kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.SIO1.DSRS due to previous error (AE_AML_BUFFER_LIMIT) (20230331/psparse-529)
Oct 19 16:31:09 fedora kernel: ACPI Error: Aborting method \_SB.PCI0.LPCB.UAR1._SRS due to previous error (AE_AML_BUFFER_LIMIT) (20230331/psparse-529)
Oct 19 16:31:09 fedora kernel: serial 00:01: activation failed
Oct 19 16:31:09 fedora kernel: serial 00:01: PM: dpm_run_callback(): pnp_bus_resume+0x0/0xa0 returns -5
Oct 19 16:31:09 fedora kernel: serial 00:01: PM: failed to resume: error -5
Oct 19 16:31:09 fedora kernel: PM: resume devices took 0.172 seconds
Oct 19 16:31:09 fedora kernel: OOM killer enabled.
Oct 19 16:31:09 fedora kernel: Restarting tasks ...

Example of a failed suspend/resume (blank line added by me at point of suspend/resume):

Oct 24 09:11:38 bandit chronyd[762]: Source 80.87.128.222 offline
Oct 24 09:11:38 bandit chronyd[762]: Source 81.128.218.110 offline
Oct 24 09:11:38 bandit chronyd[762]: Source 85.199.214.222 offline
Oct 24 09:11:38 bandit chronyd[762]: Can't synchronise: no selectable sources
Oct 24 09:11:38 bandit chronyd[762]: Source 85.199.214.99 offline
Oct 24 09:11:38 bandit systemd[1]: Starting systemd-hostnamed.service - Hostname Service...
Oct 24 09:11:38 bandit systemd[1]: Starting systemd-suspend.service - System Suspend...
Oct 24 09:11:38 bandit systemd-sleep[3575]: Entering sleep state 'suspend'...
Oct 24 09:11:38 bandit kernel: PM: suspend entry (deep)

-- Boot 51e5f174ac894c00925b9b0ddc6fc7a8 --
Oct 24 09:48:39 fedora kernel: Linux version 6.5.7-200.fc38.x86_64 (mockbuild@030fe68acf10418a92cff045c59c82c0) (gcc (GCC) 13.2.1 20230728 (Red Hat 1>
Oct 24 09:48:39 fedora kernel: Command line: BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.5.7-200.fc38.x86_64 root=UUID=b068c3ff-d410-4274-ae98-f347186e5b0d ro ro>
Oct 24 09:48:39 fedora kernel: BIOS-provided physical RAM map:
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x0000000000059000-0x000000000009dfff] usable
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x000000000009e000-0x00000000000fffff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x0000000000100000-0x00000000c68a8fff] usable
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000c68a9000-0x00000000c68a9fff] ACPI NVS
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000c68aa000-0x00000000c68aafff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000c68ab000-0x00000000cd9e0fff] usable
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000cd9e1000-0x00000000cf016fff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000cf017000-0x00000000cf05afff] ACPI data
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000cf05b000-0x00000000cf98efff] ACPI NVS
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000cf98f000-0x00000000cfffefff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000cffff000-0x00000000cfffffff] usable
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000d0000000-0x00000000d7ffffff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000d8000000-0x00000000d85fffff] usable
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000d8600000-0x00000000dc7fffff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000fe000000-0x00000000fe010fff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
Oct 24 09:48:39 fedora kernel: BIOS-e820: [mem 0x0000000100000000-0x00000006217fffff] usable
Oct 24 09:48:39 fedora kernel: NX (Execute Disable) protection: active
Oct 24 09:48:39 fedora kernel: efi: EFI v2.6 by American Megatrends
Oct 24 09:48:39 fedora kernel: efi: ACPI=0xcf024000 ACPI 2.0=0xcf024000 SMBIOS=0xf0000 SMBIOS 3.0=0xf0020 TPMFinalLog=0xcf932000 ESRT=0xcfd5f118 MEMA>
Oct 24 09:48:39 fedora kernel: efi: Remove mem51: MMIO range=[0xf8000000-0xfbffffff] (64MB) from e820 map
Oct 24 09:48:39 fedora kernel: e820: remove [mem 0xf8000000-0xfbffffff] reserved

This has been going on for a few months (only had F38 on it), and there’s no indication of power failure or any other environmental issue. Fedora is fully updated, and machine is running the most current BIOS (Sept 2023).

At this moment in time, looking for some suggestions of where to start troubleshooting this, as it’s not easily replicable.

Thanks.

UPDATE: Issue actually seems to be related to a “Wake On USB” problem, specifically if the machine is sleeping, and i attempt to wake it with keyboard/mouse it immediately shuts down. Going to do some more troubleshooting around BIOS configuration to see if there’s anything I can change to help the situation, but it’s looking less like a Linux issue and more of a Dell issue…