PDA

View Full Version : almost perfect: feisty+fglrx+dualhead+xinerama


super7
May 2nd, 2007, 02:06 PM
hello,

it almost works perfectly, finally :-) unfortunately when I want to switch to a console from X (Ctrl-Alt-F1) or try to shut down my pc hangs with garbled screen. I'm afraid it ruins my installation somehow sometime when I could not shutdown properly ... in case anybody wants to know (I tried so many how-tos so currenty I don't know if it already well known how to get fglrx + dualhead + xinerama with, in my case a ati X200M onboard card:

1) installed and build fglrx module out of the newest (8.36.5) ati driver package, imho all howtos are more or less the same, mine was: http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide )
2) aticonfig --initial=dual-head --screen-layout=right (see aticonfig --help | less for details)
3) aticonfig --overlay-type=Xv
4) manually added Option "Xinerama" "true" into the ServerLayout Section.
5) added the following code to the end of the /etc/X11/xorg.conf file (without effect as far as I could find out)
Section "Extensions"
Option "Composite" "false"
EndSection





my xorg.conf:

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "aticonfig-Screen[0]" 0 0
Screen "aticonfig-Screen[1]" RightOf "aticonfig-Screen[0]"
Option "Xinerama" "true"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
EndSection

Section "Files"

# path to defoma fonts
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"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
Option "XkbVariant" "deadacute"
Option "XkbOptions" "lv3:ralt_switch"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
HorizSync 28.0 - 84.0
VertRefresh 43.0 - 60.0
Option "DPMS" "true"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[1]"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
HorizSync 30-96
VertRefresh 50-160
Option "DPMS" "true"
EndSection

Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
BusID "PCI:1:5:0"
EndSection

Section "Device"
Identifier "aticonfig-Device[1]"
Driver "fglrx"
BusID "PCI:1:5:0"
Screen 1
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1680x1050"
EndSubSection
EndSection

Section "Screen"
Identifier "aticonfig-Screen[1]"
Device "aticonfig-Device[1]"
Monitor "aticonfig-Monitor[1]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection

Section "Extensions"
Option "Composite" "false"
EndSection



if I comment the Option "Xinerama" stuff (which probably isn't intended for the fglrx drivers) I get a dual-screen but can't move windows to and forth ... can anybody help? Is there a secure way to logout my session before the X server crashes (I can logout but then happens the same as if I try to shutdown or to reboot ...)

super7
May 2nd, 2007, 02:30 PM
probably I solved it myself:
I added the following to the first device section:
Option "DesktopSetup" "horizontal"
using so aticonfig --desktop-setup=horizontal
(I had to change the serverlayout section to the previous state because aticonfig changed it ...)
so the device section looks like:


Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "DesktopSetup" "horizontal"
BusID "PCI:1:5:0"
EndSection


so the whole xorg.conf:

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "aticonfig-Screen[0]" 0 0
Screen "aticonfig-Screen[1]" RightOf "aticonfig-Screen[0]"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "stylus" "SendCoreEvents"
InputDevice "cursor" "SendCoreEvents"
InputDevice "eraser" "SendCoreEvents"
Option "Xinerama" "true"
EndSection

Section "Files"

# path to defoma fonts
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"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "de"
Option "XkbVariant" "deadacute"
Option "XkbOptions" "lv3:ralt_switch"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "stylus"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "stylus"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "eraser"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "eraser"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"

# /dev/input/event
# for USB
Identifier "cursor"
Driver "wacom"
Option "Device" "/dev/wacom" # Change to
Option "Type" "cursor"
Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[0]"
HorizSync 28.0 - 84.0
VertRefresh 43.0 - 60.0
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Monitor"
Identifier "aticonfig-Monitor[1]"
HorizSync 30.0 - 96.0
VertRefresh 50.0 - 160.0
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
EndSection

Section "Device"
Identifier "aticonfig-Device[0]"
Driver "fglrx"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
Option "DesktopSetup" "horizontal"
BusID "PCI:1:5:0"
EndSection

Section "Device"
Identifier "aticonfig-Device[1]"
Driver "fglrx"
BusID "PCI:1:5:0"
Screen 1
EndSection

Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1680x1050"
EndSubSection
EndSection

Section "Screen"
Identifier "aticonfig-Screen[1]"
Device "aticonfig-Device[1]"
Monitor "aticonfig-Monitor[1]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024"
EndSubSection
EndSection

Section "DRI"
Mode 0666
EndSection

Section "Extensions"
# Option "Composite" "true"
EndSection



now it seems to work, yes! :-) so if I could help anybody getting this to work it makes me happy.

ashgromnies
May 2nd, 2007, 07:45 PM
thanks man i think this might help me, i was having issues but didn't know about ati-config




So, yea. Ubuntu brought up this "HEY THERE ARE DRIVERS AVAILABLE!" message, so I said "COOL!" and let it do its thing.

After restarting Metacity...

ps -C metacity -o pid= | xargs sudo kill -1

I was greeted by a second monitor that no longer functioned as a second screen, but now as a duplicate of the primary. Fuuuuck.

Rebooted Xorg and the same thing was going on.

I looked in my xorg.conf and that ******* had changed it!

I noticed it changed the driver="ati" in the second screen to driver="fglrx". Nuts. I change it back to ati, restart Xorg...

Now it shows nothing. Uhoh.

So I change the driver to fglrx for each screen and end up having the monitors both working like they should, but now when I bring my mouse cursor into the second monitor, it appears as a big distorted square.

How do I fix that?

the_joker
May 6th, 2007, 03:21 AM
I managed to get the dual-head displays working on my Radeon 9800 in Feisty using this guide, however when I attempt to load my Gnome-XGL sesssion, I receive the following error:

Xlib: extension xfree86-dri missing on display ":0.0"
Fatal server error
No screens found
(Gnome-session-9833): glx-warning **: cannot open display: [no more test after this. Don't know what display it is referring to]

I've since reverted to a clone display - I'd prefer to have Beryl working at this point, although of course I'd prefer to have dual-head *and* Beryl :)

BionicSeahorse
May 7th, 2007, 02:37 AM
I managed to get the dual-head displays working on my Radeon 9800 in Feisty using this guide, however when I attempt to load my Gnome-XGL sesssion, I receive the following error:

Xlib: extension xfree86-dri missing on display ":0.0"
Fatal server error
No screens found
(Gnome-session-9833): glx-warning **: cannot open display: [no more test after this. Don't know what display it is referring to]

I've since reverted to a clone display - I'd prefer to have Beryl working at this point, although of course I'd prefer to have dual-head *and* Beryl :)

Try commenting out the following line in your /etc/X11/xorg.conf file:


Section "ServerLayout"
# Option Xinerama "true"
EndSection


Taking that line out gave me my Xgl session back. Hope that helps!

jago25_98
May 7th, 2007, 01:12 PM
I use a laptop with docking station plugged into VGA external monitor.

Is there not something to help detect that external monitor and utilize it without restarting X?

the_joker
May 8th, 2007, 07:52 PM
Try commenting out the following line in your /etc/X11/xorg.conf file:


Section "ServerLayout"
# Option Xinerama "true"
EndSection


Taking that line out gave me my Xgl session back. Hope that helps!

Thanks for the advise. Disabling that line allowed XGL and Beryl to work as normal, however, now I have lost my second screen!

The monitor display is black, with no background that I can see. When I move the mouse over it, I can see a black cross (I think this is the standard X cursor). When I attempt to move a window to it, half of the window disappears on the side of the screen, but does not appear on the other display. I've also noticed that the further I attempt to move the window to the other display, it simply makes the window move *up* the side of the monitor.

Ziox
May 8th, 2007, 11:32 PM
Xinerama DISABLES direct rendering. Do not use it unless you DON'T HAVE a nVidia, ATI, Matrox card. If you want a guide, check my signature for dual monitors and check out the Big Desktop thread.