![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Absolute Beginner Talk The perfect starting place to find out more about computers, Linux and Ubuntu. |
|
|
Thread Tools | Display Modes |
|
|
#11 | ||
|
Ubuntu Guru
![]() |
Re: switch xorg.conf files (dual, single)
First, of course make a back up of your xorg.conf
Not only is this good practice, but I might break your xorg.conf Second, not to ask the obvious, but on some laptops when you have an external screen connected you select a screen with a keyboard combination, Alt-F5 Can you change screens this way ? Last, try changing: Quote:
Quote:
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999 ![]() |
||
|
|
|
|
|
#12 |
|
Ubuntu Extra Shot
![]() Join Date: Jul 2006
Beans: 355
Ubuntu 7.04 Feisty Fawn
|
Re: switch xorg.conf files (dual, single)
Well his single monitor is working correctly, right? It's when he uses the dual monitors that they are switched. Does that help/matter?
|
|
|
|
|
|
#13 | ||||
|
Ubuntu Guru
![]() |
Re: switch xorg.conf files (dual, single)
Quote:
![]() For your second monitor add in the HorizSync and VertRefresh rates for the monitor to the monitor section (right now they are blank). Quote:
Quote:
Quote:
__________________
A person with ubuntu is open and available to others, affirming of others, does not feel threatened that others are able and good, for he or she has a proper self-assurance that comes from knowing that he or she belongs in a greater whole and is diminished when others are humiliated or diminished, when others are tortured or oppressed. ~ Archbishop Desmond Tutu, 1999 ![]() |
||||
|
|
|
|
|
#14 | ||
|
Gee! These Aren't Roasted!
![]() |
Re: switch xorg.conf files (dual, single)
Quote:
Quote:
__________________
Last edited by elektronaut; January 11th, 2007 at 04:23 PM.. |
||
|
|
|
|
|
#15 |
|
Ubuntu Extra Shot
![]() Join Date: Jul 2006
Beans: 355
Ubuntu 7.04 Feisty Fawn
|
Re: switch xorg.conf files (dual, single)
Well, that's why I suggested what I did, I'm wondering if when you have a monitor plugged in, your laptop identifies it as 0 and your laptop screen as 1 where when it's not plugged in it only sees one and therefore identifies your laptop screen as 0. In that case the fix I suggested should work for you.
Code:
Section "ServerLayout" Identifier "DUALMONITORS" Screen 1 "Second Screen" 0 0 Screen 0 "Main Screen" LeftOf "Second Screen" InputDevice "Generic Keyboard" InputDevice "Configured Mouse" Option "Xinerama" "true" EndSection Why it works for me is more than likely just brand, my laptop is a Fujitsu. |
|
|
|
|
|
#16 |
|
Ubuntu Extra Shot
![]() Join Date: Jul 2006
Beans: 355
Ubuntu 7.04 Feisty Fawn
|
Re: switch xorg.conf files (dual, single)
Also, if it's happening before you ever boot into X Windows, you should try what someone else suggested before you ever go into X Windows, the button on your keyboard that allows you to switch monitors. then when you go into X Windows it might be right. Sorry I don't know the official terms for these things hopefully you understand what I'm talking about.
|
|
|
|
|
|
#17 |
|
Ubuntu Extra Shot
![]() Join Date: Jul 2006
Beans: 355
Ubuntu 7.04 Feisty Fawn
|
Re: switch xorg.conf files (dual, single)
Oh one more thing - I wasn't saying fujitsu is better than yours by any means, just saying that configuration may just be what works on my brand. wanted to clarify.
|
|
|
|
|
|
#18 |
|
Gee! These Aren't Roasted!
![]() |
Re: switch xorg.conf files (dual, single)
Changing the screen numbering in the ServerLayout section resulted in a Xserver crash. I really don't think xorg.conf takes part in this story at all, I fear it might be hardware related. Though I will try to put the i810switch call in a low runlevel and see if that helps. Thanks for your input again, tocleora and bodhi.zazen!
__________________
|
|
|
|
|
|
#19 | |
|
Gee! These Aren't Roasted!
![]() |
Re: switch xorg.conf files (dual, single)
Quote:
__________________
|
|
|
|
|
|
|
#20 |
|
First Cup of Ubuntu
![]() Join Date: Jan 2006
Beans: 7
|
Re: switch xorg.conf files (dual, single)
Hi guys I saw your posts and just wanted to let you know what I did.
First of all I might be able tp help one of you the guy who was talking about how he had to unplugg is monitor all the time. I sorry if somebody postet an answer to this point but I got sick of reading the whole thread. You should put Code:
Option "UseDisplayDevice" "CRT" or Option "UseDisplayDevice" "DFP" The 2nd part: You guys where talking about using a small script to change between single and dual monitor use and as far as I could see you did that when you where already logged in (I might be wrong with that) so you restart your x everytime you change between 1 monitor and 2 monitor use. I have to do the same thing and if you know a way to not having to do that, tell me. But my way of doing it is a litte different. I added a little startup script Code:
#!/bin/sh
case $XORG in
single)
# if PARAM== single
cp /etc/X11/backup.single.xorg.conf /etc/X11/xorg.conf
echo "Single Screen Setup for KDE : Enabled"
;;
dual)
# if PARAM== dual
cp /etc/X11/backup.dual.xorg.conf /etc/X11/xorg.conf
echo "Dual Screen Setup for KDE : Enabled"
;;
*)
#default conf here
;;
esac
exit 1
Last thing to do was to make symlink in /etc/rc#.d to the script we created above (/etc/init.d/xorg). The # you have to exchange to the number you think is the best runlevel for your script to fireup. When you create the symlink just look that you create one that does not exist already and it looks something like this Code:
lrwxrwxrwx 1 root root 19 2007-01-08 15:17 S01xorg -> ../init.d/xorg Some of you might ask ok whats the point of all this. Simply that: You can now create different monitor layouts just by creating different boot options in the /boot/grub/menu.lst this way you don't have to restart your x, you just select it when you start your computer. For example my menu.lst looks like this: Code:
title Single Monitor - Ubuntu, kernel 2.6.17-10-386 root (hd0,0) kernel /vmlinuz-2.6.17-10-386 ro quiet splash XORG=single initrd /initrd.img-2.6.17-10-386 savedefault boot title Dual Monitor - Ubuntu, kernel 2.6.17-10-386 root (hd0,0) kernel /vmlinuz-2.6.17-10-386 ro single XORG=dual initrd /initrd.img-2.6.17-10-386 boot title Home - Ubuntu, kernel 2.6.17-10-386 root (hd0,0) kernel /vmlinuz-2.6.17-10-386 ro single XORG=dual NET=home initrd /initrd.img-2.6.17-10-386 boot title Uni - Ubuntu, kernel 2.6.17-10-386 root (hd0,0) kernel /vmlinuz-2.6.17-10-386 ro single XORG=single NET=uni initrd /initrd.img-2.6.17-10-386 boot title Work - Ubuntu, kernel 2.6.17-10-386 root (hd0,0) kernel /vmlinuz-2.6.17-10-386 ro single XORG=dual NET=work initrd /initrd.img-2.6.17-10-386 boot title Ubuntu, memtest86+ root (hd0,0) kernel /memtest86+.bin boot Unix 4 Ever wangweilin p.s. I forgot to tell you guys, as you might see in the script I too use different xorg files and with the script I just copy them to the /etc/X11/xorg.conf Last edited by WangWeiLin; January 14th, 2007 at 07:10 PM.. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|