Xrandr GUI

Finally today we've uploaded the new Xrandr GUI to Ubuntu Hardy. I mentioned working on a tool a couple weeks ago; I discovered that Soren Sandmann was also working on such a tool and was further along, so I shifted focus to getting that tool ready for integration in Ubuntu.

The above photo shows two laptops, one connected to an external monitor, the other to a projector; resolutions, rotations, and so on can all be handled on a per-monitor basis. The projector image is hard to see since it's so bright, but it's working fine with these laptops.

This tool also has a Cairo-based graphical layout to show the screens; notice how it detects and displays the monitor's name.

You'll notice the 'clone screens' checkbox; currently the utility does not have a way to specify left-of/right-of, so it just does cloning for now. It's entirely within the design scope of this tool to do that, so expect to see that capability in coming months. (For now, I'm going to leave the clone checkbox out).

The tool allows rotation as well.

One issue I found is that it only allows making changes to one screen at a time. If you need to change the other monitor's settings, I find it works to disable the first one (set resolution to 'off'), make the changes to the second, and then re-enable the first.

CAUTION: Xrandr is buggy on certain hardware. It's not this GUI tool's fault (you can usually replicate the bugs using the 'xrandr' command-line tool), but the GUI increases the exposure to these bugs since it's so easy to play with them now. For instance, some hardware locks up or performs badly when rotated. Others exhibit lockups or corruption when scaling up or scaling down. So, if you want to experiment, please be sure to save your work first. ;-) Bugs should be reported against your video driver, not against xrandr or this gui.

Posted in Submitted by bryce on Fri, 2008-02-29 23:15.
bryce's blog

GUI, also known as 'Graphical User Interface' is what allows most common computer users to access and use everyday programs and computers.

Basically, toolbars, firefox windows and folders are all a type of 'GUI'.
Without them we would all be using text-based interfaces, such as the command line or terminal window.

Otacon (not verified) | Thu, 2008-09-18 06:36

to Brian P Wunderlich: GUI mean interface

Peter (not verified) | Wed, 2008-07-23 10:40

I have an ATI Radeon X1300 card. At least unter openSuse XrandrTray does not work at all.
Has ubuntu better support for this card?

Albert (not verified) | Thu, 2008-07-17 08:15

Where I can download Xrandr GUI to try on my Ubuntu?

Date (not verified) | Wed, 2008-07-16 12:25

Could you please explain me the meaning of 'GUI'

Brian P Wunderlich (not verified) | Mon, 2008-06-30 11:36

Is the intention is to dump tool displayconfig-gtk?

The 'Screens and Graphics' link in System / Admin will be dropped as redundant. I left it as is for alpha6, though.

The tool itself will remain available in Ubuntu though; it's still used by Bulletproof-X mode, and may be of use for certain cases (see below).

Will the new tool have all the features of displayconfig-gtk?

No, it won't have the ability to switch video drivers, or to select a specific monitor model. By and large, the current xserver is pretty good at sorting all this stuff out automatically on its own.

We'll keep displayconfig-gtk around for the corner cases where it is still useful, but just not in the menus. Perhaps in Hardy+1/+2 we'll have a more integrated solution.

bryce | Fri, 2008-03-07 02:55

Hehe, that's what I registered to ask too. Ignore my last post, as your reply to the other gent answered a few of my own questions.

So currently hardy is in this weird situation of having
1. new tools in Preferences -> Screen Resolution
2. old tool in Administration -> Screens and Graphics

Is the intention is to dump tool 2?

Will the 1 have all the features of 2?

It would be nice to have a single tool to change the available/preferred resolutions, using PolicyKit to unlock where necessary.

mikemaccana | Thu, 2008-03-06 04:37

Hi Bryce,

Will this be part of the 'Screens and Graphics' tool in Hardy? Or is it packaged separately?

I have two machines running hardy (one intel, one ATI) that could use dual head - currently I just use an external monitor on each.

The current Screens and Graphics tool shows my external monitor display with a laptop icon, and 'screen 2' as a disabled external monitor that I can't enable.

mikemaccana | Thu, 2008-03-06 04:31

Right, the driver selection is pretty much the only thing remaining that displayconfig-gtk does that the new one doesn't.

The reason displayconfig-gtk is broken is because it is designed for use with Xinerama, not Xrandr. Starting in Gutsy, and even moreso in Hardy, drivers started switching to Xrandr and dropped Xinerama compatibility entirely. As well, displayconfig-gtk is designed to modify an existing xorg.conf, but upstream has been making more and more of xorg.conf optional (and largely omitted), which really confuses displayconfig-gtk.

Anyway, we'll be dropping displayconfig-gtk from the menus since it is mostly redundant now.

bryce | Mon, 2008-03-03 22:53

I thought it was a big change to displayconfig-gtk.

So does this mean displayconfig-gtk is going away? It's about 100% useless in Hardy right now, and this seems like it takes over almost all of its functions. The driver is the only thing missing.

maco | Mon, 2008-03-03 16:08

This tool is accessed via 'Screen Resolution' under System / Preferences.

Also, if you manage to get your screen layout completely hosed, just edit or delete ~/.gnome2/monitors.xml and you should be back to normal. Hopefully we can add some confirmation dialogs and such to prevent these situations.

bryce | Sat, 2008-03-01 00:16

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
More information about formatting options