Rocky randomly logging out of desktop

My OS has been randomly logging me out of my desktop. Anyone experience this before or know how to resolve it?

I ran my logs from /var/log/messages into GPT and it says everything looks normal so I’m not sure where to look to find more info regarding this issue.

In hindsight I wonder if there’s some auto logout hotkey I’m pressing and if so how to disable it. Anyways. I’ll look into that as I await a response.

“Gaming” is a wide category.

If it’s a particular game (or game launcher/menu/whatever) that’s doing this, then there’s probably a bug in the game.

If it’s all games, then it could be a bug in something like the graphics driver, assuming you’re playing a graphics-heavy game and not something like nethack.

So it might depend on what you’re doing and what your video card is and what driver you’re using for that.

Or it could be something else completely.

When you say “log out”, you mean it takes you back to the GDM screen where you see your name in the middle of the screen, and you have to enter your password to log back in?

Next time it happens, make a note of the exact time. Then log back in and run:

SYSTEMD_COLORS=false journalctl -b --no-pager --priority=3

See if there are any entries that correspond with the time of the issue. It might be gnome-shell crash.

Yup. That’s exactly what’s happening. I’ll report back once it crashes again and I have the results from the command you provided. Thank you.

I know you are on RL10. This file does not exist in my RL10. This was causing us issues with RHEL8.7 when we applied the DISA STIG. It may be in a different location on RHEL10.

Take a look at /etc/systemd/logind.conf. See if you have StopIdleSessionSec set to a value other than infinity. There was a bug in the DISA STIG settings for RHEL 8.7 (I believe) that set this in an attempt to log out idle sessions. Once the idle time has been reached, it killed the login processes including gdm which hung the display and created a blank screen.

1 Like

[UNSOLVED] . . Hopping to a different distro as a workaround for all the issues I’m having.

What was the result from the command line that was suggested to you above?