at one point the laptop was configured to have an external monitor and now with the upgrade to 15.4 few weeks ago i encounter this problem which i remember that i have seen it before maybe with 15.3, not important. couldn’t find any settings to change it so i assume is a driver.
currently display is dark (device 1 and monitor 1)and external monitor is working:
Inxi -Ga information is incomplete unless run from within an X session.
From within Plasma, does Ctrl-Alt-F3, then Alt-F7 light up both displays?
From Konsole in your X session, does xrandr --output eDP-1 --auto change anything? What about xrandr --output eDP-1 --primary?
Does the problem remain if you run Plasma in an Xorg session instead of Wayland?
Install if necessary, then run xdriinfo from Konsole. Which does it report i965, or crocus?
The next kernel update, due soon, is expected to solve multiple graphics troubles.
Plasma is fraught with multiple problems with multiple displays that upstream is currently working to solve, and should show up in TW before very long, but won’t make 15.4 without enabling optional repo repositories/KDE:/Frameworks5. On mine, I disable KScreen 2 in systemsettings5 startup, then configure displays as required via xrandr and/or arandr.
it was executed from an Xsession[/quote]GL data unavailable in console for root is a message inxi -Ga provides when run from a vtty (aka console). Unless and until you run it without getting this message, and show us that output, we may be missing information we need to help us help you.
[quote]Does the problem remain if you run Plasma in an Xorg session instead of Wayland?
not sure how to do this[/quote]On your SDDM or LightDM login screen there is a place to select session type. If you have auto-login enabled, then to get there requires logging out without shutting down or rebooting.
[quote]run xdriinfo from Konsole. Which does it report i965, or crocus?
it reports i965[/quote]It’s possible a switch to crocus could help. To do so, add export MESA_LOADER_DRIVER_OVERRIDE=crocus to ~/.profile, log out, then log back in to see if it has any effect. Alternatively to ~/.profile, it can be enabled globally via /etc/X11/xinit/xinitrc.d/45-crocus.sh (new file you create, name not important, though “45” could be).
i enabled the repo for Frameworks5
I suggest it’s too soon to see improvement. You could encounter other bugs, but it’s your laptop to do with as you wish.
thank you mrmazda. it is an old laptop which i just keep using it once in a while since i had some hardware problems with it. the battery shows as not charging and i was trying to get some pictures to the manufacturer the other day when i encountered the black screen. to my surprise the battery was charging while trying to find a way for the black screen on it. i left by mistake the laptop on battery and of course this morning was drained so connecting to the cable i restarted the laptop and the black screen lit up and is working now. didn’t do anything else other than the commands you provided and maybe some updates that popped up. so now both screens are working but my battery doesn’t show as charging? i guess i will have to open a new post for that. so i have no ideea what corrected my system or more like went back to a previous state when battery was not charging and screen was working.
here is the output now(executed from my user instead of root via sudo) so few changes but it might be because the way i executed initially):
the variable **MESA_LOADER_DRIVER_OVERRIDE **is empty right now. please let me know if you like to see any output which might give a clue of what happened. thank you
There are bugs lurking various places that surface to vex multiple display users, especially in Wayland, which is still rather new in terms of user acceptance. I have yet to open a Wayland session even once, among hundreds of installations.
You should be able to note several things in common between mine and yours, among them, the VGA display is labeled “primary”. Primary is typically where apps open by default, and the default tool panel appears. It often happens that when anything occurs to make X decide only one display is attached, and one of them is VGA connected, VGA is the one it picks to keep alive.
Other than not using Wayland, I have nothing to suggest that you could do to keep it from happening again. Similar goes for if and when it happens again. If all else fails, try simply logging out then back in. First check if in desktop settings > display a second display is present. Try also arandr, which you may need to install first.
If it happens again any time soon, before logging out, do cat /var/log/Xorg.0.log | susepaste and post the resulting URI here so we can look for clues.
thank you for your reply and i will try to keep it in mind for next time it happens. i will try to learn a bit more about the arandr command(so i remember it next time). i also a bit about inxi command which helped me with my battery which for some reason gets drained with voltage less than minimum, i got the battery out and then back in and with the command inxi -Bx i was able to see that it started to charge slowly at the beginning until it got to 100%. i will have to be careful if it goes very low so as not to get to 0. appreciated your help.