Fix Dual Monitors in GNOME 3 (aka My Workspaces are Broken!)

Note: See update for GNOME 3.3/3.4 at the end of this post.

I’ve already expressed some disappointment in the default multi-monitor behavior in GNOME 3 on the dev’s blog (read: I posted an angry rant in the comments).

Basically, in GNOME 3, for some reason, they decided the typical use case was for the secondary monitor to stay fixed when switching workspaces, which is the complete wrong setup for someone using dual monitors.

Luckily, as Pascal points out in the blog’s comments, there’s a setting for this, and the other (ie correct) behavior is actually mutter’s default.

Luckily, the fix is pretty simple, and will allow workspaces to switch on multiple monitors again!

  1. Download gconf-editor – this is probably available in your distribution’s package manager.
  2. Start gconf-editor – the “Run Command” menu is still available in GNOME 3 by pressing Alt-F2.
  3. In the tree on the left, navigate to /desktop/gnome/shell/windows
  4. UNCHECK the box next to workspaces_only_on_primary

You’ll need to log out or restart to see the changes, and some commenters in the above post seem to note some small issues with the setup, but all-in-all this has been completely functional for me; and best of all, I can use both monitors again!

Update for GNOME 3.3/3.4

Cedric Briner emailed me to let me know that for GNOME 3.3/3.4, the command has been updated. The new command is (instead of gconf-editor):

gsettings set org.gnome.shell.overrides workspaces-only-on-primary false
Posted in Linux | 37 Comments

37 Responses to Fix Dual Monitors in GNOME 3 (aka My Workspaces are Broken!)

  1. wandering stranger says:

    Thanks for the info!

  2. Lutz says:

    Wow, excellent. It was driving me nuts at work fighting with my IDE and VM constantly not being on the workspace I wanted them to be. Can’t thank you enough for this!

  3. Spice says:

    umm, is it bad if I don’t see any of those options in the list?

  4. Sergio says:

    Strange default is P in da A. Thanks a lot for workaround!

  5. k says:

    I’ve got better – I see those, but after changing to off, nothing really changes at all, still only primary monitor has desktop and secondary only a wallpaper

  6. Gripper says:

    Thanks for posting the workaround.

    Is there a way I can also see the preview of the second monitor pressing Alt-F1?

  7. Curt Olson says:

    Yes, thanks for this tip! This issue was driving me nuts too. Sometimes hard to know what keywords to search for, but I found your site and gconf-editor did the trick. Now on to figure out why my audio doesn’t work in FC-15 while it worked perfectly in 14 ..

  8. Hi Greg,

    Can you give more information about how exactly did you achieve this? When I uncheck the parameter, Gnome still sees my second monitor as an extension of primary workspace. Is there any other necessary setting on how to enable another workspace for the second monitor?

    • gregcor says:

      This is to restore the default behavior that existed in GNOME 2, which was basically a big workspace. If you want two different sets of workspaces, you’ll need to configure two X displays in your video card or X11.conf – note that some quick research seems to show reports of this crashing with GNOME 3, but I’m not sure if that’s been fixed.

      • Brian says:

        Uhm, yeah. No. This use-case — dual screens (i.e. :0.0 and :0.1 such that each has their own workspaces and can be changed independent of the other) doesn’t actually work and is not even being considered important enough for anyone to fix.

        Yet another reason why GNOME 3 is unusable.

        ~sigh~

  9. Juan GNU says:

    Gracias, Thanks

  10. Igor Lubashev says:

    I actually LIKE the new screen mode!

    I’ve been frantically trying to figure out how to make this work on prev Gnone.

    It is actually strange for me how one can like it any other way.

    I have one monitor with my code editor (Eclipse), and I use the other monitor for various random things (Web browser, various terminal windows, email, etc). I love it that I can switch workspaces on the “Misc stuff” monitor and keep my Eclipse with my code in front of me.

    Likewise, I may have firefox open on one of the Monitors and then switch workspaces on the other without loosing my Firefox.

    You can use dual monitors a LOT better then just pretending you have a huge monitor (which is also broken, because you have a huge ‘hole’ in hte middle).

    • Liam Carter-Condon says:

      You can accomplish this in previous iterations of GNOME by right clicking a window border and selecting “Always on Visible Workspace”

    • Brian says:

      How about one step even better? Workspaces on each monitor that are independently switchable?

      Sound good doesn’t it? Keep on wishing

  11. Pingback: General Failure

  12. Nicklas Overgaard says:

    Thank you so much for this fix.

    The default behavior has been driving me nuts since i started using the gnome 3 beta.

    You made my day :)

  13. Richy says:

    Thank you,

    that drove me insane!

  14. tim says:

    anyway to fix window overview displaying all apps from various workspaces on the 2nd monitor?

  15. Peter Hanecak says:

    I quite hate it when things come down to gconf-editor. It reminds me of Windows Registry and of all the stuff I hated Windows for and which made me to switch to Linux. Gnome3 now seems to be heading the “Windows” path …

    I would prefer either nice GUI for that or simple old-style text configuration I can tweak.

    End of Gnome3 bashing. :)

  16. Mani says:

    Very helpful, thanx. I do agree that the default desktop configuration is not good for dual monitors.

  17. Silvio says:

    Infelizmente no meu eu não achei a pasta “/desktop/gnome/shell/windows” e continua a luta para fazer os dois monitores funcionarem adequadamente. :D

    (Editor: English: Unfortunately I did not think in my folder “/ desktop / gnome / shell / windows” and continues to struggle to do both monitors work properly.)

    • tom miller says:

      Well this is my issue, but it really does not totally fix it. I need to pin the open window to a workspace. They move when you right click the titlebar and move to another workspace. However, they do not stay on the workspace you move them to? I run a lot of open windows “tsclient” to virtual machines and I need to “pair” the windows to each other on workspaces across BOTH monitors.

      Thanks

  18. ssam says:

    Thanks, a handy tip.
    there is a bug to get this into gnome-tweak-tool, but they dont want to implement it until various bugs fixed with linked work spaces.
    https://bugzilla.gnome.org/show_bug.cgi?id=646912

    there is also some discussion at https://live.gnome.org/GnomeShell/DesignerPlayground/MultipleMonitors

  19. Victor says:

    Hi,
    I just updated my notebook, and now the fix is not working. Any ideas about that?
    In gconf-editor the key workspaces_only_on_primay has the “This key has no schema”
    Help please
    Thanks

  20. tom says:

    fast and cool solution. Thank you!

  21. Eduardo says:

    Hi, thanks for the tip, totally worked for me.

    To Silvio, are you using Gconf-editor or Dconf-editor? Because with the dconf-edirot your will not be able to see the necessary keys.

    Regards,

  22. Jack Holt says:

    I notice that comments on the dev’s blog for the entry where the dev announces he “broke” multi-monitor support on purpose are disabled. Thanks for this info. I can’t tell you how irritated I was to discover when I upgraded to Linux Mint 12 (which uses Gnome 3) that my second monitor didn’t switch when I switched workspaces. Thanks again for helping restore sane functionality.

  23. Pingback: Gnome 3 sucks on dual screens. | Securitron GNU/Linux Blog.

  24. Ace says:

    Thanks for the info how to change it when necessary.

    But I disagree with you: using multiple workspaces on the second monitor isn’t essential for users who prefer dual monitor settings. Even if I configured the second screen always with multiple workspaces in the past myself, I hardly used more than one on the second screen.
    Having the second screen fixed now makes my system faster and I need less memory.
    So, at the moment, I am really satisfied with this standard setting.

    But thanks for showing anyhow. :)

  25. Andre says:

    Very helpful, great! I’ve linked it on my personal blog with your credits.

  26. This is why I switched to KDE.

  27. This how to works perfectly for me!!!! Tks a lot!!!

  28. Tom says:

    my brain knows where to look for things again! Thanks

  29. Bruce says:

    Thank you _SO_ much. Just FYI, life isn’t any better in the land of KDE. Worse, actually. Anyway, thank you!!

  30. Richard says:

    Thanks a bunch, If it wasn’t for you I would have to go back to fluxbox! Which is not at all a bad alternative but since we are living in 2012 I figured I had to convert to something a little bit more modern.

  31. alswl says:

    Nice!
    Do you know how to set the second monitor as a workspace but not a extended of primay monitor.

  32. Rickard says:

    Regarding your update for Gnome 3.3/3.4, that setting can still be changed graphically by using dconf-editor instead.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>