Xrandr not working with Nvidia












1















I have a problem. I have a lapop with an Nvidia card and an Intel one



While I am using the Nvidia one (using PRIME profiles) I cannot change the display resolution using xrandr in terminal. All it does is that the display goes black for a second then back to the native resolution.
However, when using the Intel card it works without an issue.



This is an issue for me because I play a lot of old games using Wine and most of them have very low resolutions and so, when using Nvidia, they are displayed on the top-left part of the screen, instead of being stretched to fill the whole screen like they do when using the Intel card (because the screen resolution will change to that of the game)



I also noticed that changing the resolution through System Settings -> Display works on both cards but it dosen't help much...



If I could get xrandr to change the resolution on the Nvidia card then those games will work or if not then I could make a script to do it when the game launches and change back to the native one when it's closed.



My OS is Ubuntu 14.04 x64 and I use the up-to-date Nvidia proprietary stable drivers. It's a laptop if that matters



EDIT: I just noticed that if I connect an external monitor (VGA1) I can change the resolution just fine on either monitor... and the game now runs fullscreen... but as soon as I disconnect it the issue comes back :(










share|improve this question

























  • xrandr does not work with the nvidia driver, you have to use nvidia-settings.

    – Panther
    Sep 1 '14 at 14:10











  • Ok. How can I change the resolution in terminal using nvidia-settings?

    – Horațiu Mlendea
    Sep 1 '14 at 14:14











  • You can't, you need a graphical interface. Why would you install the nvidia driver if you do not use a graphical interface?

    – Panther
    Sep 1 '14 at 14:27











  • I do use a graphical interface. I needed a terminal command in order to make a script that will change the resolution to that of the game and back when it's closed.

    – Horațiu Mlendea
    Sep 1 '14 at 14:29











  • I do not know how else to tell you the feature you want is not possible with the nvidia driver from the command line. As it is a closed source driver i suggest you file a bug report or feature request with nvidia.

    – Panther
    Sep 1 '14 at 14:41
















1















I have a problem. I have a lapop with an Nvidia card and an Intel one



While I am using the Nvidia one (using PRIME profiles) I cannot change the display resolution using xrandr in terminal. All it does is that the display goes black for a second then back to the native resolution.
However, when using the Intel card it works without an issue.



This is an issue for me because I play a lot of old games using Wine and most of them have very low resolutions and so, when using Nvidia, they are displayed on the top-left part of the screen, instead of being stretched to fill the whole screen like they do when using the Intel card (because the screen resolution will change to that of the game)



I also noticed that changing the resolution through System Settings -> Display works on both cards but it dosen't help much...



If I could get xrandr to change the resolution on the Nvidia card then those games will work or if not then I could make a script to do it when the game launches and change back to the native one when it's closed.



My OS is Ubuntu 14.04 x64 and I use the up-to-date Nvidia proprietary stable drivers. It's a laptop if that matters



EDIT: I just noticed that if I connect an external monitor (VGA1) I can change the resolution just fine on either monitor... and the game now runs fullscreen... but as soon as I disconnect it the issue comes back :(










share|improve this question

























  • xrandr does not work with the nvidia driver, you have to use nvidia-settings.

    – Panther
    Sep 1 '14 at 14:10











  • Ok. How can I change the resolution in terminal using nvidia-settings?

    – Horațiu Mlendea
    Sep 1 '14 at 14:14











  • You can't, you need a graphical interface. Why would you install the nvidia driver if you do not use a graphical interface?

    – Panther
    Sep 1 '14 at 14:27











  • I do use a graphical interface. I needed a terminal command in order to make a script that will change the resolution to that of the game and back when it's closed.

    – Horațiu Mlendea
    Sep 1 '14 at 14:29











  • I do not know how else to tell you the feature you want is not possible with the nvidia driver from the command line. As it is a closed source driver i suggest you file a bug report or feature request with nvidia.

    – Panther
    Sep 1 '14 at 14:41














1












1








1


1






I have a problem. I have a lapop with an Nvidia card and an Intel one



While I am using the Nvidia one (using PRIME profiles) I cannot change the display resolution using xrandr in terminal. All it does is that the display goes black for a second then back to the native resolution.
However, when using the Intel card it works without an issue.



This is an issue for me because I play a lot of old games using Wine and most of them have very low resolutions and so, when using Nvidia, they are displayed on the top-left part of the screen, instead of being stretched to fill the whole screen like they do when using the Intel card (because the screen resolution will change to that of the game)



I also noticed that changing the resolution through System Settings -> Display works on both cards but it dosen't help much...



If I could get xrandr to change the resolution on the Nvidia card then those games will work or if not then I could make a script to do it when the game launches and change back to the native one when it's closed.



My OS is Ubuntu 14.04 x64 and I use the up-to-date Nvidia proprietary stable drivers. It's a laptop if that matters



EDIT: I just noticed that if I connect an external monitor (VGA1) I can change the resolution just fine on either monitor... and the game now runs fullscreen... but as soon as I disconnect it the issue comes back :(










share|improve this question
















I have a problem. I have a lapop with an Nvidia card and an Intel one



While I am using the Nvidia one (using PRIME profiles) I cannot change the display resolution using xrandr in terminal. All it does is that the display goes black for a second then back to the native resolution.
However, when using the Intel card it works without an issue.



This is an issue for me because I play a lot of old games using Wine and most of them have very low resolutions and so, when using Nvidia, they are displayed on the top-left part of the screen, instead of being stretched to fill the whole screen like they do when using the Intel card (because the screen resolution will change to that of the game)



I also noticed that changing the resolution through System Settings -> Display works on both cards but it dosen't help much...



If I could get xrandr to change the resolution on the Nvidia card then those games will work or if not then I could make a script to do it when the game launches and change back to the native one when it's closed.



My OS is Ubuntu 14.04 x64 and I use the up-to-date Nvidia proprietary stable drivers. It's a laptop if that matters



EDIT: I just noticed that if I connect an external monitor (VGA1) I can change the resolution just fine on either monitor... and the game now runs fullscreen... but as soon as I disconnect it the issue comes back :(







14.04 nvidia resolution xrandr






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 1 '14 at 13:55







Horațiu Mlendea

















asked Sep 1 '14 at 13:48









Horațiu MlendeaHorațiu Mlendea

61212




61212













  • xrandr does not work with the nvidia driver, you have to use nvidia-settings.

    – Panther
    Sep 1 '14 at 14:10











  • Ok. How can I change the resolution in terminal using nvidia-settings?

    – Horațiu Mlendea
    Sep 1 '14 at 14:14











  • You can't, you need a graphical interface. Why would you install the nvidia driver if you do not use a graphical interface?

    – Panther
    Sep 1 '14 at 14:27











  • I do use a graphical interface. I needed a terminal command in order to make a script that will change the resolution to that of the game and back when it's closed.

    – Horațiu Mlendea
    Sep 1 '14 at 14:29











  • I do not know how else to tell you the feature you want is not possible with the nvidia driver from the command line. As it is a closed source driver i suggest you file a bug report or feature request with nvidia.

    – Panther
    Sep 1 '14 at 14:41



















  • xrandr does not work with the nvidia driver, you have to use nvidia-settings.

    – Panther
    Sep 1 '14 at 14:10











  • Ok. How can I change the resolution in terminal using nvidia-settings?

    – Horațiu Mlendea
    Sep 1 '14 at 14:14











  • You can't, you need a graphical interface. Why would you install the nvidia driver if you do not use a graphical interface?

    – Panther
    Sep 1 '14 at 14:27











  • I do use a graphical interface. I needed a terminal command in order to make a script that will change the resolution to that of the game and back when it's closed.

    – Horațiu Mlendea
    Sep 1 '14 at 14:29











  • I do not know how else to tell you the feature you want is not possible with the nvidia driver from the command line. As it is a closed source driver i suggest you file a bug report or feature request with nvidia.

    – Panther
    Sep 1 '14 at 14:41

















xrandr does not work with the nvidia driver, you have to use nvidia-settings.

– Panther
Sep 1 '14 at 14:10





xrandr does not work with the nvidia driver, you have to use nvidia-settings.

– Panther
Sep 1 '14 at 14:10













Ok. How can I change the resolution in terminal using nvidia-settings?

– Horațiu Mlendea
Sep 1 '14 at 14:14





Ok. How can I change the resolution in terminal using nvidia-settings?

– Horațiu Mlendea
Sep 1 '14 at 14:14













You can't, you need a graphical interface. Why would you install the nvidia driver if you do not use a graphical interface?

– Panther
Sep 1 '14 at 14:27





You can't, you need a graphical interface. Why would you install the nvidia driver if you do not use a graphical interface?

– Panther
Sep 1 '14 at 14:27













I do use a graphical interface. I needed a terminal command in order to make a script that will change the resolution to that of the game and back when it's closed.

– Horațiu Mlendea
Sep 1 '14 at 14:29





I do use a graphical interface. I needed a terminal command in order to make a script that will change the resolution to that of the game and back when it's closed.

– Horațiu Mlendea
Sep 1 '14 at 14:29













I do not know how else to tell you the feature you want is not possible with the nvidia driver from the command line. As it is a closed source driver i suggest you file a bug report or feature request with nvidia.

– Panther
Sep 1 '14 at 14:41





I do not know how else to tell you the feature you want is not possible with the nvidia driver from the command line. As it is a closed source driver i suggest you file a bug report or feature request with nvidia.

– Panther
Sep 1 '14 at 14:41










1 Answer
1






active

oldest

votes


















0














I spent a lot of time with the same trouble, now I resolve it by using --crtc parameter when calling xrandr, i.e.:



xrandr --output LVDS1 --mode 800x600 --crtc 0


Also I reccomend to assign this commands to CCSM commands and bind to some hotkeys, it's very useful.



UPD: For me it's working only after this command:



xrandr -s 0


But this makes Diablo crashes on screen resolution change )-:






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f518757%2fxrandr-not-working-with-nvidia%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I spent a lot of time with the same trouble, now I resolve it by using --crtc parameter when calling xrandr, i.e.:



    xrandr --output LVDS1 --mode 800x600 --crtc 0


    Also I reccomend to assign this commands to CCSM commands and bind to some hotkeys, it's very useful.



    UPD: For me it's working only after this command:



    xrandr -s 0


    But this makes Diablo crashes on screen resolution change )-:






    share|improve this answer






























      0














      I spent a lot of time with the same trouble, now I resolve it by using --crtc parameter when calling xrandr, i.e.:



      xrandr --output LVDS1 --mode 800x600 --crtc 0


      Also I reccomend to assign this commands to CCSM commands and bind to some hotkeys, it's very useful.



      UPD: For me it's working only after this command:



      xrandr -s 0


      But this makes Diablo crashes on screen resolution change )-:






      share|improve this answer




























        0












        0








        0







        I spent a lot of time with the same trouble, now I resolve it by using --crtc parameter when calling xrandr, i.e.:



        xrandr --output LVDS1 --mode 800x600 --crtc 0


        Also I reccomend to assign this commands to CCSM commands and bind to some hotkeys, it's very useful.



        UPD: For me it's working only after this command:



        xrandr -s 0


        But this makes Diablo crashes on screen resolution change )-:






        share|improve this answer















        I spent a lot of time with the same trouble, now I resolve it by using --crtc parameter when calling xrandr, i.e.:



        xrandr --output LVDS1 --mode 800x600 --crtc 0


        Also I reccomend to assign this commands to CCSM commands and bind to some hotkeys, it's very useful.



        UPD: For me it's working only after this command:



        xrandr -s 0


        But this makes Diablo crashes on screen resolution change )-:







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 24 '14 at 6:11

























        answered Nov 24 '14 at 5:07









        iloveYouiloveYou

        11




        11






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f518757%2fxrandr-not-working-with-nvidia%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Questions related to Moebius Transform of Characteristic Function of the Primes

            List of scandals in India

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?