@cscs, I did try to switch to default hybrid setup. This is what I did:
optimus-manager --cleanup
- sudo systemctl disable optimus-manager.service
- removed optimus-manager
- sudo mhwd -r pci video-hybrid-intel-nvidia-prime
- sudo mhwd -a pci nonfree 0300 --force
- reboot
System boots normally, but on Wayland I still donāt get multimonitor, so the same as before. I checked the files and I got:
/etc/X11/mhwd.d/nvidia.conf
Which is basically empty:
##
## Generated by mhwd - Manjaro Hardware Detection
##
and I also got the symlink:
/etc/X11/xorg.conf.d/90-mhwd.conf
which points to the previous file
I didnāt have the last time, but the result was the same.
So I started experimenting. I restored my backup:
/etc/X11/nvidia-xorg.conf
rebooted and everything seems to be OK, for now.
So I restored:
/etc/X11/xorg.conf.d/20-intel.conf
rebooted andā¦ graphical system didnāt start, just as I tried before.
I went to tty2, logged in to my user and tried to āsudo suā and it couldnāt accept my root password. What? The last time I tried it (few days ago), this was all OK. Besides, I just changed the file names with root password, rebooted and now all of a sudden root password stopped working? What the heck?
So I rebooted, went to tty2 andā¦ couldnāt even log in to my user as it also didnāt accept the passwordā¦ No, it wasnāt CAPS LOCK or NUM PAD.
I booted Manjaro life, chrooted, but there was some issue (I used older Manjaro version, so maybe that was it), but could disable 20-intel.conf on the system (the last change that broke graphics) from rooted Manjaro liveā¦
Iām back on the native system and donāt know what to do.
Ah, by the way, the conf files that seemingly disappeared, they are there after all. They were just hidden ;). I forgot to check. I have no idea why some .bak files become hidden in one places and not others, while the file is without dot at the beginning. Still, it seems like coming back from optimus-manager is not so easy, because old configs are not working well and I probably miss something.
The issue with not being able to access admin or my user is a scary thing - I canāt revert changes, I canāt restore backup and only live system can help. However, thatās another issue.
Basically, I canāt access nvidia (prime-run is not working) and Wayland has no multimonitor support, which is evidently tied to the faulty hybrid setup. Because all was working on optimus-manager, I assume, the issue is with graphical configs.
I will check arch wiki, but if you have some suggestions, let me know. I can restore my backup, but that brings me nowhere, so Iām still experimenting.
EDIT: I figured out, that if the optimus-manager config was working for me, I just compare it to the old /etc/X11/nvidia-xorg.conf. There were many, many changes, so I just changed it to what optimus-manager had. Rebooted into X11 and prime-run seems to be working, multimonitor as well.
Wayland is still not having multimonitor or prime-run. However, becasuse all those configs are in /etc/X11, there have to be for X11 only and Wayland needs configs in different place. Right? Optimus-manager was probably symlinking it to that place and that is why Wayland worked correctly and that is what I am missing now.
EDIT 2: I found out, that Wayland is not working via configs as X11, but directly using kernel mode settings, which is way harder to understand.
Also, I know why setting 20-intel.config was problematic. It simply pointed to intel driver, which I donāt have since 3 years, I use modesetting, which is default for hybrid graphics. So basically, in hybrid intel is running everything and this config was forcing none existent driver for intel, hence graphics was a no-show.