Hi, I have installed nvidia-dkms and when I run xrandr it can detect my HDMI(externam monitro) that is connected, but it doesn’t detect my laptop monitor (it doesn’t even list it). now my laptop is blank screen my mouse can go over there, what’s the problem?
If I remove my xorg.conf file, then I can’t login in my desktop environment at all.
Please help me about configuring nvidia and intel correct, which packages should I install, which files should I remove or reconfig, and what’s an ideal installation of nvidia and intel together for 2 monitors on a laptop, with nvidia 2070.
thank you so much! UPDATE: my xrandr output: (there is no eDP-1 listed)
Screen 0: minimum 8 x 8, current 2560 x 1080, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 2560x1080+0+0 (normal left inverted right x axis y axis) 677mm x 290mm
2560x1080 60.00*+
1920x1080 60.00 59.94 50.00 29.97
1680x1050 59.95
1600x900 60.00
1280x1024 75.02 60.02
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 60.00
800x600 75.00 60.32
720x576 50.00
720x480 59.94
640x480 75.00 59.94 59.93
without nvidia, yes it’s fine but as I want to play games too, then I need nvidia
I created xorg.conf file, because after I installed nvidia, without a manual xorg.conf file, it didn’t work, and even using X or nvidia-xconfig it didn’t work.
now I removed i915.enable_psr=0 and still it doesn’t work.
Yes it’s using nvidia right now, but one of my monitors works, the other one is blank(a black screen, my mouse can goes there but nothing is there). I’m Ok to use just nvidia for both monitors, I don’t know how to do that, it seems I have to reconfig my xorg.conf file so that it can detect my laptop monitor, but I don’t know which settings should I do.
Okay? But it’s still running on Nvidia? How do you switch from Intel to Nvidia and back? Maybe the laptop monitor only runs on Intel when switched to Nvidia because when it’s on nvidia it outputs to the other monitor whether it’s plugged in or not maybe? I don’t know how the hardware works on this laptop.
I don’t know either I just read some arch wiki about xorg.conf and tried to make one, I don’t switch from intel to nvidia or vice versa
at the moment I just want to use 2 monitors or turn off the laptop monitor (becuase it’s turned on with a black screen).
is there a way to use just nvidia for both laptop and HDMI monitor? should I reconfig xorg for such aim? if yes how?
I changed the xorg.conf file, in section “ServerLayout”, I commented this line: #Screen 1 "laptop" RightOf "lg" and now my laptop monitor turned off(instead of being black screen), but still xrandr can’t detect my laptop monitor at all.
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 Hybrid and enable dGPU only in 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
Yes you right, sorry for delay
I just edited xorg.conf file and changed the
Option "Monitor-eDP0"
# to
Option "Monitor-eDP1"
and after a restart, now it can detect my laptop monitor as well, (I just realized that). now everything is working so well.
I can share my final xorg.conf file for others, maybe it helps as an example: