Black screen randomly after login

Hi,

For whatever reason, today it started happening and it did randomly more than once.

Blackscreen after entering the password, to login.

It happened in two different kind of scenarios.

One was I tried to log out and log back in, to updated env variables.

Another was straight after a restart.

Both were fixable because I installed this OS on a laptop, so I pressed the power button, to enter suspend or lock mode and after pressing a key to go back to the login screen and trying again, the black screen didnt happen.

After doing a system update which had kernel update and also disabled some auto start script that came with the dotfiles setup. I tried to trigger the issue and didnt happen again, if it does, I might reopen the issue.