Slashdot Mirror


KDE Multi-Monitor Control Getting An Overhaul

Multi-monitor support on Free systems has always been a pain (even after RANDR made it a lot less of a pain). GNOME2 had a great feature: you only had to configure a given pair of displays once and it would do-the-right-thing and remember their configuration. But if you wanted to mirror displays of different resolutions, you were out of luck. KDE handled the latter case, but infuriatingly enough doesn't remember or restore configurations like GNOME2 did, and worse yet requires manual intervention before disconnecting a display. But, now that's all changing: "As some of you might have noticed, display management in KDE is not really something we could be proud of. It does not work as expected, it lacks some features and it’s not really maintained. Time to change it, don’t you think? ... Alex has written the libkscreen library that provides information about available/connected/enabled outputs and notifications about their changes. He also intends to write a KDED daemon that would listen for these events and depending on connected monitors (every monitor can be uniquely identified by it’s EDID) it would load specific configuration. For example, docking your notebook into a docking station at work would automatically turn on a second monitor and place it left of the notebook screen (or whatever you configure the first time you do it). Undocking the notebook and connecting a data projector in a meeting room would automatically set clone mode etc. etc." Additionally, the dock applet and monitor configuration UI have been overhauled allowing for quickly setting common configurations ("extend display to the {right,left,top,bottom}" / "clone") directly from the desktop, and direct manipulation of the monitor positions if you do end up needing to use the configuration program (article has a video and screenshots).

