by martolives on Mon Aug 06, 2012 11:53 am
The problem I've been having has been similar to this, and I think I've found where the problem is, but haven't worked out a fix for it yet. However, I have developed a work-around. Now, I should add here that I'm still relatively new to the Linux scene, and while I'm learning fast, I might get some of the terminology very wrong in the following explanation.
When I first set up Mint 12, and plugged in my monitor, it didn't come on at all. I used the basic "configure display settings" icon in the top of the screen to bring it on, but it seemed to get confused. It would mess up the resolution I was trying to put in for the second monitor, my desktop icons would disappear, and other random crazy things would happen.
So, eventually, it was so messed up, I restarted, and had my laptop monitor working fine but the second monitor blank. I decided to do it manually, and opened terminal and applied my limited xrandr knowledge with the following command:
xrandr --output VGA1 --mode 1280x1024 --right-of LVDS1
It worked perfectly, and I went about my business with two working monitors. I shut down that night happy that I had solved my problem.
However, when I booted up the next day, it only booted my laptop monitor. It displays a mirror on the second monitor for log on, but once I log on and bring up the desktop, the second monitor is a no-go. So, to play it safe, I just did what I knew would work - I ran the command again, and it worked just fine.
The next day, I had to unplug my laptop to take it to my router and make an ethernet connection, so, to be safe, I ran the following command.
xrandr --output VGA1 --off
It turned off the second monitor... but all my icons disappeared again. I was very annoyed. I thought I'd search this problem on here, and needed my browser, so I tapped the cursor to the top-left of my screen to bring up that shell overlay thing to get to Google Chrome, and as I did, I noticed my icons flicker on briefly, then disappear as the overlay came up... I tapped the corner again, and again, as the overlay retracted, there were the icons. Briefly.
On a hunch, I ran the following
killall nautilus
nautilus -n
And my icons came back.
So, I'm pretty sure there's a bug in Nautilus that is at fault here. Something related to Gnome 3 as well, because my brother runs Mint 12 with XFCE and doesn't have this problem at all.
In the meantime, I've created two executable text files, like scripts really, as work-arounds
The first one, called "multimonitor", runs the following:
#!/bin/bash
xrandr --output VGA1 --mode 1280x1024 --right-of LVDS1
And the second, called "single monitor", runs the following
#!/bin/bash
xrandr --output VGA1 --off
killall nautilus
nautilus -n &
They are both icons on my desktop. When I log on, I just run "multimonitor" to get my second monitor up. When I need to unplug my laptop for whatever reason and it's still turned on, I can run the "single monitor" script.
I might just add, too, that I'm switching to Xubuntu 12.04 soon cuz it's an LTS release, so it's all kind of moot for me, but I hope it helps to some degree. And obviously, if you use my work around, you may have a different screen size to consider.