enter image description here

Every time I reboot my screens are like this, with a space in between them. My xorg.conf file does not get overwritten each time since the content is identical from one boot to the other (xorg.conf identical to xorg.conf.backup). So changing the file attribute to +i does not change a thing. Modifying grub file with nogpumanager either. If I log out and log in, my screen config is still OK. Problem occurs only when I reboot.

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 331.20 

The correct line is there:

Option "metamodes" "DVI-I-1: nvidia-auto-select +0+0 {rotation=left}, DP-1: nvidia-auto-select +1024+0 {rotation=left}, DVI-D-0: nvidia-auto-select +2048+0 {rotation=left}"


  • Would you be helped if the screen setup was automated after login? Jul 10 '16 at 18:48
  • Better than nothing...
    – Houba
    Jul 11 '16 at 19:14
  • Works great, edited the script to left \ and not left\
    – Houba
    Jul 14 '16 at 4:30
  • @Houba If you want to mark a question as solved, accept an answer instead of adding "[SOLVED]" to the title.
    – edwinksl
    Jul 14 '16 at 5:31

Automatically arrange your screens on log in

The fact that your screen setup is not remembered on restart (re- login) is most likely the result of a minor incompatibility between your screen(s) and the graphics driver. To work around:

If I made no typo or mistake, the command:

xrandr --output DVI-I-1 --pos 0x0 --rotation left --output DP-1 --pos 1024x0 --rotation left --output DVI-D-0 --pos 2048x0 --rotation left

...should make your screen setup

How to add to startup applications

  1. Copy the code below into an empty file, save it as setup_screens.sh, and make it executable

    xrandr --output DVI-I-1 --pos 0x0 --rotation left \
    --output DP-1 --pos 1024x0 --rotation left \
    --output DVI-D-0 --pos 2048x0 --rotation left
  2. Test-run the script by the command:

  3. If all works fine, add to Startup Applications: Dash > Startup Applications > Add. Add the command:

    /bin/bash -c "sleep 15 && /path/to/setup_screens.sh"


The explanation on why and how can be found on this answer. The sleep 15 is to make sure the desktop is "ready" before the setup is done.

Is this question a dupe?

Yes and no:

  • Yes, there are many almost similar questions on screen setup (not) being persistent.
  • No, not a literal dupe, since all situations are slightly different.

If you are not familiar with xrandr commands, reading the (almost) dupes does not help you much, therefore I'd still write an answer to help out in this specific situation.

  • The command provided works, add a space after left before the slash left \ otherwise you will have an error.
    – Houba
    Jul 14 '16 at 4:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.