Black screen with cursor after login from lock screen when using swapfile

Hi all,

This very specific sequence of the screen auto locking, whilst I’m using a lot of RAM (for simulations) that spills into my swapfile, leads to manjaro giving a black screen with a cursor. In general once I start using my swapfile the entire OS gets a bit funny. Ideally I’d just set it so that OS level operations stay in RAM and superfluous simulations stay in the swap. Realistically using the swapfile shouldn’t be a huge deal as it’s an nvme, so I do feel like something more nefarious is going on.

All advice welcome,
Craggles

System:    Kernel: 5.11.10-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
       parameters: BOOT_IMAGE=/boot/vmlinuz-5.11-x86_64 root=UUID=6c1760ce-a7e5-4e3d-bcfc-4b5beea98b63 rw quiet 
       apparmor=1 security=apparmor udev.log_priority=3 
       Desktop: KDE Plasma 5.21.3 tk: Qt 5.15.2 info: latte-dock wm: i3 4.19.1 vt: 1 dm: SDDM 
       Distro: Manjaro Linux base: Arch Linux 
Machine:   Type: Desktop Mobo: ASUSTeK model: TUF GAMING X570-PLUS (WI-FI) v: Rev X.0x serial: <filter> 
       UEFI: American Megatrends v: 3001 date: 12/04/2020 
Memory:    RAM: total: 31.33 GiB used: 5.19 GiB (16.6%) 
       RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:       Info: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 family: 17 (23) model-id: 71 (113) 
       stepping: N/A microcode: 8701021 cache: L2: 4 MiB bogomips: 129660 
       Speed: 4049 MHz min/max: 2200/4050 MHz boost: enabled Core speeds (MHz): 1: 4049 2: 4049 3: 4050 4: 4049 
       5: 4050 6: 4050 7: 4049 8: 4049 9: 4049 10: 4049 11: 4050 12: 4050 13: 4049 14: 4050 15: 4050 16: 4050 
       Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 bmi2 bpext cat_l3 cdp_l3 clflush 
       clflushopt clwb clzero cmov cmp_legacy constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total 
       cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid fma fpu fsgsbase 
       fxsr fxsr_opt ht hw_pstate ibpb ibs irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor 
       movbe msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq 
       pdpe1gb perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36 rdpid rdpru rdrand rdseed 
       rdt_a rdtscp rep_good sep sev sev_es sha_ni skinit smap smca sme smep ssbd sse sse2 sse4_1 sse4_2 sse4a 
       ssse3 stibp succor svm svm_lock syscall tce topoext tsc tsc_scale umip v_vmsave_vmload vgif vmcb_clean vme 
       vmmcall wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves 
       Vulnerabilities: Type: itlb_multihit status: Not affected 
       Type: l1tf status: Not affected 
       Type: mds status: Not affected 
       Type: meltdown status: Not affected 
       Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
       Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
       Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: conditional, RSB filling 
       Type: srbds status: Not affected 
       Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: NVIDIA TU104 [GeForce RTX 2080 SUPER] vendor: eVga.com. driver: nvidia v: 460.67 
       alternate: nouveau,nvidia_drm bus-ID: 0a:00.0 chip-ID: 10de:1e81 class-ID: 0300 
       Display: x11 server: X.Org 1.20.10 compositor: picom v: git-dac85 driver: loaded: nvidia display-ID: :0 
       screens: 1 
       Screen-1: 0 s-res: 2560x1440 s-dpi: 108 s-size: 602x342mm (23.7x13.5") s-diag: 692mm (27.3") 
       Monitor-1: DP-0 res: 2560x1440 dpi: 109 size: 597x336mm (23.5x13.2") diag: 685mm (27") 
       OpenGL: renderer: GeForce RTX 2080 SUPER/PCIe/SSE2 v: 4.6.0 NVIDIA 460.67 direct render: Yes 
