Problems recovering from Sleep

Hello,

I am a bit inexperienced so any help will be appreciated. Sorry for the bad English in advance.

I have a Nvidia gpu desktop with no internal gpu on the cpu. I am using kde x.org, because wayland doesn’t work for some reason.

And i have installed manjaro on it. But after a while of inactivity screen shuts off. This is normal and i can awake the computer just by pressing any key on the keyboard.

But just a moment later my gpu, cpu cooler, fans, and lights shut off. Only thing that is lit in the case is my ram sticks. I have to awaken the computer before this or else alacritty, obsidian, and vscode just dies.

After lights are off only way to wake the computer is pressing the power button. But this time all of my applications except firefox are bugged. Killing electron or vscode and reopening them doesnt fix it i have to reboot to continue my day.

I have activated “Manually block sleeping” all the time to use the computer but surely something is wrong here.

Thank you for reading. Hope you are having a nice day. :slight_smile:

Try using Suspend rather than Hibernate;
that’s all I have to suggest; good luck.

Edit:- Spelling corrected and Title edited for better search results.

1 Like

Thank you for the edit.

But in settings it seems like hibernate option is not selected.

The only difference between your settings and mine seems to be:

  • After a period of inactivity: Do nothing
  • Switch to power profile: (does not exist in Wayland)

I don’t see how these differences should matter, however, you can still try them.

From your description, it seems to be hibernating; this probably should not be happening; I suspect it might be related to your Nvidia graphics; however, this is a guess at best.

Do you have sufficient swap space defined?

Please provide the output of the following command:

inxi --admin --verbosity=8 --filter --no-host --width
1 Like

I have a 64 gb swap. It is empty according to the free -h command.

Here is the command output you asked:

osbm@ymir ~> inxi --admin --verbosity=8 --filter --no-host --width
System:
  Kernel: 6.6.32-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.6-x86_64
    root=UUID=a5b7f842-debc-473b-aea6-38c52885cd37 rw quiet splash
    resume=UUID=99660756-290f-4d2e-b33b-d939145e03f3 udev.log_priority=3
  Desktop: KDE Plasma v: 6.0.5 tk: Qt v: N/A info: frameworks v: 6.2.0
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: PRO B760-P WIFI DDR4 (MS-7D98) v: 1.0
    serial: <superuser required> uuid: <superuser required> UEFI: American
    Megatrends LLC. v: 1.60 date: 07/13/2023
Battery:
  Message: No system battery data found. Is one present?
Memory:
  System RAM: total: 64 GiB available: 62.64 GiB used: 2.98 GiB (4.8%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 128 GiB slots: 4 modules: 2 EC: None
    max-module-size: 32 GiB note: est.
  Device-1: Controller0-DIMMA1 type: no module installed
  Device-2: Controller0-DIMMA2 type: DDR4 detail: synchronous size: 32 GiB
    speed: 3200 MT/s volts: note: check curr: 1 min: 1 max: 1 width (bits):
    data: 64 total: 64 manufacturer: N/A part-no: DDR4 PC 32G 3200
    serial: <filter>
  Device-3: Controller1-DIMMB1 type: no module installed
  Device-4: Controller1-DIMMB2 type: DDR4 detail: synchronous size: 32 GiB
    speed: 3200 MT/s volts: note: check curr: 1 min: 1 max: 1 width (bits):
    data: 64 total: 64 manufacturer: N/A part-no: DDR4 PC 32G 3200
    serial: <filter>
PCI Slots:
  Permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-14700KF bits: 64 type: MST AMCP arch: Raptor Lake
    gen: core 14 level: v3 note: check built: 2022+ process: Intel 7 (10nm)
    family: 6 model-id: 0xB7 (183) stepping: 1 microcode: 0x123
  Topology: cpus: 1x cores: 20 mt: 8 tpc: 2 st: 12 threads: 28 smt: enabled
    cache: L1: 1.8 MiB desc: d-12x32 KiB, 8x48 KiB; i-8x32 KiB, 12x64 KiB
    L2: 28 MiB desc: 8x2 MiB, 3x4 MiB L3: 33 MiB desc: 1x33 MiB
  Speed (MHz): avg: 800 min/max: 800/5500:5600:4300 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 800 3: 800 4: 800
    5: 800 6: 800 7: 800 8: 800 9: 800 10: 800 11: 800 12: 800 13: 800 14: 800
    15: 800 16: 800 17: 800 18: 800 19: 800 20: 800 21: 800 22: 800 23: 800
    24: 800 25: 800 26: 800 27: 800 28: 800 bogomips: 191436
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_lbr arch_perfmon art avx avx2 avx_vnni bmi1 bmi2
    bts clflush clflushopt clwb cmov constant_tsc cpuid cpuid_fault cx16 cx8
    de ds_cpl dtes64 dtherm dts ept ept_ad erms est f16c flexpriority
    flush_l1d fma fpu fsgsbase fsrm fxsr gfni hfi ht hwp hwp_act_window
    hwp_epp hwp_notify hwp_pkg_req ibpb ibrs ibrs_enhanced ibt ida intel_pt
    invpcid lahf_lm lm mca mce md_clear mmx monitor movbe movdir64b movdiri
    msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pclmulqdq pdcm pdpe1gb pebs
    pge pku pln pni popcnt pse pse36 pts rdpid rdrand rdseed rdtscp rep_good
    sdbg sep serialize sha_ni smap smep split_lock_detect ss ssbd sse sse2
    sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust
    tsc_deadline_timer tsc_known_freq umip user_shstk vaes vme vmx vnmi
    vpclmulqdq vpid waitpkg x2apic xgetbv1 xsave xsavec xsaveopt xsaves
    xtopology xtpr
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: reg_file_data_sampling mitigation: Clear Register File
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS; IBPB: conditional;
    RSB filling; PBRSB-eIBRS: SW sequence; BHI: BHI_DIS_S
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA AD102 [GeForce RTX 4090] vendor: Palit Microsystems
    driver: nvidia v: 550.78 alternate: nouveau,nvidia_drm non-free: 550.xx+
    status: current (as of 2024-04) arch: Lovelace code: AD1xx
    process: TSMC n4 (5nm) built: 2022+ pcie: gen: 1 speed: 2.5 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s ports: active: none off: HDMI-A-1
    empty: DP-1,DP-2,DP-3 bus-ID: 01:00.0 chip-ID: 10de:2684 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.0
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 118 s-size: 413x231mm (16.26x9.09")
    s-diag: 473mm (18.63")
  Monitor-1: HDMI-A-1 mapped: HDMI-0 note: disabled model: Dell E1916HV
    serial: <filter> built: 2020 res: 1920x1080 hz: 60 dpi: 305 gamma: 1.2
    chroma: red: x: 0.643 y: 0.333 green: x: 0.318 y: 0.627 blue: x: 0.149
    y: 0.047 white: x: 0.314 y: 0.329 size: 160x90mm (6.3x3.54")
    diag: 470mm (18.5") ratio: 16:9 modes: 1920x1080, 1280x1024, 1280x720,
    1024x768, 800x600, 720x480, 640x480
  API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
    drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: nvidia
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.78 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce RTX 4090/PCIe/SSE2
    memory: 23.43 GiB
  API: Vulkan v: 1.3.279 layers: 5 device: 0 type: discrete-gpu
    name: NVIDIA GeForce RTX 4090 driver: nvidia v: 550.78 device-ID: 10de:2684
    surfaces: xcb,xlib
Audio:
  Device-1: Intel Raptor Lake High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel alternate: snd_sof_pci_intel_tgl
    bus-ID: 00:1f.3 chip-ID: 8086:7a50 class-ID: 0403
  Device-2: NVIDIA AD102 High Definition Audio vendor: Palit Microsystems
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:22ba class-ID: 0403
  API: ALSA v: k6.6.32-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.0.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Raptor Lake-S PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:7a70 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: dynamic noprefixroute scope: global
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 port: 3000 bus-ID: 03:00.0
    chip-ID: 10ec:8125 class-ID: 0200
  IF: enp3s0 state: down mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IP v4: <filter> scope: global broadcast: <filter>
  Info: services: NetworkManager, sshd, systemd-timesyncd, wpa_supplicant
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-14:7 chip-ID: 8087:0033
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 3.68 TiB used: 617.72 GiB (16.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 model: SSD 2TB size: 1.86 TiB block-size:
    physical: 512 B logical: 512 B speed: 63.2 Gb/s lanes: 4 tech: SSD
    serial: <filter> fw-rev: H230509a temp: 39.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: ST2000LM003 HN-M201RAD
    size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 5400 serial: <filter> fw-rev: 0001 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 1.8 TiB size: 1.77 TiB (98.37%) used: 617.72 GiB (34.2%)
    fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 label: N/A
    uuid: a5b7f842-debc-473b-aea6-38c52885cd37
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 296 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A
    uuid: 0C65-0ADD
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 68.9 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p3 maj-min: 259:3 label: swap
    uuid: 99660756-290f-4d2e-b33b-d939145e03f3
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 1.82 TiB fs: ntfs label: athena
    uuid: 388C386205267EF3
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 1-5:2 info: Genesys Logic Hub ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 05e3:0608 class-ID: 0900
  Hub-3: 1-6:3 info: Genesys Logic Hub ports: 4 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 power: 100mA
    chip-ID: 05e3:0608 class-ID: 0900
  Device-1: 1-9:4 info: HP HP Wired Keyboard type: keyboard,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s (183 KiB/s)
    lanes: 1 mode: 1.0 power: 98mA chip-ID: 03f0:6941 class-ID: 0300
  Device-2: 1-10:5 info: [Maxxter] Optical gaming mouse type: mouse,keyboard
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s (183 KiB/s)
    lanes: 1 mode: 1.0 power: 100mA chip-ID: 18f8:0f99 class-ID: 0300
  Device-3: 1-11:6 info: Micro Star MYSTIC LIGHT type: HID
    driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s (1.4 MiB/s)
    lanes: 1 mode: 1.1 power: 500mA chip-ID: 1462:7d98 class-ID: 0300
    serial: <filter>
  Device-4: 1-14:7 info: Intel AX211 Bluetooth type: bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1
    power: 100mA chip-ID: 8087:0033 class-ID: e001
  Hub-4: 2-0:1 info: super-speed hub ports: 10 rev: 3.1
    speed: 20 Gb/s (2.33 GiB/s) lanes: 2 mode: 3.2 gen-2x2 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 37.0 C mobo: N/A gpu: nvidia temp: 36 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Repos:
  Packages: pm: pacman pkgs: 1389 libs: 367 tools: pamac
  Active pacman repo servers in: /etc/pacman.d/mirrorlist
    1: https://mirrors.netix.net/manjaro/stable/$repo/$arch
    2: https://mirror.telepoint.bg/manjaro/stable/$repo/$arch
    3: https://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch
    4: https://uvermont.mm.fcix.net/manjaro/stable/$repo/$arch
    5: https://mirror.xenyth.net/manjaro/stable/$repo/$arch
    6: https://codingflyboy.mm.fcix.net/manjaro/stable/$repo/$arch
    7: http://mirror.xeonbd.com/manjaro/stable/$repo/$arch
    8: https://mirror.kku.ac.th/manjaro/stable/$repo/$arch
Processes:
  CPU top: 5 of 475
  1: cpu: 11.0% command: firefox pid: 1719 mem: 510.4 MiB (0.7%)
  2: cpu: 3.9% command: firefox pid: 2786 mem: 332.7 MiB (0.5%)
  3: cpu: 2.1% command: firefox pid: 2857 mem: 207.9 MiB (0.3%)
  4: cpu: 1.0% command: Xorg pid: 1153 mem: 87.2 MiB (0.1%)
  5: cpu: 1.0% command: kwin_x11 pid: 1308 mem: 151.1 MiB (0.2%)
  Memory top: 5 of 475
  1: mem: 510.4 MiB (0.7%) command: firefox pid: 1719 cpu: 11.0%
  2: mem: 332.7 MiB (0.5%) command: firefox pid: 2786 cpu: 3.9%
  3: mem: 314.2 MiB (0.4%) command: plasmashell pid: 1344 cpu: 0.8%
  4: mem: 207.9 MiB (0.3%) command: firefox pid: 2857 cpu: 2.1%
  5: mem: 180.5 MiB (0.2%) command: firefox pid: 2621 cpu: 0.7%
Info:
  Processes: 475 Power: uptime: 4m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 25.04 GiB services: org_kde_powerdevil,
    power-profiles-daemon, upowerd Init: systemd v: 255 default: graphical
    tool: systemctl
  Compilers: clang: 17.0.6 gcc: 14.1.1 alt: 12 Shell: fish v: 3.7.1
    running-in: tmux: inxi: 3.3.34

This command is awesome. It shows everything. I will be saving it.

What do you think is the issue?

Did you follow all the recommendations from the archwiki?
Preserve video memory after suspend

Even better than awesome, as it also filters out any personally identifiable information (--filter --no-host); which makes is safe to post.

I don’t know what this manually block sleeping is; whether it’s an option somewhere or a command (I’ve never encountered it), however, perhaps it being enabled is causing unforeseen issues. This is a guess, at best.

However, please post the output from:

cat /etc/mkinitcpio.conf

in case it is relevant for others in diagnosing the problem.