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

Clash 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.
drivers gentoo xrandr optimus
add a comment |Â
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.
drivers gentoo xrandr optimus
Have you already started the x server when you tryxrandrcommands? It is quite normal thatxrandrreturnsCan't open displaybefore that.
â ploth
Jul 13 at 8:36
add a comment |Â
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.
drivers gentoo xrandr optimus
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.
drivers gentoo xrandr optimus
asked Dec 25 '17 at 18:04
drunk_foxx
12
12
Have you already started the x server when you tryxrandrcommands? It is quite normal thatxrandrreturnsCan't open displaybefore that.
â ploth
Jul 13 at 8:36
add a comment |Â
Have you already started the x server when you tryxrandrcommands? It is quite normal thatxrandrreturnsCan't open displaybefore 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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Have you already started the x server when you try
xrandrcommands? It is quite normal thatxrandrreturnsCan't open displaybefore that.â ploth
Jul 13 at 8:36