Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using FC4 now and I have successfully installed my nVidia drivers and now I get use my usual resolution (1152x864) but I have one small problem.
I have to set the refresh rate at 70hz otherwise my screen shrinks in width and I get like a brown gradient (going from the sides) either side of the actual desktop (the only bit that should be visible). While I am logged in this is fine and easy to change to 70hz (the refresh rate I usually use), but by default Fedora is using the highest refresh available (85hz) which causes that problem. This means my login screen (the graphical greeter I'm presuming) is not using the "correct" refresh rate.
(Just to clarify, the problem isn't the refresh rate causing visual problems it's the fact the greeter is using the wrong one.)
I have looked in /etc/X11/xorg.conf, /etc/X11/gdm/gdm.conf, the pre session, post session, init and post login default (all in the /etc/X11/gdm/ directory) but have not seen anything to do with resolution, let alone the greeter resolution.
Am I on the right track and if not, where should I be looking to change the refresh rate to 70hz for the greeter (or even better... to default).
scroll through and read the comments regarding all the sections. Closer to the bottom you will find the section to edit your resolution. There is also a section to change the default screen size. Alternately, if you are compfortable with the your knowledge of your hardware, you can run as root:
xorgconf
in a cosnle. This will run the CLI tool for setting up your xorgconf. You will be able to enter in the V and H sync as well as the default color depth and resolution. If you elect this option you will have to set up your scroll wheel and DPMS by hand.
There is no such section for changing resolution and 'xorgconf' command doesn't exist.
I have included my xorg.conf.
EDIT: Unless I have to include something like 'DefaultRes' or 'DefaultResolution'? I mean put it in manually...
Code:
# Xorg configuration created by system-config-display
Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
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"
# Load "dri"
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 "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Unisys EVG3100-P"
DisplaySize 310 230
HorizSync 30.0 - 95.0
VertRefresh 50.0 - 160.0
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "NVIDIA GeForce 4 (generic)"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1152x864" "1152x768" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
The one farthest to the left is the default. I know the command xorgconf works but sometimes you have to input the entire string for the command. But the graphical tool is usually pretty good in FC. Slackware is where I have set up X with xorgconf. Change those things and restart the X server.
Heh I believe somewhere the problem has been lost.
I need to change the default refresh rate. I can't see what to change. I know it's defaulting to 85hz and I want it to be 70hz. Or at least make the greeter use 70hz...
Anyway, I'm not all that knowledge about HSync & VSync and things :P
it should change if you change the V and H sync to the appropriate level for your monitor. Once this is done, restart the X server. If it is still not to your liking go to the Pereferences and to Screen resolution. It should work itself out.
Ok I'll try messing with the H & V Sync and try to restrict it. If I blow my monitor up, I'm blaming you... :P
AMENDMENT: Ok I changed my 'HorizSync 30.0 - 95.0' to 'HorizSync 30.0 - 70.0'. This seems to MOSTLY work, the screen isn't going strange but now it's slightly off center, there is a gap of about, half an inch on the left side of the screen. Going to continue fiddling with it maybe get it working 100%
2nd AMENDMENT: I've fixed it, now have another problem. 'HorizSync 30.0 - 60.0' makes the Greeter fit the screen perfectly, but I'm now forced into using 60Hz on everything. Which isn't good because I know this refresh rate gives me headaches & eye problems. I've only been in it for 5 minutes and my eyes are hurting... So I think I need an alternate method of running the greeter in 70hz than forcing Linux to thinking 60hz is the only frequency. Strange thing is, 'HorizSync 30.0 - 70.0' makes it off-center...
The nVidia drivers do that. Adjust make the adjustments with the monitor. Make sure that you know what the V and H sync is for your montior so you don't blow it up. Google for your monitor.
EDIT: Problem Solved. The greeter uses the highest refresh rate it can. I noticed that even though my upper limit was 70hz according to xorg.conf, I was able to choose, and use, 75hz. It seems to give a leeway of 5hz. So I changed the upper limit to 65hz in xorg.conf and lo and behold, the greeter is using the right one. I could tell this because my screen didn't flicker between that and logging in
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.