Results 1 to 8 of 8

Thread: xrandr - how to set default monitor?

  1. #1
    Join Date
    Jun 2011
    Beans
    4

    xrandr - how to set default monitor?

    I have a laptop and also an external monitor. The external monitor phisically is to the right of my laptop on my desk. I would like the external monitor to be the default monitor. Grandr and arandr (xrandr with GUI) does not help.

    VGA1 - external monitor, LVDS1 - laptop monitor.
    xrandr --output VGA1 --mode 1280x1024 --pos 1280x0
    xrandr --output LVDS1 --mode 1280x1024 --pos 0x0

    These commands set my external monitor to right for 1280 pixels. I assume that the monitor that is positioned at 0x0 is the main monitor. How to set VGA1 the default or how to position LVDS1 to the left for MINUS 1280 pxs?

    Please help!

  2. #2
    Join Date
    Jun 2009
    Location
    Summerville, SC
    Beans
    399
    Distro
    Ubuntu Development Release

    Re: xrandr - how to set default monitor?

    Quote Originally Posted by Kalpinsh View Post
    I have a laptop and also an external monitor. The external monitor phisically is to the right of my laptop on my desk. I would like the external monitor to be the default monitor.
    I'm unsure how much technology has come along since the beginning of 2010, but it is likely that you are trying to do an impossible task. Laptops, at least from what I had been told, won't let you default to a different monitor outside of it's own monitor that's already attached to it, and will simply override any attemp at doing so.

    This could for no other reason that That's The Way It Is, or it could be some sort of fool-proofing, in that someone can't change the default monitor one day, forget, and grab the laptop and go somewhere only to realize (when it's far to late) that the default monitor is at home.

  3. #3
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: xrandr - how to set default monitor?

    Quote Originally Posted by Kalpinsh View Post
    I have a laptop and also an external monitor. The external monitor phisically is to the right of my laptop on my desk. I would like the external monitor to be the default monitor. Grandr and arandr (xrandr with GUI) does not help.

    VGA1 - external monitor, LVDS1 - laptop monitor.
    xrandr --output VGA1 --mode 1280x1024 --pos 1280x0
    xrandr --output LVDS1 --mode 1280x1024 --pos 0x0

    These commands set my external monitor to right for 1280 pixels. I assume that the monitor that is positioned at 0x0 is the main monitor. How to set VGA1 the default or how to position LVDS1 to the left for MINUS 1280 pxs?

    Please help!
    According to: https://wiki.ubuntu.com/X/Config/Resolution you can place the monitor to the left of the laptop using the
    --left-of
    parameter. Or you can use the
    --primary
    parameter to identify the primary monitor.

  4. #4
    Join Date
    Jun 2011
    Beans
    4

    Re: xrandr - how to set default monitor?

    Quote Originally Posted by FormatSeize View Post
    I'm unsure how much technology has come along since the beginning of 2010, but it is likely that you are trying to do an impossible task. Laptops, at least from what I had been told, won't let you default to a different monitor outside of it's own monitor that's already attached to it, and will simply override any attemp at doing so.

    This could for no other reason that That's The Way It Is, or it could be some sort of fool-proofing, in that someone can't change the default monitor one day, forget, and grab the laptop and go somewhere only to realize (when it's far to late) that the default monitor is at home.
    No it is possible to set the external monitor as the default. The default monitor will be the one which is positioned at 0x0. The problem is that I can not position laptop monitor to the left - do not know how to "--pos minus1280x0) - only to the right but phisically the external monitor is to the right on my desk.

    Quote Originally Posted by Toz View Post
    According to: https://wiki.ubuntu.com/X/Config/Resolution you can place the monitor to the left of the laptop using the parameter. Or you can use the parameter to identify the primary monitor.
    Thanks but these will not work for me.

    Any other ideas?

  5. #5
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: xrandr - how to set default monitor?

    Does:
    Code:
    xrandr --output VGA1 --primary
    not make VGA1 primary and set at 0x0?

    Or:
    Code:
    xrandr --output VGA1 --left-of LVDS1
    not do the same?

    What happens when you issue those commands?

  6. #6
    Join Date
    Jun 2011
    Beans
    4

    Re: xrandr - how to set default monitor?

    Quote Originally Posted by Toz View Post
    Code:
    xrandr --output VGA1 --primary
    This command does nothing.
    Quote Originally Posted by Toz View Post
    Code:
    xrandr --output VGA1 --left-of LVDS1
    This does set the external monitor as the default BUT it is like i would position LVDS1(laptop monitor) for 1280px (one full screen length unit) to the right. Logically the external(VGA1) monitor is to left BUT phisically it on the right side of my desktop. In order to move my cursor from VGA1 (on my desk to the right) I need to move it to the right side and it will show up in my laptop monitor from the left side. Wrong order - I hope you understand me.

    There was one time when I somehow managed to fool the xrandr by using both grandr and arandr apps (xrandr with GUI) to reach my goal. But at the next reboot it somehow switched back. I did not save that config. I have not managed to repeated that but if I could then I would save that config and apply it at every reboot.

    Maybe it is just a syntax problem - how to tell to xrandr "--pos -1280x0" the minus sign.

  7. #7
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: xrandr - how to set default monitor?

    Ok. Lets see if I'm understanding this. What about:

    1. Set VGA1 as primary:
    Code:
    xrandr --output VGA1 --primary
    2. Place it to the right of LVDS1
    Code:
    xrandr --output VGA1 --right-of LVDS1
    Therefore, as primary it should be 0x0. If you move cursor off right of VGA1 it should show up on left side of LVDS1 (which is physically at the right of VGA1).

  8. #8
    Join Date
    Jun 2011
    Beans
    4

    Re: xrandr - how to set default monitor?

    Quote Originally Posted by Toz View Post
    Ok. Lets see if I'm understanding this. What about:

    1. Set VGA1 as primary:
    Code:
    xrandr --output VGA1 --primary
    2. Place it to the right of LVDS1
    Code:
    xrandr --output VGA1 --right-of LVDS1
    Therefore, as primary it should be 0x0. If you move cursor off right of VGA1 it should show up on left side of LVDS1 (which is physically at the right of VGA1).
    Thanks but I already tried these. Currently I have laptop monitor (to the left on the desk) as the default and the external monitor extends my desktop. After these commands nothing changes.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •