Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Getting correct Resolution - xorg.conf

You can ask for help with video cards, tv cards, dvb, monitors, webcams, digital cameras and software related to these devices, here. Tutorials about these devices can be posted here, too.
Post Reply
Message
Author
l0x
Forum Novice
Forum  Novice
Posts: 19
Joined: Fri Jun 27, 2014 9:36 pm

Getting correct Resolution - xorg.conf

#1 Post by l0x » Fri Jun 27, 2014 9:50 pm

Hello Folks. Happy to Join your forums. Hopefully someone here can assist.

I've gone forward quite a bit toward getting my Legacy Nvidia Install 173.14.39 to function appropriately.
The driver is installed, Xorg is stable, and nvidia-settings gives me SOME functionality.
Last thing needed: a 1280x1024 Resolution.

Here is my xorg config. Could one of you enlightened ones please help this little penguin??
(figure out why I'm not getting XrandR / Nvidia-settings to be able to change my Res.

============================================================
# nvidia-settings: X configuration file generated by nvidia-settings HEAVILY EDITED BY ME.
# nvidia-settings: version 1.0 (buildmeister@swio-display-x86-rh72-03.nvidia.com) Wed Nov 27 15:15:39 PST 2013

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules/"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
# FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection

Section "Module"
# Load "libglx.so.173.14.39" <works with or without, tried.
Load "dri"
# Load "extmod"
# Load "dri2"
# Load "dbe"
# Load "record"
EndSection

#Section "ServerFlags"
# Option "Xinerama" "0"
#EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "VideoKey" # <i>
#Option "WrappedFB" # [<bool>]
#Option "GLXVBlank" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "PageFlip" # [<bool>]
#Option "SwapLimit" # <i>
#Option "AsyncUTSDFS" # [<bool>]

Identifier "GPU-0"
Driver "nvidia"
# Option "Coolbits" "1"
# Option "AddARGBGLXVisuals" "true"
Option "TripleBuffer" "false"
BusID "PCI:1:0:0"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 60.00
VertRefresh 63.60
# 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
Modeline "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync
EndSection

Section "Screen"
Identifier "Screen0"
Device "GPU-0"
Monitor "Monitor0"
DefaultDepth 24
Option "nvidia-auto-select @1024x768" < makes no difference if I remove
SubSection "Display"
Depth 1
Modes "1280x1024" "1024x768" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x1024" "1024x768" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x1024" "1024x768" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768" "640x480"
EndSubSection
SubSection "Display"

Depth 24
Modes "1280x1024" "1024x768" "640x480"
EndSubSection
EndSection
=====================================================================
I have worked on this xorg.conf file quite a bit.
I've confirmed what will break it, and what wont, and also (duh) that it IS in fact the file being used.

My few cents: nvidia-auto-select< WHERE IS THAT???
What aspect of zorg reverts to that? (I have 800x600 res now).

I've promised myself to crack this, I just need a little more help. And when I do, I'm going to make a post/page someplace on the webz.

User avatar
timkb4cq
Forum Veteran
Forum Veteran
Posts: 4268
Joined: Wed Jul 12, 2006 4:05 pm

Re: Getting correct Resolution - xorg.conf

#2 Post by timkb4cq » Fri Jun 27, 2014 10:57 pm

The modeline in your xorg.conf calculates out to a horizontal refresh of 75.68 khz but you've also indicated your monitor will only do exactly 60 kHz. That doesn't allow the xserver to find a possible solution. I'm a bit surprised it works at all.
It's best to use ranges for horizontal & vertical refreshes in the Monitor section instead of single numbers. Try something like:
HorizSync 30 - 120
VertRefresh 50 - 75
If you look up your monitor's specs you can use the actual ranges given, although I've had CRTs that wouldn't work at the extremes of their listed specs so you may want to specify the range slightly conservatively.
MSI 970A-G43 MB, AMD FX-6300 (six core), 16GB RAM, GeForce 730, Samsung 850 EVO 250GB SSD, Seagate Barracuda XT 3TB

User avatar
kmathern
Forum Veteran
Forum Veteran
Posts: 9293
Joined: Wed Jul 12, 2006 2:26 pm

Re: Getting correct Resolution - xorg.conf

#3 Post by kmathern » Fri Jun 27, 2014 11:08 pm

My first is question is what are you running? (i.e. MEPIS 11, MEPIS 12, MX-14, etc.)

In the monitor section of your xorg.conf I think the values for HorizSync & VertRefresh should be swapped around
l0x wrote:Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 60.00
VertRefresh 63.60
# 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
Modeline "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync
EndSection
l0x wrote:Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 63.60
VertRefresh 60
# 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
Modeline "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync
EndSection
You might even let xorg use a range of timing values for HorizSync & VertRefresh, say 30-70 for HorizSync, and 58-62 for VertRefresh. (better yet use the ranges Tim posted)


What method was used to install the nvidia driver? If you're using MX-14 it has a Nvidia_Install item in it's menu that will install the nvidia driver. The Nvidia_Install script creates a /etc/X11/xorg.conf.d/20-nvidia.conf config file instead of a /etc/X11/xorg.conf file. It's shown below. As you can see it's a very minimal config compared to yours. It doesn't include a monitor section for specifying HorizSync & VertRefresh timings, it lets xorg figure that out on it's own.

Code: Select all

Section "Device"
	Identifier	"GPU"
	Driver		"nvidia"
EndSection

Section "Screen"
	Identifier	"Screens"
	Option		"TwinView" "1"
EndSection

l0x
Forum Novice
Forum  Novice
Posts: 19
Joined: Fri Jun 27, 2014 9:36 pm

Re: Getting correct Resolution - xorg.conf

#4 Post by l0x » Sat Jun 28, 2014 9:43 pm

Wow. Impressive. Just impressive the - speed with which my plight was responded to, and the accuracy with which both of you sighted & succinctly addressed the issue.

I should say, the ones initially supplied (Horiz 28.0-33.0 Vert 43.0-72.0) in the config did instinctively seem too low to me, but I suppose the precedence of trying to fiddle with these toward solution died, sometime after my improvisation (assumed) of the ranges (kmathern corrected).

BOTH of you were correct afaict. First I tried the range as Tim suggested. magnifique! WORKED. I noticed a bit of on-the-fly range adjustment by the system (out of range for just a second). Naturally, it was finding which, of the range, would work. 75hz is a tad high by memory (MS).

Then I tried what kmathern recommended, and judging by the results (Instant display, awesome) that was indeed the mistake made (ranges were misplaced - vice-versa-backwards).

I am SO thankful for both of you. Man is it good not to feel like I'm in a shoebox :D. This is the culmination of a lot of keyboard bashing and a few late-nights(mornings) effort. I haven't had nvidia even INSTALLING for over a month, and this resolution issue was the next challenge. I feel great.

I'm now going to do a complete reinstall, starting from scratch, and journal-ling the journey. I must chronicle this, not merely for the benefit of another who may encounter the same stumblingblocks installing Nvidia 173.14.39 with Antix 13.1 :bagoverhead: , but also for my own benefit - lest I should forget what I took to overcome both the install, then this RES issue.

(I've been searching for MONTHS over irc, ect for help).

Blessings and Peace be upon both of you. Epic *nix heros :

Image

Image

l0x
Forum Novice
Forum  Novice
Posts: 19
Joined: Fri Jun 27, 2014 9:36 pm

Re: Getting correct Resolution - xorg.conf

#5 Post by l0x » Sat Jun 28, 2014 9:46 pm

Meh - I'm new, and thus my deeply felt post of appreciation - having a pic attached has been screened for moderation. I just needed to say THANK YOU Gentlemen.

Post Reply

Return to “Video-Related”