LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help with xorg.conf settings (http://www.linuxquestions.org/questions/linux-software-2/help-with-xorg-conf-settings-594533/)

dwhitney67 10-25-2007 10:55 AM

Help with xorg.conf settings
 
Hello,

I am attempting to configure the xorg.conf file for my LCD display that is driven by an ATI Rage Mobility P/M video chip-set.

The X11 display needs to be adjusted approximately 1/4" down. I have tried to run xvidtune on the system, but it fails with an error concerning "XF86VidModeZoomLocked".

The system I am using is running a custom Linux OS.

When I temporarily installed FC5, I was able to run xvidtune, and yield these results:

Code:

"800x600"  39.87 800 840 968 1056  600 601 604 628 +hsync +vsync
HorizSync: 37.76
VertSync: 60.12

When I reinstalled the custom OS, and then edited the xorg.conf file with the xvidtune info shown above, the screen still appears shifted up 1/4" versus what was displayed when FC5 was running (btw, X11 under FC5 ran "out-of-the-box" just fine, without any adjustments).

This is what I inserted into the xorg.conf file for the "Monitor" section:

Code:

...
HorizSync    37.76
VertRefresh  60.12
Modeline    "800x600" 39.87 800 840 968 1056  600 601 604 628 +hsync +vsync

After rebooting, X runs but the display is still shifted 1/4" up. What I am doing wrong?

Lenard 10-25-2007 12:49 PM

Why not let the system figure out the best for the LCD display???

Example:
Code:

### Comment all HorizSync and VertSync values to use DDC:
        Identifier  "Monitor0"
        ModelName    "LCD Panel"
#        HorizSync    31.5 - 90.0
#        VertRefresh  50.0 - 70.0
        Option            "DPMS" "true"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    24
        EndSubSection
EndSection


pixellany 10-25-2007 01:04 PM

Quote:

Originally Posted by Lenard (Post 2936664)
Why not let the system figure out the best for the LCD display???

Did not work for me with a Dell 24" wide-screen. I had to use a modeline.

In the process, I discovered a cute little tool (gtf) for making modelines. It gives a similar answer to what you show, except that it includes the vert refresh in the title---eg:
Quote:

# 800x600 @ 60.00 Hz (GTF) hsync: 37.32 kHz; pclk: 38.22 MHz
Modeline "800x600_60.00" 38.22 800 832 912 1024 600 601 604 622 -HSync +Vsync
Note that people recommend editing to remove the ".00" after "60"


I would put in ranges for H and V sync. On mine, I used the mfg spec for H, and 59.9-60.1 for V.

finally, I think you have to have one mode in the "display" subsection--namely the highest res. you will be using.

Here is what works on my system:
Quote:

Section "Monitor"
Identifier "monitor1"
VendorName "Generic"
ModelName "Flat Panel 1920x1200"
Option "DPMS"
HorizSync 31.5-90
VertRefresh 59.9 - 60.1
Modeline "1920x1200" 193.16 1920 2048 2256 2592 1200 1201 1204 1242
+Hsync -Vsync
EndSection

Section "Device"
Identifier "device1"
VendorName "nVidia Corp."
BoardName "NVIDIA GeForce FX (generic)"
Driver "nv"
EndSection

Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24

Subsection "Display"
Depth 24
Modes "1920x1200" "1440x900" "1280x800"
EndSubsection
EndSection
(Based on the monitor manual, I changed the sync polarities from what gtf produced.)

dwhitney67 10-25-2007 01:44 PM

Lenard and Pixellany -

Thanks for your replies. I tried the "DPMS" in the xorg.conf in lieu of the Modeline, and the result is the same.

When I start X, the grey pixel screen shows up, and rising approximately 1/4" from the bottom is a black strip. Could this be a h/w issue and not related at all to X11??

I wonder if I am using the wrong X11 driver? Here are sections of the xorg.conf I am using (in its original form):

Code:

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
        Modeline    "800x600" 32.50 800 816 856 1056 600 601 624 625
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "ati"
EndSection

Section "Screen"
        Identifier  "Screen0"
        Device      "Card0"
        Monitor      "Monitor0"
        SubSection "Display"
                Depth    16
                Modes "800x600"
        EndSubSection
EndSection


pixellany 10-25-2007 03:49 PM

Quote:

Originally Posted by dwhitney67 (Post 2936724)
Lenard and Pixellany -

Thanks for your replies. I tried the "DPMS" in the xorg.conf in lieu of the Modeline, and the result is the same.

Who suggested that??? DPMS is about power management---it does not interact with modelines, resolution settings, etc.

did you try something based on my sample?

have you tried other resolutions?

Lenard 10-25-2007 05:24 PM

To dwhitney67;

Quote:

Section "Device"
Identifier "Card0"
Driver "ati"
EndSection
As a suggestion based on the above: http://ati.amd.com/support/drivers/l...ux-radeon.html

Here is my xorg.conf file based on the ATI driver;
Code:


# Xorg configuration created by system-config-display

Section "ServerLayout"
        Identifier    "single head configuration"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Synaptics" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
        Load  "dri"
        Load  "extmod"
        Load  "glx"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"
EndSection

Section "InputDevice"
        Identifier  "Synaptics"
        Driver      "synaptics"
        Option            "Device" "/dev/input/mice"
        Option            "Protocol" "auto-dev"
        Option            "Emulate3Buttons" "yes"
EndSection

Section "Monitor"

 ### Comment all HorizSync and VertSync values to use DDC:
        Identifier  "Monitor0"
        ModelName    "LCD Panel 1280x800"
#        HorizSync    31.5 - 90.0
#        VertRefresh  59.9 - 60.1
        Option            "DPMS" "true"
EndSection

Section "Device"
        Identifier        "Videocard0"
        Driver                "fglrx"
        Option                "VideoOverlay" "on"
        Option                "Centermode" "off"
        Option                "UseFastTLS" "0"
        Option                "BlockSignalsOnLock" "on"
        Option                "ForceGenericCPU" "off"
        Option                "KernelModuleParm" "locked-userpages=0"
        Option                "UseInternalAGPGART" "no"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Videocard0"
        Monitor    "Monitor0"
        DefaultDepth    24
        SubSection "Display"
                Viewport  0 0
                Depth    24
        EndSubSection
EndSection

Section "ServerFlags"
        Option            "AIGLX" "off"
EndSection

Section "DRI"
        Group        0
        Mode        0666
EndSection

Section "Extensions"
        Option            "Composite" "False"
        Option      "XVideo"  "Enable"
EndSection


To pixellany:

Quote:

Section "Device"
Identifier "device1"
VendorName "nVidia Corp."
BoardName "NVIDIA GeForce FX (generic)"
Driver "nv"
EndSection
based on this above: http://www.nvidia.com/object/linux_d...100.14.19.html

Quote:

DPMS is about power management---it does not interact with modelines, resolution settings, etc.
See: http://tldp.org/HOWTO/Battery-Powered/methods.html#XF86

Perhaps you should review you own xorg.conf file also:
Quote:

Section "Monitor"
Identifier "monitor1"
VendorName "Generic"
ModelName "Flat Panel 1920x1200"
Option "DPMS"
HorizSync 31.5-90
VertRefresh 59.9 - 60.1
Modeline "1920x1200" 193.16 1920 2048 2256 2592 1200 1201 1204 1242
+Hsync -Vsync
EndSection

pixellany 10-25-2007 05:57 PM

Quote:

Originally Posted by Lenard (Post 2936963)

To pixellany:

based on this above: http://www.nvidia.com/object/linux_d...100.14.19.html

See: http://tldp.org/HOWTO/Battery-Powered/methods.html#XF86

Perhaps you should review you own xorg.conf file also:

Not quite getting your point....

The first link is about the "official" Nvidia driver. I know about this, but mine works.

The second link is all about DPMS. To save me reading the whole thing---was I wrong about DPMS not being a factor in getting the right resolution settings?

Even if it's not perfect, my setup works....;)

Lenard 10-25-2007 06:58 PM

Quote:

The first link is about the "official" Nvidia driver. I know about this, but mine works.
Just a suggestion, mostly for others. I'm glad your setup works also ;)

Quote:

The second link is all about DPMS. To save me reading the whole thing---was I wrong about DPMS not being a factor in getting the right resolution settings?
Partly yes, with modern video interfaces and monitors probing with DPMS (and using DDE) can and does monitor resolutions. For example my laptop (Acer Aspire 5100) has a a wide screen (15.4) with a native resolution of 1280x800 which by default is utilized by the xorg.conf file I posted.

dwhitney67 01-11-2008 01:57 PM

Thanks everyone for your replies so far. It's been awhile since I have been able to return to the issue I originally posted.

My company finally was nice enough to provide me with my own system (with the ATI chip-set) that I can play with it. Now I can attempt to troubleshoot the X11 issue from the comfort of my home.

One thing I have found interesting is that the custom Linux OS and s/w applications that came installed on this system work fine. These are from a Release Candidate dated May 04, 2007. However, if I update the s/w with today's version, then I see the X11 screen shifted upward.

Is there anything that can explain this? The xorg.conf file, the X11 drivers, and for that matter the entire OS, are the same. The only thing that has changed is a proprietary applications (C++ daemon processes and Qt GUI) that my company develops.

After X11 is started, the gray-pixel screen is shifted by 1/4" (64mm) up, with a black bar shown below. When the Qt GUI is launched, it takes up the entire screen, however it too is shifted up. This is apparent by examining the position of buttons, labels, etc.

Any ideas where I can focus my attention on how to resolve this issue? I am completely stumped on what else I can do.


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