LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2007, 10:55 AM   #1
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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?
 
Old 10-25-2007, 12:49 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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
 
Old 10-25-2007, 01:04 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Lenard View Post
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.)
 
Old 10-25-2007, 01:44 PM   #4
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Original Poster
Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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
 
Old 10-25-2007, 03:49 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by dwhitney67 View Post
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?
 
Old 10-25-2007, 05:24 PM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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

Last edited by Lenard; 10-25-2007 at 05:29 PM.
 
Old 10-25-2007, 05:57 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Lenard View Post

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....
 
Old 10-25-2007, 06:58 PM   #8
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
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.
 
Old 01-11-2008, 01:57 PM   #9
dwhitney67
Senior Member
 
Registered: Jun 2006
Location: Maryland
Distribution: Kubuntu, Fedora, RHEL
Posts: 1,541

Original Poster
Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need advice about PCI VGA graphics card settings in xorg.conf mirror_man Slackware 7 01-20-2007 06:54 PM
Can someone post their xorg.conf mouse settings for mx310 please Old_Fogie Linux - Hardware 3 05-03-2006 11:34 AM
Dual Display (xorg.conf Settings) slash587 Linux - Software 3 02-20-2006 11:25 PM
Xorg.conf settings keep changing gtzpower Linux - Hardware 2 02-13-2006 11:56 PM
acer AL1714 xorg.conf settings lestoil Slackware 3 01-05-2006 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration