LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   xorg.conf for Laptop & external display. (http://www.linuxquestions.org/questions/linux-software-2/xorg-conf-for-laptop-and-external-display-381126/)

Riddick 11-08-2005 11:59 AM

xorg.conf for Laptop & external display.
 
My xorg.conf is as follows:

Code:

Section "Files"
        RgbPath        "/usr/X11R6/lib/X11/rgb"
        ModulePath "/usr/X11R6/lib/modules"
        FontPath        "/usr/X11R6/lib/X11/fonts/local"
        FontPath        "/usr/X11R6/lib/X11/fonts/misc"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
            FontPath        "/usr/X11R6/lib/X11/fonts/CID"
            FontPath        "/usr/X11R6/lib/X11/fonts/Speedo"
            FontPath        "/usr/X11R6/lib/X11/fonts/cyrillic"
            FontPath        "/usr/local/share/fonts"
EndSection

Section "ServerFlags"
        #Option              "standby time"  "5"
        #Option                "suspend time"  "10"
        Option              "off time"      "2"
EndSection

Section "Module"
        Load "GLcore"
        Load "dbe"
        Load "dri"
        Load "extmod"
        Load "glx"
        Load "freetype"
EndSection

Section "InputDevice"
        Identifier        "Keyboard0"
        Driver        "kbd"
        Option    "XkbLayout"    "fr"
        Option    "XkbModel"      "dell"
EndSection

Section "InputDevice"
        Identifier        "Mouse0"
        Driver        "mouse"
        Option "Protocol"    "auto"
        Option "Device"      "/dev/mouse"
        Option "ZaxisMapping" "4 5"
        Option "Emulate3Buttons" "yes"
EndSection

Section "Device"
        Identifier "ATI|Rage Mobility M3 AGP 2x"
        Driver "r128"
        VideoRam 8192
        Option "EnablePageFlip" "true"
        Option "AGPFastWrite" "true"
        Option "AGPMode" "2"
EndSection

Section "Monitor"
        Identifier "Generic LCD Panel 1024x768"
        VendorName "DELL"
        ModelName "C600 Screen"
        HorizSync 31.5-48.5
        VertRefresh 40-70
        Option                "DPMS"
EndSection

Section "Monitor"
        Identifier "DELL 1905FP"
        VendorName "DELL"
        ModelName "1905FP"
        HorizSync 31.5-48.5
        VertRefresh 40-70
        Option                "DPMS"
EndSection
 
Section "Screen"
        Identifier "Screen0"
        Device "ATI|Rage Mobility M3 AGP 2x"
        Monitor "Generic LCD Panel 1024x768"
        DefaultDepth 16
                Subsection "Display"
                Depth 32
                Modes "1024x768" "1280x1024" "800x600" "640x480"
                EndSubSection
                Subsection "Display"
                Depth 24
                Modes "1024x768" "1280x1024" "800x600" "640x480"
                EndSubSection
                Subsection "Display"
                Depth 16
                Modes "1024x768" "1280x1024" "800x600" "640x480"
                EndSubSection
                Subsection "Display"
                Depth 8
                Modes "1024x768" "1280x1024" "800x600" "640x480"
                EndSubSection
EndSection

Section "Screen"
        Identifier "Screen1"
        Device "ATI|Rage Mobility M3 AGP 2x"
        Monitor "DELL 1905FP"
        DefaultDepth 16
                Subsection "Display"
                Depth 32
                Modes "1280x1024"
                EndSubSection
                Subsection "Display"
                Depth 24
                Modes "1280x1024"
                EndSubSection
                Subsection "Display"
                Depth 16
                Modes "1280x1024"
                EndSubSection
                Subsection "Display"
                Depth 8
                Modes "1280x1024"
                EndSubSection
EndSection

Section "ServerLayout"
        Screen "Screen1"
        Identifier "External"
        InputDevice "Mouse0"  "CorePointer"
        InputDevice "Keyboard0"  "CoreKeyboard"
EndSection

Section "ServerLayout"
        Screen "Screen0"
        Identifier "Standard"
        InputDevice "Mouse0"  "CorePointer"
        InputDevice "Keyboard0"  "CoreKeyboard"
EndSection

Section "DRI"
        Mode 0666
EndSection

I would like to force the screen to be able to display 1280x1024, because I can get the
image to go to the external monitor fine, but I can't bring it up to 1280x1024,
and so it looks very ugly.

I think the problem is that when X starts it scans for and finds the laptop's screen
which is 1024x768. Is there any way to force 1280x1024 as an option so that I can
select it in KRandRTray?

Thanks,

Riddick

mr_demilord 11-08-2005 02:15 PM

Check the logfile for errors, it's located in /var/log/xorg.log :)

Riddick 11-08-2005 02:18 PM

It's really not:

ed@ed2:~$ cat /var/log/xorg.log
cat: /var/log/xorg.log: No such file or directory

and what errors?

dracolich 11-08-2005 03:07 PM

Hi Riddick,
The xorg log file is in /etc/X11R6, and I don't know what errors to look for either. From the description nothing is breaking or crashing, it's just not producing the desired result. Correct?

What I did, using Slackware, for multiple displays is make a copy of my xorg.conf for each. One for the laptop and one for the external (tv). When I use the tv, which is very rare, I copy my xorg.conf-tv to xorg.conf before starting x. It's a little extra work but it works.

Riddick 11-08-2005 03:11 PM

alright - so how would I modify my current xorg.conf to be for 1280*1024?

dracolich 11-08-2005 04:04 PM

If there's a way to do this with just one file I'd be interested, too.

Using the multiple xorg.conf idea it would be like this. Call the original xorg.conf-laptop and copy it to xorg.conf-dell. Then edit them so the contents of both are the same except

laptop:
blah
blah

Section "Monitor"
Identifier "Generic LCD Panel 1024x768"
VendorName "DELL"
ModelName "C600 Screen"
HorizSync 31.5-48.5
VertRefresh 40-70
Option "DPMS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "ATI|Rage Mobility M3 AGP 2x"
Monitor "Generic LCD Panel 1024x768"
DefaultDepth 16
Subsection "Display"
Depth 32
Modes "1024x768" "800x600" "640x480"
EndSubSection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
Subsection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Dell:
blah
blah

Section "Monitor"
Identifier "Generic LCD Panel 1024x768"
VendorName "DELL"
ModelName "C600 Screen"
HorizSync 31.5-48.5
VertRefresh 40-70
Option "DPMS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "ATI|Rage Mobility M3 AGP 2x"
Monitor "DELL 1905FP"
DefaultDepth 16
Subsection "Display"
Depth 32
Modes "1280x1024"
EndSubSection
Subsection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
Subsection "Display"
Depth 16
Modes "1280x1024"
EndSubSection
Subsection "Display"
Depth 8
Modes "1280x1024"
EndSubSection
EndSection

And the same "server layout" for both:

Section "ServerLayout"
Screen "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Now when you want to use the Dell monitor copy xorg.conf-dell to xorg.conf before starting X.

Riddick 11-09-2005 03:37 PM

ok, my xorg.conf.external, which is symbolically linked to xorg.conf
is the following:

Code:

Section "Files"
        RgbPath        "/usr/X11R6/lib/X11/rgb"
        ModulePath "/usr/X11R6/lib/modules"
        FontPath        "/usr/X11R6/lib/X11/fonts/local"
        FontPath        "/usr/X11R6/lib/X11/fonts/misc"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
            FontPath        "/usr/X11R6/lib/X11/fonts/CID"
            FontPath        "/usr/X11R6/lib/X11/fonts/Speedo"
            FontPath        "/usr/X11R6/lib/X11/fonts/cyrillic"
            FontPath        "/usr/local/share/fonts"
EndSection

Section "ServerFlags"
        #Option              "standby time"  "5"
        #Option                "suspend time"  "10"
        #Option              "off time"      "2"
EndSection

Section "Module"
        Load "GLcore"
        Load "dbe"
        Load "dri"
        Load "extmod"
        Load "glx"
        Load "freetype"
EndSection

Section "InputDevice"
        Identifier        "Keyboard0"
        Driver        "kbd"
        Option    "XkbLayout"    "fr"
        Option    "XkbModel"      "dell"
EndSection

Section "InputDevice"
        Identifier        "Mouse0"
        Driver        "mouse"
        Option "Protocol"    "auto"
        Option "Device"      "/dev/mouse"
        Option "ZaxisMapping" "4 5"
        Option "Emulate3Buttons" "yes"
EndSection

Section "Device"
        Identifier "ATI|Rage Mobility M3 AGP 2x"
        Driver "r128"
        VideoRam 8192
        Option "EnablePageFlip" "true"
        Option "AGPFastWrite" "true"
        Option "AGPMode" "2"
EndSection

Section "Monitor"
        Identifier "DELL 1905FP"
        VendorName "DELL"
        ModelName "1905FP"
        HorizSync 31.5-48.5
        VertRefresh 40-70
        Option                "DPMS"
EndSection
 
Section "Screen"
        Identifier "Screen0"
        Device "ATI|Rage Mobility M3 AGP 2x"
        Monitor "DELL 1905FP"
        DefaultDepth 16
                Subsection "Display"
                Depth 32
                Modes "1280x1024"
                EndSubSection
                Subsection "Display"
                Depth 24
                Modes "1280x1024"
                EndSubSection
                Subsection "Display"
                Depth 16
                Modes "1280x1024"
                EndSubSection
                Subsection "Display"
                Depth 8
                Modes "1280x1024"
                EndSubSection
EndSection

Section "ServerLayout"
        Screen "Screen0"
        Identifier "Standard"
        InputDevice "Mouse0"  "CorePointer"
        InputDevice "Keyboard0"  "CoreKeyboard"
EndSection

Section "DRI"
        Mode 0666
EndSection

But still it starts up in 1024*768 mode with no potion to go up to
1280*1024.

I still think this is due to the screen being probed and X finding
the laptop screen, and limiting itself to 1024*768.

Is there any way to FORCE X into 1280*1024 (i.e. submission)?

Thanks,
Riddick

P.S. Hello again Dracolich - and thanks again for the DRI

dracolich 11-09-2005 04:29 PM

Some Google searching leads me to think you need to adjust the horizontal and vertical rates for the external monitor. Perhaps since you're using the same rates for both you're getting the same results. Also here's a related LQ thread:

http://www.linuxquestions.org/questi...hreadid=368114

Riddick 11-10-2005 06:39 AM

I've added those, but I think it's still probing the laptop's screen!
Is there anyway of FORCING 1280*1024 as an acceptable mode?


Riddick

dracolich 11-10-2005 09:46 AM

I understand you want to "force" a certain resolution. And, as far as i know, the only way is to have it as the only option on a "modes" line, but you already have it as that. My research has shown that other people who use resolutions of 1280x1024 or higher have higher HorizSync and VertRefresh rates in their .conf. That was my previous suggestion. Specifically this portion from the link I gave:

Quote:

Check if you have something like this in the Monitor section of your /etc/X11/xorg.conf:

Section "Monitor"
.... (your values)....
HorizSync 30-110
VertRefresh 50-160
EndSection

Those values are for my own 19" CRT monitor. Check your monitor documentation for the correct values.

Riddick 11-10-2005 11:00 AM

yeah, that's all done.
An alternative to what I want to do would be to get TightVNC displaying
my current screen - do you know if that is possible?

Thanks, Riddick

bb002 12-03-2005 05:24 PM

Well after looking at this page http://support.dell.com/support/edoc...6/EN/about.htm

The proper HorizSync & VertRefresh are:
Code:

HorizSync 30-81
VertRefresh 56-76

Once you correct that and restart your x server it should automagically adjust to the correct resolution.

Xorg only probes for the devices listed in the xorg.conf file. Meaning if the current xorg.conf doesn't contain anything about the laptop screen, Xorg doesn't know that the laptop screen exists at all.


All times are GMT -5. The time now is 08:13 AM.