I set up Zorin OS 16 on a HP ProDesk 400 G5 Mini (see inxi output below) and I'm running into a weird issue. I set up two user accounts, an admin account for myself, and a basic user account for my sister just so she can play Minecraft. Both of them are password protected but my sister's account is set to automatically log in since I couldn't be bothered to bypass the password requirement.
Initially I thought that I would get to the login screen, and if I tap her user account I would get automatically logged in, but instead booting into Zorin sends me right into her account. That's actually great, since I want everything to be pretty straightforward when she's using the PC without me around.
However here's the issue. Zorin boots me into her account, but I want to use mine. So I go to switch users, select my account, input my password and... I get a black screen and an unresponsive system. Switching to a TTY doesn't work, nor does any key combination except Alt+SysRQ+REISUB to force a reboot. Only once I managed to reboot with Ctrl+Alt+Del but I haven't been able to do it again since then.
After the forced reboot, I'm back on my sister's account. She's not a sudoer so can't do anything. I switched to a TTY and logged into my account, but I have no GUI so it's not ideal.
I thought maybe it's a config issue somewhere on my account (since I installed a bunch of packages, I'll detail that at the end of the post as well), so I went with the "obvious" choice. I nuked my user folder (rm -rf /home/dragonsky). That did the trick, but everything in my user folder was gone.
I reinstalled Zorin again since I wanted to find a subtler solution, now knowing something in my home folder was the culprit. I redid the exact same steps and I'm back in the exact same situation. On my sister's account, system locks up when I switch users.
I don't have any idea what config file I should delete to fix this, but maybe you guys have an idea. Or maybe you have an alternate, simpler and cleaner solution.
One fix that works perfectly is to disable autologin on my sister's account then reboot. That is nice, but I want the autologin since she's 10 and I don't want her to memorize a password and struggle to type it in just to play Minecraft. Should I disable it and maybe figure out how to bypass the password requirement? She doesn't have access to sudo and I don't want her to access anything that would require a password anyway. That way I could have her just click her user icon and press enter to log in, which is a good middle ground.
Here's the output of inxi -Faz: System: Kernel: 5.11.0-40-generic x86_64 bits: 64 compiler: N/A parameter - Pastebin.com
If it also helps, the only things I did before experiencing this bug were the following: installed the Minecraft flatpak, then went and configured League of Legends on my user account using the Reddit /r/leagueoflinux guide and then set up my sister's account. Maybe Wine is at fault? Or the packages that I installed in Lutris' installing drivers guide?
Ubuntu 20.04's release notes mention a bug with autologin on NVIDIA graphics, but I only have Intel graphics on this PC. I also read on an Ubuntu forum that the issue might also be because I have two monitors. I haven't tried unplugging one and trying to recreate the bug. I will do so later today and come back with info.
In the meanwhile, any ideas, or recommendations?