Results 1 to 7 of 7

Thread: Xubuntu 12.04 Dual Monitor

  1. #1
    Join Date
    Nov 2012
    Beans
    29

    Xubuntu 12.04 Dual Monitor

    Hi guys,

    I've managed to setup my dual monitor on Xubuntu 12.04 (laptop integrated and external monitor) and it's working fine. The issue is: the config won't save. I've tried following methods:

    1- Ran xrandr --output LVDS1 --left-of VGA1 on the terminal and it works, but on the next reboot both monitors get mirrored again and have resolutions reset.
    2- I wrote a scritp with xrandr --output LVDS1 --left-of VGA1 and put it on init. This gets ignored.
    3- I made a launcher in Sessions Applications but it won't execute.

    Everytime I need to execute xrandr --output LVDS1 --left-of VGA1 and I even made a launcher with the command and placed it on my taskbar but that's not what I want. I want to boot my computer, log in and get my dual monitor set working.

    Any idea anyone?

  2. #2
    Join Date
    May 2006
    Location
    Milwaukee,WI
    Beans
    6,108
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Xubuntu 12.04 Dual Monitor

    make a file called dualsetup.sh and put the following in the file
    #!/bin/sh
    xrandr --output LVDS1 --left-of VGA1

    save the file. Make it executable using the command "chmod +x /folder/dualsetup.sh" (replace folder with the location you saved the file)

    Now go to Xfce settings -> Session and startup

    and create a new entry pointing to that file. It will make it start every time you log on. Hopefully it will work for you...
    Check out my Blog about my life and computer software and hardware. http://ubuntuaddicted.blogspot.com/
    My YouTube channel:
    http://www.youtube.com/ubuntuaddicted

  3. #3
    Join Date
    Nov 2012
    Beans
    29

    Re: Xubuntu 12.04 Dual Monitor

    I'm not sure it's going to work cause I have that command running on Session Apps, but I'll give it a try on friday and post the result here.

    Thanks in advance.

  4. #4
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Xubuntu 12.04 Dual Monitor

    Best procedure is to create a folder called "bin" in your home folder, then save the file in there (no need for a .sh extension). Run

    Code:
    chmod u+x ~/bin/script_name
    Then add it to startup programs (instructions here)

  5. #5
    Join Date
    Nov 2012
    Beans
    29

    Re: Xubuntu 12.04 Dual Monitor

    Sorry to tell you that none of the solutions worked. :S

  6. #6
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    801
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: Xubuntu 12.04 Dual Monitor

    Just a thought but maybe you need a short delay before running xrandr on startup.
    Adding sleep 5 in your script, above the xrandr command, might help.

    Cheers!
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

  7. #7
    Join Date
    Nov 2012
    Beans
    29

    Re: Xubuntu 12.04 Dual Monitor

    Quote Originally Posted by LewisTM View Post
    Just a thought but maybe you need a short delay before running xrandr on startup.
    Adding sleep 5 in your script, above the xrandr command, might help.

    Cheers!
    Woa! Works like a charm!


    Just a feedbak: I used dannyboy79's solution mixed with yours! Thanks a lot!

Tags for this Thread

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
  •