Hi, I am having problems because my screen goes to black at random moments, is not always but when it happens I have to reset the computer. I also noticed is only a screen issue since the computer stays on even after this happens. Also the screen says that it is recieving signal from the DP.
Thanks for the reply, sorry for not getting back to you sooner.
Unfortunately I don’t see anything that could be causing the issue in there.
Maybe there is something useful in dmesg.
if you could please provide the output of dmesg | grep DP and dmesg | grep display
a look at journalctl | grep display may help, too.
If you don’t mind, a look at cat /var/log/pacman.log may also be revealing to see what packages have been installed since then, be prepared for a wall of text however
Hi,
I have a similar problem with my NUC 7PJYH, but only with Kernel 5.9 and 5.10, 5.8 still works.
With one Monitor, the Screen goes black after some idling, so at first I suspectet a energy setting but could not find anything so far.
When the Screen is on and the second Monitor switched on (both HDMI), both Screens go black immediatly, but the Monitors are still on, so some Signal seems to be there.
After that I have to do a hard reset to get it going.
This started after the last big Update, when switching to 5.9
This is just an idea, could the issue be connected to the backlight, perhaps?
Here is a way to check whether this is the case:
create a file in your home directory called brightness.txt
put the following script in a file called brightness_log.py somewhere on your computer
import os
import time as t
path = "/sys/class/backlight/edp-backlight/brightness"
out = open("/home/julius/brightness.txt","a")
current = ""
last = ""
while True:
f = open(path, "r")
current = f.read()
f.close()
if current != last:
out.write(current)
last = current
t.sleep(1)
replace julius in the line out = open("/home/julius/brightness.txt","a") of the script with your account name. You can find out what it is by doing whoami in the terminal
replace edp-backlight in the line path = "/sys/class/backlight/edp-backlight/brightness" with the name of your display. You can find out what it is by typing ls /sys/class/backlight/ in the terminal
do python brightness_log.py in the folder where you saved brightness_log.py and leave it running.
When the issue comes up, do kate ~/brightness.txt in a terminal and see whether the last line displays a 0.
If so, the computer must have turned off the backlight of your display.
This is just an idea, but I would be thankful if one of you could try this out.
best Regards, Julius
Just to report that with this last update of the drivers, at the first time it works again with the latest kernel 5.9 but after a few reboots the error still exists…so I’m back to 5.8 kernel.
After the recent update to kernel 5.10 the problem still persists. Unfortunelly now I can’t go back to 5.8 anymore and I’ve realized that when I have Lollypop playing music in the background despite of the system goes to suspend mode after wake up it show the login screen as it always should be.
Does anyone know how to solve this?
Hi everybody, I’m facing this problem since a few months and I came up with a brutal but working workaround.
Just connect with SSH and send this command:
DISPLAY=:0 xrandr --output DP-0 --auto
Obviously change the output depending on yours, just check it out with xrandr command.
You can also create a script with a shortcut with this command.
The screen will wake up soon after.
Thanks for posting a solution but I’m kind of a newbie and would be great if you can help me what is the command line for connect first with SSH?
Sorry for this dumb question.
The easiest thing you can do is to create a file somewhere with this inside:
#!/bin/bash
uxterm -e xrandr --output DP-0 --auto
then make it executable by changing the permissions with your file manager or by using: chmod x /path/to/file
Then you can create a keyboard shortcut to that file, and each time your screen goes black you have just to press the shortcut.
If you want to try with SSH it’s quite easy too:
Install openssh on your pc.
Then you can connect from another pc by using: ssh -p port user@server-address
The default port is 22, you can find the address on your pc by typing “ifconfig”, or from another pc with “arp -a”. You can also connect from a smartphone by installing an SSH client (I’m using JuiceSSH but it will not matter).
Hi chavo11,
thanks for the effort explaning this…I manage to do everthing right with the file creation option but when I send the computer to suspend mode it still have the black screen after hit any key to recover from suspend mode.
You did everything that I told you? Creating the shortcut and everything? If you press the shortcut while using the pc a terminal will show up for a split second, so you can check that it’s working.
Also check that your screen is DP-0, you can see it by typing xrandr in a terminal.
If this is not working then probably you’ve got a lockscreen after suspend and maybe shortcuts are not working there, which can be possible. In that case you have to use the SSH workaround.
I think that my screen is DP-0, check the xrandr output:
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
HDMI1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 600mm x 340mm
1920x1080 60.00*+ 50.00 59.94
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1280x960 60.00
1280x720 60.00 50.00 59.94
1024x768 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x480 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
HDMI2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1280x800 59.81 +
1920x1080 60.00* 60.00 50.00 59.94 30.00 24.00 29.97 23.98
1920x1080i 60.00 50.00 50.00 59.94
1600x1200 60.00
1680x1050 59.88
1280x1024 75.02 60.02
1440x900 59.90
1366x768 59.79
1152x864 75.00
1280x720 60.00 50.00 59.94 49.83
1024x768 119.99 75.03 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
720x576 50.00
720x576i 50.00
720x480 60.00 59.94
720x480i 60.00 59.94
640x480 75.00 72.81 66.67 60.00 59.94
720x400 70.08
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
As far as SSH workaround I can’t go that way because I have in return this output after trying to ssh: ssh: connect to host XXX.XXX.X.XX port 500: Connection refused