LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What to change in XF86Config file (https://www.linuxquestions.org/questions/linux-newbie-8/what-to-change-in-xf86config-file-101467/)

mahsan 10-07-2003 10:48 PM

What to change in XF86Config file
 
Hi .

I'm new to Linux & installed RH9 , I want to change my screen resolution 1024x786. I tried my best through the display setting it keeps on restarting & comes to same old. I have my XF86Config file here ..Plz make the requied changes & send it back to change the screen resolution.

Thanks.

# XFree86 4 configuration created by redhat-config-xfree86

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection

Section "Files"
# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.

# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.

RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
EndSection

Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"

# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "InputDevice"
# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Dell E551c"
DisplaySize 280 210
HorizSync 30.0 - 54.0
VertRefresh 50.0 - 120.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "i810"
VendorName "Videocard vendor"
BoardName "Intel 845"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection

jayakrishnan 10-08-2003 12:09 AM

try the redhat-config-xfree86 command

mahsan 10-08-2003 12:36 AM

the changes which are made with redhat-config-xfree86 commad is not working , asking to restart. When restarted gives some error & comes back to same old stuff . What to do ??

slackmagic 10-08-2003 12:52 AM

hi mahsan,

you haven't told us what resolution you want :)

but I can tell you how you can go ahead and change to the desired resolution by yourself

Quote:

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection
I've MARKED the line that you need to edit by yourself with the list of desired resolutions.

By your [current] config, you have 1024*768, 800*600 and 640*480 available at this moment. You can switch between them by using the key-sequence:

CTRL + ALT + -
or
CTRL + ALT + +

let me know if you need more help with this!


jayakrishnan 10-08-2003 03:48 AM

hey retiredsoldier nice tip but when i tried doing that the screen went blank

slackmagic 10-08-2003 07:08 AM

hi there,

well it depends on your XF86Config file. If there aren't any resolutions listed besides the one that you normally use, then I believe that's what happens.

However, I never had any problems with resolutions and I use 2 different ones (1600*1200 and 800*600) - I switch between them probably 10 times a day :D

check your XF86Config to see if you have more than 1 MODE listed...

hope this helps

jamv.co 02-25-2004 08:28 PM

Re: What to change in XF86Config file
 
Hi...

jamv.co 02-25-2004 08:35 PM

Re: What to change in XF86Config file
 
Hi... I used to have the same problem trying to get the 1024x768 display size in a Dell's E551c monitor. Im using a Optiplex GX260. An the video card its an Intel 845. I tryed everithing and nothig works.

Finally... I change the BIOS configuration, and the problem was that there were no enough RAM for the card. So I put a little more RAM... like 8MB and thats work for me.

chii-chan 02-25-2004 09:05 PM

May be the refresh rate is not correct. This part:

Quote:

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Dell E551c"
DisplaySize 280 210
HorizSync 30.0 - 54.0
VertRefresh 50.0 - 120.0
Option "dpms"
EndSection
You should refer to your monitor documentation for correct refresh rate, or may be it is somewhere in the back of your monitor.

M9595 02-25-2004 11:39 PM

Ok, I followed this thread to the bottom..and pretty much followed it through to the end thinking I was going to find my answer; so here I am appending...simply to keep this thread complete.

I just installed Fedora everything identified fine. It appears my desktop is using the maximum refresh rate of 85 (I know this since Windows mis aligns the screen at that refresh rate & the same appears to be the case in Fedora). I need to set the refresh rate for a patricular "Screen" to 75...how can it be done? I do not want to simply limit all the fresh rates to 75 by modifying the "Monitor" section.

sharpie 02-26-2004 01:34 AM

For the people who are trying to set a different resolution, you might need to add some modelines if just adding the modes doesn't work. You can find out your modelines by searching for someone elses XF86Config file who has the same monitor as you, or getting the read-edid package, google it. It's imortant you set the right modelines, although I haven't heard of anybody's monitor being destroyed due to using incorrect modelines.


All times are GMT -5. The time now is 04:29 AM.