I use Ubuntu 12.04 on a Toshiba Portege R600. Normally I have a flat green background (the middle choice of the custom set under wallpapers in the right-mouse-click GUI).

When I plug in a VGA monitor for two-screen usage the background on that and on the laptop screen go black. They remain black after I unplug the monitor and give the command:

xrandr --output LVDS1 --auto --output VGA1 --off

Is there a trick to maintain the green blackground, at least on the laptop screen, or at least regain it automatically on the laptop screen?

  • 1
    Per OP, resolved by upgrading: "This bug went away when I installed Ubuntu 14.04 on a new Toshiba Z930."
    – belacqua
    May 12 '14 at 19:14

An workaround will be to use the following command:

xrandr --output LVDS1 --auto --output VGA1 --off && gsettings set org.gnome.desktop.background primary-color "#73D216"

This will set again your background color to #73D216 (green).

  • Thanks but no go: DISPLAY=:0: Command not found. Sorry, should have added I use Gnome Classic.
    – Rob Rutten
    Oct 11 '13 at 12:54
  • @RobRutten Are you sure that you copy it correctly? Dont't use any space before or after = sign. Oct 11 '13 at 13:00
  • alias vga-off 'xrandr --output LVDS1 --auto --output VGA1 --off && DISPLAY=:0 GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background primary-color "#73D216"'
    – Rob Rutten
    Oct 11 '13 at 13:06
  • Or is it my use of tcsh? Sorry, I am not too unix-knowledgeable...
    – Rob Rutten
    Oct 11 '13 at 13:12
  • @RobRutten Oh... tcsh. Ok, don't use these variables DISPLAY=:0 GSETTINGS_BACKEND=dconf. See if it is working with gsettings set org.gnome.desktop.background primary-color "#73D216" only. Oct 11 '13 at 13:20

This bug went away when I installed Ubuntu 14.04 on a new Toshiba Z930.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.