Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xrandr can't open displays when trying Nvidia Optimus setup
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
djhyland
n00b
n00b


Joined: 26 Nov 2008
Posts: 67
Location: St. Paul MN

PostPosted: Mon Dec 31, 2018 2:07 am    Post subject: Xrandr can't open displays when trying Nvidia Optimus setup Reply with quote

I recently purchased a new laptop (an Acer Nitro 5), and it came with Nvidia Optimus graphics (a GeForce GTX 1050 Mobile paired with an Intel UHD Graphics 630 Mobile). While I've succeeded in setting it up using the nouveau driver, I'd like to get the graphics working with the closed-source nvidia-drivers driver. I've followed the procedure in the Gentoo wiki to set it up, but I haven't had any luck yet. I think I'm close, but I'm still getting a black screen.

In going through the logs, I think that I get X using the nvidia-drivers correctly: there's no errors in /var/log/Xorg.0.log, and in fact, it says that the drivers start correctly. While figuring out my xorg.conf, I gradually eliminated the errors in Xorg.0.log, so I think I have it set up correctly. What I have noticed, however, is that my xrandr commands don't seem to work. I'm using lightdm as my display manager, and I've put the arguments in as recommended. Since I'm still getting a black screen, though, I tried running things manually (by removing xdm from the default runlevel, then entering the requisite xrandr commands and starting X manually) and noticed that all of my xrandr commands return the status "Can't open display". For example:

Code:
araucaria ~ # xrandr --listproviders
Can't open display


I think that this is my problem, but I don't know how to fix it. Can anybody give me a hand?

Thanks in advance!

lspci info: Pastebin
/etc/make.conf: Pastebin
/etc/X11/xorg.conf: Pastebin
display_setup.sh (as called by "display-setup-script=/etc/lightdm/display_setup.sh" in /etc/lightdm/lightdm.conf): Pastebin
/var/log/Xorg.0.log: Pastebin
x11-drivers/nvidia-drivers-415.25
x11-drivers/xf86-video-intel-2.99.917_p20180214-r1
x11-base/xorg-server-1.20.3
sys-kernel/gentoo-sources-4.19.13
Back to top
View user's profile Send private message
hhfeuer
Apprentice
Apprentice


Joined: 28 Jul 2005
Posts: 185

PostPosted: Wed Jan 02, 2019 7:52 pm    Post subject: Reply with quote

Everything looks alright, just the display_setup.sh isn't called. Check that you properly set up lightdm config.
https://wiki.archlinux.org/index.php/NVIDIA_Optimus#Display_Managers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum