My PC keeps suspending during long rsync file transfers

My desktop OS/computer keeps suspending or causing my monitor to turn off and my monitor just goes to a “no input” screen when I turn my monitor back on. This is happening while I walk away and let rsync copy over 1 partition/HD and all associated files and folders to another HD. As long as I’m using my computer, while rsync is running, it doesn’t turn off. However, if I walk away for a few hours and come back I find my screen off. I have already gone into “workspace behavior” > “screen locking” and unchecked “lock screen automatically”. I also went into “power management” > “energy saving” and unchecked everything in there. In activity power settings “do not use special settings” is selected. Even after all of this my computer still seems to suspend or stop doing what I had it doing. Anyone know how to stop Manjaro from suspending or turning off the monitor while afk?

inxi -Fxz

System:
  Kernel: 6.6.19-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.2.1
  Desktop: KDE Plasma v: 5.27.10 Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: P8P67 DELUXE v: Rev 1.xx
    serial: <superuser required> UEFI: American Megatrends v: 1503
    date: 03/11/2011
CPU:
  Info: quad core model: Intel Core i5-2500K bits: 64 type: MCP
    arch: Sandy Bridge rev: 7 cache: L1: 256 KiB L2: 1024 KiB L3: 6 MiB
  Speed (MHz): avg: 2079 high: 3140 min/max: 1600/5900 cores: 1: 1600
    2: 1600 3: 1978 4: 3140 bogomips: 26413
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GF100 [GeForce GTX 470] driver: nouveau v: kernel
    arch: Fermi bus-ID: 01:00.0 temp: 52.0 C
  Display: wayland server: X.org v: 1.21.1.11 with: Xwayland v: 23.2.4
    compositor: kwin_wayland driver: X: loaded: modesetting dri: nouveau
    gpu: nouveau resolution: 1920x1080
  API: EGL v: 1.5 drivers: nouveau,swrast platforms:
    active: gbm,wayland,x11,surfaceless,device inactive: N/A
  API: OpenGL v: 4.5 compat-v: 4.3 vendor: mesa v: 24.0.2-manjaro1.1
    glx-v: 1.4 direct-render: yes renderer: NVC0
  API: Vulkan Message: No Vulkan data available.
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    vendor: ASUSTeK P8P67 Deluxe driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
  Device-2: NVIDIA GF100 High Definition Audio driver: snd_hda_intel
    v: kernel bus-ID: 01:00.1
  API: ALSA v: k6.6.19-1-MANJARO status: kernel-api
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.0.3 status: active
Network:
  Device-1: Intel 82579V Gigabit Network vendor: ASUSTeK P8P67 Deluxe
    driver: e1000e v: kernel port: f040 bus-ID: 00:19.0
  IF: eno1 state: down mac: <filter>
  Device-2: Intel Wi-Fi 6E AX210/AX1675 2x2 [Typhoon Peak] driver: iwlwifi
    v: kernel bus-ID: 02:00.0
  IF: wlp2s0 state: up mac: <filter>
  Device-3: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK P8P67 and other motherboards driver: r8169 v: kernel
    port: a000 bus-ID: 0f:00.0
  IF: enp15s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth driver: btusb v: 0.8 type: USB
    bus-ID: 1-1.5:4
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 7.28 TiB used: 3.41 TiB (46.9%)
  ID-1: /dev/sda vendor: Western Digital model: WD10EZEX-08WN4A0
    size: 931.51 GiB
  ID-2: /dev/sdb vendor: Western Digital model: WD4003FZEX-00Z4SA0
    size: 3.64 TiB
  ID-3: /dev/sdc vendor: Western Digital model: WD10EZEX-08WN4A0
    size: 931.51 GiB
  ID-4: /dev/sdd vendor: Western Digital model: WD20SDRW-11VUUS0
    size: 1.82 TiB type: USB
