Results 1 to 9 of 9

Thread: My dual monitor settings won't stick

  1. #1
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default My dual monitor settings won't stick

    Hello

    I'm running openSUSE 11.3 64 bit KDE 4 standard
    I have two monitors attached, running simultaneously, nicely, all is well.

    But when I reboot I have to set them up again because the settings don't stick/endure through a reboot.

    The GUI configurator that I use is at Menu --> Config Desktop --> General --> Display.

    How do I save the underlying settings and re-invoke them at boot time, perhaps from the CLI? Or some quick process that will do the job.
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,260
    Blog Entries
    1

    Default Re: My dual monitor settings won't stick

    Merry Christmas John!

    Have a read of this thread. Essentially, its only a matter of including a suitable xrandr line in ~/.xprofile (or a script located in .kde4/Autostart/).

    You may prefer to invoke it manually with a simple executable script (launched via a 1-click desktop icon).

    But when I reboot I have to set them up again because the settings don't stick/endure through a reboot.

    The GUI configurator that I use is at Menu --> Config Desktop --> General --> Display.
    AFAIU, this has been corrected (finally) in KDE4.6

    Cheers,

    Dean

  3. #3
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: My dual monitor settings won't stick

    And I hope you had a good one too in KiwiLand.
    That worked for me, a script that sets the laptop screen in auto mode, then places the HDMI scree to the left of the lappy screen, like so:
    Code:
    #!/bin/sh
    xrandr --output LVDS --auto --output HDMI-0 --auto --left-of LVDS
    I put that in my "bin" directory where I can get it easily and soft linked it from KDE4 / Auto

    Thank you, nice
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  4. #4
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: My dual monitor settings won't stick

    Well that had two drawbacks:
    1: the lappy screen becomes misconfigured if the HDMI monitor is not connected at boot time
    2: the screens are different sizes and I like the bottom of the screens to be aligned rather than the tops
    So this fixed it:
    Code:
    #!/bin/sh
    xrandr --output LVDS --auto --output HDMI-0 --auto --pos -1920x-180
    For readers with laptops, that makes the lappy screen start in auto mode and places the extra screen with the large area 1920 pixels to the left of it and shifts the lappy alignment by 180 pixels (relative coordinates) so the bottoms of the screens are aligned.

    The benefit of starting the lappy screen first then the attached screen second is that if you don't plug the second screen in, its absence wont screw with the lappy screen because the command aborts right after the lappy screen is set up.
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  5. #5
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,260
    Blog Entries
    1

    Default Re: My dual monitor settings won't stick

    Yes, screens of differing display resolutions, and those not permanently connected, create additional configuration issues to think about. I'm sure this will helpful to others with similar setups. (Maybe next Christmas, I will get a nice new secondary monitor)

  6. #6
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: My dual monitor settings won't stick

    Quote Originally Posted by deano_ferrari View Post
    Yes, screens of differing display resolutions, and those not permanently connected, create additional configuration issues to think about. I'm sure this will helpful to others with similar setups. (Maybe next Christmas, I will get a nice new secondary monitor)
    Now that it's Boxing day, I have a compulsion to buy another screen to match my big screen and also a new desktop computer with 64 bit CPU, 8Gb RAM and a top-rate Nvidia card with twin outputs, or maybe twin cards, all in a box with good ventilation.

    And since I have a netbook as well as my 17" laptop, I would sell the laptop.

    Oh well, reality intrudes and I'll probably do naught because I spent too much over Xmas!
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  7. #7

    Default Re: My dual monitor settings won't stick

    In your home directory you can also copy the file '.xinitrc.template' to '.xinitrc' and then open '.xinitrc' in your favorite editor and add your 'xrandr...' configuration command(s) after the line:
    '# Add your own lines here...'.

    BTW thanks for the configuration line, I was so lost until I saw this thread.

  8. #8

    Default Re: My dual monitor settings won't stick

    thank you for this very helpful post.

    Was quick and easy to setup that script.
    I placed mine in ~/.kde4/Autostart and it works like a charm.


    I have a second scenario,
    I have a docking station... when I boot my laptop up when connected to it the laptop display is turned off ( as the lid is closed ),
    I have VGA1 and HDMI1

    I can create the script for this and it works...

    But if i have that script running, my laptop display does not turn on when I power on my laptop without being hooked to the docking station....

    Any Suggestions as to how I could have the system "detect" if its plugged into the docking station and execute the appropriate script at that time?

  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,260
    Blog Entries
    1

    Default Re: My dual monitor settings won't stick

    A possible solution outlined here (script in /etc/init.d/boot.local):

    Automate configuration of notebook display when docked or undocked

    Now, instead of using the xorg.conf approach, edit the script so that 1 of 2 xrandr scripts is renamed at boot instead. Then your Autostart script could call the one that got renamed, to configure your attached display device(s). Hope that makes sense. There is more than one way to do this, so there may more elegant solutions available if you search....

    Edit: Maybe this Ubuntu-based solution will be useful to you

    http://www.doyouubuntu.com/wordpress/?p=8&lang=en

Posting Permissions

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