Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 134284 - Xorg + xinerama hangs when using kernel argument video=...,dev:1 (or any non null value)
Summary: Xorg + xinerama hangs when using kernel argument video=...,dev:1 (or any non ...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: http://bugs.freedesktop.org/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-24 21:47 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2006-09-12 14:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2006-05-24 21:47:51 UTC
my configuration that usually works:

*** lspci *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

$ lspci
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 735 Host (rev 01)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] Virtual PCI-to-PCI bridge (AGP)
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS85C503/5513 (LPC Bridge)
00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller
00:02.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07)
00:02.3 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07)
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0)
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] Sound Controller (rev a0)
00:09.0 VGA compatible controller: 3Dfx Interactive, Inc. Voodoo Banshee (rev 03)
00:0b.0 VGA compatible controller: Matrox Graphics, Inc. MGA 2064W [Millennium] (rev 01)
00:0d.0 VGA compatible controller: Matrox Graphics, Inc. MGA 2064W [Millennium] (rev 01)
00:0f.0 Ethernet controller: 3Com Corporation 3c905 100BaseTX [Boomerang]
00:11.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
00:11.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 61)
00:11.2 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 63)
01:00.0 VGA compatible controller: Matrox Graphics, Inc. G400/G450 (rev 82)

(four video card: two Mga-Me millenium PCI, one Vodoo PCI, and a G400 AGP)

*** kernel prompt *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 

kernel boot line:
kernel /boot/kernel-genkernel-x86-2.6.16-gentoo-r8-Gentoo-moon_06 root=/dev/hda7 acpi=force splash lapic quiet video=matroxfb:1280x1024-16@60,accel,mtrr,dev:0 resume=/dev/hda8

*** xorg.conf *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 

lets remove comments and modlines. Some uncommented parts are still unused, as for FrreStar monitor, or MGA2 sections.

[SNIP] comment was said to be too long, I ll try attachement in some further comment.

*** problem *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

actually, I get FB console on Matrox Me in lowest PCI Slot. That works fine from technical point of view, but is not what I want.

I want console to be on screen from AGP card. And no I wont switch cables due to frequency problems.

BIOS initialises first AGP port, then, matroxfb driver from Linux docs says it uses the first found device, the first one shown in 'lspci', that is:
00:0b.0 VGA compatible controller: Matrox Graphics
I dont know why, but seems FB cant be used on 3Dfx. Dont ask me why.

Linux docs says that in order to use console FB on alternate screen, one should use option
dev:<n>

1 then puts console on second Matrox-Me, and 2 on APG card, accroding to lspci list. This works ok up to here: I really do get console where expected.

Problem is when loading X. When console is not on screen binded to card/device 0, then X freeses. It seems I dont have kernel panic since USB driver still seem to works (unplug/replug mouse let light optical sensor, what usually does not happen when KP; panic=30 does not either reboot system after 1 minute).

But ACPI/power button has no effect to halt system (unless long pression on button of course), and keyboard numlock cant switch light. I could try ping/ssh, but that may take a few days to set other systems for that. Remind me if you want me to try this.

If I boot the system with dev:1 or dev:2 and configure X to use only the AGP card, then it works fine (aka, only one screen, but no freeze).

The freeze takes some time: 8 to 9 seconds. It take first 2s to initialise AGP card, then 2 more for 3Dfx, then second MAtrox-Me comes on (all screen keep black, but monitor come out of power save, and get 'on'), then garbage come on 3Dfx, and second Me screen turns off again. After 9s, G400 and 3Dfx screens are 'on', G400 is black, and 3Dfx get white lines, when both Me are off.

Once I launched X, there is no way to use CTRL+ALT+BackSpace or ctrm+alt+sup.

Under Gentoo I use proprietary Matrox driver, but exactly the same problem happens with Debian that have free Mga driver, and different kernel.

I also noticed that with kernels 2.6.16-gentoo-r1 and previous ones, the default frame buffer device may not be the same. Not sure what to test with old kernels.

*** good luck *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Comment 1 DEMAINE Benoît-Pierre, aka DoubleHP 2006-05-24 21:48:34 UTC

Section "Files"
	FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/lib/X11/fonts/CID"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"type1"
	Load	"v4l"
	Load	"vbe"
EndSection


Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"

	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"fr"
EndSection

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

Section "Device"
	Identifier	"Matrox me ul"
	Driver		"mga"
	BusID		"PCI:0:11:0"
EndSection

Section "Device"
	Identifier	"Matrox me ur"
	Driver		"mga"
	BusID		"PCI:0:13:0"
EndSection

Section "Device"
	Identifier	"dfx urr"
	Driver		"tdfx"
	BusID		"PCI:0:9:0"
EndSection

Section "Device"
	Identifier	"Matrox G400"
	Driver		"mga"
	BusID		"PCI:1:0:0"
	Screen		0
EndSection

Section "Device"
	Identifier	"Matrox G400 2"
	Driver		"mga"
	BusID		"PCI:1:0:0"
	Screen		1
	Option "Tv" "no"
EndSection

Section "Monitor"
	Identifier	"Green_Star-mon"
	Option		"DPMS"
	HorizSync	30-70
	VertRefresh	50-160
	DisplaySize	350 265
	Gamma		1.4
EndSection

Section "Screen"
	Identifier	"Green_Star-mga_2-scr"
	Device		"Matrox G400 2"
	Monitor		"Green_Star-mon"
	DefaultDepth	16
	SubSection "Display"
		Depth		16
		Modes		"1152x864"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1152x864"
	EndSubSection
EndSection

Section "Monitor"
	Identifier	"DELL-mon"
	Option		"DPMS"
	HorizSync	30-100
	VertRefresh	50-160
	DisplaySize	350 265
	Gamma		1.2
EndSection

Section "Monitor"
    Identifier  "Sun GDM-20E20 bl"
    VendorName  "Sun"
    ModelName   "GDM-20E20"
	Gamma		1.0
	Option		"DPMS"
    HorizSync   30-70
    VertRefresh 50-120
EndSection

Section "Monitor"
    Identifier  "Sun GDM-20E20 br"
    VendorName  "Sun"
    ModelName   "GDM-20E20"
	Gamma		1.0
	Option		"DPMS"
	DisplaySize	395 290
    HorizSync   30-70
    VertRefresh 50-120
EndSection

Section "Monitor"
    Identifier  "Sun GDM-1962B"
    VendorName  "Sun"
    ModelName   "GDM-1962B"
	Gamma		1.0
	Option		"DPMS"
	DisplaySize	395 290
    HorizSync   30-70
    VertRefresh 50-120
EndSection

Section "Monitor"
        Identifier   "DELL_7340"
        VendorName      "DEL"
        ModelName       "DEL7340"
	Option		"DPMS"
        HorizSync 30 - 70 # DDC-probed
        VertRefresh 50 - 160 # DDC-probed
EndSection

Section "Screen"
	Identifier	"Sun_bl"
	Device		"dfx urr"
	Monitor		"Sun GDM-20E20 br"
	DefaultDepth	16
	SubSection "Display"
		Depth	16
		Modes	"1280x1024"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"Sun_br"
	Device		"Matrox G400"
	Monitor		"Sun GDM-20E20 br"
	DefaultDepth	16
	SubSection "Display"
		Depth	16
		Modes	"1280x1024"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"Sun_ul"
	Device		"Matrox me ul"
	Monitor		"Sun GDM-20E20 br"
	DefaultDepth	16
	SubSection "Display"
		Depth	16
		Modes	"1280x1024"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"Sun_ur"
	Device		"Matrox me ur"
	Monitor		"Sun GDM-20E20 br"
	DefaultDepth	16
	SubSection "Display"
		Depth	16
		Modes	"1280x1024"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"Sun_urr"
	Device		"dfx urr"
	Monitor		"Sun GDM-20E20 br"
	DefaultDepth	16
	SubSection "Display"
		Depth	16
		Modes	"1280x1024"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"dell-mga-scr"
	Device		"Matrox G400"
	Monitor		"DELL-mon"
	DefaultDepth	16
	SubSection "Display"
		Depth		16
		Modes		"1152x864"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1152x864"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen	0	"Sun_br" 0 0	#RightOf
	Screen	1	"Sun_bl" LeftOf "Sun_br"
	Screen	2	"Sun_ur" Above "Sun_br"
	Screen	3	"Sun_ul" Above "Sun_bl"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	Option "BlankTime"	"60"
	Option "StandbyTime"	"61"
	Option "SuspendTime"	"62"
	Option "OffTime"	"63"
	Option	"Xinerama"	"on"
EndSection

Section "DRI"
	Mode	0666
EndSection
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2006-05-24 21:48:50 UTC
Gentoo Base System version 1.12.0_pre19
Portage 2.1_rc1-r3 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r8-Gentoo-moon_06 i686)
=================================================================
System uname: 2.6.16-gentoo-r8-Gentoo-moon_06 i686 AMD Athlon(tm) 4 Processor
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks keeptemp keepwork metadata-transfer noclean sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.ISO-8859-15"
LC_ALL="en_GB.ISO-8859-15"
MAKEOPTS="-j2"
PKGDIR="/tmp"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/mnt/big"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi aim alsa amr amuled ao apache2 apic apm arts audiofile avi bash-completion berkdb bidi binfilter bitmap-fonts bl bonjour bootsplash cdda cdparanoia cdr cjk cli cmov cpudetection crypt cups curl cx8 dbus de dga directfb dmi doc dri dts dv dvb dvd dvdread dynamic eds emboss encode esd ethereal examples fbcon ffmpeg flac flash foomaticdb fortran fping fpu freetype fxsr gdbm ggi gif gnome gnutls gpm gs gstreamer gtk gtk2 httpd i8x0 icq idea idn ieee1394 imagemagick imlib ipv6 irc isdnlog jabber jack java javascript jpeg kde lcms libcaca libg++ libwww lirc listentcp live lj logrotate lzo mad matrox mca mce mikmod mmx mmxext mono motif mozcalendar mp3 mpeg mplayer msn msr mtrr mtyhtv ncurses network nls no-htdocs nptl nptlonly nsplugin offensive ogg oggvorbis opengl oss pae pam pat pcre pdflib perl pge png pppd pse pse36 python qt quicktime rar readline real reflection rss rtc rtsp samba screen sdl sensord sep server session silc skey skins sndfile speex spell spl sse ssl startup-notification stream subtitles svg svga swat symlink tcpd tga theora threads tiff truetype truetype-fonts tsc type1-fonts unicode urandom usb v4l v4l2 vcd vim vlm vme vorbis win32codecs wmf wxwindows x264 xanim xinerama xml2 xmms xorg xosd xscreensaver xv xvid xvmc yahoo zeroconf zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_wacom kernel_linux userland_GNU video_cards_apm video_cards_chips video_cards_cirrus video_cards_fbdev video_cards_-i810 video_cards_i128 video_cards_mga video_cards_nv video_cards_-nvidia video_cards_s3 video_cards_s3virge video_cards_sis video_cards_tga video_cards_trident video_cards_v4l video_cards_vesa video_cards_vga video_cards_-via"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-05-25 00:43:37 UTC
Known upstream issue, you need to complain there so that it gets some attention finally.
Comment 4 DEMAINE Benoît-Pierre, aka DoubleHP 2006-05-25 01:02:02 UTC
problem is that I dont know which upstream to go ...

since it happens on my Debian where I do not use proprietary Matrox driver, I still have choice between Linux-FrameBuffer team, userspace FB team, or Xorg ... or maybe some else ?

as end user, I expect an interraction, but I have no clue whose fault it is. Even if it seems to be Xorg faults, bug *may be* that Xorg does a legitimate call to Linux-kernel so that FB driver has a lock ... I cant be 100% which app is faulty ... or maybe several apps have bugs 

example: as for esd stops playing mplayer streams when xmms is paused ? that is  a *double bug* !
Comment 5 Joshua Baergen (RETIRED) gentoo-dev 2006-06-11 10:10:12 UTC
Jakub, you seem like you would know the answer to #4 :P
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2006-08-04 22:55:45 UTC
Go ahead and file a bug at https://bugs.freedesktop.org/enter_bug.cgi?product=xorg using the open-source mga driver -- post the URL here so we can track it. Also ensure you can reproduce this with the latest X release, 7.1.

Thanks!
Comment 7 DEMAINE Benoît-Pierre, aka DoubleHP 2006-09-12 08:34:57 UTC
http://bugs.freedesktop.org/show_bug.cgi?id=8237