Prompted to Relogin after 1 minute and 32 seconds, black screen post login

Thanks for tackling this problem! Apparently, I just experienced the same issue (though I did not measure the time it took for the re-login to be prompted) and now seems to be fixed.

In my case this began with an update including this changes. After rebooting and checking everything was in order, I erased my snapper-snapshots and performed a balance (following this guidelines as I usually do before creating a manual snapshot). Everything seemed to go smoothly and I shutdown the system, just to come later to a disaster:

The bootloader (grub) was fine, but the system would not load with either zen or lts kernels.
I had to garuda-chroot into the system to fix it (along the lines )… apparently my system partition got messed up so that its superblock was not being found. I tried some suggestions from this post of and this post: in my case btrfs check /dev/nvme... gave no errors, and the scrub+balance+defrag and reinstall of all my kernels did not solve it.
By following this steps I was able to log into the system… just to find the problem this post addresses.

Regarding this: I followed your suggested steps, but did not add the zram entry to fstab. Instead, I added the suggested vm.stuff configuration from the arch wiki and rebooted to a working system. I think the problem was the missing .conf… but how did that happen?

I have a similar user profile as yours: not much of a tweaker when it comes to system configuration and trust most of it to Garuda devs. Would love to know about how all this came to be… but currently I have no time to look into. So thanks again!

1 Like

That’s more of a side note.
You solved it yourself, but I don’t think the cause of its behavior in your case was identified and your solution seems to me like a workaround.

I’m not sure, but I think the entry in fstab searches /etc/systemd/zram-generator.conf. Garuda seems to do something different than the Arch Linux standard.

Under Garuda, zram-generator.conf is located in /usr/lib/systemd, not in /etc/systemd. There is also no entry in fstab by default. Nevertheless, the service runs, and zram works as desired.

└──╼ systemctl status systemd-zram-setup@zram0.service
ā— systemd-zram-setup@zram0.service - Create swap on /dev/zram0
     Loaded: loaded (/usr/lib/systemd/system/systemd-zram-setup@.service; static)
    Drop-In: /run/systemd/generator/systemd-zram-setup@zram0.service.d
             └─bindings.conf
     Active: active (exited) since Thu 2025-07-31 08:22:46 CEST; 22min ago
 Invocation: 0b34bfdf2b844f90bd3898f09de6e758
       Docs: man:zram-generator(8)
             man:zram-generator.conf(5)
    Process: 752 ExecStart=/usr/lib/systemd/system-generators/zram-generator --setup-device zram0 (code=exited>
   Main PID: 752 (code=exited, status=0/SUCCESS)
   Mem peak: 3.2M
        CPU: 27ms

Now that it’s running, it doesn’t matter. I just wanted to mention it because I find it strange that the Garuda standard was broken on your system. For whatever reason.

1 Like

Of course → wrong location and default this file does not exist in /etc/systemd/

Sorry, this is not the intended location for this file.
Default you don’t need the file in /etc/systemd/zram-generator.conf only if you change the settings.

If installed, service is running :fast_down_button:

/usr/lib/systemd/zram-generator.conf
/usr/local/lib/systemd/zram-generator.conf
/etc/systemd/zram-generator.conf
/run/systemd/zram-generator.conf

/usr/lib/systemd/zram-generator.conf.d/*.conf
/usr/local/lib/systemd/zram-generator.conf.d/*.conf
/etc/systemd/zram-generator.conf.d/*.conf
/run/systemd/zram-generator.conf.d/*.conf
1 Like

That’s right… just confirmed garuda’s zram-generator configuration file is found at /usr/lib/systemd/ (owned by garuda-common-settings) in my system.

Sadly, I booted today to find this problem again :frowning: . The strange thing is that after chrooting just to look for the configuration file and rebooting, everything seems to be fine. Something quirky is going on…

For other people that come across this: As my zram seems to be working appropiately, the culprit might be the compositor as @shayaknyc suggested and I suspect it is triggered by the screen turning off by KDE’s power management (but won’t be testing it now as I have urgent work to get done). I’m making a full upgrade again and check/remove orphaned packages; if I find this behavior again, I’m thinking of doing a garuda-update remote fullfix.

If the thing persist, I’ll open a new thread as @OopsAllProblems is fixed already.

Sorry, i mean no :ghost:
Take a look in the journal what’s going on with zram. If you read ā€œerrorsā€
Reinstall zram → reboot. To be safe: If you not find the log entry for zram, your swap file is not created during boot. Control the service and settings for zram.

systemctl status systemd-zram-setup@zram0.service
cat /sys/block/zram0/disksize
cat /sys/block/zram0/comp_algorithm
zramctl

as info:

3 Likes

Thanks for the notes, but as I said, my zram seems to be working appropriately: configuration in place, systemctl ... reports OK, no erros in journalctl for swap or zram…

The problem specified in this thread has not appeared again so far (it just went away). What I do have is some inconsistent graphic glitches (they come and go), for example: my webcam (external) is currently not functioning (either on wayland and x11), after login sometimes a random colored pixel screen blinks for a second (other times is the same log message I saw just before my last shutdown), sometimes have system lags, and other time the compositor is not reloading after coming back from a tty or from sleep…

I’ll just keep doing house-keeping and do some research later on… create a post if things get nastier.

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