Two monitor setup when you temporarily only have one?
I have a small portable (Sony Vaio TX2XP) and am running Kubuntu Dapper. I have set up X using Xinerama to work with an external 19 TFT monitors and it is great. The problem is that when I am on a trip and only use the portables built in monitor, X still thinks there are two monitors and some applications (windows) appear where the external monitor should be, and I cannot access them.
I know that I can copy over my old version of xorg.conf and restart X to get around the problem, but it is a real pain... Is there some command I can run to let X know that I don't have the external monitor plugged in. Thanks, Tim |
you could setup more than one serverlayout in your xorg.conf, one for your default setup and one for your sometimes-1-screen-only setup.
then use Code:
startx -- -layout nameoflayout You should add Code:
Option "DefaultServerLayout" "nameoflayout" I don't know how this helps you though if you boot right into runlevel 5, sorry. |
[QUOTE=lurko]you could setup more than one serverlayout in your xorg.conf, one for your default setup and one for your sometimes-1-screen-only setup.
then use Code:
startx -- -layout nameoflayout That is an excellant idea. The only problem is that I don't know how to specify more than one server layout in the xorg.conf file. I guess it doesn't matter I can define two xorg files: xorg.conf1 xorg.conf2 And then write a shell script: cp xorg.conf1 xorg.conf startx Thanks, Tim |
Just one question, how do I stop X from starting automatically when I log in?
Thanks, Tim |
couldn't you just use metamodes?
I do that for UT2004, got two monitors and UT likes the spot in the middle, GRR! Sooo.... I've defined a two monitor set up, and added a metamode with null for one of the monitors, this should solve your problem. I'm using gnome and just hit ctrl+alt++/- to cycle through the modes. Here's the line in my xorg file: Option "MetaModes" "1280x1024,1280x1024; 1280x1024,NULL" (in the screen section) computer starts up with two monitors, then I can hit ctrl+alt++ and it turns off the second monitor :) Good luck |
Quote:
Code:
Section "ServerLayout" and then put in a ServerFlags section(or just the option if this section is already present) to specify which layout to use when nothing is specified with startx -- -layout Code:
Section "ServerFlags" I believe you set the default runlevel in /etc/initab, but I have not yet done any fiddling with that so I can't comment any further. I also suppose it's possible that some distros do it differently... I bet there's something in the LQwiki |
All times are GMT -5. The time now is 08:04 AM. |