Audio:     Device-1: NVIDIA TU104 HD Audio vendor: eVga.com. driver: snd_hda_intel v: kernel bus-ID: 0a:00.1 
       chip-ID: 10de:10f8 class-ID: 0403 
       Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASUSTeK driver: snd_hda_intel 
       v: kernel bus-ID: 0c:00.4 chip-ID: 1022:1487 class-ID: 0403 
       Device-3: Licensed by Sony Entertainment America Rocksmith Guitar Adapter type: USB 
       driver: hid-generic,snd-usb-audio,usbhid bus-ID: 7-2:2 chip-ID: 12ba:00ff class-ID: 0300 
       Sound Server-1: ALSA v: k5.11.10-1-MANJARO running: yes 
       Sound Server-2: JACK v: 0.125.0 running: no 
       Sound Server-3: PulseAudio v: 14.2 running: yes 
       Sound Server-4: PipeWire v: 0.3.24 running: no 
Network:   Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel bus-ID: 05:00.0 chip-ID: 8086:2526 
       class-ID: 0280 
       IF: wlp5s0 state: down mac: <filter> 
       Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169 v: kernel 
       port: f000 bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200 
       IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
       IP v4: <filter> type: dynamic noprefixroute scope: global broadcast: <filter> 
       IP v6: <filter> type: noprefixroute scope: link 
       IF-ID-1: br-cb8463a35716 state: down mac: <filter> 
       IP v4: <filter> scope: global broadcast: <filter> 
       IF-ID-2: docker0 state: down mac: <filter> 
       IP v4: <filter> scope: global broadcast: <filter> 
       WAN IP: <filter> 
Bluetooth: Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb v: 0.8 bus-ID: 3-5:3 
       chip-ID: 8087:0025 class-ID: e001 
       Report: This feature requires one of these tools: hciconfig/bt-adapter 
Logical:   Message: No LVM data was found. 
RAID:      Message: No RAID data was found. 
Drives:    Local Storage: total: 3.18 TiB used: 2.53 TiB (79.6%) 
       SMART Message: Unable to run smartctl. Root privileges required. 
       ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus 500GB size: 465.76 GiB 
       block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 rotation: SSD serial: <filter> 
       rev: 2B2QEXM7 temp: 54.9 C scheme: GPT 
       ID-2: /dev/nvme1n1 maj-min: 259:3 vendor: Samsung model: SSD 970 EVO Plus 1TB size: 931.51 GiB block-size: 
       physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 rotation: SSD serial: <filter> rev: 2B2QEXM7 
       temp: 56.9 C scheme: GPT 
       ID-3: /dev/sda maj-min: 8:0 vendor: Seagate model: ST2000DM008-2FR102 size: 1.82 TiB block-size: 
       physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: 7200 rpm serial: <filter> rev: 0001 scheme: MBR 
       Message: No Optical or Floppy data was found. 
Partition: ID-1: / raw-size: 931.22 GiB size: 915.53 GiB (98.32%) used: 742.77 GiB (81.1%) fs: ext4 
       dev: /dev/nvme1n1p2 maj-min: 259:5 label: N/A uuid: 6c1760ce-a7e5-4e3d-bcfc-4b5beea98b63 
       ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 296 KiB (0.1%) fs: vfat 
       dev: /dev/nvme1n1p1 maj-min: 259:4 label: NO_LABEL uuid: C4CE-B7B1 
       ID-3: /home/<filter>/gdrive raw-size: N/A size: 1 PiB used: 290.04 GiB (0.0%) fs: fuse.rclone 
       source: ERR-102 label: N/A uuid: N/A 
       ID-4: /mnt/HDD raw-size: 699.07 GiB size: 687.03 GiB (98.28%) used: 591.76 GiB (86.1%) fs: ext4 
       dev: /dev/sda2 maj-min: 8:2 label: HDD uuid: f8f2fb2c-963a-4beb-a3e9-78ae042a3785 
       ID-5: /mnt/NTFS raw-size: 1.14 TiB size: 1.14 TiB (100.00%) used: 970.64 GiB (83.4%) fs: ntfs 
       dev: /dev/sda1 maj-min: 8:1 label: NTFS uuid: 52C47014C46FF89D 
Swap:      Kernel: swappiness: 10 (default 60) cache-pressure: 100 (default) 
       ID-1: swap-1 type: file size: 125 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile 
Unmounted: ID-1: /dev/nvme0n1p1 maj-min: 259:1 size: 233.2 GiB fs: ext4 label: manjaro 
       uuid: 0932249c-67ee-4ddd-bed4-ccdbcd755e9b 
       ID-2: /dev/nvme0n1p5 maj-min: 259:2 size: 232.57 GiB fs: ext4 label: manjaro-old 
       uuid: 2b0df23c-e312-4ebc-8ec8-bf54c5f75893 
USB:       Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002 
       class-ID: 0900 
       Device-1: 1-2:2 info: Microsoft Xbox One S Controller type: <vendor specific> driver: xpad interfaces: 3 
       rev: 2.0 speed: 12 Mb/s power: 500mA chip-ID: 045e:02ea class-ID: ff00 serial: <filter> 
       Device-2: 1-6:3 info: NZXT Smart Device V2 type: HID driver: hid-generic,usbhid interfaces: 1 rev: 2.0 
       speed: 12 Mb/s power: 100mA chip-ID: 1e71:2006 class-ID: 0300 serial: <filter> 
       Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003 
       class-ID: 0900 
       Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 6 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002 
       class-ID: 0900 
       Device-1: 3-1:2 info: NZXT Kraken X type: HID driver: hid-generic,usbhid interfaces: 1 rev: 2.0 
       speed: 12 Mb/s power: 100mA chip-ID: 1e71:170e class-ID: 0300 serial: <filter> 
       Device-2: 3-5:3 info: Intel Wireless-AC 9260 Bluetooth Adapter type: Bluetooth driver: btusb interfaces: 2 
       rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0025 class-ID: e001 
       Device-3: 3-6:4 info: ASUSTek AURA LED Controller type: HID driver: hid-generic,usbhid interfaces: 2 
       rev: 2.0 speed: 12 Mb/s power: 16mA chip-ID: 0b05:18f3 class-ID: 0300 serial: <filter> 
       Hub-4: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003 
       class-ID: 0900 
       Hub-5: 5-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002 
       class-ID: 0900 
       Hub-6: 6-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003 
       class-ID: 0900 
       Hub-7: 7-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 speed: 480 Mb/s chip-ID: 1d6b:0002 
       class-ID: 0900 
       Device-1: 7-2:2 info: Licensed by Sony Entertainment America Rocksmith Guitar Adapter type: Audio,HID 
       driver: hid-generic,snd-usb-audio,usbhid interfaces: 3 rev: 1.1 speed: 12 Mb/s power: 100mA 
       chip-ID: 12ba:00ff class-ID: 0300 
       Device-2: 7-3:3 info: Kingsis ZOWIE Gaming mouse type: Mouse driver: hid-generic,usbhid interfaces: 1 
       rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 1af3:0001 class-ID: 0301 
       Device-3: 7-4:4 info: Winbond Ducky One2 SF RGB type: Keyboard,Mouse,HID driver: hid-generic,usbhid 
       interfaces: 4 rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 0416:0123 class-ID: 0300 serial: <filter> 
       Hub-8: 8-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s chip-ID: 1d6b:0003 
       class-ID: 0900 
Sensors:   System Temperatures: cpu: 56.0 C mobo: N/A gpu: nvidia temp: 48 C 
       Fan Speeds (RPM): N/A gpu: nvidia fan: 0% 
Info:      Processes: 368 Uptime: 38m wakeups: 1 Init: systemd v: 247 tool: systemctl Compilers: gcc: 10.2.0 
       clang: 11.1.0 Packages: 1824 pacman: 1820 lib: 435 flatpak: 0 snap: 4 Shell: Zsh v: 5.8 
       running-in: konsole inxi: 3.3.03

Currently trying this and zram-generator and so far system is performing better.