You are not logged in.

#1 2023-01-23 02:45:34

zonzon510
Member
Registered: 2022-07-27
Posts: 4

resume from suspend randomly wakes to black screen

Description of problem:

running on a thinkpad P51
intel i7
nvidia Quadro M2200

randomly (not every time, but sometimes), when I resume from suspend mode, the
screen remains black and I have no way of resuming my session without
restarting the computer. But it's more likely to happen if the computer has
been suspended for a long time

I just want to know what is causing this, it's driven me to the edge of my
sanity at this point. any advice or recommendations are greatly appreciated.

what I've done to try and find the problem:

    looked for at error / warnings in dmesg
        havent found a difference in the logs during a successful boot and a boot to black screen

    disable all the nvidia services
        hasn't made any difference

    update all firmware to latest versions
        hasn't made a difference

    switch from arch linux to ubuntu
        hasn't made a difference

    switch from gdm to lightdm
        hasn't made a difference

    change desktop environment from xfce to gnome
        hasn't made a difference

    make a keyboard shortcut to to run an xrandr command that will reset the screens
        doesn't work, can't get me out of the black screen

    try hibernate instead of suspend
        hibernate mode has the same problem

    I've enabled an ssh server on the problem machine to see if I can ssh to it
    from another computer during a black screen incident after resuming from
    suspend

        I had some interesting finds while doing this.

        When the problem computer resumes form suspend to a black screen, I am
        able to successfully ssh to the computer.

        I attached to an existing tmux session and everything looks as I left it before suspending it.

        Interestingly, even the sound is working. with the ssh connection, when
        I backspace in a terminal, on ubuntu there is a "bing noise" it makes,
        and the black screen computer makes the bing noise while I'm pressing
        backspace on the computer I'm using to ssh to it.

        with an ssh connection in the black screen state, I found that if I
        kill gdm instances and then restart it, this works. it gets me back to
        a login screen but I still lost my session because I effectively logged
        out and logged in, but I am able to get the screen working WITHOUT
        restarting the computer.

    current things to perhaps look into:

        attempt to change from UEFI to BIOS boot:

            I've read that BIOS mode may make some difference in the hardware support.
            I've been attempting to perform an arch linux install in BIOS boot mode, and I haven't been successful.
            I've set in my bios settings to use legacy boot only
            I'm made a BIOS boot with GPT partition table.

            1 MiB - Bios boot partition
            40 GiB - swap
            ~400GiB - linux file system

            after following the arch linux install and grub install / config
            for GPT / Bios, the computer can't boot to grub, it just restarts
            over and over again. I'm perplexed why BIOS boot works to boot from
            the arch installable media (verified by lack of
            /sys/firmware/efi/efivars), but not off my hard drive.

        try wayland:

            I've tried wayland, but all of the desktop environment and icons
            and text are corrupted and look all miscolored to the point where
            it's unusable.

        try playing with different kernel versions:

            havent done this yet, but I've read a forum about this issue where
            some users said that they were able to fix a random suspend to
            black screen problem by switching to a particular kernel version.

Offline

#2 2023-01-23 13:57:40

cribari
Member
From: Recife, Brazil
Registered: 2016-01-28
Posts: 83
Website

Re: resume from suspend randomly wakes to black screen

Could it be related to this https://bbs.archlinux.org/viewtopic.php?id=282293 ? Have you tried using the LTS kernel?


Linux, street photography and Baroque music enthusiast.

Offline

#3 2023-01-23 19:08:28

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,563

Re: resume from suspend randomly wakes to black screen

@cribari OP is running on intel i7

When the problem computer resumes form suspend to a black screen, I am
        able to successfully ssh to the computer.

This is looking at graphics wakeup problem. Have you looked at Preserve video memory after suspend?

Could you post the ouput of cat /proc/acpi/wakeup?
Also lspci.

Offline

#4 2023-01-27 12:36:29

zonzon510
Member
Registered: 2022-07-27
Posts: 4

Re: resume from suspend randomly wakes to black screen

thank you for the responses.
some updates:

after reinstalling arch linux on the p51 laptop (I went to ubuntu and now back
to arch linux), I'm having a lot of problems with the external display port
that are new. previously, I was able to fix these problems by using dedicated
gpu mode in the BIOS, but now that boots to a black screen every time. (can't
get to a desktop or terminal at all after grub)

I've also installed arch linux on a different laptop of mine, an asus rog strix
with an nvidia GTX 1060 Mobile 6GB and intel i7 6700 HQ. and I find that I have
the same original problem that I described on the first laptop, the resume from
suspend works sometimes but not always.

I've verified that the problem exists on both laptops using the nvidia-lts and
linux-lts. I also noticed while installing the kernel that there were some
warning messages about missing firmware, and I installed all of the missing
firmware that it complains about so running the install of the kernel doesn't
say "warning possibly missing firmware", but that had no effect on the problem.

the only laptop that I have that I would say "flawlessly" runs linux (arch and
ubuntu with no issues) is a thinkpad T400 but it's very old and has no GPU. But
the suspend issue exists on both those other laptops (p51 and asus rog), and on
the p51 with the M2200 GPU, getting the graphics card working with external
displays has always been troublesome.

I would be willing to buy another laptop if I had a way to know that I am not
going to run into these suspend and GPU issues. I would check what laptops are
listed on the arch wiki as compatible, but I don't really believe these are
accurate because on this page it lists the p51 as compatible with power
management.
https://wiki.archlinux.org/title/Laptop/Lenovo
maybe it's a p51 model with a different GPU that works better.

I will try looking into the preserve video memory after suspend article.

Offline

#5 2023-07-03 21:09:34

throbscottle
Member
Registered: 2011-11-05
Posts: 55

Re: resume from suspend randomly wakes to black screen

Grist for the mill...
Dell Latitude E6410 (i5, 10+ years old) has approximately the same problem after upgrading to 6.3.9-arch1-1
Graphics runs nouveau
Autologin configured
I installed the LTS kernel, 6.1.35-1-lts and the problem disappeared.
With hibernate, it resumes to a screen but you can't interact with it. I can ctrl-alt-f3 to a vt and use that to shut down
With suspend, it resumes to a black screen. Moving the mouse pointer around it changes where various objects should be on screen, though you can't interact with them. Again, I can ctrl-alt-f3 out of it.
Trying ctrl-alt-bksp to kill X results in being locked out, after logging in with SDDM, I have to hard shutdown using the power button.
I couldn't find anything power related in anything /sys/.../i2c/...
Trying to find a fix on the 'net I've come across a lot of people with some version or other of this problem (mostly historic, admittedly)
It aint fixed, folks...

Last edited by throbscottle (2023-07-03 21:10:52)

Offline

#6 2023-09-20 11:15:49

zonzon510
Member
Registered: 2022-07-27
Posts: 4

Re: resume from suspend randomly wakes to black screen

I am happy to say that I have found the solution to my problem.

running on a thinkpad P51
intel i7
nvidia Quadro M2200

I disabled the hybrid graphics option in my computer BIOS, running latest
nvidia drivers and normal linux kernel with nouveau blacklisted, and it
definitely fixed my problem that I have described previously, as I have never
had it happen again since switching off the hybrid graphics.

I think the hybrid graphics option seemed to get confused between displaying
with the intel integrated graphics or the GPU at resume from suspend. So
setting it to use only the GPU eliminated that problem, I have not noticed a
difference in battery life, it may be marginally worse.

I hope this can help someone else

Offline

Board footer

Powered by FluxBB