1

Hey everyone, I’m new to CachyOS and Arch-based distros in general. Ever since I installed CachyOS just a few days ago, I had this weird issue with getting a black screen on some random occasions. Changing the kernel to the LTS version seems to have made things better, but not perfect yet.

And for a while now I noticed that if I keep alt-tabbing to switch windows, eventually I end up getting a black screen. I can still Ctrl + Alt + F4 out of it, but I still have to reboot in the end.

I found this issue on GitHub from December last year, and everything seems pretty similar to my current situation: my GPU is an NVIDIA GTX 1050 Ti and logs in one of the comments are similar to mine after triggering the black screen. The issue is still open, so I’m not sure if someone ever found a fix to this issue…

Thought I’d post in this forum looking for help :slight_smile:

2

Do the system logs reveal anything?

# where -1 = "the previous boot"; -2 = one before that, etc.
journalctl -b -1 --pager-end

There’s a ton of messages, but the one thing that stands out the most is the spam of this message:
cachyos-x8664 kwin_wayland[1127]: Could not make egl context current! EGL_BAD_CONTEXT
and this message:
EglGbmLayerSurface::renderTestBuffer: failed to make opengl context current
especially at the beginning of the logs.

I posted the full log from the command here: https://pastebin.com/c2kKfHRC

Okay something weird just happened and I figured I should share this here.

I was playing on Sober when I ended up alt-tabbing and getting the black screen, however when I alt-tabbed again, I was back into the game playing normally. I was also playing on fullscreen, and when I switched out of fullscreen I’d get the black screen again, but pressing F11 again goes back into the game. In other words, the desktop itself is black but not the game, I guess.

So I tried changing my kernel version again, this time to the LTS LTO version. Haven’t had a problem with alt-tabbing since then, but I’m still having black screen issues on other occasions. They’re not in the scope of this post though, so I guess I can call it solved :slight_smile: