Disclaimer: It’s been a long time since I stopped playing with xorg files, and I don’t intend to start RTFMing on them again. Feel free to do it. It adds to your knowledge!
Having little or no experience with xorg conf files, you should be lucky to not fail in such complicated (for Xorg) setup. Copy/paste helps but not always gives the expected result.
In short, your custom xorg file is the one that creates the original issue (laptop monitor not detected). On this, if you are lucky, you may get your monitor if you change the name used in the conf file:
Option "Monitor-eDP0"
# to
Option "Monitor-eDP1"
You can try one of these, in order of my preference for best case:
- Disable
Hybridand enabledGPU onlyin BIOS, if a similar setup is possible. - Install and use optimus-switch or optimus-manager and setup to only use nvidia (with their relevant instructions)
- IIRC Archwiki has instructions how to disable a gpu completely, although it’s a rough action and I don’t recommend it
Xorg and/or nvidia (xconfig) should not normally have any conf file at all at /etc/X11/xorg.conf.d/*.conf. Everything is designed/configured from upstream Arch to be automatic, which is successful in the majority of HW/SW cases.
You should delete /etc/X11/xorg.conf and never use it again. It is a fallback and overrides all other config, so when it has a wrong or extra setting, it breaks Xorg in an ugly way. Use the path mentioned above.
I suggest you start clean.
Delete(backup) your conf file and reboot.
Get into BIOS and try to make it dGPU only.
In whatever option is chosen, you should have at least one monitor to work with.
If it fails to light up the monitor, post the new Xorg log, so we can see what is wrong.
Before starting, post
inxi -SMGaz
pacman -Qs nvidia
ls /etc/modules-load.d/ 2>/dev/null
ls /etc/modprobe.d/ 2>/dev/null
systemctl status display-manager
Good luck! ![]()