Partition:
  ID-1: / size: 881.61 GiB used: 21.61 GiB (2.5%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 299.4 MiB used: 296 KiB (0.1%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: partition size: 34.46 GiB used: 0 KiB (0.0%)
    dev: /dev/sda3
Sensors:
  System Temperatures: cpu: 39.0 C mobo: N/A gpu: nouveau temp: 52.0 C
  Fan Speeds (rpm): N/A gpu: nouveau fan: 0
Info:
  Memory: total: 32 GiB available: 31.33 GiB used: 6.76 GiB (21.6%)
  Processes: 280 Uptime: 59m Init: systemd
  Packages: 1286 Compilers: clang: 16.0.6 gcc: 13.2.1 Shell: Zsh v: 5.9
    inxi: 3.3.33

Systemctl status systemd-logind

systemd-logind.service - User Login Management
     Loaded: loaded (/usr/lib/systemd/system/systemd-logind.service; static)
     Active: active (running) since Wed 2024-03-13 16:53:29 EDT; 1h 1min ago
       Docs: man:sd-login(3)
             man:systemd-logind.service(8)
             man:logind.conf(5)
             man:org.freedesktop.login1(5)
   Main PID: 555 (systemd-logind)
     Status: "Processing requests..."
      Tasks: 1 (limit: 38455)
   FD Store: 13 (limit: 512)
     Memory: 3.2M (peak: 6.3M)
        CPU: 112ms
     CGroup: /system.slice/systemd-logind.service
             └─555 /usr/lib/systemd/systemd-logind

Mar 13 16:53:29 Manjaro-PC systemd-logind[555]: Watching system buttons on /dev/input/event3 (HID 1bcf:08a0 Keyboar>
Mar 13 16:53:29 Manjaro-PC systemd-logind[555]: Watching system buttons on /dev/input/event5 (Macally Peripherals M>
Mar 13 16:53:29 Manjaro-PC systemd-logind[555]: Watching system buttons on /dev/input/event6 (Macally Peripherals M>
Mar 13 16:53:29 Manjaro-PC systemd-logind[555]: Watching system buttons on /dev/input/event7 (Macally Peripherals M>
Mar 13 16:53:29 Manjaro-PC systemd[1]: Started User Login Management.
Mar 13 16:53:38 Manjaro-PC systemd-logind[555]: New session c1 of user sddm.
Mar 13 16:53:52 Manjaro-PC systemd-logind[555]: New session 2 of user dragon.
Mar 13 16:53:53 Manjaro-PC systemd-logind[555]: Session c1 logged out. Waiting for processes to exit.
Mar 13 16:53:53 Manjaro-PC systemd-logind[555]: Removed session c1.
Mar 13 17:29:37 Manjaro-PC systemd-logind[555]: Watching system buttons on /dev/input/event24 (WH-1000XM4 (AVRCP)

xset q

Keyboard Control:
  auto repeat:  on    key click percent:  0    LED mask:  00000000
  XKB indicators:
    00: Caps Lock:   off    01: Num Lock:    off    02: Scroll Lock: off
    03: Compose:     off    04: Kana:        off    05: Sleep:       off
    06: Suspend:     off    07: Mute:        off    08: Misc:        off
    09: Mail:        off    10: Charging:    off    11: Shift Lock:  off
    12: Group 2:     off    13: Mouse Keys:  off
  auto repeat delay:  660    repeat rate:  25
  auto repeating keys:  00ffffffdffffbbf
                        fadfffefffedffff
                        9fffffffffffffff
                        fff7ffffffffffff
  bell percent:  50    bell pitch:  400    bell duration:  100
Pointer Control:
  acceleration:  2/1    threshold:  4
Screen Saver:
  prefer blanking:  yes    allow exposures:  yes
  timeout:  0    cycle:  0
Colors:
  default colormap:  0x3f    BlackPixel:  0x0    WhitePixel:  0xffffff
Font Path:
  /usr/share/fonts/misc,/usr/share/fonts/TTF,built-ins
DPMS (Display Power Management Signaling):
  Server does not have the DPMS Extension

journalctl | grep -iE “suspend|sleep|blank” (Issue happened today March 13 only included a snipit starting yesterday night till today when I tried to use the suspend key to try and wake up the monitor and it didn’t work.)

Mar 12 20:13:09 Manjaro-PC libddcutil[881]: busno=4, sleep-multiplier =  1.00. Testing for supported feature 0x10 returned Error_Info[ENXIO in ddc_write_read_with_retry, causes: ENXIO]
Mar 12 20:21:00 Manjaro-PC CROND[638]: (root) CMDEND (sleep 10m && timeshift --create --scripted --tags B)
Mar 13 10:46:44 Manjaro-PC CROND[648]: (root) CMD (sleep 10m && timeshift --create --scripted --tags B)
Mar 13 10:58:05 Manjaro-PC CROND[647]: (root) CMDEND (sleep 10m && timeshift --create --scripted --tags B)
Mar 13 16:36:49 Manjaro-PC systemd-logind[564]: Suspend key pressed short.
Mar 13 16:36:49 Manjaro-PC systemd-logind[564]: Suspending...
Mar 13 16:36:49 Manjaro-PC ModemManager[621]: <msg> [sleep-monitor-systemd] system is about to suspend


Have you tried running the rsync job using systemd-inhibit? That should prevent your system from going to sleep/suspend etc while the job is running:

https://man.archlinux.org/man/core/systemd/systemd-inhibit.1.en

1 Like

If you have the power icon in your panel (which probably won’t be shown by default on a desktop PC without a battery), you’ll be able to click that and check
Manually block sleep and screen locking
You might be able to set the battery/power icon to “always shown” if it’s available at all. Sorry I don’t have a non-laptop system to test this with.

N.B. This should really be the default on a Live .ISO pre-install!!

1 Like

I just noticed that my mini-PC, whilst not having the battery/power icon, does have a “Display Configuration” icon in the system tray:

When clicked on, it offers the option to Enable Presentation Mode, which should (hopefully) stop the PC from sleeping/suspending (I haven’t tried it myself):

1 Like

I just had a look at mine and with the Display Configuration (which has for some reason been hidden here, thought I’d set it to Always Shown), there is, indeed, an option there:
Enable Presentation Mode

In this instance, mine also states:
SMPlayer is enforcing presentation mode: Playing media

So it might be something else worth testing out.

2 Likes

Thanks I’ll have to try that command out.

I’ll check this out as well.

There is 1 solution and 2 others to try out. My solution was to download a program called “Caffeine” and it just runs in the background when you launch it. As long as it is running the computer doesn’t suspend. Make sure to go to System Monitor and “Quite Application” to turn it off.

Soulution #2 to try out.
By: scotty65
Have you tried running the rsync job using systemd-inhibit? That should prevent your system from going to sleep/suspend etc while the job is running:

Soulition #3 to try out.
By: scotty65
I just noticed that my mini-PC, whilst not having the battery/power icon, does have a “Display Configuration” icon in the system tray:

When clicked on, it offers the option to Enable Presentation Mode, which should (hopefully) stop the PC from sleeping/suspending (I haven’t tried it myself):

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.