LinuxQuestions.org
Review your favorite Linux distribution.
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 03-09-2010, 07:46 PM   #1
PasBern
Member
 
Registered: Dec 2009
Location: Berlin, Germany
Distribution: Sabayon 14, Debian Testing, Bodhi Linux, AntiX M11
Posts: 65

Rep: Reputation: 1
Creating xorg.conf in Ubuntu 9.10 for monitor resolution


Hey all,

thanks a lot for your great help in advance. I found quite a few similar threads for my problem, but though I think I basically know the way how to solve it, the exact solution is not clear to me.
Following problem:
Since the display of my notebook doesn't work very well anymore, straight vertical blue line on the right side of the screen, I want to connect an external monitor. (ADI [it doesn't say the exact model] 21 inch; resolution 1600x1200 and 85 Hz refresh rate).
I'm using Ubuntu 9.10 with kernel 2.6.31.17 and xrandr does not recognize the monitor correctly (see code of xrandr output). Adding a new mode did not work and currently it displays a resolution of 1200x768 which is horrible. In this version of Ubuntu the xorg.conf is not used anymore and is thus empty. As I have read you could create an entry in a new xorg.conf for your hardware which would be used by Ubuntu, having priority over xrandr settings.
But I do not really know what the monitor section in xorg.conf would have to look like, as the original screen would have to be set to 1200x768 or be disabled all together. The screens would have to be mirrored. Would the setting also work, when the external monitor is not connected to the notebook, so the original screen would display everything correctly.
Here some information about the system which will hopefully be useful for you. Please post helpful links I have overlooked or ask for more information.

My onboard graphics intel chip is capable of a resolution of 1600x1200 as it works in Windows:

lscpi output for graphics chip:
Code:
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
loaded kernel modules (relevant lines, at least I hope) according to lsmod (the driver from Intel web page is totally outdated and I think this is not the problem, so I didn't consider compiling a new driver)
Code:
intel_agp              27484  2 i915
agpgart                34988  2 drm,intel_agp
video                  19380  1 i915
output                  2780  1 video
xrandr information xrandr -V:

Code:
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA1 connected 1024x768+0+0 (0x40) normal (normal left inverted right x axis y axis) 380mm x 290mm
	Identifier: 0x3b
	Timestamp:  100526
	Subpixel:   unknown
	Clones:    
	CRTC:       0
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	EDID_DATA:
		00ffffffffffff000489561263690001
		230801010d261d7d680692a0574f9726
		10484fffff803159455981806159a940
		a94a8199a94fd609809020e01d101060
		a2007c2211080818000000fd0032781f
		5eff000a202020202020000000ff0030
		31325436303130363936330a000000fc
		004e45572050414e44412032310a00d9
  1280x1024 (0x3e)  135.0MHz +HSync +VSync
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock   80.0KHz
        v: height 1024 start 1025 end 1028 total 1066           clock   75.0Hz
  1152x864 (0x3f)  108.0MHz +HSync +VSync
        h: width  1152 start 1216 end 1344 total 1600 skew    0 clock   67.5KHz
        v: height  864 start  865 end  868 total  900           clock   75.0Hz
  1024x768 (0x40)   78.8MHz +HSync +VSync *current
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock   60.1KHz
        v: height  768 start  769 end  772 total  800           clock   75.1Hz
  1024x768 (0x41)   75.0MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1328 skew    0 clock   56.5KHz
        v: height  768 start  771 end  777 total  806           clock   70.1Hz
  1024x768 (0x42)   65.0MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  832x624 (0x43)   57.3MHz -HSync -VSync
        h: width   832 start  864 end  928 total 1152 skew    0 clock   49.7KHz
        v: height  624 start  625 end  628 total  667           clock   74.6Hz
  800x600 (0x44)   50.0MHz +HSync +VSync
        h: width   800 start  856 end  976 total 1040 skew    0 clock   48.1KHz
        v: height  600 start  637 end  643 total  666           clock   72.2Hz
  800x600 (0x45)   49.5MHz +HSync +VSync
        h: width   800 start  816 end  896 total 1056 skew    0 clock   46.9KHz
        v: height  600 start  601 end  604 total  625           clock   75.0Hz
  800x600 (0x46)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  800x600 (0x47)   36.0MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock   35.2KHz
        v: height  600 start  601 end  603 total  625           clock   56.2Hz
  640x480 (0x48)   31.5MHz -HSync -VSync
        h: width   640 start  664 end  704 total  832 skew    0 clock   37.9KHz
        v: height  480 start  489 end  491 total  520           clock   72.8Hz
  640x480 (0x49)   31.5MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock   37.5KHz
        v: height  480 start  481 end  484 total  500           clock   75.0Hz
  640x480 (0x4a)   30.2MHz -HSync -VSync
        h: width   640 start  704 end  768 total  864 skew    0 clock   35.0KHz
        v: height  480 start  483 end  486 total  525           clock   66.7Hz
  640x480 (0x4b)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  490 end  492 total  525           clock   60.0Hz
  640x480 (0x4c)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  784 skew    0 clock   32.1KHz
        v: height  480 start  490 end  492 total  509           clock   63.1Hz
  720x400 (0x4d)   35.5MHz -HSync -VSync
        h: width   720 start  738 end  846 total  900 skew    0 clock   39.4KHz
        v: height  400 start  421 end  423 total  449           clock   87.8Hz
  720x400 (0x4e)   28.3MHz -HSync +VSync
        h: width   720 start  738 end  846 total  900 skew    0 clock   31.5KHz
        v: height  400 start  412 end  414 total  449           clock   70.1Hz
LVDS1 connected 1024x768+0+0 (0x42) normal (normal left inverted right x axis y axis) 289mm x 21mm
	Identifier: 0x3c
	Timestamp:  100526
	Subpixel:   horizontal rgb
	Clones:    
	CRTC:       1
	CRTCs:      1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	EDID_DATA:
		00ffffffffffff00320c00b900000000
		00100102802115780a0f109758528828
		23505400000001010101010101010101
		010101010101d51b00a0502017303020
		26002115100000190000000000000000
		00000000000000000000000000fe004c
		475068696c6970734c43440a000000fe
		004c503135345730312d544c414a0036
	BACKLIGHT: 7 (0x00000007)	range:  (0,7)
	Backlight: 7 (0x00000007)	range:  (0,7)
	scaling mode:	Fullscreen
		supported: Non-GPU      Fullscreen   No scale     Aspect      
  1280x800 (0x4f)   71.2MHz -HSync -VSync +preferred
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock   49.5KHz
        v: height  800 start  802 end  808 total  823           clock   60.1Hz
  1024x768 (0x42)   65.0MHz -HSync -VSync *current
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock   48.4KHz
        v: height  768 start  771 end  777 total  806           clock   60.0Hz
  800x600 (0x46)   40.0MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock   37.9KHz
        v: height  600 start  601 end  605 total  628           clock   60.3Hz
  640x480 (0x50)   25.2MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock   31.5KHz
        v: height  480 start  490 end  492 total  525           clock   59.9Hz
TV1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x3d
	Timestamp:  100526
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 1
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	bottom margin: 37 (0x00000025)	range:  (0,100)
	right margin: 46 (0x0000002e)	range:  (0,100)
	top margin: 36 (0x00000024)	range:  (0,100)
	left margin: 54 (0x00000036)	range:  (0,100)
	mode:	NTSC-M
		supported: NTSC-M       NTSC-443     NTSC-J       PAL-M       
		           PAL-N        PAL          480p@59.94Hz 480p@60Hz   
		           576p         720p@60Hz    720p@59.94Hz 720p@50Hz   
		           1080i@50Hz   1080i@60Hz   1080i@59.94H
I guess it would be very helpful if someone could post his or her xorg.conf file of a Knoppix distribution as it should have an entry for pretty much all hardware, especially the entry for generic monitor which should work when modified to my monitor in case.

Thanks a lot guys and please forgive me when there is thread that provides a perfect answer!!
 
Old 04-01-2010, 06:38 PM   #2
markoellermann
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Rep: Reputation: 0
Hi,
I'm also running Ubuntu 9.10, and have the same chipset as you (my kernel version, lspci and lsmod lines are identical to yours).
My HP netbook has a local 1366x768 display and I hook up a 1680x1050 external display at work. When at work my display spans both monitors, with the netbook screen sitting underneath the big monitor and hosting my start menu and email. My xorg.conf file is below. You may need to fiddle with the monitor settings for each to match your displays, and the options for "Above" "Below" and "Position" will need to be tweaked to suit your setup.


Code:
Section "Device"
	Identifier      "Intel 945GM"
	Driver	 "intel"
 
	Option	  "monitor-VGA1" "external"
	Option	  "monitor-LVDS1" "mini"
EndSection
 
Section "Monitor"
	Identifier	"external"
	#Options LeftOf, RightOf, Above, Below specify monitor's relative position
	Option	"Above"	"mini"
	#Option "Enable"  "true"       
	# 1680x1050 @ 60.00 Hz (GTF) hsync: 65.22 kHz; pclk: 147.14 MHz
	Modeline "1680x1050_60"  147.14  1680 1784 1968 2256  1050 1051 1054 1087  -HSync +Vsync

	# specifies a mode to be marked as the preferred initial mode of the monitor
	Option "PreferredMode"  "1680x1050_60"
	# This optional entry specifies the position of the monitor within the X screen.
	#Option	"Position" "0 0"
EndSection
 
Section "Monitor"
	Identifier      "mini"
	Option	"PreferredMode"  "1366x768"
	#DisplaySize 223 121 # 150 DPI @ 1366x768
	Option	"DPI"	"120 x 120"	# Override native DPI for consistent display on external monitors
EndSection
 
Section "Screen"
	Identifier      "Default Screen"
	Device	"Intel Corporation 945G Integrated Graphics Controller"
	Monitor       "mini"
	DefaultDepth  24
	SubSection "Display"
		Depth	  24
		Modes	 "1680x1050"  "1366x768"
		# This optional entry specifies the virtual screen resolution to be used.
		# If this entry is not present, the virtual screen resolution will be set to
		# accommodate all the valid video modes given in the Modes entry.
		# There is a known issue that DRI doesn't work on pre-965 if maximum is larger than 2048x2048.
		#Virtual		 2048 2048
	EndSubSection
EndSection
To get appropriate "Modeline" entries for your monitors, try this online Modeline generator: http://xtiming.sourceforge.net/cgi-bin/xtiming.pl

Hope this helps...

Last edited by markoellermann; 04-01-2010 at 06:40 PM.
 
  


Reply

Tags
screen resolution, ubuntu, xorgconf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Dual Monitor: 2nd monitor not coming up -- xorg.conf missing something? Hewson Linux - Hardware 3 10-20-2009 12:24 PM
xorg.conf bizarre monitor section / obtaining 96dpi screen resolution for WinXP Font lesmyer Linux - Newbie 1 06-13-2006 02:30 PM
Need Help Creating xorg.conf thx8311 Ubuntu 3 02-26-2006 11:52 AM
someone double check my xorg.conf plz? (tri-monitor woes ubuntu 5.10) 0okami Linux - Hardware 4 01-04-2006 11:40 AM
Getting the resolution right in xorg.conf slimjim Linux - Software 1 04-26-2005 02:03 PM


All times are GMT -5. The time now is 10:10 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration