Add VIRTUAL output to Xorg

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











up vote
6
down vote

favorite
4












I want to create a dummy, virtual output on my Xorg server on current Intel iGPU (on Ubuntu 16.04.2 HWE, with Xorg server version 1.18.4). It is the similiar to Linux Mint 18.2, which one of the xrandr output shows the following:



Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
...
eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
...
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
...


In the Linux Mint 18.2, I can turn off the built-in display (eDP1) and turn on the VIRTUAL1 display with any arbitrary mode supported by the X server, attach x11vnc to my main display and I'll get a GPU accelerated remote desktop.



But in Ubuntu 16.04.2, that's not the case. The VIRTUAL* display doesn't exist at all from xrandr. Also, FYI, xrandr's output names is a little bit different on Ubuntu 16.04.2, where every number is prefixed with a -. E.g. eDP1 in Linux Mint becomes eDP-1 in Ubuntu, HDMI1 becomes HDMI-1, and so on.



So, how to add the virtual output in Xorg/xrandr?



And how come Linux Mint 18.2 and Ubuntu 16.04.2 (which I believe uses the exact same Xorg server, since LM 18.2 is based on Ubuntu, right?) can have a very different xrandr configurations?



Using xserver-xorg-video-dummy is not an option, because the virtual output won't be accelerated by GPU.










share|improve this question

























    up vote
    6
    down vote

    favorite
    4












    I want to create a dummy, virtual output on my Xorg server on current Intel iGPU (on Ubuntu 16.04.2 HWE, with Xorg server version 1.18.4). It is the similiar to Linux Mint 18.2, which one of the xrandr output shows the following:



    Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
    ...
    eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
    ...
    VIRTUAL1 disconnected (normal left inverted right x axis y axis)
    ...


    In the Linux Mint 18.2, I can turn off the built-in display (eDP1) and turn on the VIRTUAL1 display with any arbitrary mode supported by the X server, attach x11vnc to my main display and I'll get a GPU accelerated remote desktop.



    But in Ubuntu 16.04.2, that's not the case. The VIRTUAL* display doesn't exist at all from xrandr. Also, FYI, xrandr's output names is a little bit different on Ubuntu 16.04.2, where every number is prefixed with a -. E.g. eDP1 in Linux Mint becomes eDP-1 in Ubuntu, HDMI1 becomes HDMI-1, and so on.



    So, how to add the virtual output in Xorg/xrandr?



    And how come Linux Mint 18.2 and Ubuntu 16.04.2 (which I believe uses the exact same Xorg server, since LM 18.2 is based on Ubuntu, right?) can have a very different xrandr configurations?



    Using xserver-xorg-video-dummy is not an option, because the virtual output won't be accelerated by GPU.










    share|improve this question























      up vote
      6
      down vote

      favorite
      4









      up vote
      6
      down vote

      favorite
      4






      4





      I want to create a dummy, virtual output on my Xorg server on current Intel iGPU (on Ubuntu 16.04.2 HWE, with Xorg server version 1.18.4). It is the similiar to Linux Mint 18.2, which one of the xrandr output shows the following:



      Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
      ...
      eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
      ...
      VIRTUAL1 disconnected (normal left inverted right x axis y axis)
      ...


      In the Linux Mint 18.2, I can turn off the built-in display (eDP1) and turn on the VIRTUAL1 display with any arbitrary mode supported by the X server, attach x11vnc to my main display and I'll get a GPU accelerated remote desktop.



      But in Ubuntu 16.04.2, that's not the case. The VIRTUAL* display doesn't exist at all from xrandr. Also, FYI, xrandr's output names is a little bit different on Ubuntu 16.04.2, where every number is prefixed with a -. E.g. eDP1 in Linux Mint becomes eDP-1 in Ubuntu, HDMI1 becomes HDMI-1, and so on.



      So, how to add the virtual output in Xorg/xrandr?



      And how come Linux Mint 18.2 and Ubuntu 16.04.2 (which I believe uses the exact same Xorg server, since LM 18.2 is based on Ubuntu, right?) can have a very different xrandr configurations?



      Using xserver-xorg-video-dummy is not an option, because the virtual output won't be accelerated by GPU.










      share|improve this question













      I want to create a dummy, virtual output on my Xorg server on current Intel iGPU (on Ubuntu 16.04.2 HWE, with Xorg server version 1.18.4). It is the similiar to Linux Mint 18.2, which one of the xrandr output shows the following:



      Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
      ...
      eDP1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
      ...
      VIRTUAL1 disconnected (normal left inverted right x axis y axis)
      ...


      In the Linux Mint 18.2, I can turn off the built-in display (eDP1) and turn on the VIRTUAL1 display with any arbitrary mode supported by the X server, attach x11vnc to my main display and I'll get a GPU accelerated remote desktop.



      But in Ubuntu 16.04.2, that's not the case. The VIRTUAL* display doesn't exist at all from xrandr. Also, FYI, xrandr's output names is a little bit different on Ubuntu 16.04.2, where every number is prefixed with a -. E.g. eDP1 in Linux Mint becomes eDP-1 in Ubuntu, HDMI1 becomes HDMI-1, and so on.



      So, how to add the virtual output in Xorg/xrandr?



      And how come Linux Mint 18.2 and Ubuntu 16.04.2 (which I believe uses the exact same Xorg server, since LM 18.2 is based on Ubuntu, right?) can have a very different xrandr configurations?



      Using xserver-xorg-video-dummy is not an option, because the virtual output won't be accelerated by GPU.







      x11 xorg xrandr opengl virtual-desktop






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 14 '17 at 2:36









      Paulus

      3314




      3314




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          6
          down vote



          accepted










          Create a 20-intel.conf file:



          sudo vi /usr/share/X11/xorg.conf.d/20-intel.conf



          Add the following configuration information into the file:



          Section "Device"
          Identifier "intelgpu0"
          Driver "intel"
          Option "VirtualHeads" "2"
          EndSection


          This tells the Intel GPU to create 2 virtual displays. You can change the number of VirtualHeads to your needs.



          Then logout and login. You should see VIRTUAL1 and VIRTUAL2 when you run xrandr.






          share|improve this answer




















          • And this also changes the xrandr display names to 'HDMI1' and 'eDP1' instead of 'HDMI-1' and 'eDP-1', as expected!
            – Paulus
            Sep 14 '17 at 6:52

















          up vote
          0
          down vote













          It's not working for me Kde Neon Base 18.04 either





          share








          New contributor




          MDarweash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

















            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%2f378373%2fadd-virtual-output-to-xorg%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            6
            down vote



            accepted










            Create a 20-intel.conf file:



            sudo vi /usr/share/X11/xorg.conf.d/20-intel.conf



            Add the following configuration information into the file:



            Section "Device"
            Identifier "intelgpu0"
            Driver "intel"
            Option "VirtualHeads" "2"
            EndSection


            This tells the Intel GPU to create 2 virtual displays. You can change the number of VirtualHeads to your needs.



            Then logout and login. You should see VIRTUAL1 and VIRTUAL2 when you run xrandr.






            share|improve this answer




















            • And this also changes the xrandr display names to 'HDMI1' and 'eDP1' instead of 'HDMI-1' and 'eDP-1', as expected!
              – Paulus
              Sep 14 '17 at 6:52














            up vote
            6
            down vote



            accepted










            Create a 20-intel.conf file:



            sudo vi /usr/share/X11/xorg.conf.d/20-intel.conf



            Add the following configuration information into the file:



            Section "Device"
            Identifier "intelgpu0"
            Driver "intel"
            Option "VirtualHeads" "2"
            EndSection


            This tells the Intel GPU to create 2 virtual displays. You can change the number of VirtualHeads to your needs.



            Then logout and login. You should see VIRTUAL1 and VIRTUAL2 when you run xrandr.






            share|improve this answer




















            • And this also changes the xrandr display names to 'HDMI1' and 'eDP1' instead of 'HDMI-1' and 'eDP-1', as expected!
              – Paulus
              Sep 14 '17 at 6:52












            up vote
            6
            down vote



            accepted







            up vote
            6
            down vote



            accepted






            Create a 20-intel.conf file:



            sudo vi /usr/share/X11/xorg.conf.d/20-intel.conf



            Add the following configuration information into the file:



            Section "Device"
            Identifier "intelgpu0"
            Driver "intel"
            Option "VirtualHeads" "2"
            EndSection


            This tells the Intel GPU to create 2 virtual displays. You can change the number of VirtualHeads to your needs.



            Then logout and login. You should see VIRTUAL1 and VIRTUAL2 when you run xrandr.






            share|improve this answer












            Create a 20-intel.conf file:



            sudo vi /usr/share/X11/xorg.conf.d/20-intel.conf



            Add the following configuration information into the file:



            Section "Device"
            Identifier "intelgpu0"
            Driver "intel"
            Option "VirtualHeads" "2"
            EndSection


            This tells the Intel GPU to create 2 virtual displays. You can change the number of VirtualHeads to your needs.



            Then logout and login. You should see VIRTUAL1 and VIRTUAL2 when you run xrandr.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Sep 11 '17 at 1:23









            ooknosi

            1765




            1765











            • And this also changes the xrandr display names to 'HDMI1' and 'eDP1' instead of 'HDMI-1' and 'eDP-1', as expected!
              – Paulus
              Sep 14 '17 at 6:52
















            • And this also changes the xrandr display names to 'HDMI1' and 'eDP1' instead of 'HDMI-1' and 'eDP-1', as expected!
              – Paulus
              Sep 14 '17 at 6:52















            And this also changes the xrandr display names to 'HDMI1' and 'eDP1' instead of 'HDMI-1' and 'eDP-1', as expected!
            – Paulus
            Sep 14 '17 at 6:52




            And this also changes the xrandr display names to 'HDMI1' and 'eDP1' instead of 'HDMI-1' and 'eDP-1', as expected!
            – Paulus
            Sep 14 '17 at 6:52












            up vote
            0
            down vote













            It's not working for me Kde Neon Base 18.04 either





            share








            New contributor




            MDarweash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















              up vote
              0
              down vote













              It's not working for me Kde Neon Base 18.04 either





              share








              New contributor




              MDarweash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.



















                up vote
                0
                down vote










                up vote
                0
                down vote









                It's not working for me Kde Neon Base 18.04 either





                share








                New contributor




                MDarweash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                It's not working for me Kde Neon Base 18.04 either






                share








                New contributor




                MDarweash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                share


                share






                New contributor




                MDarweash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 6 mins ago









                MDarweash

                11




                11




                New contributor




                MDarweash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                MDarweash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                MDarweash is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f378373%2fadd-virtual-output-to-xorg%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay