Logout while gaming

Lately Manjaro just logs out in the middle of a game.

I am playing for 5 mins to 20 mins and suddenly the game stops, the screen goes black and I am logged out of the session on the login screen.

What could that be?

It happens with No Man’s Sky. No special starting parameters, just mangohud.

It started after the update to Kernel 6.15.

I dont know which inxi command is useful for this so I will wait for suggestions.

So far I have tried, proton experimental, hotfix and cachy-os-proton.

Operating System: Manjaro Linux
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.7-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-9700K CPU @ 3.60GHz
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 9070 XT
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: Z390 AORUS PRO

I have found this. Anyone knows what this does?

sudo systemctl stop systemd-ask-password-wall.service

I do not want to jinx it and will test it further but it did not logout anymore since I have used this. It was the answer to someone else having the same issue years ago in another distribution.

Edit: This seems to be just a temporary solution that is disabled again after a restart of the system.

Also I have changed graphics settings, to no avail. When the above command is not set it logs out of Manjaro sooner or later while playing.

From the name and from memory:
It takes care that users are warned when the system is about to go down - or delivers other important messages.

If more than one user is logged in and one of them wants to shut down or reboot the system, the others are notified about that.

1 Like

It is odd though because one would expect to get a message that the system would like to log out, because it does it without that setting. But when it is set then I can play without interuption/logout and no message that it would like to.

Sounds very much like automatic screen locking but I don’t know why the behaviour would change after an update.

If you’re playing with a controller only then KDE doesn’t account for game controller events in the idle timer. So unless the game itself disables screenlock/screensave/powersave then this is exactly what happens.

You can manually disable it by middle-clicking the Power Management applet (which is probably hidden on a desktop PC). Or install the gamemode package and use that. In Steam;

gamemoderun mangohud %command%

See also;

https://bugs.kde.org/show_bug.cgi?id=328987

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.