EDIT: I kinda solved it by installing Wayland (with Nvidia card, Ouch!) to replace Xorg. Not sure if this is gonna last though. Perhaps Manjaro is the one I'm gonna throw out FIRST if anything happens from now on.
What should be the first line of defense? Timeshift?
This happened after I installed AUR package masterpdfeditor and 2 applications from github (some hashing algorithm programs, I think they were "Dilithium" and "Latice-based-cryptography-main", one of them was provided by NIST.)
If using GUI: I login, black screen for few seconds, then back at login screen.
If going to ctrl+alt+f2, login successful, then startx, see picture provided (higher quality).
I tried adding a new user, but result is the same.
I have a live usb to do the Timeshift. (I can also chroot if necessary... But I'm not extremely professional)
ah classic mistake of installing AUR packages on manjaro. been there done that. check your logs and search for errors, it probably overwrote/deleted some xorg config that you must either manually add back or regenerate. sorry i can't help further im a linux noobie but that was my issue when this happened to me.
Why would a package called "masterpdfcreator" overwrite the x conf? I don't think the AUR packages have anything to do with the problem.
ah sorry it's more accurate to say it can "break" your xorg config cause that was my case. looking at this package it has libgl as one of its dependencies. as i have said i'm not familiar with how exactly it works but it can probably mess with your graphics drivers.
Manjaro is not up-to-date with Arch repos. Using AUR in Manjaro is a huge mistake.
If you wanna use AUR, I suggest you to go all in with Arch itself
However I still recommend you to use AUR as less as possible, cause too many AUR can mess even with Arch
I'm using 75 AUR packages without any issues and I've been using Manjaro for 4 years. But I'm really worried now that you've said that. 😬 When should I begin to expect AUR trouble? Does it happen on the 5th year? What if I reinstall, do I get another 4 years?
Good for you. Have you heard about anecdotal evidence already?
I'm hearing anecdotal evidence all the time, from people who avoid using AUR packages. I'm a person who uses them, and uses a lot of them, and has been doing it for extended periods of time. That's not anecdotal, it's concrete proof.
Don't use startx to start X, use the display manager: systemctl restart lightdm
It said I not found or something. I'll try again tomorrow for full error message
Have you checked the log files under /var/log/xorg.0....log?
Also see https://wiki.archlinux.org/title/Xorg#Troubleshooting
If you want to get your graphical session back quickly, maybe try setting up GNOME with wayland (https://wiki.archlinux.org/title/GNOME#Wayland_sessions)
You can also check /var/log/pacman.log for the packages you installed, then pacman -Ql the packages to list what files they might have changed
https://forum.endeavouros.com/t/graphical-session-doesnt-start-first-time-invalid-mit-magic-cookie-1/5947/8
Check
/etc/hostname
This is based on the image, the best you can do it check the logs like other comments said, it's better if the error is identified through the log.
It's not about the host name. They clearly have invalid mappings in their ~/.Xmodmap (if you'd care to look at the picture).
My comment is based on
MIT-MAGIC-COOKIE-1
from the log in the picture. Look at it again and there's alsoSocketCreateListener() failed
. So OP may check this as wellhttps://wiki.archlinux.org/title/xorg#SocketCreateListener_error
Ok so clearly none of the people commenting here have even bothered to look at your picture or have no idea what you are doing so feel free to ignore them.
Question 1: what's in your .xinitrc?
Question 2: why are you starting X this way? It's not for beginners, and from your question it doesn't sound like you're an advanced user.
so I kinda solved it by switching to Wayland. Not sure it lasts since im on proprietary nvidia drivers
Question 1: what’s in your .xinitrc?
https://www.dropbox.com/scl/fo/ei9hajgzugfs4qnmg9r1f/h?rlkey=bnedoohvpuilvuzqvgmhi7pda&e=2&dl=0
It also contains the logs people mentioned I should check. The
Xorg.0*
files are from the day of the crash, and 2 days later, when I booted again, the other files were created:Xorg.1*
Question 2: why are you starting X this way?
I was under the impression that
startx
would just start the GUI regardless what display manager I use (lightdm? not sure), or display server (xorg, x11 in my case) I have installed.EDIT: it took me wayyy too long to copy these files. Apparently
ls -lh
does not show hidden files ... I thought my whole laptop went nuts.it doesn’t sound like you’re an advanced user.
You're god damn right
Master PDF Editor is on Flathub. If anything can be installed as a flatpak, I would try that first. If a program fits in a sandbox, consuming the files that I give it and drawing in its own little window, Flatpak has that down cold. If a program wants the ability to stick its hands into the guts of other programs and system services and shared libraries - that should happen at the distro level or not at all.
If nothing else, run weston. It's not an amazing wayland server, but it's something.