Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132977 - xorg-x11-7.0-r1: Unable to open multiple X sessions
Summary: xorg-x11-7.0-r1: Unable to open multiple X sessions
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-10 23:58 UTC by Sebastian
Modified: 2006-05-16 12:52 UTC (History)
0 users

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


Attachments
Xorg.1.log (Xorg.1.log,38.88 KB, text/plain)
2006-05-15 09:28 UTC, Sebastian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian 2006-05-10 23:58:24 UTC
Hi all,

trying to open a second X session in modular X doesn't work right now. It works fine in xorg-x11-6.8.2-r7.

I often open another X session after startx to watch a movie on my tv. So startx put me in session :0 and then I open up :1 with this script:

#!/bin/bash
X -layout "TV" :1 -ac & sleep 2; DISPLAY=:1 mplayer -monitoraspect "16/9" -fs "$@" ; kill `ps aux | awk '/X\ -layout/ {print $2}' `

With 6.8.2-r7 my TFT gets blanked and the output is on my TV. With modular 7.0-r1 :0 gets blanked and reappears almost instantly. :1 doesn't work.

When I start :1 from console it does work, though. But of course then there's only one session.

Here's the xorg.conf I use for both modular 7.0-r1 and 6.8.2-r7 plus emerge info. I'll post some logs next week.

Section "Module"
        Load            "dbe"
        SubSection      "extmod"
                Option  "omit xfree86-dga"
        EndSubSection
        Load            "freetype"
        Load            "extmod"
        Load            "v4l"
EndSection
Section "Files"
        FontPath        "/usr/share/fonts/win_fonts"
        FontPath        "/usr/share/fonts/corefonts"
        FontPath        "/usr/share/fonts/misc"
EndSection
Section "ServerFlags"
        Option          "AllowMouseOpenFail" "true"
        Option          "OffTime" "5"
        Option          "DefaultServerLayout" "TFT"
EndSection
Section "InputDevice"
        Identifier      "Keyboard1"
        Driver          "kbd"
        Option          "XkbModel" "pc105"
        Option          "XkbLayout" "de"
EndSection
Section "InputDevice"
        Identifier      "Mouse1"
        Driver          "mouse"
        Option          "Protocol" "IMPS/2"
        Option          "Device" "/dev/input/mice"
        Option          "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
        Identifier      "Belinea TFT"
        HorizSync       30 - 81
        VertRefresh     50 - 76
        DisplaySize     338 270
        Option          "DPMS"
EndSection
Section "Monitor"
        Identifier      "Panasonic TV"
        HorizSync       15 - 16
        VertRefresh     49.9 - 50.1
        DisplaySize     505 404
        Option          "DPMS"
        ModeLine        "720x576" 14.0625 720 754 794 900 576 576 591 625 +hsync +vsync interlace composite
EndSection
Section "Device"
        Identifier      "Radeon on TFT"
        Driver          "radeon"
        Option          "MonitorLayout" "TMDS, NONE"
        Option          "DDCMode" "true"
        Option          "DynamicClocks" "true"
        Option          "VGAAccess" "false"
EndSection
Section "Device"
        Identifier      "Radeon on TV"
        Driver          "radeon"
        Option          "ForceMinDotClock" "14MHz"
        Option          "MonitorLayout" "NONE, CRT"
        Option          "DynamicClocks" "true"
        Option          "VGAAccess" "false"
EndSection
Section "Screen"
        Identifier      "TFT screen"
        Device          "Radeon on TFT"
        Monitor         "Belinea TFT"
        DefaultDepth    24
EndSection
Section "Screen"
        Identifier      "TV screen"
        Device          "Radeon on TV"
        Monitor         "Panasonic TV"
        DefaultDepth    24
        SubSection      "Display"
                Depth   24
                Modes   "720x576"
        EndSubSection
EndSection
Section "ServerLayout"
        Identifier      "TFT"
        InputDevice     "Mouse1" "CorePointer"
        InputDevice     "Keyboard1" "CoreKeyboard"
        Screen          "TFT screen"
EndSection
Section "ServerLayout"
        Identifier      "TV"
        InputDevice     "Mouse1" "CorePointer"
        InputDevice     "Keyboard1" "CoreKeyboard"
        Screen          "TV screen"
EndSection

Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16.15 i686)
=================================================================
System uname: 2.6.16.15 i686 AMD Sempron(tm)   2400+
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
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/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/data/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://sunsite.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/data/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa crypt cups dvdr foomaticdb gif gnutls ithreads jpeg kde logrotate mmx mmxext ncurses nls nodrm nptl nptlonly png pop ppds qt readline sasl sse ssl truetype truetype-fonts unicode userlocales xv zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS


Greets

Sebastian
Comment 1 Joshua Baergen (RETIRED) gentoo-dev 2006-05-12 21:11:10 UTC
It makes me nervous that you're using modular X with Portage 2.0, but that should have nothing to do with this bug.

It'd be nice to see the X logs from both servers (:0 and :1).
Comment 2 Sebastian 2006-05-12 23:39:11 UTC
Hi Joshua,

I didn't. :) I had already backed off to x86 (including xorg-x11) when I ran emerge info. I'll up the logs plus a new emerge info once I get back home tomorrow/Monday.

S.
Comment 3 Joshua Baergen (RETIRED) gentoo-dev 2006-05-13 07:00:21 UTC
Thanks.  Re-open this bug once you've done so.
Comment 4 Sebastian 2006-05-15 09:27:34 UTC
Okidoki, here's the console output plus emerge info:

sk@section_eight /data/sk/film $ tv-out tam.mkv
X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.16.15 i686
Current Operating System: Linux section_eight 2.6.16.16 #1 Mon May 15 09:44:15 CEST 2006 i686
Build Date: 15 May 2006
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Mon May 15 18:10:33 2006
(==) Using config file: "/etc/X11/xorg.conf"
(**) RADEON(0): RADEONPreInit
tv-out tam.mkv
X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:Linux 2.6.16.15 i686
Current Operating System: Linux section_eight 2.6.16.16 #1 Mon May 15 09:44:15 CEST 2006 i686
Build Date: 15 May 2006
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Mon May 15 18:24:48 2006
(==) Using config file: "/etc/X11/xorg.conf"
(**) RADEON(0): RADEONPreInit
(**) RADEON(0): RADEONScreenInit d0000000 0
(**) RADEON(0): Map: 0xd0000000, 0x08000000
(**) RADEON(0): RADEONSave
MPlayer dev-CVS-060509-11:59-3.4.5 (C) 2000-2006 MPlayer Team
CPU: Advanced Micro Devices Sempron/Athlon MP/XP Thoroughbred; Duron Applebred (Family: 6, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
Setting up LIRC support...
Playing tam.mkv.
[mkv] Track ID 1: audio (A_VORBIS), -aid 0, -alang eng
[mkv] Track ID 2: video (V_MS/VFW/FOURCC), -vid 0
[mkv] Will play video track 2
[mkv] Will play audio track 1
Matroska file format detected.
VIDEO:  [XVID]  432x400  12bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
AUDIO: 48000 Hz, 1 ch, s16le, 86.0 kbit/11.20% (ratio: 10750->96000)
Selected audio codec: [vorbis] afm: libvorbis (OggVorbis Audio Decoder)
==========================================================================
(**) RADEON(0): RADEONSaveMode(0x8215ca0)
(**) RADEON(0): Read: 0x0000000c 0x00010060 0x00000000
(**) RADEON(0): Read: rd=12, fd=96, pd=1
(**) RADEON(0): RADEONSaveMode returns 0x8215ca0
(**) RADEON(0): RADEONInitMemoryMap() :
(**) RADEON(0):   mem_size         : 0x08000000
(**) RADEON(0):   agp_size         : 0x0000fe30
(**) RADEON(0):   agp_base         : 0x02000000
(**) RADEON(0):   MC_FB_LOCATION   : 0xd7ffd000
(**) RADEON(0):   MC_AGP_LOCATION  : 0xffffffc0
(**) RADEON(0): RADEONModeInit()
720x576        14.06   720  754  794  900   576  576  591  625 (24,32) C I +H +V
720x576        14.06   720  754  794  900   576  576  591  625 (24,32) C I +H +V
(**) RADEON(0): Pitch = 6291552 bytes (virtualX = 720, displayWidth = 768)
(**) RADEON(0): dc=1406, of=22496, fd=100, pd=16
(**) RADEON(0): RADEONInit returns 0x8216650
(**) RADEON(0): RADEONRestoreMode()
(**) RADEON(0): RADEONRestoreMode(0x8216650)
(**) RADEON(0): RADEONRestoreMemMapRegisters() :
(**) RADEON(0):   MC_FB_LOCATION   : 0xd7ffd000
(**) RADEON(0):   MC_AGP_LOCATION  : 0xffffffc0
(**) RADEON(0):   Map Changed ! Applying ...
(**) RADEON(0):   Map applied, resetting engine ...
(**) RADEON(0): Updating display base addresses...
(**) RADEON(0): Memory map updated.
(**) RADEON(0): Programming CRTC1, offset: 0x00000000
(**) RADEON(0): Wrote: 0x0000000c 0x00050064 0x00000000 (0x0000a700)
(**) RADEON(0): Wrote: rd=12, fd=100, pd=5
(**) RADEON(0): GRPH_BUFFER_CNTL from 20205c5c to 20025c5c
(**) RADEON(0): RADEONSaveScreen(0)
(**) RADEON(0): Setting up initial surfaces
(**) RADEON(0): Initializing fb layer
(**) RADEON(0): Setting up accel memmap
(**) RADEON(0): Initializing backing store
(**) RADEON(0): Setting up final surfaces
(**) RADEON(0): Initializing Acceleration
(**) RADEON(0): EngineInit (32/32)
(**) RADEON(0): Pitch for acceleration = 96
(**) RADEON(0): EngineRestore (32/32)
(**) RADEON(0): Initializing DPMS
(**) RADEON(0): Initializing Cursor
(**) RADEON(0): Initializing color map
(**) RADEON(0): Initializing DGA
(**) RADEON(0): Initializing Xv
(**) RADEON(0): RADEONScreenInit finished
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
(**) RADEON(0): RADEONSaveScreen(2)
(**) RADEON(0): RADEONDisplayPowerManagementSet(0,0x0)
==========================================================================
Forced video codec: xvid
Opening video decoder: [xvid] XviD 1.0 decoder
xvid: using library version 1.1.0 (build xvid-1.1.0)
Selected video codec: [xvid] vfm: xvid (XviD (MPEG-4))
==========================================================================
alsa-init: using device softvol
alsa-lib: pcm_hw.c:1246:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
alsa-init: playback open error: Device or resource busy
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
VDec: vo config request - 432 x 400 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 432x400 => 532x400 Planar YV12  [fs]
V:   0.0   1/  1 ??% ??% ??,?% 0 0
(**) RADEON(0): RADEONDisplayPowerManagementSet(0,0x0)
Exiting... (End of file)
(**) RADEON(0): RADEONCloseScreen
(**) RADEON(0): RADEONDRIStop
(**) RADEON(0): RADEONDisplayPowerManagementSet(0,0x0)
(**) RADEON(0): RADEONRestore
(**) RADEON(0): RADEONRestoreMode()
(**) RADEON(0): RADEONRestoreMode(0x8215ca0)
(**) RADEON(0): RADEONRestoreMemMapRegisters() :
(**) RADEON(0):   MC_FB_LOCATION   : 0x1fff0000
(**) RADEON(0):   MC_AGP_LOCATION  : 0x27ff2000
(**) RADEON(0):   Map Changed ! Applying ...
sk@section_eight /data/sk/film $
sk@section_eight /data/sk/film $
sk@section_eight /data/sk/film $ (**) RADEON(0):   Map applied, resetting engine ...
(**) RADEON(0): Updating display base addresses...
(**) RADEON(0): Memory map updated.
(**) RADEON(0): Programming CRTC1, offset: 0x00000000
(**) RADEON(0): Wrote: 0x0000000c 0x00010060 0x00000000 (0x0000a700)
(**) RADEON(0): Wrote: rd=12, fd=96, pd=1
sk@section_eight /data/sk/film $
sk@section_eight /data/sk/film $
sk@section_eight /data/sk/film $
sk@section_eight /data/sk/film $
sk@section_eight /data/sk/film $
sk@section_eight /data/sk/film $
sk@section_eight /data/sk/film $ (**) RADEON(0): Disposing accel...
(**) RADEON(0): Disposing cusor info
(**) RADEON(0): Disposing DGA
(**) RADEON(0): Unmapping memory
FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.
sk@section_eight /data/sk/film $

Also notice the lot of newlines above. Strange.

section_eight ~ # emerge --info
Portage 2.1_rc1-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16.16 i686)
=================================================================
System uname: 2.6.16.16 i686 AMD Sempron(tm)   2400+
Gentoo Base System version 1.6.14
ccache version 2.3 [disabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
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/share/config /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/data/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/data/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.informatik.rwth-aachen.de/gentoo-portage"
USE="x86 3dnow 3dnowext X alsa crypt cups dri dvdr foomaticdb gif gnutls ithreads jpeg kde logrotate mmx mmxext ncurses nls nodrm nptl nptlonly png pop ppds qt readline sasl sse ssl truetype truetype-fonts unicode userlocales xv zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_de userland_GNU video_cards_radeon"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

section_eight ~ #

Sebastian
Comment 5 Sebastian 2006-05-15 09:28:33 UTC
Created attachment 86808 [details]
Xorg.1.log
Comment 6 Joshua Baergen (RETIRED) gentoo-dev 2006-05-15 19:57:22 UTC
Can you open two sessions manually?

It looks as if mplayer thinks it's done and thus X exits normally (I think that's what your script does with the kill command).
Comment 7 Sebastian 2006-05-16 12:52:04 UTC
It sometimes works and sometimes not. I can't be sure if it's related to X or mplayer. I'll close this as I don't have the time right now.

Cheers

Sebastian