Super weird behaviour with xorg.conf in ubuntu 18.04












0















I'm currently using ubuntu 18.04. I want to switch between two configuration by changing my xorg.conf file and then logging off and back in to apply the changes.



My mind is constantly being blown by what's happening, and I could really use some help.



I have a MSI GE63VR 7RF Raider with a GTX 1070 with nvidia driver 415 installed. I want to use the screen of my laptop and a second screen which is connected to the hdmi port (located on the 1070).



My starting point is the following :




  • No xorg.conf file. When i do xrandr, my hdmi port is not detected. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Prime Display: eDP-1-1


Then :




  • I do nvidia-xconfig which generates an xorg.conf file.


  • I log out then log back in.


  • My second monitor is now on with my desktop. However, my initial monitor is stuck on a purple ish screen (same color as the login thing).


  • When i do xrandr, my hdmi port is now detected, but not my eDP-1-1. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Asus VG23A (My 2nd monitor) but not Prime Display: eDP-1-1



Then :




  • I delete my xorg.conf


  • I log out then log back in.


  • Everything is working perfectly (Both screens are on)


  • When i do xrandr, my hdmi port is now detected, as well as my eDP-1-1. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Asus VG23A (My 2nd monitor) or Prime Display: eDP-1-1



But, if I go in my nvidia X server settings, modify the Layout of my screens, and Save to X configuration file, log out, log back in, I'm back to having only my second monitor and not the monitor of my laptop.



My issue is I have to switch between a configuration in which my second monitor is not used to this configuration, and at the moment I need to log out/ log back in twice and to do some weird stuff on my xorg.conf file. I would appreciate any help to understand what's going on there.










share|improve this question



























    0















    I'm currently using ubuntu 18.04. I want to switch between two configuration by changing my xorg.conf file and then logging off and back in to apply the changes.



    My mind is constantly being blown by what's happening, and I could really use some help.



    I have a MSI GE63VR 7RF Raider with a GTX 1070 with nvidia driver 415 installed. I want to use the screen of my laptop and a second screen which is connected to the hdmi port (located on the 1070).



    My starting point is the following :




    • No xorg.conf file. When i do xrandr, my hdmi port is not detected. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Prime Display: eDP-1-1


    Then :




    • I do nvidia-xconfig which generates an xorg.conf file.


    • I log out then log back in.


    • My second monitor is now on with my desktop. However, my initial monitor is stuck on a purple ish screen (same color as the login thing).


    • When i do xrandr, my hdmi port is now detected, but not my eDP-1-1. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Asus VG23A (My 2nd monitor) but not Prime Display: eDP-1-1



    Then :




    • I delete my xorg.conf


    • I log out then log back in.


    • Everything is working perfectly (Both screens are on)


    • When i do xrandr, my hdmi port is now detected, as well as my eDP-1-1. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Asus VG23A (My 2nd monitor) or Prime Display: eDP-1-1



    But, if I go in my nvidia X server settings, modify the Layout of my screens, and Save to X configuration file, log out, log back in, I'm back to having only my second monitor and not the monitor of my laptop.



    My issue is I have to switch between a configuration in which my second monitor is not used to this configuration, and at the moment I need to log out/ log back in twice and to do some weird stuff on my xorg.conf file. I would appreciate any help to understand what's going on there.










    share|improve this question

























      0












      0








      0








      I'm currently using ubuntu 18.04. I want to switch between two configuration by changing my xorg.conf file and then logging off and back in to apply the changes.



      My mind is constantly being blown by what's happening, and I could really use some help.



      I have a MSI GE63VR 7RF Raider with a GTX 1070 with nvidia driver 415 installed. I want to use the screen of my laptop and a second screen which is connected to the hdmi port (located on the 1070).



      My starting point is the following :




      • No xorg.conf file. When i do xrandr, my hdmi port is not detected. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Prime Display: eDP-1-1


      Then :




      • I do nvidia-xconfig which generates an xorg.conf file.


      • I log out then log back in.


      • My second monitor is now on with my desktop. However, my initial monitor is stuck on a purple ish screen (same color as the login thing).


      • When i do xrandr, my hdmi port is now detected, but not my eDP-1-1. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Asus VG23A (My 2nd monitor) but not Prime Display: eDP-1-1



      Then :




      • I delete my xorg.conf


      • I log out then log back in.


      • Everything is working perfectly (Both screens are on)


      • When i do xrandr, my hdmi port is now detected, as well as my eDP-1-1. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Asus VG23A (My 2nd monitor) or Prime Display: eDP-1-1



      But, if I go in my nvidia X server settings, modify the Layout of my screens, and Save to X configuration file, log out, log back in, I'm back to having only my second monitor and not the monitor of my laptop.



      My issue is I have to switch between a configuration in which my second monitor is not used to this configuration, and at the moment I need to log out/ log back in twice and to do some weird stuff on my xorg.conf file. I would appreciate any help to understand what's going on there.










      share|improve this question














      I'm currently using ubuntu 18.04. I want to switch between two configuration by changing my xorg.conf file and then logging off and back in to apply the changes.



      My mind is constantly being blown by what's happening, and I could really use some help.



      I have a MSI GE63VR 7RF Raider with a GTX 1070 with nvidia driver 415 installed. I want to use the screen of my laptop and a second screen which is connected to the hdmi port (located on the 1070).



      My starting point is the following :




      • No xorg.conf file. When i do xrandr, my hdmi port is not detected. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Prime Display: eDP-1-1


      Then :




      • I do nvidia-xconfig which generates an xorg.conf file.


      • I log out then log back in.


      • My second monitor is now on with my desktop. However, my initial monitor is stuck on a purple ish screen (same color as the login thing).


      • When i do xrandr, my hdmi port is now detected, but not my eDP-1-1. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Asus VG23A (My 2nd monitor) but not Prime Display: eDP-1-1



      Then :




      • I delete my xorg.conf


      • I log out then log back in.


      • Everything is working perfectly (Both screens are on)


      • When i do xrandr, my hdmi port is now detected, as well as my eDP-1-1. When going inside nvidia X server settings, in X server Display Configuration, i can select X screen 0 or Asus VG23A (My 2nd monitor) or Prime Display: eDP-1-1



      But, if I go in my nvidia X server settings, modify the Layout of my screens, and Save to X configuration file, log out, log back in, I'm back to having only my second monitor and not the monitor of my laptop.



      My issue is I have to switch between a configuration in which my second monitor is not used to this configuration, and at the moment I need to log out/ log back in twice and to do some weird stuff on my xorg.conf file. I would appreciate any help to understand what's going on there.







      18.04 nvidia xorg multiple-monitors hdmi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      Statistic DeanStatistic Dean

      614




      614






















          0






          active

          oldest

          votes











          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%2f1123916%2fsuper-weird-behaviour-with-xorg-conf-in-ubuntu-18-04%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f1123916%2fsuper-weird-behaviour-with-xorg-conf-in-ubuntu-18-04%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

          GameSpot

          connect to host localhost port 22: Connection refused

          Getting a Wifi WPA2 wifi connection