Xrandr can't open display error on Nvidia/Optimus laptop

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm trying to configure Nvidia/Optimus now on my gentoo system and I'm facing some problems. After configuring the kernel and /etc/X11/xorg.conf.d/10-nvidia.conf and /etc/X11/xorg.conf.d/20-nvidia.conf files (just like they are on the gentoo wiki), I moved on to working with xrandr. However, any xrandr command fails with the output "can't open display", and I don't know why. Then I check the nvidia guide once again and suppose that I don't have the appropriate driver interfaces present:



drm_gem_prime_export
drm_gem_prime_import
gem_prime_pin
gem_prime_get_sg_table
gem_prime_import_sg_table
gem_prime_vmap
gem_prime_vunmap


However, I have literally no idea, what these driver interfaces are, how they work and where can I check for them :(
If they are the reason of xrandr not working, what shall I do? And even if they are not, how do they work?
I'm also providing information about my PCI devices, including both of my videocards.
Thanks for help in advance.







share|improve this question




















  • Have you already started the x server when you try xrandr commands? It is quite normal that xrandr returns Can't open display before that.
    – ploth
    Jul 13 at 8:36














up vote
0
down vote

favorite












I'm trying to configure Nvidia/Optimus now on my gentoo system and I'm facing some problems. After configuring the kernel and /etc/X11/xorg.conf.d/10-nvidia.conf and /etc/X11/xorg.conf.d/20-nvidia.conf files (just like they are on the gentoo wiki), I moved on to working with xrandr. However, any xrandr command fails with the output "can't open display", and I don't know why. Then I check the nvidia guide once again and suppose that I don't have the appropriate driver interfaces present:



drm_gem_prime_export
drm_gem_prime_import
gem_prime_pin
gem_prime_get_sg_table
gem_prime_import_sg_table
gem_prime_vmap
gem_prime_vunmap


However, I have literally no idea, what these driver interfaces are, how they work and where can I check for them :(
If they are the reason of xrandr not working, what shall I do? And even if they are not, how do they work?
I'm also providing information about my PCI devices, including both of my videocards.
Thanks for help in advance.







share|improve this question




















  • Have you already started the x server when you try xrandr commands? It is quite normal that xrandr returns Can't open display before that.
    – ploth
    Jul 13 at 8:36












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to configure Nvidia/Optimus now on my gentoo system and I'm facing some problems. After configuring the kernel and /etc/X11/xorg.conf.d/10-nvidia.conf and /etc/X11/xorg.conf.d/20-nvidia.conf files (just like they are on the gentoo wiki), I moved on to working with xrandr. However, any xrandr command fails with the output "can't open display", and I don't know why. Then I check the nvidia guide once again and suppose that I don't have the appropriate driver interfaces present:



drm_gem_prime_export
drm_gem_prime_import
gem_prime_pin
gem_prime_get_sg_table
gem_prime_import_sg_table
gem_prime_vmap
gem_prime_vunmap


However, I have literally no idea, what these driver interfaces are, how they work and where can I check for them :(
If they are the reason of xrandr not working, what shall I do? And even if they are not, how do they work?
I'm also providing information about my PCI devices, including both of my videocards.
Thanks for help in advance.







share|improve this question












I'm trying to configure Nvidia/Optimus now on my gentoo system and I'm facing some problems. After configuring the kernel and /etc/X11/xorg.conf.d/10-nvidia.conf and /etc/X11/xorg.conf.d/20-nvidia.conf files (just like they are on the gentoo wiki), I moved on to working with xrandr. However, any xrandr command fails with the output "can't open display", and I don't know why. Then I check the nvidia guide once again and suppose that I don't have the appropriate driver interfaces present:



drm_gem_prime_export
drm_gem_prime_import
gem_prime_pin
gem_prime_get_sg_table
gem_prime_import_sg_table
gem_prime_vmap
gem_prime_vunmap


However, I have literally no idea, what these driver interfaces are, how they work and where can I check for them :(
If they are the reason of xrandr not working, what shall I do? And even if they are not, how do they work?
I'm also providing information about my PCI devices, including both of my videocards.
Thanks for help in advance.









share|improve this question











share|improve this question




share|improve this question










asked Dec 25 '17 at 18:04









drunk_foxx

12




12











  • Have you already started the x server when you try xrandr commands? It is quite normal that xrandr returns Can't open display before that.
    – ploth
    Jul 13 at 8:36
















  • Have you already started the x server when you try xrandr commands? It is quite normal that xrandr returns Can't open display before that.
    – ploth
    Jul 13 at 8:36















Have you already started the x server when you try xrandr commands? It is quite normal that xrandr returns Can't open display before that.
– ploth
Jul 13 at 8:36




Have you already started the x server when you try xrandr commands? It is quite normal that xrandr returns Can't open display before that.
– ploth
Jul 13 at 8:36















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412995%2fxrandr-cant-open-display-error-on-nvidia-optimus-laptop%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412995%2fxrandr-cant-open-display-error-on-nvidia-optimus-laptop%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)