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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2005, 10:59 AM   #1
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
xorg.conf for Laptop & external display.


My xorg.conf is as follows:

Code:
Section "Files"
	RgbPath	"/usr/X11R6/lib/X11/rgb"
	ModulePath "/usr/X11R6/lib/modules"
	FontPath 	"/usr/X11R6/lib/X11/fonts/local"
	FontPath 	"/usr/X11R6/lib/X11/fonts/misc"
	FontPath 	"/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
	FontPath 	"/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
 	FontPath 	"/usr/X11R6/lib/X11/fonts/Type1"
    	FontPath 	"/usr/X11R6/lib/X11/fonts/CID"
    	FontPath 	"/usr/X11R6/lib/X11/fonts/Speedo"
    	FontPath 	"/usr/X11R6/lib/X11/fonts/cyrillic"
    	FontPath 	"/usr/local/share/fonts"
EndSection

Section "ServerFlags"
	#Option      	"standby time"  "5"
	#Option		"suspend time"  "10"
	Option      	"off time"      "2"
EndSection

Section "Module"
	Load "GLcore"
	Load "dbe"
	Load "dri"
	Load "extmod"
	Load "glx"
	Load "freetype"
EndSection

Section "InputDevice"
	Identifier	"Keyboard0"
	Driver	"kbd"
	Option     "XkbLayout"     "fr"
	Option     "XkbModel"      "dell"
EndSection

Section "InputDevice"
	Identifier	"Mouse0"
	Driver	"mouse"
	Option "Protocol"    "auto"
	Option "Device"      "/dev/mouse"
	Option "ZaxisMapping" "4 5"
	Option "Emulate3Buttons" "yes"
EndSection

Section "Device"
	Identifier "ATI|Rage Mobility M3 AGP 2x"
	Driver "r128"
	VideoRam 8192
	Option "EnablePageFlip" "true"
	Option "AGPFastWrite" "true"
	Option "AGPMode" "2" 
EndSection

Section "Monitor"
	Identifier "Generic LCD Panel 1024x768"
	VendorName "DELL"
	ModelName "C600 Screen"
	HorizSync 31.5-48.5
	VertRefresh 40-70
	Option		"DPMS"
EndSection

Section "Monitor"
	Identifier "DELL 1905FP"
	VendorName "DELL"
	ModelName "1905FP"
	HorizSync 31.5-48.5
	VertRefresh 40-70
	Option		"DPMS"
EndSection
 
Section "Screen"
	Identifier "Screen0"
	Device "ATI|Rage Mobility M3 AGP 2x"
	Monitor "Generic LCD Panel 1024x768"
	DefaultDepth 16
		Subsection "Display"
		Depth 32
		Modes "1024x768" "1280x1024" "800x600" "640x480"
		EndSubSection
		Subsection "Display"
		Depth 24
		Modes "1024x768" "1280x1024" "800x600" "640x480"
		EndSubSection
		Subsection "Display"
		Depth 16
		Modes "1024x768" "1280x1024" "800x600" "640x480"
		EndSubSection
		Subsection "Display"
		Depth 8
		Modes "1024x768" "1280x1024" "800x600" "640x480"
		EndSubSection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device "ATI|Rage Mobility M3 AGP 2x"
	Monitor "DELL 1905FP"
	DefaultDepth 16
		Subsection "Display"
		Depth 32
		Modes "1280x1024"
		EndSubSection
		Subsection "Display"
		Depth 24
		Modes "1280x1024"
		EndSubSection
		Subsection "Display"
		Depth 16
		Modes "1280x1024"
		EndSubSection
		Subsection "Display"
		Depth 8
		Modes "1280x1024"
		EndSubSection
EndSection

Section "ServerLayout"
	Screen "Screen1"
	Identifier "External"
	InputDevice "Mouse0"  "CorePointer"
	InputDevice "Keyboard0"  "CoreKeyboard"
EndSection

Section "ServerLayout"
	Screen "Screen0"
	Identifier "Standard"
	InputDevice "Mouse0"  "CorePointer"
	InputDevice "Keyboard0"  "CoreKeyboard"
EndSection

Section "DRI"
	 Mode 0666
EndSection
I would like to force the screen to be able to display 1280x1024, because I can get the
image to go to the external monitor fine, but I can't bring it up to 1280x1024,
and so it looks very ugly.

I think the problem is that when X starts it scans for and finds the laptop's screen
which is 1024x768. Is there any way to force 1280x1024 as an option so that I can
select it in KRandRTray?

Thanks,

Riddick
 
Old 11-08-2005, 01:15 PM   #2
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Check the logfile for errors, it's located in /var/log/xorg.log
 
Old 11-08-2005, 01:18 PM   #3
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
It's really not:

ed@ed2:~$ cat /var/log/xorg.log
cat: /var/log/xorg.log: No such file or directory

and what errors?
 
Old 11-08-2005, 02:07 PM   #4
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Hi Riddick,
The xorg log file is in /etc/X11R6, and I don't know what errors to look for either. From the description nothing is breaking or crashing, it's just not producing the desired result. Correct?

What I did, using Slackware, for multiple displays is make a copy of my xorg.conf for each. One for the laptop and one for the external (tv). When I use the tv, which is very rare, I copy my xorg.conf-tv to xorg.conf before starting x. It's a little extra work but it works.
 
Old 11-08-2005, 02:11 PM   #5
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
alright - so how would I modify my current xorg.conf to be for 1280*1024?
 
Old 11-08-2005, 03:04 PM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
If there's a way to do this with just one file I'd be interested, too.

Using the multiple xorg.conf idea it would be like this. Call the original xorg.conf-laptop and copy it to xorg.conf-dell. Then edit them so the contents of both are the same except

laptop:
blah
blah

Section "Monitor"
Identifier "Generic LCD Panel 1024x768"
VendorName "DELL"
ModelName "C600 Screen"
HorizSync 31.5-48.5
VertRefresh 40-70
Option "DPMS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "ATI|Rage Mobility M3 AGP 2x"
Monitor "Generic LCD Panel 1024x768"
DefaultDepth 16
Subsection "Display"
Depth 32
Modes "1024x768" "800x600" "640x480"
EndSubSection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
Subsection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Dell:
blah
blah

Section "Monitor"
Identifier "Generic LCD Panel 1024x768"
VendorName "DELL"
ModelName "C600 Screen"
HorizSync 31.5-48.5
VertRefresh 40-70
Option "DPMS"
EndSection

Section "Screen"
Identifier "Screen0"
Device "ATI|Rage Mobility M3 AGP 2x"
Monitor "DELL 1905FP"
DefaultDepth 16
Subsection "Display"
Depth 32
Modes "1280x1024"
EndSubSection
Subsection "Display"
Depth 24
Modes "1280x1024"
EndSubSection
Subsection "Display"
Depth 16
Modes "1280x1024"
EndSubSection
Subsection "Display"
Depth 8
Modes "1280x1024"
EndSubSection
EndSection

And the same "server layout" for both:

Section "ServerLayout"
Screen "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Now when you want to use the Dell monitor copy xorg.conf-dell to xorg.conf before starting X.
 
Old 11-09-2005, 02:37 PM   #7
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
ok, my xorg.conf.external, which is symbolically linked to xorg.conf
is the following:

Code:
Section "Files"
	RgbPath	"/usr/X11R6/lib/X11/rgb"
	ModulePath "/usr/X11R6/lib/modules"
	FontPath 	"/usr/X11R6/lib/X11/fonts/local"
	FontPath 	"/usr/X11R6/lib/X11/fonts/misc"
	FontPath 	"/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
	FontPath 	"/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
 	FontPath 	"/usr/X11R6/lib/X11/fonts/Type1"
    	FontPath 	"/usr/X11R6/lib/X11/fonts/CID"
    	FontPath 	"/usr/X11R6/lib/X11/fonts/Speedo"
    	FontPath 	"/usr/X11R6/lib/X11/fonts/cyrillic"
    	FontPath 	"/usr/local/share/fonts"
EndSection

Section "ServerFlags"
	#Option      	"standby time"  "5"
	#Option		"suspend time"  "10"
	#Option      	"off time"      "2"
EndSection

Section "Module"
	Load "GLcore"
	Load "dbe"
	Load "dri"
	Load "extmod"
	Load "glx"
	Load "freetype"
EndSection

Section "InputDevice"
	Identifier	"Keyboard0"
	Driver	"kbd"
	Option     "XkbLayout"     "fr"
	Option     "XkbModel"      "dell"
EndSection

Section "InputDevice"
	Identifier	"Mouse0"
	Driver	"mouse"
	Option "Protocol"    "auto"
	Option "Device"      "/dev/mouse"
	Option "ZaxisMapping" "4 5"
	Option "Emulate3Buttons" "yes"
EndSection

Section "Device"
	Identifier "ATI|Rage Mobility M3 AGP 2x"
	Driver "r128"
	VideoRam 8192
	Option "EnablePageFlip" "true"
	Option "AGPFastWrite" "true"
	Option "AGPMode" "2" 
EndSection

Section "Monitor"
	Identifier "DELL 1905FP"
	VendorName "DELL"
	ModelName "1905FP"
	HorizSync 31.5-48.5
	VertRefresh 40-70
	Option		"DPMS"
EndSection
 
Section "Screen"
	Identifier "Screen0"
	Device "ATI|Rage Mobility M3 AGP 2x"
	Monitor "DELL 1905FP"
	DefaultDepth 16
		Subsection "Display"
		Depth 32
		Modes "1280x1024"
		EndSubSection
		Subsection "Display"
		Depth 24
		Modes "1280x1024"
		EndSubSection
		Subsection "Display"
		Depth 16
		Modes "1280x1024"
		EndSubSection
		Subsection "Display"
		Depth 8
		Modes "1280x1024"
		EndSubSection
EndSection

Section "ServerLayout"
	Screen "Screen0"
	Identifier "Standard"
	InputDevice "Mouse0"  "CorePointer"
	InputDevice "Keyboard0"  "CoreKeyboard"
EndSection

Section "DRI"
	 Mode 0666
EndSection
But still it starts up in 1024*768 mode with no potion to go up to
1280*1024.

I still think this is due to the screen being probed and X finding
the laptop screen, and limiting itself to 1024*768.

Is there any way to FORCE X into 1280*1024 (i.e. submission)?

Thanks,
Riddick

P.S. Hello again Dracolich - and thanks again for the DRI
 
Old 11-09-2005, 03:29 PM   #8
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Some Google searching leads me to think you need to adjust the horizontal and vertical rates for the external monitor. Perhaps since you're using the same rates for both you're getting the same results. Also here's a related LQ thread:

http://www.linuxquestions.org/questi...hreadid=368114
 
Old 11-10-2005, 05:39 AM   #9
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
I've added those, but I think it's still probing the laptop's screen!
Is there anyway of FORCING 1280*1024 as an acceptable mode?


Riddick
 
Old 11-10-2005, 08:46 AM   #10
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
I understand you want to "force" a certain resolution. And, as far as i know, the only way is to have it as the only option on a "modes" line, but you already have it as that. My research has shown that other people who use resolutions of 1280x1024 or higher have higher HorizSync and VertRefresh rates in their .conf. That was my previous suggestion. Specifically this portion from the link I gave:

Quote:
Check if you have something like this in the Monitor section of your /etc/X11/xorg.conf:

Section "Monitor"
.... (your values)....
HorizSync 30-110
VertRefresh 50-160
EndSection

Those values are for my own 19" CRT monitor. Check your monitor documentation for the correct values.
 
Old 11-10-2005, 10:00 AM   #11
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
yeah, that's all done.
An alternative to what I want to do would be to get TightVNC displaying
my current screen - do you know if that is possible?

Thanks, Riddick
 
Old 12-03-2005, 04:24 PM   #12
bb002
Member
 
Registered: Aug 2005
Posts: 80

Rep: Reputation: 15
Well after looking at this page http://support.dell.com/support/edoc...6/EN/about.htm

The proper HorizSync & VertRefresh are:
Code:
HorizSync 30-81
VertRefresh 56-76
Once you correct that and restart your x server it should automagically adjust to the correct resolution.

Xorg only probes for the devices listed in the xorg.conf file. Meaning if the current xorg.conf doesn't contain anything about the laptop screen, Xorg doesn't know that the laptop screen exists at all.
 
  


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
xorg.conf - video && touchpad problem * (Dell C640) Pear-i Linux - Laptop and Netbook 2 07-27-2005 08:12 AM
Need xorg.conf for 1280x800 Compaq R3000Z display Gates1026 Linux - Laptop and Netbook 6 03-26-2005 08:09 AM
Altering xorg.conf to change mice doesn't work or disables display alex_denner Linux - Laptop and Netbook 3 02-06-2005 07:10 PM
xorg.conf in FC2 to support external monitor abarclay Fedora 0 08-31-2004 01:48 AM
Mandrake 9.1/IOGear ION External USB 2.0 hdd && Laptop LCD Display Prismatic Linux - Hardware 8 02-09-2004 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:27 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
Open Source Consulting | Domain Registration