Opening software on a specific monitor

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


.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
0
down vote

favorite












I'm trying to follow some instructions on getting specific software to open up on a specific monitor. I have three monitors. xrandr -q output is as follows:



Screen 0: minimum 8 x 8, current 5040 x 1080, maximum 32767 x 32767
DVI-D-0 connected 1440x900+3600+79 (normal left inverted right x axis y axis) 408mm x 255mm
1440x900 59.89*+ 74.98
1280x1024 75.02 60.02
1280x800 59.81
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
HDMI-0 connected primary 1920x1080+1680+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.00*+ 59.94 50.00 60.00 50.04
1680x1050 59.95
1440x900 59.89
1440x576 50.00
1440x480 59.94
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 433mm x 271mm
1680x1050 59.88*+ 59.95
1280x1024 75.02 60.02
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 60.32
640x480 75.00 59.94
640x350 70.07
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)


I'm running 18.04, using Xorg for display, and nVidia 396.



I've tried prepending DISPLAY=":0", or DISPLAY=":0.0", with numerical variations between 0 to 3 for each type. Each time, I get either this message:



Unable to init server: Could not connect: Connection refused
# Failed to parse arguments: Cannot open display:


Or this one:



# Error creating terminal: Failed to get screen from object path /org/gnome/Terminal/screen/47543056_45c7_42eb_8d4e_1277fad5286e


I've also tried using the --geometry option. I thought perhaps adding the following option would open what I need in the left monitor:



--geometry=1680x1050+0+0


However, this just opens up the relevant software maximised in the primary (centre) monitor. Even after trying varying resolutions and offsets, the result would still be the same.



This is really only a minor inconvenience for me, so I don't want to install any additional packages if that's the only way around this, but if I'm using the wrong commands, let me know what I should be using instead.



Essentially, I want to open two terminals. One on my left and right monitors in full screen. To that extent, the base command I use is:



gnome-terminal --full-screen






share|improve this question





















  • Which Ubuntu version and, more importantly, which display server (Xorg/Wayland)?
    – danzel
    yesterday











  • 18.04, Xorg, and if it matters, nVidia 396. Edited into the post.
    – hiigaran
    yesterday










  • Have you tried --geometry... without --fullscreen?
    – danzel
    yesterday










  • Yes. The --full-screen option is something I'd want to use afterwards. I'd figure if the geometry is set so that the terminal appears anywhere on a specific monitor, the full-screen option would take care of filling up the rest of the space.
    – hiigaran
    yesterday






  • 1




    the width and height are specified as number of columns and lines, not pixels. Try --geometry 1x1+0+0 --full-screen.
    – danzel
    yesterday
















up vote
0
down vote

favorite












I'm trying to follow some instructions on getting specific software to open up on a specific monitor. I have three monitors. xrandr -q output is as follows:



Screen 0: minimum 8 x 8, current 5040 x 1080, maximum 32767 x 32767
DVI-D-0 connected 1440x900+3600+79 (normal left inverted right x axis y axis) 408mm x 255mm
1440x900 59.89*+ 74.98
1280x1024 75.02 60.02
1280x800 59.81
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
HDMI-0 connected primary 1920x1080+1680+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.00*+ 59.94 50.00 60.00 50.04
1680x1050 59.95
1440x900 59.89
1440x576 50.00
1440x480 59.94
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 433mm x 271mm
1680x1050 59.88*+ 59.95
1280x1024 75.02 60.02
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 60.32
640x480 75.00 59.94
640x350 70.07
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)


I'm running 18.04, using Xorg for display, and nVidia 396.



I've tried prepending DISPLAY=":0", or DISPLAY=":0.0", with numerical variations between 0 to 3 for each type. Each time, I get either this message:



Unable to init server: Could not connect: Connection refused
# Failed to parse arguments: Cannot open display:


Or this one:



# Error creating terminal: Failed to get screen from object path /org/gnome/Terminal/screen/47543056_45c7_42eb_8d4e_1277fad5286e


I've also tried using the --geometry option. I thought perhaps adding the following option would open what I need in the left monitor:



--geometry=1680x1050+0+0


However, this just opens up the relevant software maximised in the primary (centre) monitor. Even after trying varying resolutions and offsets, the result would still be the same.



This is really only a minor inconvenience for me, so I don't want to install any additional packages if that's the only way around this, but if I'm using the wrong commands, let me know what I should be using instead.



Essentially, I want to open two terminals. One on my left and right monitors in full screen. To that extent, the base command I use is:



gnome-terminal --full-screen






share|improve this question





















  • Which Ubuntu version and, more importantly, which display server (Xorg/Wayland)?
    – danzel
    yesterday











  • 18.04, Xorg, and if it matters, nVidia 396. Edited into the post.
    – hiigaran
    yesterday










  • Have you tried --geometry... without --fullscreen?
    – danzel
    yesterday










  • Yes. The --full-screen option is something I'd want to use afterwards. I'd figure if the geometry is set so that the terminal appears anywhere on a specific monitor, the full-screen option would take care of filling up the rest of the space.
    – hiigaran
    yesterday






  • 1




    the width and height are specified as number of columns and lines, not pixels. Try --geometry 1x1+0+0 --full-screen.
    – danzel
    yesterday












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm trying to follow some instructions on getting specific software to open up on a specific monitor. I have three monitors. xrandr -q output is as follows:



Screen 0: minimum 8 x 8, current 5040 x 1080, maximum 32767 x 32767
DVI-D-0 connected 1440x900+3600+79 (normal left inverted right x axis y axis) 408mm x 255mm
1440x900 59.89*+ 74.98
1280x1024 75.02 60.02
1280x800 59.81
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
HDMI-0 connected primary 1920x1080+1680+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.00*+ 59.94 50.00 60.00 50.04
1680x1050 59.95
1440x900 59.89
1440x576 50.00
1440x480 59.94
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 433mm x 271mm
1680x1050 59.88*+ 59.95
1280x1024 75.02 60.02
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 60.32
640x480 75.00 59.94
640x350 70.07
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)


I'm running 18.04, using Xorg for display, and nVidia 396.



I've tried prepending DISPLAY=":0", or DISPLAY=":0.0", with numerical variations between 0 to 3 for each type. Each time, I get either this message:



Unable to init server: Could not connect: Connection refused
# Failed to parse arguments: Cannot open display:


Or this one:



# Error creating terminal: Failed to get screen from object path /org/gnome/Terminal/screen/47543056_45c7_42eb_8d4e_1277fad5286e


I've also tried using the --geometry option. I thought perhaps adding the following option would open what I need in the left monitor:



--geometry=1680x1050+0+0


However, this just opens up the relevant software maximised in the primary (centre) monitor. Even after trying varying resolutions and offsets, the result would still be the same.



This is really only a minor inconvenience for me, so I don't want to install any additional packages if that's the only way around this, but if I'm using the wrong commands, let me know what I should be using instead.



Essentially, I want to open two terminals. One on my left and right monitors in full screen. To that extent, the base command I use is:



gnome-terminal --full-screen






share|improve this question













I'm trying to follow some instructions on getting specific software to open up on a specific monitor. I have three monitors. xrandr -q output is as follows:



Screen 0: minimum 8 x 8, current 5040 x 1080, maximum 32767 x 32767
DVI-D-0 connected 1440x900+3600+79 (normal left inverted right x axis y axis) 408mm x 255mm
1440x900 59.89*+ 74.98
1280x1024 75.02 60.02
1280x800 59.81
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
HDMI-0 connected primary 1920x1080+1680+0 (normal left inverted right x axis y axis) 521mm x 293mm
1920x1080 60.00*+ 59.94 50.00 60.00 50.04
1680x1050 59.95
1440x900 59.89
1440x576 50.00
1440x480 59.94
1280x1024 75.02 60.02
1280x960 60.00
1280x720 60.00 59.94 50.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 59.93
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 1680x1050+0+0 (normal left inverted right x axis y axis) 433mm x 271mm
1680x1050 59.88*+ 59.95
1280x1024 75.02 60.02
1280x960 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 60.32
640x480 75.00 59.94
640x350 70.07
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)


I'm running 18.04, using Xorg for display, and nVidia 396.



I've tried prepending DISPLAY=":0", or DISPLAY=":0.0", with numerical variations between 0 to 3 for each type. Each time, I get either this message:



Unable to init server: Could not connect: Connection refused
# Failed to parse arguments: Cannot open display:


Or this one:



# Error creating terminal: Failed to get screen from object path /org/gnome/Terminal/screen/47543056_45c7_42eb_8d4e_1277fad5286e


I've also tried using the --geometry option. I thought perhaps adding the following option would open what I need in the left monitor:



--geometry=1680x1050+0+0


However, this just opens up the relevant software maximised in the primary (centre) monitor. Even after trying varying resolutions and offsets, the result would still be the same.



This is really only a minor inconvenience for me, so I don't want to install any additional packages if that's the only way around this, but if I'm using the wrong commands, let me know what I should be using instead.



Essentially, I want to open two terminals. One on my left and right monitors in full screen. To that extent, the base command I use is:



gnome-terminal --full-screen








share|improve this question












share|improve this question




share|improve this question








edited yesterday
























asked 2 days ago









hiigaran

45412




45412











  • Which Ubuntu version and, more importantly, which display server (Xorg/Wayland)?
    – danzel
    yesterday











  • 18.04, Xorg, and if it matters, nVidia 396. Edited into the post.
    – hiigaran
    yesterday










  • Have you tried --geometry... without --fullscreen?
    – danzel
    yesterday










  • Yes. The --full-screen option is something I'd want to use afterwards. I'd figure if the geometry is set so that the terminal appears anywhere on a specific monitor, the full-screen option would take care of filling up the rest of the space.
    – hiigaran
    yesterday






  • 1




    the width and height are specified as number of columns and lines, not pixels. Try --geometry 1x1+0+0 --full-screen.
    – danzel
    yesterday
















  • Which Ubuntu version and, more importantly, which display server (Xorg/Wayland)?
    – danzel
    yesterday











  • 18.04, Xorg, and if it matters, nVidia 396. Edited into the post.
    – hiigaran
    yesterday










  • Have you tried --geometry... without --fullscreen?
    – danzel
    yesterday










  • Yes. The --full-screen option is something I'd want to use afterwards. I'd figure if the geometry is set so that the terminal appears anywhere on a specific monitor, the full-screen option would take care of filling up the rest of the space.
    – hiigaran
    yesterday






  • 1




    the width and height are specified as number of columns and lines, not pixels. Try --geometry 1x1+0+0 --full-screen.
    – danzel
    yesterday















Which Ubuntu version and, more importantly, which display server (Xorg/Wayland)?
– danzel
yesterday





Which Ubuntu version and, more importantly, which display server (Xorg/Wayland)?
– danzel
yesterday













18.04, Xorg, and if it matters, nVidia 396. Edited into the post.
– hiigaran
yesterday




18.04, Xorg, and if it matters, nVidia 396. Edited into the post.
– hiigaran
yesterday












Have you tried --geometry... without --fullscreen?
– danzel
yesterday




Have you tried --geometry... without --fullscreen?
– danzel
yesterday












Yes. The --full-screen option is something I'd want to use afterwards. I'd figure if the geometry is set so that the terminal appears anywhere on a specific monitor, the full-screen option would take care of filling up the rest of the space.
– hiigaran
yesterday




Yes. The --full-screen option is something I'd want to use afterwards. I'd figure if the geometry is set so that the terminal appears anywhere on a specific monitor, the full-screen option would take care of filling up the rest of the space.
– hiigaran
yesterday




1




1




the width and height are specified as number of columns and lines, not pixels. Try --geometry 1x1+0+0 --full-screen.
– danzel
yesterday




the width and height are specified as number of columns and lines, not pixels. Try --geometry 1x1+0+0 --full-screen.
– danzel
yesterday










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










You were on the right track. The --full-screen option will open the terminal window in full screen mode on the monitor it is displayed on in the first place. But on which monitor is gnome-terminal displayed? Using the geometry parameter, you can specify width, height, and x/y offset:



gnome-terminal --geometry WidthxHeight+Xoffset+Yoffset


...where the offsets are specified in pixels, but width and height are specified in number of columns and lines, respectively. The window will never span multiple monitors and will be placed on the monitor that would contain the biggest part of the window if it spanned multiple monitors.



In your case, despite 0 offset, you made the window 1680 columns wide, which is why it was placed on the middle monitor.



When you want to display the terminal in full screen anyways, use the smallest possible dimensions to ensure that it is placed on the correct monitor in the first place:



#left monitor:
gnome-terminal --geometry 1x1+0+0 --full-screen

#right monitor:
gnome-terminal --geometry 1x1+3600+0 --full-screen





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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f1062148%2fopening-software-on-a-specific-monitor%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    You were on the right track. The --full-screen option will open the terminal window in full screen mode on the monitor it is displayed on in the first place. But on which monitor is gnome-terminal displayed? Using the geometry parameter, you can specify width, height, and x/y offset:



    gnome-terminal --geometry WidthxHeight+Xoffset+Yoffset


    ...where the offsets are specified in pixels, but width and height are specified in number of columns and lines, respectively. The window will never span multiple monitors and will be placed on the monitor that would contain the biggest part of the window if it spanned multiple monitors.



    In your case, despite 0 offset, you made the window 1680 columns wide, which is why it was placed on the middle monitor.



    When you want to display the terminal in full screen anyways, use the smallest possible dimensions to ensure that it is placed on the correct monitor in the first place:



    #left monitor:
    gnome-terminal --geometry 1x1+0+0 --full-screen

    #right monitor:
    gnome-terminal --geometry 1x1+3600+0 --full-screen





    share|improve this answer

























      up vote
      1
      down vote



      accepted










      You were on the right track. The --full-screen option will open the terminal window in full screen mode on the monitor it is displayed on in the first place. But on which monitor is gnome-terminal displayed? Using the geometry parameter, you can specify width, height, and x/y offset:



      gnome-terminal --geometry WidthxHeight+Xoffset+Yoffset


      ...where the offsets are specified in pixels, but width and height are specified in number of columns and lines, respectively. The window will never span multiple monitors and will be placed on the monitor that would contain the biggest part of the window if it spanned multiple monitors.



      In your case, despite 0 offset, you made the window 1680 columns wide, which is why it was placed on the middle monitor.



      When you want to display the terminal in full screen anyways, use the smallest possible dimensions to ensure that it is placed on the correct monitor in the first place:



      #left monitor:
      gnome-terminal --geometry 1x1+0+0 --full-screen

      #right monitor:
      gnome-terminal --geometry 1x1+3600+0 --full-screen





      share|improve this answer























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        You were on the right track. The --full-screen option will open the terminal window in full screen mode on the monitor it is displayed on in the first place. But on which monitor is gnome-terminal displayed? Using the geometry parameter, you can specify width, height, and x/y offset:



        gnome-terminal --geometry WidthxHeight+Xoffset+Yoffset


        ...where the offsets are specified in pixels, but width and height are specified in number of columns and lines, respectively. The window will never span multiple monitors and will be placed on the monitor that would contain the biggest part of the window if it spanned multiple monitors.



        In your case, despite 0 offset, you made the window 1680 columns wide, which is why it was placed on the middle monitor.



        When you want to display the terminal in full screen anyways, use the smallest possible dimensions to ensure that it is placed on the correct monitor in the first place:



        #left monitor:
        gnome-terminal --geometry 1x1+0+0 --full-screen

        #right monitor:
        gnome-terminal --geometry 1x1+3600+0 --full-screen





        share|improve this answer













        You were on the right track. The --full-screen option will open the terminal window in full screen mode on the monitor it is displayed on in the first place. But on which monitor is gnome-terminal displayed? Using the geometry parameter, you can specify width, height, and x/y offset:



        gnome-terminal --geometry WidthxHeight+Xoffset+Yoffset


        ...where the offsets are specified in pixels, but width and height are specified in number of columns and lines, respectively. The window will never span multiple monitors and will be placed on the monitor that would contain the biggest part of the window if it spanned multiple monitors.



        In your case, despite 0 offset, you made the window 1680 columns wide, which is why it was placed on the middle monitor.



        When you want to display the terminal in full screen anyways, use the smallest possible dimensions to ensure that it is placed on the correct monitor in the first place:



        #left monitor:
        gnome-terminal --geometry 1x1+0+0 --full-screen

        #right monitor:
        gnome-terminal --geometry 1x1+3600+0 --full-screen






        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered yesterday









        danzel

        1,226512




        1,226512






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1062148%2fopening-software-on-a-specific-monitor%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491