MX Linux, Xfce 4.18

Closing the laptop lid suspends the system, opening it resumes it, but the screen is black. I’m guessing it’s related to powerup because suspending through the logout menu and systemctl suspend both work as expected. When it’s black, switching to a different tty works, as well as C-M-Backspace to logout.

Same results with both lightdm and sddm, when replacing suspend with hibernate, and I’ve tried a few solutions like disabling lock on sleep.

Seems like this issue has been around for years, but had a whole bunch of different causes since every other thread has a different solution.

XFSETTINGSD_DEBUG=1 xfsettingsd --replace --no-daemon > /tmp/xf.log 2>&1

ps -ef | grep -E ‘screen|lock’

xfconf-query -c xfce4-power-manager -lv

dmesg, cleared it before trying to suspend

updates:

I’m not seeing a black screen, instead it turns on the display and then turns it off.

Additionally, I tried closing and opening the lid a few times, and it woke up correctly.

I tried it in i3wm with the xfce power manager to suspend after closing the lid. It woke up correctly 10 times in a row.

Solution: start an xrandr config and the monitor turns back on.

  • Shareni@programming.devOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    7 months ago

    What’s your GPU?

    NVIDIA GeForce MX150 (Thinkpad t480)

    What suspend modes does your laptop supposedly support, and then what modes does your kernel THINK it supports

    Sleep mode, hibernation mode, wireless off (source). freeze mem disk (cat /sys/power/state)

    I doubt it’s related as systemctl suspend works as expected.

    What kernel are you in?

    6.1.0-20-amd64

    What does dmesg show right after you wake the machine back up?

    dmesg, cleared it before trying to suspend

    I’ve tried resuming 50+ times while troubleshooting, and it only once did it correctly. Now I try to replicate the bug and it worked correctly 2/3 times.