41 of 144 comments (clear)

  1. In Other News by sexconker · · Score: 4, Insightful

    In other news, readers demand to know when Slashdot is getting getting an editor.

  2. But this is Linux by CubicleZombie · · Score: 5, Funny

    You're supposed to know how to hack your xconfig with vi. Setting up two displays is supposed to hurt.

    --
    :wq
    1. Re:But this is Linux by serviscope_minor · · Score: 2

      Obviously you're being sarcastic, but the correct response would be to tell people to use xrandr by hand. Editing the config file requires you to (a) have one and (b) restart X.

      I use arandr these days. It does a good enough job.

      --
      SJW n. One who posts facts.
    2. Re:But this is Linux by ericcc65 · · Score: 2

      You're supposed to know how to hack your xconfig with vi. Setting up two displays is supposed to hurt.

      Don't be ridiculous, you're allowed to use vim in this day and age.

  3. Vanilla version please.... by ModernGeek · · Score: 3, Interesting

    I'd like to see more vanilla versions of this software. Open Source Software has become almost as bad as the commercial counter parts in wanting to wrap everything up as one big GUI package. I don't want a bunch of bologna to download and run to configure dual monitors if I want to use a very lightweight window manager, or setup an embedded solution such as a kiosk.

    One of the original and cool ideas of open source was to allow hackers to dive into the utilities and do really cool things with them that they aren't meant to achieve. A multi monitor control system that is tied into a blob of libraries doesn't sound appealing to me. I'll take a 32KB application that has an /optional/ GUI front end over this junk any day.

    --
    Sig: I stole this sig.
    1. Re:Vanilla version please.... by jonnythan · · Score: 2

      Here's the other side of open source: "write it yourself."

    2. Re:Vanilla version please.... by serviscope_minor · · Score: 4, Interesting

      I'd like to see more vanilla versions of this software.

      Well sure.

      Here's the protocol extension: http://www.x.org/releases/X11R7.5/doc/randrproto/randrproto.txt

      Here's the xlib API:
      http://xcb.freedesktop.org/manual/group__XCB__RandR__API.html

      Here's the command line tool:
      http://linux.die.net/man/1/xrandr

      And here are a bunch of GUI wrappers:
      http://christian.amsuess.com/tools/arandr/
      http://wiki.lxde.org/en/LXRandR

      Which would you like?

      Open Source Software has become almost as bad as the commercial counter parts in wanting to wrap everything up as one big GUI package. I don't want a bunch of bologna to download and run to configure dual monitors if I want to use a very lightweight window manager, or setup an embedded solution such as a kiosk.

      Some times yes, but this isn't one of those cases. It's one of the nice really well designed parts, and not only that but any of those tools will work with any system. They modify the monitor layout, X sends a RANDR XEvent to the window manager and everything just works.

      --
      SJW n. One who posts facts.
    3. Re:Vanilla version please.... by drainbramage · · Score: 4, Funny

      XRANDR. It's all you need -- a daemon watching EDIDs and speaking XRANDR.
      And an almost fanatical devotion to the Pope.
      Ah, amongst the things you need.....

      --
      No brain, no pain.
    4. Re:Vanilla version please.... by gshegosh · · Score: 2
      $ ls -lAh /usr/bin/disper
      -rwxr-xr-x 1 root root 1,3K pa 19 2011 /usr/bin/disper

      Is 1,3K app good enough for you? Disper is also great when configured for Meta+Fn keys in KDE, I have a simple way of switching display modes almost as good as the one on Windows 7.

  4. Win 7 by SJHillman · · Score: 5, Insightful

    And here Windows 7 handles five monitors using three different resolutions flawlessly. Thanks to Ultramon, they line up seamlessly in spite of also being different sizes and being at different physical elevations. It's one of the more major things that has kept me on Windows - I look forward to Linux being able to do the same.

    1. Re:Win 7 by mcgrew · · Score: 2

      Linux had multi-monitor support years before Windows did.

    2. Re:Win 7 by checho4 · · Score: 4, Insightful

      It doesn't matter what had it first. I just want to use whatever currently has it best.

    3. Re:Win 7 by houghi · · Score: 4, Informative

      XFCE user here. 3 different monitors of different sizes. 2 different video cards. No Xinerama and no seperate X screens, so I can switch workspaces on the other screens individually. Others who would like Xinerama can have that as well. I have connected 4 monitors as well. I can line them up any way I like. e.g. with 4, ---, L, +, T, reversed T. Space in between or connected.
      The limit in screens is pure hardware. Adding cards would mean the ability to adding monitors.
      I will soon be adding a 4th monitor and am looking at adding another video card and 2 more monitors.

      Yep, it does not work in KDE or in GNOME how _I_ want it to run in the 5 minutes I tried, because it seems that they both handle things as one big screen (in any order) and I want my separate X sessions. Otherwise that would be working too.
      Screen-shot from an older setup. The image is from 2006. Two identical screens there. http://houghi.org/shots/dualscreen.jpg

      I have been doing multiple screens since around 1998. All with GUI software to make it easy for me and no manual editing of xorg.conf. All in Linux.

      --
      Don't fight for your country, if your country does not fight for you.
    4. Re:Win 7 by TemporalBeing · · Score: 4, Interesting

      According to the OP, it has multi-monitor support, but things like actually remembering the configuration you apply is inexplicably beyond its capabilities.

      It remembers the configuration until you change the configuration. That is, with a desktop where you have several monitors connected all the time it won't be an issue. But with a laptop where you may have an external monitor part of the time then it is an issue whenever you switch between laptop only mode, and laptop plus external monitor mode. What's most annoying is when you have the external display as the primary; when you disconnect it the multi-monitor dialog prompting on to reconfigure shows up on the external monitor, not the only remaining monitor - so you're kind of screwed. Currently I make it a point to reconfigure to clone mode before undocking my laptop.

      --
      Truth is like the sun. You can shut it out for a time, but it ain't goin' away. - Elvis Presley (source: imdb.com)
    5. Re:Win 7 by washu_k · · Score: 4, Informative

      Then again, DOS might be the very first use...

      DOS did have multi monitor support from day 1, but not in the way we think of it today. You could combine a CGA card (or later EGA, VGA, etc) with an MDA (monochrome, text only) card. The idea was to use the MDA for high resolution (at the time) text and the CGA for low res graphics. Software had to be specifically written for it, but it was possible. Later, some DOS debuggers could use the MDA as a debug output separate from the main screen.

    6. Re:Win 7 by dlenmn · · Score: 3

      It remembers the configuration until you restart.

      FTFY

    7. Re:Win 7 by SJHillman · · Score: 2

      Go re-read my post. Windows handles it flawlessly and 3rd party software adds in even more features to account for my fairly non-standard setup of different size monitors with different resolutions that are not on a flat surface.

    8. Re:Win 7 by xaxa · · Score: 2

      KDE handles my monitor setup OK -- one large widescreen monitor, one rotated-right smaller monitor, and they don't line up.

      This is connected to a laptop (VGA and HDMI), and the laptop monitor can't be used at the same time (doesn't work on Windows either). The problem at present is if I disconnect it and plug in to a projector. I actually have two usernames set up with different monitor configurations; since I disconnect it so rarely this was the easiest solution.

      My colleagues have the same equipment but use Windows 7, and they had trouble getting everything set up correctly. Oddly, they mostly had different problems to each other.

      Linux works 80%, in this case, 100% of the time.
      Windows works 100%, but only 80% of the time.

    9. Re:Win 7 by Malvineous · · Score: 2

      I'm using Linux with four monitors at four different resolutions, and they all line up seamlessly, even at different vertical elevations. Linux is able to do this just as well as Windows (in fact I would say better than Windows, if you have to download a third party program like Ultramon to get it to work properly), the only difference is that Windows/Ultramon gives you a GUI, while most Linux users are satisfied with editing configuration files, because that's what they're used to and comfortable with.

      It always makes me laugh when people say Linux will never make it on the desktop because it's too hard, yet being hard is one of Linux's strong points. Windows is supposed to be easy, but have you seen the quality of the average post in a Windows support forum? Giving Linux a high barrier to entry automatically excludes so many of those people, avoiding the forums getting clogged up with so many simple requests people could easily solve themselves.

      It's like requiring a degree when you apply for a job. You might never need to use the degree itself in your work, but having one generally implies you have a certain set of basic skills.

      I have often heard it said that there should be some kind of license you need before you're allowed to use a computer. Well there's your license - the ability to use Linux.

    10. Re:Win 7 by siride · · Score: 2

      Xinerama may not have come about until 1998, but multiple screen support was built into X from the beginning. That's where the whole :0.0, :0.1, etc. business comes from.

    11. Re:Win 7 by jimbo · · Score: 2

      I'm a very capable Linux user, have been using it since it came on 22 floppies. For a long time I enjoyed all the tinkering.

      Priorities have changed, I've dropped it in favour of Mac because I have more important things to spend my time on.

    12. Re:Win 7 by rastos1 · · Score: 2
      Strange. Recently I connected a TV over HDMI to my Slackware machine. The TV has a lower resolution. On 1st boot the system has recognized automatically the new output device and set it up as mirror of the monitor and selected the same, low, resolution on both. When I went into Settings in KDE 4.8.5, I could nicely set up any configuration I wanted - the same or different resolution to both, the relative position, mirror or extending the desktop area ... Once set up and stored with "Save as default" it remembers the configuration. When booting up the KDM probably goes with auto-detected default - i.e. low resolution and mirror. That could probably require fixing in xorg.conf. I did not bother. But once I log in, the displays are configured correctly.

      TL;DR it works for me. Perfectly.

    13. Re:Win 7 by Malvineous · · Score: 2

      So why do people still cook their own food when you can just buy ready made meals? Lots of people enjoy the process as much as the end product, and Linux users are no different.

      Besides, Linux has never been about "free" in cost or time. It has been "free" as in the freedom to use it how you see fit. If you don't like the time it takes, you're free not to use it. Nobody said it was easy. But just because it doesn't work for you, it doesn't mean it's useless for everybody.

    14. Re:Win 7 by Sussurros · · Score: 2

      Yes, I used to have that setup for debug mode in TurboPascal. One day I plugged the MDA monitor into the EGA port and vice versa by mistake. When I turned it on the monitor started squealing, the cat rocketed out of the room, and I just managed to rip out all the power cords before monitor's internals burst into flame. I can still remember the ghastly smell as if it was yesterday, not the smell of cooking electronics at all, closer to but different from cooking car tyres.

      --
      I said - don't look Ethel!..., but it was too late..., she'd already looked.
  5. Re:Just Free Systems by SJHillman · · Score: 5, Insightful

    Windows XP did multi-monitors fairly well. Windows 7 handles it excellently. I have five monitors and when replacing one of the video cards, I changed which monitors were plugged into which card. As soon as Windows 7 booted, it automatically corrected for switching the cables around so that the monitors were all exactly as they were when I powered down the system in spite of every monitor being plugged into a different card and port.

    Not to say Win7 isn't lacking some features, but nothing free or cheap software like Ultramon doesn't fix (IE: fine-tuning relative positions, multi-monitor wallpaper, taskbar across all monitors), but the essential parts of multi-monitors are handled very well.

  6. Pathetic by oldhack · · Score: 3, Insightful

    They waste all these time mucking with icons, reorganizing menu accesses, and other such superfluous "human interaction" nonsense, but never got around to supporting something as basic as multiple displays.

    It's why you're better off to wait for jesus to return than the mythical "year of linux desktop".

    --
    Fuck systemd. Fuck Redhat. Fuck Soylent, too. Wait, scratch the last one.
    1. Re:Pathetic by Anonymous Coward · · Score: 3, Informative

      I've used multiple monitors with KDE for around six years now. Basic multi-screen functionality has been around for ages. They're improving it, not introducing it.

    2. Re:Pathetic by Urza9814 · · Score: 2

      Do you not understand the meaning of the phrase 'getting an overhaul' or did you not even bother to read the _title_ fully before posting?

    3. Re:Pathetic by seandiggity · · Score: 2

      It's why you're better off to wait for jesus to return than the mythical "year of linux desktop".

      You should RTFM before posting this heresy. man revelation states that the mark of the beast is linux kernel 6.6.6, which predates the Second Coming of Christ. Older print manuals invoked kernel 6.1.6, but that turned out to be an error with a possessed dot matrix printer.

      --
      Geeks like to think that they can ignore politics, you can leave politics alone, but politics won't leave you alone.-rms
    4. Re:Pathetic by couchslug · · Score: 2

      The "artists" who insist on wanking with gaudy UI trifles need to be LARTed into weeping pulps.

      They don't care about users. At all.

      --
      "This post is an artistic work of fiction and falsehood. Only a fool would take anything posted here as fact."
  7. TwinView by loufoque · · Score: 2

    nvidia-settings
    Detect Displays
    Click on newly-detected display and select "TwinView" and "Clone Displays".
    Click apply.

    Done, works with all window managers.

    1. Re:TwinView by agm · · Score: 2

      Yes. Now try getting that to work with 3 monitors. TwinView is only for spanning two monitors, even if your graphics card has 4 outputs. You cannot get KDE to provide a single desktop experience across 3 monitors with TwinView, and Xinerama is going the way of the Dodo and is very slow. I have a triple head setup working with KDE but the only way is to have TwinView on the left two as a single X screen, and the right monitor is another X screen running an independant instance of KDE. Works for my workflow, but a single unified desktop it is not.

  8. Re:year of the linux! by Scutter · · Score: 2

    I was confused by the whole "refuses to remember or restore configurations" thing. WTF? This is 2012. EVERYONE has multiple monitors. How is it in any way acceptable that the OS refuses to remember your monitor config?

    --

    "Tell me doctor, with all of your defenses, are there any provisions for an attack by killer bees?"
  9. Re:Just Free Systems by TemporalBeing · · Score: 2

    Windows XP did multi-monitors fairly well. Windows 7 handles it excellently. I have five monitors and when replacing one of the video cards, I changed which monitors were plugged into which card. As soon as Windows 7 booted, it automatically corrected for switching the cables around so that the monitors were all exactly as they were when I powered down the system in spite of every monitor being plugged into a different card and port.

    Not to say Win7 isn't lacking some features, but nothing free or cheap software like Ultramon doesn't fix (IE: fine-tuning relative positions, multi-monitor wallpaper, taskbar across all monitors), but the essential parts of multi-monitors are handled very well.

    How well Windows supported it was largely up to how well the video card drivers supported it. Some systems required rebooting in order to get it to recognize the additional monitor; others would work without a problem. It was typically consistent for any given driver, but very hit-and-miss between video cards/driver versions.

    --
    Truth is like the sun. You can shut it out for a time, but it ain't goin' away. - Elvis Presley (source: imdb.com)
  10. Re:If I remember my Inside Macintosh well... by mspohr · · Score: 2

    And it still puts the menu for every window at the top of one monitor... often a long distance from the window itself.
    Why don't they fix this? Now that Steve has gone, can we challenge some of his idiosyncrasies?

    --
    I don't read your sig. Why are you reading mine?
  11. We got back to the linux pain point, graphics. by chadruva · · Score: 2

    While is nice to have better control over this features we need to first get them working reliably, I still can't get KDE to start with max the laptop monitor max resolution, it will always go back to a 1280x768 and I have to change it manually.

    In the end we get back to the same old problem with Linux graphics, driver support. I remember back a couple of years having a nvidia card with the binary blob, most stuff worked as I wanted but screen adjusting and multimonitor had to be done via nvidia tools, but in the end of the day it works. Now I have an ATI card and I cannot get multimonitor working properly even with its own tools, on a more powerful card with more memory.

    For quite a while I think there has been no real interest on doing this overhaul as most of those features would not work releably on most systems.

    --
    C-x C-c
  12. Re:Finally! by anomaly256 · · Score: 2

    I know your pain, I feel it too when moving my laptop around between meetings and my desk frequently. Can't use Gnome any more, fluxbox is of course awesome but sometimes a little too minimal. KDE is great, except for this multi-monitor config issue. Sorry someone modded this 'flamebait' (seriously?)

  13. Cloning diplays with different resolutions by notandor · · Score: 2

    In all these years of Linux usage I still have not been able to do clone a display while having different resolutions. Is this actually possible?

    I want to present slides on a presentation monitor, which is connected to my Thinkpad (nvidia, binary driver) via VGA cable. At the same time, I want to see the slides on the notebook screen during the presentation. So the screen has to be cloned.

    However, the native resolution of the notebook and second (big) monitor differs. For instance, the notebook is 1600x900, the external presentation monitor is 1920x1080. Is there a way to produce the signal in 1920x1080 on the second monitor, and at the same time clone the screen on the notebook screen in another resolution?

  14. It's not that hard by eyegone · · Score: 2

    man xrandr

    --
    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety."
  15. Re:Finally! by Sussurros · · Score: 2

    I don't understand. When I plug in an extra monitor on my Fedora with KDE it is automatically recognised and configured, even when the monitors are different resolutions. All I have to do is to choose to extend my desktop onto it and chase up wallpaper for it.

    Of course unplugging a monitor without first moving all windows defaults away from it can cause problems that can be hard to resolve. Yeah, I begin to see the problem, but this certainly isn't just a KDE issue.I remember the same problems with another much more popular and rather less gracious OS back when I used to use Microsoft's offering.

    --
    I said - don't look Ethel!..., but it was too late..., she'd already looked.
  16. Re:Finally! by anomaly256 · · Score: 2

    It's not that the monitor isn't detected and used by default, it's that it forgets the setting you specified the last time you had that monitor plugged in. Further more, the 'Multiple Display' setting item always says it doesn't detect that you are using multiple displays, even when they are listed in the monitor arrangement window. KDM also sometimes shows it's login window half on one monitor half on the other.

    Also also, if your monitors arent' the same size, a small window that appears on the smaller monitor can be off the screen because the virtual desktop is rectangular and you have no way of moving it apart from the right click menu on the toolbar - not the end of the world but very annoying all the same, just as all these quirks are