@cscs, I did try to switch to default hybrid setup. This is what I did:
- 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
System boots normally, but on Wayland I still don’t get multimonitor, so the same as before. I checked the files and I got:
Which is basically empty:
## Generated by mhwd - Manjaro Hardware Detection
and I also got the symlink:
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:
rebooted and everything seems to be OK, for now.
So I restored:
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.