Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Blackscreen whe reopening the lid of a laptop during Xorg session (Read 557 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Blackscreen whe reopening the lid of a laptop during Xorg session

Hi,
I've got a fresh install of Artix with runit, I've added dwm on that.
When I'm closing the lid of my laptop outside Xorg everything is normal when reopening it.
But when I do it within the dwm session and reopen it I've got a gray/black screen without the possibility to do anything.

I don't know how to point out the problem.

Re: Blackscreen whe reopening the lid of a laptop during Xorg session

Reply #1
hi, is the system up-to-date? you not wrote which ISO you used
another DE (offcicially supported by archlinux or artixlinux) works without problem?  If they work, you may have something set up wrong.

Re: Blackscreen whe reopening the lid of a laptop during Xorg session

Reply #2
Yep sorry I've forgotten
I've done the installation recently with the following iso artix-base-runit-20210101-x86_64.iso.
I've not tested any DE, but I could install another WM in order to test that, I will try installing xnomad to see if the problem persist.


 

Re: Blackscreen whe reopening the lid of a laptop during Xorg session

Reply #4
I've fixed the error thanks to this topic

https://forum.artixlinux.org/index.php/topic,1639.msg11220.html#msg11220

The following code fixed the problem
Code: [Select]
#!/bin/sh

case "$1" in
    pre)
        /usr/bin/nvidia-sleep.sh "suspend"
        sleep 2
        ;;

    post)
        (sleep 2; /usr/bin/nvidia-sleep.sh "resume";)&
        ;;
esac

I will test without the sleep command. I don't know if it's a workaround that hide the main issue, but it seems to work ::)
Thanks