You are not logged in.

#1 2021-02-25 14:07:17

pjlbyrne
Member
Registered: 2019-03-04
Posts: 5

unable to disable sleep

Hi,

I have a machine running archlinux I want to run as a server box and connect to using ssh. It keeps going to sleep and I can't work out how to disable it.

The sleep timer is not enabled in GNOME.

In /etc/systemd/logind.conf:
#IdleAction=ignore
#IdleActionSec=30min
so those are commented out and if 'IdleAction' is set somewhere else I have not been able to find it.

I can see the suspend activating in dmesg:

[Thu Feb 25 13:58:20 2021] PM: suspend entry (deep)
[Thu Feb 25 13:58:20 2021] Filesystems sync: 0.005 seconds
[Thu Feb 25 13:58:20 2021] Freezing user space processes ... (elapsed 0.001 seconds) done.
[Thu Feb 25 13:58:20 2021] OOM killer disabled.
[Thu Feb 25 13:58:20 2021] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[Thu Feb 25 13:58:20 2021] printk: Suspending console(s) (use no_console_suspend to debug)
[Thu Feb 25 13:58:20 2021] serial 00:06: disabled
[Thu Feb 25 13:58:20 2021] parport_pc 00:05: disabled
[Thu Feb 25 13:58:20 2021] e1000e: EEE TX LPI TIMER: 00000011
[Thu Feb 25 13:58:20 2021] sd 4:0:0:0: [sdb] Synchronizing SCSI cache
[Thu Feb 25 13:58:20 2021] sd 4:0:0:0: [sdb] Stopping disk
[Thu Feb 25 13:58:20 2021] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[Thu Feb 25 13:58:20 2021] sd 0:0:0:0: [sda] Stopping disk
[Thu Feb 25 13:58:20 2021] ACPI: Preparing to enter system sleep state S3
[Thu Feb 25 13:58:20 2021] PM: Saving platform NVS memory
[Thu Feb 25 13:58:20 2021] Disabling non-boot CPUs ...
[Thu Feb 25 13:58:20 2021] smpboot: CPU 1 is now offline
[Thu Feb 25 13:58:20 2021] smpboot: CPU 2 is now offline
[Thu Feb 25 13:58:20 2021] smpboot: CPU 3 is now offline
[Thu Feb 25 13:58:20 2021] smpboot: CPU 4 is now offline
[Thu Feb 25 13:58:20 2021] smpboot: CPU 5 is now offline
[Thu Feb 25 13:58:20 2021] smpboot: CPU 6 is now offline
[Thu Feb 25 13:58:20 2021] smpboot: CPU 7 is now offline
[Thu Feb 25 13:58:20 2021] ACPI: Low-level resume complete
[Thu Feb 25 13:58:20 2021] PM: Restoring platform NVS memory
[Thu Feb 25 13:58:20 2021] Enabling non-boot CPUs ...
[Thu Feb 25 13:58:20 2021] x86: Booting SMP configuration:
[Thu Feb 25 13:58:20 2021] smpboot: Booting Node 0 Processor 1 APIC 0x2
[Thu Feb 25 13:58:20 2021] CPU1 is up
[Thu Feb 25 13:58:20 2021] smpboot: Booting Node 0 Processor 2 APIC 0x4
[Thu Feb 25 13:58:20 2021] CPU2 is up
[Thu Feb 25 13:58:20 2021] smpboot: Booting Node 0 Processor 3 APIC 0x6
[Thu Feb 25 13:58:20 2021] CPU3 is up
[Thu Feb 25 13:58:20 2021] smpboot: Booting Node 0 Processor 4 APIC 0x1
[Thu Feb 25 13:58:20 2021] CPU4 is up
[Thu Feb 25 13:58:20 2021] smpboot: Booting Node 0 Processor 5 APIC 0x3
[Thu Feb 25 13:58:20 2021] CPU5 is up
[Thu Feb 25 13:58:20 2021] smpboot: Booting Node 0 Processor 6 APIC 0x5
[Thu Feb 25 13:58:20 2021] CPU6 is up
[Thu Feb 25 13:58:20 2021] smpboot: Booting Node 0 Processor 7 APIC 0x7
[Thu Feb 25 13:58:20 2021] CPU7 is up
[Thu Feb 25 13:58:20 2021] ACPI: Waking up from system sleep state S3
[Thu Feb 25 13:58:20 2021] parport_pc 00:05: activated
[Thu Feb 25 13:58:20 2021] serial 00:06: activated
[Thu Feb 25 13:58:20 2021] sd 4:0:0:0: [sdb] Starting disk
[Thu Feb 25 13:58:20 2021] sd 0:0:0:0: [sda] Starting disk
[Thu Feb 25 13:58:20 2021] OOM killer enabled.
[Thu Feb 25 13:58:20 2021] Restarting tasks ... done.
[Thu Feb 25 13:58:20 2021] video LNXVIDEO:00: Restoring backlight state
[Thu Feb 25 13:58:20 2021] PM: suspend exit

I found some help which says you can do:
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
to disable suspend, but I am trying to understand why its configured to suspend in the first place.

Thanks
Patrick

Offline

Board footer

Powered by FluxBB