Black screen with mouse cursor after waking up from systemctl suspend

After installing the new versions of nvidia drivers with pacman -Syu, I found an issue where after systemctl suspend gets executed and I try to turn my laptop back on, it doesn’t work.

I only see a black screen and my cursor appearing whenever I move it. It is stuck on the stemp “starting accounts service,” and journalctl -r returns a lot of the same warning which is this:

Mar 12 17:18:10 EndeavourOS rtkit-daemon[1000]: Warning: Reached burst limit for user '1000', denying request.

inxi -Fxxc0z --no-host | eos-sendlog: https://0x0.st/HiEx.txt
journalctl -b | eos-sendlog: https://0x0.st/HiEE.txt

How can I fix this?

sudo systemctl enable --now nvidia-suspend.service
could help…

But could also be this:
https://wiki.archlinux.org/title/NVIDIA/Troubleshooting#System_does_not_return_from_suspend

https://discovery.endeavouros.com/acpi-kernel-parameters/acpi-kernel-parameters-and-how-to-choose-them/2021/03/

sudo systemctl enable --now nvidia-suspend.service results in the same black screen without cursor my issue. It’s stuck on “starting accounts service”.
I have an amd cpu and nvidia 3050ti, so I am pretty sure my laptop is not optimus?

update: I somehow got to a point where the entire screen and cursor (sometimes cursor only) appears for a second and then disappears.

I believe this is an issue with nvidia drivers not being able to properly relaunch the x server or something but I am not sure how to find where it’s coming from.

Create a new user account and after reboot, login to the new one.
Test if the same happens with the new user.

This is why I never suspend nor hibernate. Even on Windows I never do this. I just shutdown and turn it back on when I want it. Less issues like this.

1 Like

I can’t see the links to the logs etc*, which nVidia card is it and how much vram?

(*It is a work thing :smiley: :smiley: )

Here you go, buddy.

System:
  Kernel: 6.2.5-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    Desktop: i3 v: 4.22 dm: LightDM Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: Zenbook UX535QE_UM535QE v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: UX535QE v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: UX535QE_UM535QE.302 date: 10/26/2021
Battery:
  ID-1: BAT0 charge: 84.3 Wh (100.0%) condition: 84.3/96.0 Wh (87.9%)
    volts: 11.7 min: 11.7 model: ASUSTeK ASUS Battery serial: N/A
    status: not charging
CPU:
  Info: 8-core model: AMD Ryzen 7 5800H with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 3 rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 1700 high: 3200 min/max: 1200/4462 boost: enabled cores:
    1: 1200 2: 1200 3: 3200 4: 3200 5: 3200 6: 1200 7: 1200 8: 1200 9: 3200
    10: 1200 11: 1200 12: 1200 13: 1200 14: 1200 15: 1200 16: 1200
    bogomips: 102245
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA107M [GeForce RTX 3050 Ti Mobile] vendor: ASUSTeK
    driver: nvidia v: 525.89.02 arch: Ampere pcie: speed: 8 GT/s lanes: 8
    bus-ID: 01:00.0 chip-ID: 10de:25a0
  Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
    vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-5 pcie: speed: 8 GT/s
    lanes: 16 ports: active: eDP-1 empty: HDMI-A-1,HDMI-A-2 bus-ID: 05:00.0
    chip-ID: 1002:1638 temp: 42.0 C
  Device-3: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
    bus-ID: 2-2:2 chip-ID: 13d3:56eb
  Display: x11 server: X.Org v: 21.1.7 compositor: Picom v: git-b700a
    driver: X: loaded: amdgpu,nvidia unloaded: modesetting
    alternate: fbdev,nouveau,nv,vesa dri: radeonsi gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 mapped: eDP model: Samsung 0x4161 res: 1920x1080 dpi: 142
    diag: 395mm (15.5")
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: AMD Radeon Graphics (renoir LLVM
    15.0.7 DRM 3.49 6.2.5-arch1-1) direct-render: Yes
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 05:00.1 chip-ID: 1002:1637
  Device-2: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 05:00.6 chip-ID: 1022:15e3
  Sound API: ALSA v: k6.2.5-arch1-1 running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.67 running: yes
Network:
  Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel pcie:
    speed: 5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:2526
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb
    v: 0.8 bus-ID: 1-4:2 chip-ID: 8087:0025
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 476.94 GiB used: 12.04 GiB (2.5%)
  ID-1: /dev/nvme0n1 vendor: SK Hynix model: HFM512GD3JX013N
    size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 30.9 C
Partition:
  ID-1: / size: 242.65 GiB used: 12.01 GiB (5.0%) fs: ext4 dev: /dev/nvme0n1p4
  ID-2: /boot/efi size: 256 MiB used: 30.9 MiB (12.1%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 44.9 C mobo: N/A gpu: amdgpu temp: 42.0 C
  Fan Speeds (RPM): cpu: 0
Info:
  Processes: 333 Uptime: 5m Memory: 15.03 GiB used: 1.03 GiB (6.8%)
  Init: systemd v: 253 default: graphical Compilers: gcc: 12.2.1 Packages:
  pm: pacman pkgs: 906 Shell: Zsh v: 5.9 running-in: kitty inxi: 3.3.25

This helped me on a RTX3070 on a Lenovo Legion 5:

sudo nano /etc/modprobe.d/nvidia-power-management.conf

Add these lines, save and reboot:

options nvidia
NVreg_PreserveVideoMemoryAllocations=1
NVreg_TemporaryFilePath=/var/tmp

I am typing this manually, from my notes, as at work :smiley: Hopefully no typos!!!

I downgraded my nvidia packages to see if that would solve the issue, but it didn’t.
your solution didn’t work unfortunately
do you have any other possible solution in mind?

No, have you looked at the Arch wiki?

Check the journal and Xorg logs, with both your user and the new user.

It looks like the formatting on xircon’s post got jumbled, it should actually be a one liner

  • /etc/modprobe.d/nvidia-power-management.conf
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp

For i3-wm, I also had to do the following for hibernate, and as a bonus suspend also works.

LightDM

Summary
  • Create a file on ‘/usr/local/bin/optimus.sh’ with:
#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
  • Make it executable with:
sudo chmod a+rx /usr/local/bin/optimus.sh
  • Edit /etc/lightdm/lightdm.conf and set this at the [Seat:*] section:
display-setup-script=/usr/local/bin/optimus.sh 
  • Just uncomment, and add the location of the script

Xorg

Summary
  • Create file /etc/X11/xorg.conf.d/20-nvidia.conf with:
Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
EndSection
  • The BusID should be PCI:1:0:0, but you can find yours using
lspci | grep -E 'VGA|3D'

Systemd

Summary
  • sudo systemctl enable nvidia-suspend.service
  • sudo systemctl enable nvidia-hibernate.service (not needed if only using suspend)
  • sudo systemctl enable nvidia-persistenced.service (if external monitor is used)

As you are only trying to get suspend to work, you may or may not need the xorg instructions.

Oops it was from my phone, retyped as at work - Sorry!

1 Like

I had the idea it wasn’t your intent, as the information is correct besides formatting, hence not explicitly pointing the finger at you. :wink:

1 Like

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