LinHES Forums http://forum.linhes.org/ |
|
How do I adjust refresh rate for vga http://forum.linhes.org/viewtopic.php?f=17&t=17115 |
Page 1 of 1 |
Author: | dave1234 [ Sat Oct 27, 2007 10:44 pm ] |
Post subject: | How do I adjust refresh rate for vga |
I came across a 19" lcd monitor, and when I hooked it up to my mythbox it says out of range. I want to edit the xorg.config file so that it boots into 1024x768 60hz , how do I do this. |
Author: | tjc [ Sat Oct 27, 2007 11:37 pm ] |
Post subject: | |
Make sure you've got an appropriate Modeline for that resolution under the "Monitor" section. If there isn't one already you'll need to search. Make sure that all of the "Display" subsections in your "Screen" section contain the name of that mode in the Modes line. Especially the one with the Depth which matches your DefaultColorDepth. So the look up then goes; DefaultColorDepth 24 -> Depth 24 -> Modes "1024x768@60hz" -> Modeline "1024x768@60hz". (BTW - Modeline names are arbitrary, while it's convention to use the resolution, you could call it "CecilWatsonRulez" just so long as the names matched.) Reading the messages in /var/log/Xorg.0.log will tell you which Modeline it uses and why it rejected certain possibilities. (e.g. vertical sync out of range, not enough RAM for the requested color depth, ...) |
Author: | dave1234 [ Sun Oct 28, 2007 12:31 am ] |
Post subject: | |
I am sure I don't have it right somewhere, here is my xorg file Section "ServerLayout" Identifier "XFree86 Configured" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" # PS/2 Mouse not detected InputDevice "Serial Mouse" "CorePointer" InputDevice "USB Mouse" "CorePointer" EndSection Section "ServerFlags" Option "AllowMouseOpenFail" "true" EndSection Section "Files" RgbPath "/usr/share/X11/rgb" ModulePath "/usr/lib/xorg/modules" FontPath "/usr/share/fonts/X11/misc:unscaled" FontPath "/usr/share/fonts/X11/75dpi:unscaled" FontPath "/usr/share/fonts/X11/100dpi:unscaled" FontPath "/usr/share/fonts/X11/Type1" FontPath "/usr/share/fonts/X11/Speedo" FontPath "/usr/share/fonts/X11/PEX" # Additional fonts: Locale, Gimp, TTF... FontPath "/usr/share/fonts/X11/cyrillic" # FontPath "/usr/share/fonts/X11/latin2/75dpi" # FontPath "/usr/share/fonts/X11/latin2/100dpi" # True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig! FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" FontPath "/usr/share/fonts/truetype" FontPath "/usr/share/fonts/latex-ttf-fonts" EndSection Section "Module" # Comments: see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=346408 Load "dbe" # Double Buffering Extension, very important. # Load "dri" # This shouldn't be available choice if user has selected driver vga, vesa or nv. Load "glx" # GLX Extension. Load "freetype" # Freetype fonts. Load "type1" # Type 1 fonts Load "record" # Developer extension, usually not needed # Load "extmod" # This is okay, but if you look into "man xorg.conf" you'll find option NOT to include DGA extension with extmod, and for a good reason.. DGA causes instability as it access videoram without consulting X about it. SubSection "extmod" Option "omit xfree86-dga" EndSubSection # Load "speedo" # Speedo fonts, this module doesn't exist in Xorg 7.0.17 # The following are deprecated/unstable/unneeded in Xorg 7.0 # Load "ddc" # ddc probing of monitor, this should be never present, as it gets automatically loaded. # Load "GLcore" # This should be never present, as it gets automatically loaded. # Load "bitmap" # Should be never present, as it gets automatically loaded. This is a font module, and loading it in xorg.conf makes X try to load it twice. EndSection Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "CoreKeyboard" Option "XkbRules" "xorg" Option "XkbModel" "pc105" Option "XkbLayout" "us" EndSection Section "InputDevice" Identifier "Serial Mouse" Driver "mouse" Option "Protocol" "Microsoft" Option "Device" "/dev/ttyS0" Option "Emulate3Buttons" "true" Option "Emulate3Timeout" "70" Option "SendCoreEvents" "true" EndSection Section "InputDevice" Identifier "PS/2 Mouse" Driver "mouse" Option "Protocol" "auto" Option "ZAxisMapping" "4 5" Option "Device" "/dev/psaux" Option "Emulate3Buttons" "true" Option "Emulate3Timeout" "70" Option "SendCoreEvents" "true" EndSection Section "InputDevice" Identifier "USB Mouse" Driver "mouse" Option "Device" "/dev/input/mice" Option "SendCoreEvents" "true" Option "Protocol" "IMPS/2" Option "ZAxisMapping" "4 5" Option "Buttons" "5" EndSection # Auto-generated by KNOPPIX mkxf86config Section "Monitor" VertRefresh 59.0 - 61.0 ... EndSection Section "Device" ### Available Driver options are:- # sw_cursor is needed for some ati and radeon cards #Option "sw_cursor" #Option "hw_cursor" #Option "NoAccel" #Option "ShowCache" #Option "ShadowFB" #Option "UseFBDev" #Option "Rotate" Identifier "Card0" # The following line is auto-generated by KNOPPIX mkxf86config Driver "nvidia" VendorName "All" BoardName "All" # BusID "PCI:1:0:0" EndSection Section "Screen" ... DefaultColorDepth 24 SubSection "Display" ... Modes "1024x768" Virtual 1024 768 Depth 24 ... EndSubSection ... EndSection Section "DRI" Mode 0666 EndSection |
Author: | grante [ Sun Oct 28, 2007 8:58 am ] |
Post subject: | Re: How do I adjust refresh rate for vga |
dave1234 wrote: I came across a 19" lcd monitor, and when I hooked it up to my
mythbox it says out of range. I want to edit the xorg.config file so that it boots into 1024x768 60hz , how do I do this. The easiest thing to do is to let the video card driver figure out the mode by itself (almost all of them can do that these days). You probably won't need to mess with actual mode line defintions. Just tell Xorg that you need a vertical scan rate of 60Hz like this: Code: Section "Monitor" ... VertRefresh 59.0 - 61.0 ... EndSection If you know the monitor's actual horizontal and vertical scan frequency specs you can put those in, and Xorg will pick the "best" rates it can manage that are compatible with your monitor. If you want to force particular frequencies or ranges, then put those in as I did above to make it pick 60Hz. Then tell it what resolution you want like this (I'm assuming a depth of 24 bits -- change that to whatever you want to use): Code: Section "Screen"
... DefaultColorDepth 24 SubSection "Display" ... Modes "1024x768" Virtual 1024 768 Depth 24 ... EndSubSection ... EndSection Given the allowed scan rates and resolution, Xorg will figure out a mode line for you. |
Author: | tjc [ Sun Oct 28, 2007 10:27 am ] |
Post subject: | |
dave1234 wrote: I am sure I don't have it right somewhere, here is my xorg file
That is not a valid xorg.conf file. It looks like an unexpanded xorg.conf.in file. There should be some working examples in the /etc/X11 directory. Look for the xorg.conf.1st or xorg.conf.nvidia.tv.out.sample files. |
Author: | dave1234 [ Sun Oct 28, 2007 11:20 am ] |
Post subject: | |
I entered the code, and that sort of worked. The timings are right now, but knoppmyth booted to a command prompt, instead of the graphical interface. Not sure why this happened. Here is the message i am getting: INIT: Id "c7" respawning too fast: disabled for 5 minutes |
Author: | dave1234 [ Sun Oct 28, 2007 12:09 pm ] |
Post subject: | |
sorry about that, I copied the wrong file. I have updated the previous post with the xorg.conf file. |
Author: | slowtolearn [ Sun Oct 28, 2007 12:42 pm ] |
Post subject: | |
dave1234 wrote: I entered the code, and that sort of worked. The timings are right now, but knoppmyth booted to a command prompt, instead of the graphical interface. Not sure why this happened. I don't see where you mentioned what hardware you are using. Is the graphics card an nVidia? If not you will need to change the Driver directive in your xorg.conf file. A search on these forums will yield a number of hits for "respawning too fast", typically an Xorg mis-configuration.
Here is the message i am getting: INIT: Id "c7" respawning too fast: disabled for 5 minutes Also, do you literally have the "..." in your xorg.conf file as you posted? Those shouldn't be there, Grant used those to indicate "(possibly) more information here" (although I suspect those will simply be ignored). |
Author: | dave1234 [ Sun Oct 28, 2007 12:53 pm ] |
Post subject: | |
I'm using an asus m2npv-vm motherboard with onboard nvidea 6150. |
Author: | slowtolearn [ Sun Oct 28, 2007 1:22 pm ] |
Post subject: | |
dave1234 wrote: I'm using an asus m2npv-vm motherboard with onboard nvidea 6150. And the "..." ?? Did you post the entire contents of your xorg.conf? And what are you using to edit the file?
Assuming you made a backup of the xorg.conf file before editing it, copy the backup into place and try replacing your Screen section with this: Code: Section "Screen" This is from my frontend using an M2NPV-VM.
Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultColorDepth 24 SubSection "Display" Depth 16 Modes "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 24 Modes "1024x768" "800x600" "640x480" EndSubSection SubSection "Display" Depth 32 Modes "1024x768" "800x600" "640x480" EndSubSection EndSection |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |