LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-08-2004, 01:46 PM   #1
Itzac
Member
 
Registered: Feb 2003
Distribution: VectorLinux 5.1
Posts: 116

Rep: Reputation: 15
Viewport-like behaviour in X


I have a NVidia Geforce4 video card. I just installed vector linux, with XFree86. It was initially using the nv driver and everything seemed fine, minus, of course, video acceleration. I installed the nvidia drivers and now my monitor doesn't seem to want to run at the right resolution. I have a desktop resolution of 1280x1024, but the actual monitor resolution is 1152x864, so I get some viewport scrolling action going on. I'd really like to get the monitor to display 1280x1025.

Any help would be greatly appreciated.

Here's my XF86Config.
Code:
Section "ServerLayout"
	Identifier     "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Keyboard0" "CoreKeyboard"
# PS/2 Mouse not detected
# Serial Mouse not detected
	InputDevice    "PS/2 Mouse"
        InputDevice    "USB Mouse" "CorePointer"
EndSection

Section "ServerFlags"
	Option "AllowMouseOpenFail"  "true"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
	FontPath     "/usr/X11R6/lib/X11/fonts/truetype/"
	FontPath     "/usr/X11R6/lib/X11/fonts/local/"
EndSection

Section "Module"
	Load  "dbe"
	#Load  "dri"
	Load  "extmod"
	Load  "glx"
	Load  "speedo"
	Load  "type1"
	Load  "freetype"
	Load  "record"
	Load  "xtrap"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
        Option      "CoreKeyboard"
	Option      "XkbLayout" ""
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" "IMPS/2"
	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 VECTOR vlmkxf86cfg

Section "Monitor"
        Identifier   "Monitor0"
	VendorName   "NEC"
        ModelName    "AccuSync 75F"
	HorizSync    31-70
	VertRefresh  55-120
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 VECTOR vlmkxf86cfg
#	Driver      "nv"
	Driver      "nvidia"
	VendorName  "Asus"
	BoardName   "V8440"
#	BusID       "PCI:1:0:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth 16
	SubSection "Display"
		Depth     1
		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     4
		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     8
		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     15
		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     16
		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     32
		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection
 
Old 05-09-2004, 01:47 AM   #2
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Try removing the 1152x864 parts from the Modes lines.

I would put a comment # right after 1280x1024 in the mode line for 16 bit color depth, your default. Just to test it.

If that doesn't do it, then you'll want to turn off DDC probing. It's possible that probing by the nvidia driver is telling X that your monitor can't do those resolutions.

Check /var/log/XFree86.0.log for bits about what your monitor says it's capable of.

--Shade
 
Old 05-09-2004, 04:19 AM   #3
Itzac
Member
 
Registered: Feb 2003
Distribution: VectorLinux 5.1
Posts: 116

Original Poster
Rep: Reputation: 15
So I changed the defaultdepth to 24bits instead of 16, and added the 1280x960 mode to the 24bit depth subsection. Then I commented out the mode statements for all the other display subsections. Now the monitor's running at 1280x960, which is better... I'm gonna try deleting all the other mode statements, next. Thanks, Shade.

Last edited by Itzac; 05-09-2004 at 04:22 AM.
 
Old 05-09-2004, 04:41 AM   #4
Itzac
Member
 
Registered: Feb 2003
Distribution: VectorLinux 5.1
Posts: 116

Original Poster
Rep: Reputation: 15
Seems that, despite 1280x1024x24 being the only Mode specified in the Screen section of my XF86Config, I can still only get 1280x960x24. On the upside, I dont get any more viewport scrolling behaviour. My next step is to add the IgnoreEDID flag to the device section and see what I get. I'll let you all know.
 
Old 05-09-2004, 04:49 AM   #5
Itzac
Member
 
Registered: Feb 2003
Distribution: VectorLinux 5.1
Posts: 116

Original Poster
Rep: Reputation: 15
Seems to have done it. The downside is that X has dropped all the font sizes down drastically.

So for an update, here's my XF86Config now:
Code:
Section "ServerLayout"
	Identifier     "XFree86 Configured"
	Screen      0  "Screen0" 0 0
	InputDevice    "Keyboard0" "CoreKeyboard"
# PS/2 Mouse not detected
# Serial Mouse not detected
	InputDevice    "PS/2 Mouse"
        InputDevice    "USB Mouse" "CorePointer"
EndSection

Section "ServerFlags"
	Option "AllowMouseOpenFail"  "true"
EndSection

Section "Files"
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	ModulePath   "/usr/X11R6/lib/modules"
	FontPath     "/usr/X11R6/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
	FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
	FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
	FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
	FontPath     "/usr/X11R6/lib/X11/fonts/truetype/"
	FontPath     "/usr/X11R6/lib/X11/fonts/local/"
EndSection

Section "Module"
	Load  "dbe"
#	Load  "dri"
	Load  "extmod"
	Load  "glx"
	Load  "speedo"
	Load  "type1"
	Load  "freetype"
	Load  "record"
	Load  "xtrap"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "keyboard"
        Option      "CoreKeyboard"
	Option      "XkbLayout" ""
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" "IMPS/2"
	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 VECTOR vlmkxf86cfg

Section "Monitor"
        Identifier   "Monitor0"
	VendorName   "NEC"
        ModelName    "AccuSync 75F"
	HorizSync    31.0-70.0
	VertRefresh  55-120
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 VECTOR vlmkxf86cfg
#	Driver      "nv"
	Driver      "nvidia"
	VendorName  "Asus"
	BoardName   "V8440"
#	BusID       "PCI:1:0:0"
	Option      "NoLogo"
	Option      "IgnoreEDID"
#	Option      "CursorShadow"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth 24
	SubSection "Display"
		Depth     1
#		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     4
#		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     8
#		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     15
#		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     16
#		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     24
		Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth     32
#		Modes "1280x1024" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection
Squintilly yours,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vi Behaviour! dlublink SUSE / openSUSE 5 09-20-2006 09:14 AM
X login screen uses wrong resolution with viewport donni Linux - Software 2 06-12-2005 11:57 AM
TCP/IP Behaviour ilnli Linux - Networking 6 12-24-2004 12:27 AM
Clone Behaviour stomfi General 0 11-07-2002 08:19 PM
Strange Behaviour mikeyt_3333 Linux - General 4 08-06-2001 03:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration