Date: Tue, 25 Sep 2007 01:32:42 -0700 From: Andriy Babiy <freebsdathome@shaw.ca> To: FreeBSD-questions@freebsd.org Subject: xorg.conf -- how to make use of Modeline Message-ID: <d100d2256d369.46f8653a@shaw.ca>
next in thread | raw e-mail | index | archive | help
Hi everybody! I want to explicitly set the video mode used by X server. Generally, X works with the default xorg.conf, generated with X -configure. But the picture is unstable: there are tiny waves that I wanted to get rid of. The xorg.conf manual page describes how to set mode to be used. First, I generated the Modeline with gtf, then inserted the line to the Monitor section and referenced it in the Display subsection. Probably, my config is incorrect because it is simply ignored, and X server starts always with the same resolution and refresh rate 1024x768x85Hz. I wanted to ask if this is the correct way of setting the resolution / refresh rate. $uname -a FreeBSD xxx.yyy.com 6.2-STABLE FreeBSD 6.2-STABLE #0: Thu Sep 20 23:24:38 PDT 2007 root@:/usr/obj/usr/src/sys/AMD64 amd64 Ports were upgraded to the latest as of Sep 22. $ cat /etc/X11/xorg.conf Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 InputDevice "Mouse0" "CorePointer" InputDevice "Keyboard0" "CoreKeyboard" EndSection Section "Files" RgbPath "/usr/local/share/X11/rgb" ModulePath "/usr/local/lib/xorg/modules" FontPath "/usr/local/lib/X11/fonts/misc/" FontPath "/usr/local/lib/X11/fonts/TTF/" FontPath "/usr/local/lib/X11/fonts/OTF" FontPath "/usr/local/lib/X11/fonts/Type1/" FontPath "/usr/local/lib/X11/fonts/100dpi/" FontPath "/usr/local/lib/X11/fonts/75dpi/" EndSection Section "Module" Load "extmod" Load "record" Load "dbe" Load "glx" Load "GLcore" Load "xtrap" Load "dri" Load "freetype" Load "type1" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" Option "ZAxisMapping" "4 5 6 7" EndSection Section "Monitor" #DisplaySize 310 230 # mm Identifier "Monitor0" VendorName "SAMSUNG" ModelName "SyncMaster 793DF" ### Comment all HorizSync and VertRefresh values to use DDC: HorizSync 30.0 - 71.0 VertRefresh 50.0 - 160.0 UseModes "modes60Hz" Option "DPMS" EndSection Section "Device" ### Available Driver options are:- ### Values: <i>: integer, <f>: float, <bool>: "True"/"False", ### <string>: "String", <freq>: "<f> Hz/kHz/MHz" ### [arg]: arg optional #Option "NoAccel" # [<bool>] #Option "SWcursor" # [<bool>] #Option "Dac6Bit" # [<bool>] #Option "Dac8Bit" # [<bool>] #Option "BusType" # [<str>] #Option "CPPIOMode" # [<bool>] #Option "CPusecTimeout" # <i> #Option "AGPMode" # <i> #Option "AGPFastWrite" # [<bool>] #Option "AGPSize" # <i> #Option "GARTSize" # <i> #Option "RingSize" # <i> #Option "BufferSize" # <i> #Option "EnableDepthMoves" # [<bool>] #Option "EnablePageFlip" # [<bool>] #Option "NoBackBuffer" # [<bool>] #Option "DMAForXv" # [<bool>] #Option "FBTexPercent" # <i> #Option "DepthBits" # <i> #Option "PCIAPERSize" # <i> #Option "AccelDFS" # [<bool>] #Option "DDCMode" # [<bool>] #Option "IgnoreEDID" # [<bool>] #Option "DisplayPriority" # [<str>] #Option "PanelSize" # [<str>] #Option "ForceMinDotClock" # <freq> #Option "ColorTiling" # [<bool>] #Option "VideoKey" # <i> #Option "RageTheatreCrystal" # <i> #Option "RageTheatreTunerPort" # <i> #Option "RageTheatreCompositePort" # <i> #Option "RageTheatreSVideoPort" # <i> #Option "TunerType" # <i> #Option "RageTheatreMicrocPath" # <str> #Option "RageTheatreMicrocType" # <str> #Option "ScalerWidth" # <i> #Option "RenderAccel" # [<bool>] #Option "SubPixelOrder" # [<str>] #Option "ShowCache" # [<bool>] #Option "DynamicClocks" # [<bool>] #Option "VGAAccess" # [<bool>] #Option "ReverseDDC" # [<bool>] #Option "LVDSProbePLL" # [<bool>] #Option "AccelMethod" # <str> #Option "DRI" # [<bool>] #Option "ConnectorTable" # <str> #Option "DefaultConnectorTable" # [<bool>] #Option "DefaultTMDSPLL" # [<bool>] Identifier "Card0" Driver "ati" VendorName "ATI Technologies Inc" BoardName "RV370 5B60 [Radeon X300 (PCIE)]" BusID "PCI:3:0:0" EndSection Section "Modes" Identifier "modes60Hz" # 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz Modeline "1280x1024x60Hz" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync # 1024x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 64.11 MHz Modeline "1024x768x60Hz" 64.11 1024 1080 1184 1344 768 769 772 795 -HSync +Vsync EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Modes "1024x768x60Hz" "1280x1024x60Hz" EndSubSection SubSection "Display" Viewport 0 0 Depth 1 Modes "1024x768x60Hz" "1280x1024x60Hz" EndSubSection SubSection "Display" Viewport 0 0 Depth 4 Modes "1024x768x60Hz" "1280x1024x60Hz" EndSubSection SubSection "Display" Viewport 0 0 Depth 8 Modes "1024x768x60Hz" "1280x1024x60Hz" EndSubSection SubSection "Display" Viewport 0 0 Depth 15 Modes "1024x768x60Hz" "1280x1024x60Hz" EndSubSection SubSection "Display" Viewport 0 0 Depth 16 Modes "1024x768x60Hz" "1280x1024x60Hz" EndSubSection SubSection "Display" Viewport 0 0 Depth 24 Modes "1024x768x60Hz" "1280x1024x60Hz" EndSubSection EndSection /var/log/Xorg.0.log is quite a long file, so I would attach it if this is necessary. Apart from that - does gtf generate correct Modeline to be used with Xorg 7.3? I tried moving Modelines directly to Monitor section and to Modes section, tried using the VESA modes reported in Xorg.0.log; the result is always the same. Thank you in advance! Andriy
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d100d2256d369.46f8653a>