LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-09-2010, 06:42 AM   #1
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Rep: Reputation: 30
Slackware 13 x64 doesn't see xorg.conf


Hi,

I have freshly installed Slackware 13 64-bit.

After messing around last time trying to compile fglrx for my ATi card, I now understand it uses a built in radeon driver.

My question is this: how do I get X to recoqnise my custom xorg.conf file? I dropped it in /etc/X11 but to no avail.

HAL does it great job - but I need my xorg.conf as I have dual monitors which HAL doesn't configure correctly (displays mirrored, not stretched).

Any suggestions?


~Mark
 
Old 04-09-2010, 07:46 AM   #2
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
After looking at /var/log/Xorg.0.log I can see that it does read my /etc/X11/xorg.conf file, and sees both cards and screens.

The log file is misleading in a few areas, namely:

Code:
(II) RADEON(0): Output DVI-1 using monitor section Monitor0
(II) RADEON(0): I2C bus "DVI-1" initialized.
(II) RADEON(0): Output DVI-0 has no monitor section
(II) RADEON(0): I2C bux "DVI-1" initialized.
Err, well actually both monitors are defined in xorg.conf:

Code:
Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "DELL"
	ModelName    "DELL 2001FP"
	HorizSync    31.0 - 80.0
	VertRefresh  56.0 - 76.0
	Option	    "DPMS" "true"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "DELL"
	ModelName    "DELL 2001FP"
	HorizSync    31.0 - 80.0
	VertRefresh  56.0 - 76.0
	Option	    "DPMS" "true"
EndSection
Followed by:

Code:
(WW) Radeon(0): Option "DesktopSetup" is not used
But yet in my config file:

Code:
Section "Device"
	Identifier  "Card0"
	Driver      "radeon"
	Option	    "DesktopSetup" "horizontal"
	Option      "VideoOverlay" "on"
	Option      "OpenGLOverlay" "off"
	BusID       "PCI:1:00:0"
EndSection

Section "Device"
	Identifier  "Card1"
	Driver      "radeon"
	Option      "VideoOverlay" "on"
	Option      "OpenGLOverlay" "off"
	BusID       "PCI:1:00:0"
EndSection
And then the giveaway:

Code:
config/hal: Adding input device ARROW STRONG USB Mouse
Why is HAL still involved? It seems like half the config comes from HAL, and the other half from my conf file.

My full xorg.conf file is:

Code:
Section "ServerLayout"
	Identifier     "Configured by MDB"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

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

Section "Module"
	Load  "glx"
	Load  "dri"
	Load  "dbe"
	SubSection "extmod"
		Option	    "omit xfree86-dga"   # don't initialise the DGA extension
	EndSubSection
	Load  "type1"
	Load  "freetype"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "XkbModel"       "pc105"
	Option      "XkbLayout"      "uk"
EndSection

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

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "DELL"
	ModelName    "DELL 2001FP"
	HorizSync    31.0 - 80.0
	VertRefresh  56.0 - 76.0
	Option	    "DPMS" "true"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "DELL"
	ModelName    "DELL 2001FP"
	HorizSync    31.0 - 80.0
	VertRefresh  56.0 - 76.0
	Option	    "DPMS" "true"
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "radeon"
	Option	    "DesktopSetup" "horizontal"
	Option      "VideoOverlay" "on"
	Option      "OpenGLOverlay" "off"
	BusID       "PCI:1:00:0"
EndSection

Section "Device"
	Identifier  "Card1"
	Driver      "radeon"
	Option      "VideoOverlay" "on"
	Option      "OpenGLOverlay" "off"
	BusID       "PCI:1:00:0"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Modes      "1600x1200" "1280x1024"
		Depth      24
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Card1"
	Monitor    "Monitor1"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Modes      "1600x1200" "1280x1024"
		Depth      24
	EndSubSection
EndSection

Section "DRI"
	Mode 0666
EndSection
Any ideas?
 
Old 04-09-2010, 07:59 AM   #3
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Ummm.. What exactly are you trying to accomplish when it comes to your two monitors? DesktopSetup is not a valid option for radeon. I'm guessing you really don't want to use two separate screens, but one screen across two monitors, correct?

Adam
 
Old 04-09-2010, 08:00 AM   #4
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hi Adam,

Yes, that is correct.


~Mark
 
Old 04-09-2010, 08:03 AM   #5
modprob
Member
 
Registered: Jul 2009
Location: Montreal
Distribution: Slackware
Posts: 35

Rep: Reputation: 17
I had problems setting up my dual monitor with the radeon driver. It simply didn't recognize the second monitor. I found a solution with the radeonhd driver.

Here is my xorg.conf file:
Code:
# My xorg.conf

Section "Monitor"
        Identifier      "sam0"
    Option          "DPMS"
EndSection

Section "Monitor"
        Identifier      "sam1"
        Option          "Right Of" "sam0"
    Option          "DPMS"
EndSection

Section "Device"
        Identifier      "HD3300"
        Driver          "radeonhd"
        Option          "Monitor-DVI-D_1" "sam0"
        Option          "Monitor-VGA_1" "sam1"
        Option          "RROutputOrder" "DVI-D_1"
EndSection


Section "Screen"
        Identifier      "MyScreen"
        Device          "HD3300"
        Monitor         "sam0"
        DefaultDepth    24
        SubSection      "Display"
                Depth       24
                Virtual     3360 1050
        EndSubSection
EndSection
 
Old 04-09-2010, 08:04 AM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Hi there!

I see nothing "misleading" about the logfile output. It shows that it is in fact reading your xorg.conf file -- but X is either not using some parts of the file, and/or HAL is still being allowed to do input hotplugging, which may or may not be a problem, but maybe you don't want that?

Two things you maybe should do, first, something to try, and second, so people might be able to help better:

1) Try the following 3 lines in your ServerFlags section, IF you do not want HAL doing input hotplugging:
Code:
Section "ServerFlags"
# try one or the other: Xinerama or randr
# as software + drivers improve
    Option         "Xinerama" "True"
#   Next 3 lines: disable HAL input hotplugging:
    Option         "AutoAddDevices" "False"
    Option         "AutoEnableDevices" "False"
    Option         "AllowEmptyInput" "False"
#   Which of the next 2 lines is right? Either of them?
#   Option         "RandR" "True"
#    Option         "RandRRotation" "True"
EndSection
And

2) Please post the entire xorg.conf file in one piece -- it's easier to figure out what's what, if the whole file can be seen.

P.S> - Usually (always??) when specifying the various outputs of either multiple cards, or multiple outputs on a single card, the PCI:BusID is not identical for more than one card/output. I see you list >> BusID "PCI:1:00:0" << for both outputs -- and this probably is not correct (though X might be clever enough to ignore this..) -- instead, one of them should likely be >> BusID "PCI:1:00:1" <<

Sasha

Last edited by GrapefruiTgirl; 04-09-2010 at 08:07 AM. Reason: sorry -- typo in the busID
 
Old 04-09-2010, 08:08 AM   #7
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
First, do not specify multiple screen and Device sections. You only want one of each. Second, each monitor section should have the Identifier be the name that 'xrandr' gives the device. You simply want something along these lines:

Code:
Section "Monitor"
        Identifier "VGA-0"
EndSection

Section "Monitor"
        Identifier "DVI-0"
        Option "LeftOf" "VGA-0"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "radeon"
EndSection
You should even be able to omit the Screen sections, inputdevice sections (those are being handled by HAL) and ServerLayout section.

EDIT: Also, for you and anyone else trying to do something similar, here are two wikis on how to setup static xrandr configurations via xorg.conf:

http://www.linuxquestions.org/questi...gl-800844-new/
http://wiki.debian.org/XStrikeForce/HowToRandR12

Last edited by adamk75; 04-09-2010 at 08:10 AM.
 
Old 04-09-2010, 08:30 AM   #8
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hi,

Thanks for your reply.

I will now comment out the Screens, InputDevice, ServerLayout and one of my Card sections and give that a try.

I'll let you know how I get on.


~Mark
 
Old 04-09-2010, 08:35 AM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

I would add 'RandR' wiki to be referenced.
 
Old 04-09-2010, 09:20 AM   #10
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Okay,

That didn't work out so well.

I now have a stretched desktop... but it's not very good. Screen drawing is painfully slow, and a lot of things are distorted. When the wallpaper is applied it looks like a windowblind being rolled down.

Here is my xorg.conf:

Code:
Section "Monitor"
	Identifier   "DVI-0"
EndSection

Section "Monitor"
	Identifier   "DVI-1"
	Option       "LeftOf" "DVI-0"
EndSection

Section "Device"
	Identifier  "Card0"
	Driver      "radeon"
EndSection

Section "DRI"
	Mode 0666
EndSection
I just don't get it. It's almost like I've replaced my ATi X1900 with a 4Mb VGA card... :-(

Any ideas on what I'm doing wrong?


~Mark
 
Old 04-09-2010, 09:25 AM   #11
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
It's the line:

Code:
Option       "LeftOf" "DVI-0"
That is doing it. If I remove that then X starts and draws perfectly, but I'm back to a mirrored desktop instead of a stretched one :-/
 
Old 04-09-2010, 09:29 AM   #12
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Show us your /var/log/Xorg.0.log file from when you have this drawing problem. Are you using KDE desktop effects?

Adam
 
Old 04-09-2010, 09:35 AM   #13
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Here it is:

Xorg.0.log
 
Old 04-09-2010, 09:44 AM   #14
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
In the Device section add this one line, restart X, and then try again:

Code:
Option "AccelMethod" "EXA"
Adam
 
Old 04-09-2010, 09:56 AM   #15
brooky9999
Member
 
Registered: May 2006
Location: Marlow, UK
Distribution: Slackware 12.2
Posts: 232

Original Poster
Rep: Reputation: 30
Hi Adam,

The redraw is quicker, but it is still distorted.

I've attached another log file.

Xorg.0.log
 
  


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
Ubuntu x64 Radeon ATI 1550 TVout is rolling / flickering working xorg.conf zonemikel Linux - Hardware 1 03-19-2009 07:37 PM
Slackware 10.1 and Xorg.conf mikz Slackware 1 02-24-2005 03:43 AM
X, xorg.conf, and Slackware socks Slackware 3 02-01-2005 04:44 PM
Slackware 10 xorg.conf Gerardoj Slackware 6 12-01-2004 05:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:14 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