Black screen after sleep / screen blank, occurs inconsistently

I’ve had a look at other threads with a similar topic but they tend to be for KDE and refer to a KDE bug. I’m not running KDE, I’m running Gnome.

When my Dell XPS 15 9570 laptop blanks the screen automatically, or goes to sleep/suspend, it sometimes doesn’t come back. I can’t get out of the blank screen, typically.

If the laptop hasn’t gone to sleep but has just blanked the screen, sometimes, but not always, I can close the lid and reopen it and I’ll get the lock screen showing, allowing me to log back in. (No mouse movement or ordinary keystrokes will activate the screen.)

But, if that doesn’t work, or if the laptop has gone into sleep/suspend and shows only a blank screen when I try to wake it up, then there’s really nothing I can do to get back into my session. I’ve discovered that intstead of Alt-SysRq-REISUB I only need to do Alt-SysRq-K - this shuts down my X session and kills all my processes in the session, but I get the login screen and don’t have to reboot. Small benefit, since I’ve lost my session.

The problem is very inconsistent. I can suspend my laptop multiple times and it won’t happen, then it will, or I turn away for a few minutes and the screen locks and blanks and suddenly I can’t get back into my session, occasionally. It’s happening about once a day or every couple of days at the moment.

This started happening, if I recall correctly, after I updated to Nvidia Prime and the latest proprietary drivers. Previously I’d been using bumblebee and some old drivers, nvidia-340 or something like that.

(In the distant past - a couple of years ago - I’d had problems with blank screen on resume, but various threads recommended fixes which together seemed to work. I have the following options set on my GRUB_CMDLINE_LINUX_DEFAULT="quiet udev.log_priority=3 resume=/dev/disk/by-uuid/... resume_offset=... mem_sleep_default=deep ipv6.disable=1 pcie_aspm=off ath10k_core.skip_otp=y i915.enable_dpcd_backlight=0".)

Here’s the output of inxi --admin --verbosity=7 --filter --width:

  Kernel: 5.16.14-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 11.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.16-x86_64
    root=UUID=f342c28f-dd8e-475f-95ff-c1616f301bb1 rw
    cryptdevice=UUID=18c88d89-adb4-4e24-92d2-17588aa3c7a5:cryptroot quiet
    resume_offset=34816 mem_sleep_default=deep ipv6.disable=1 pcie_aspm=off
    ath10k_core.skip_otp=y i915.enable_dpcd_backlight=0
  Desktop: GNOME v: 41.4 tk: GTK v: 3.24.33 wm: gnome-shell dm: GDM v: 41.3
    Distro: Manjaro Linux base: Arch Linux
  Type: Laptop System: Dell product: XPS 15 9570 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 0D0T05 v: A00 serial: <superuser required> UEFI: Dell
    v: 1.23.0 date: 12/02/2021
  ID-1: BAT0 charge: 51.8 Wh (100.0%) condition: 51.8/97.0 Wh (53.4%)
    volts: 12.6 min: 11.4 model: LGC-LGC8.33 DELL 5XJ288B type: Li-ion
    serial: <filter> status: full
  RAM: total: 30.98 GiB used: 11.27 GiB (36.4%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
  Info: model: Intel Core i7-8750H bits: 64 type: MT MCP arch: Coffee Lake
    family: 6 model-id: 0x9E (158) stepping: 0xA (10) microcode: 0xEC
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 1.5 MiB desc: 6x256 KiB
    L3: 9 MiB desc: 1x9 MiB
  Speed (MHz): avg: 3559 high: 4001 min/max: 800/4100 scaling:
    driver: intel_pstate governor: powersave cores: 1: 3643 2: 4001 3: 4001
    4: 4001 5: 4000 6: 2511 7: 1404 8: 3723 9: 4000 10: 3586 11: 4000 12: 3846
    bogomips: 52815
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush clflushopt
    cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts
    epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu fsgsbase fxsr
    ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid
    invpcid_single lahf_lm lm mca mce md_clear mmx monitor movbe mpx msr mtrr
    nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln
    pni popcnt pse pse36 pti pts rdrand rdseed rdtscp rep_good sdbg sep sgx
    sgx_lc smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2
    tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi vpid x2apic
    xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  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: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor: Dell
    driver: i915 v: kernel ports: active: eDP-1 empty: DP-1,DP-2,DP-3
    bus-ID: 00:02.0 chip-ID: 8086:3e9b class-ID: 0300
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile] vendor: Dell
    driver: nvidia v: 510.54 alternate: nouveau,nvidia_drm pcie: gen: 1
    speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.0
    chip-ID: 10de:1c8c class-ID: 0302
  Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 1-12:5 chip-ID: 0c45:671d class-ID: 0e02
  Display: x11 server: X.Org v: compositor: gnome-shell driver: X:
    loaded: modesetting,nvidia unloaded: nouveau alternate: fbdev,nv,vesa
    gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x2160 s-dpi: 96 s-size: 1016x571mm (40.00x22.48")
    s-diag: 1165mm (45.88")
  Monitor-1: eDP-1 model: Sharp 0x148d built: 2018 res: 3840x2160 hz: 60
    dpi: 284 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: 3840x2160
  Message: Unable to show GL data. Required tool glxinfo missing.
  Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel
    v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
    chip-ID: 8086:a348 class-ID: 0403
  Sound Server-1: ALSA v: k5.16.14-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.48 running: yes
  Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
    vendor: Rivet Networks Killer Wireless-n/a/ac 1535 driver: ath10k_pci
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 3b:00.0
    chip-ID: 168c:003e class-ID: 0280
  IF: wlp59s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  WAN IP: <filter>
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-4:3
    chip-ID: 0cf3:e301 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 4 state: up address: see --recommends
  Message: No logical block device data found.
  Device-1: luks-af0c6fb8-b81b-4689-be77-02a58b4780ce maj-min: 254:1
    type: LUKS dm: dm-1 size: 931.51 GiB
  p-1: sdb1 maj-min: 8:17 size: 931.51 GiB
  Device-2: cryptroot maj-min: 254:0 type: LUKS dm: dm-0 size: 953.37 GiB
  p-1: nvme0n1p2 maj-min: 259:2 size: 953.37 GiB
  Message: No RAID data found.
  Local Storage: total: 1.84 TiB used: 1019.33 GiB (54.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: PM981 NVMe 1024GB
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: EXA74D1Q temp: 34.9 C scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: Seagate model: BUP Slim
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B type: N/A
    serial: <filter> rev: 0004 scheme: GPT
  Message: No optical or floppy data found.
  ID-1: / raw-size: 953.37 GiB size: 937.4 GiB (98.33%)
    used: 332.08 GiB (35.4%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
    mapped: cryptroot label: N/A uuid: N/A
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%)
    used: 53.8 MiB (10.5%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: N/A uuid: 2D8A-A6AD
  ID-3: /home/<filter>/mnt/ggill-win raw-size: N/A size: 1 PiB
    used: 30.72 GiB (0.0%) fs: fuse.rclone
    remote: ggill-win-google-drive{jTRHh}:
  ID-4: /run/timeshift/backup raw-size: 931.51 GiB size: 915.89 GiB (98.32%)
    used: 687.2 GiB (75.0%) fs: ext4 dev: /dev/dm-1 maj-min: 254:1
    mapped: luks-af0c6fb8-b81b-4689-be77-02a58b4780ce label: d1g1tBackup
    uuid: 940f22d0-46fc-45c2-8bfa-c10638be62d4
  Kernel: swappiness: 10 (default 60) cache-pressure: 50 (default 100)
  ID-1: swap-1 type: file size: 32 GiB used: 5.5 MiB (0.0%) priority: -2
    file: /swapfile
  Message: No unmounted partitions found.
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 1-1:10 info: Dell Universal Receiver type: Keyboard,Mouse,HID
    driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s
    power: 100mA chip-ID: 413c:8505 class-ID: 0300
  Device-2: 1-4:3 info: Qualcomm Atheros type: Bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0cf3:e301
    class-ID: e001
  Device-3: 1-7:4 info: Shenzhen Goodix Fingerprint Reader
    type: Abstract (modem),CDC-Data driver: N/A interfaces: 2 rev: 2.0
    speed: 12 Mb/s power: 100mA chip-ID: 27c6:5395 class-ID: 0a00
    serial: <filter>
  Device-4: 1-12:5 info: Microdia Integrated_Webcam_HD type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0c45:671d class-ID: 0e02
  Hub-2: 2-0:1 info: Super-speed hub ports: 10 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Device-1: 2-2:8 info: Seagate RSS LLC BUP Slim type: Mass Storage
    driver: uas interfaces: 1 rev: 3.2 speed: 5 Gb/s power: 144mA
    chip-ID: 0bc2:ac19 class-ID: 0806 serial: <filter>
  System Temperatures: cpu: 60.0 C pch: 60.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 3225 fan-2: 3244
  Processes: 509 Uptime: 3d 5h 43m wakeups: 166 Init: systemd v: 250
  target: tool: systemctl Compilers: gcc: 11.2.0
  clang: 13.0.1 Packages: 2768 pacman: 2751 lib: 497 flatpak: 17 Shell: fish
  v: 3.3.1 running-in: gnome-terminal inxi: 3.3.14

If you did everything mentioned here Dell XPS 15 9570 - ArchWiki then there should be no issue. But i see you added quite a few custom kernel boot parameters, but the only one mentioned there is mem_sleep_default=deep

Also from there

1 Like

Thanks Bogdan. I will give the Archwiki page a try. Yes maybe it is time I cleaned out some of the boot parameters, which I added some time ago to address ath10k wireless problems preventing resume from suspend.