You are not logged in.

#1 2010-01-13 19:59:45

munkyeetr
Member
From: Merritt, BC
Registered: 2008-08-07
Posts: 83

[SOLVED] "Server is already active for display 0" in Terminals

So far, my searches haven't yielded any solutions to this.

When my system starts, it boots to a console login prompt (no gdm, etc...) and I have 'startx' in my .bashrc to start my desktop. The desktop starts and functions fine (or so it seems).

Problem 1: Anytime I open a Terminal window (or open new tabs inside a Terminal) I am greeted with the following:

Fatal server error:
Server is already active for display 0
    If this server is no longer running, remove /tmp/.X0-lock
    and start again.


Please consult the The X.Org Foundation support
     at http://wiki.x.org
for help.

xinit:  Server error.

Sometimes the last line is:

xinit:  unexpected signal 2

Usually I just ^C to get a working prompt and go about my business, but this is getting really annoying.

Problem 2: I use Guake terminal and have it set to autostart in my .bashrc, but it doesn't work until I manually open a Terminal window. And if I close that (manually opened) window, Guake stops working. If I open another one manually, it works again...etc. I have a hunch this is related to the first problem.

Any nudges in the right direction would be appreciated.

My environment:

DE = Xfce4
Kernel = 2.6.31-ARCH
Xorg = xorg-server 1.7.3.901-1
Video = xf86-video-ati 6.12.99.git20091014-1

/etc/X11/xorg.conf:

Section "ServerFlags"
    Option "AutoAddDevices" "True"
Endsection

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
    ModulePath   "/usr/lib/xorg/modules"
    FontPath     "/usr/share/fonts/misc"
    FontPath     "/usr/share/fonts/100dpi:unscaled"
    FontPath     "/usr/share/fonts/75dpi:unscaled"
    FontPath     "/usr/share/fonts/TTF"
    FontPath     "/usr/share/fonts/Type1"
EndSection

Section "Module"
    Load  "glx"
    Load  "extmod"
    Load  "dri2"
    Load  "dbe"
    Load  "dri"
EndSection

Section "InputDevice"
    Identifier  "Keyboard0"
    Driver      "kbd"
EndSection

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

Section "Monitor"
    #DisplaySize      340   190    # mm
    Identifier   "Monitor0"
    VendorName   "AUO"
    ModelName    "10ec"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "NoAccel"                # [<bool>]
        #Option     "SWcursor"               # [<bool>]
        #Option     "Dac6Bit"                # [<bool>]
        #Option     "Dac8Bit"                # [<bool>]
        #Option     "BusType"                # [<str>]
        #Option     "CPPIOMode"              # [<bool>]
        #Option     "CPusecTimeout"          # <i>
        #Option     "AGPMode"                # <i>
        #Option     "AGPFastWrite"           # [<bool>]
        #Option     "AGPSize"                # <i>
        #Option     "GARTSize"               # <i>
        #Option     "RingSize"               # <i>
        #Option     "BufferSize"             # <i>
        #Option     "EnableDepthMoves"       # [<bool>]
        #Option     "EnablePageFlip"         # [<bool>]
        #Option     "NoBackBuffer"           # [<bool>]
        #Option     "DMAForXv"               # [<bool>]
        #Option     "FBTexPercent"           # <i>
        #Option     "DepthBits"              # <i>
        #Option     "PCIAPERSize"            # <i>
        #Option     "AccelDFS"               # [<bool>]
        #Option     "IgnoreEDID"             # [<bool>]
        #Option     "CustomEDID"             # [<str>]
        #Option     "DisplayPriority"        # [<str>]
        #Option     "PanelSize"              # [<str>]
        #Option     "ForceMinDotClock"       # <freq>
        #Option     "ColorTiling"            # [<bool>]
        #Option     "VideoKey"               # <i>
        #Option     "RageTheatreCrystal"     # <i>
        #Option     "RageTheatreTunerPort"     # <i>
        #Option     "RageTheatreCompositePort"     # <i>
        #Option     "RageTheatreSVideoPort"     # <i>
        #Option     "TunerType"              # <i>
        #Option     "RageTheatreMicrocPath"     # <str>
        #Option     "RageTheatreMicrocType"     # <str>
        #Option     "ScalerWidth"            # <i>
        #Option     "RenderAccel"            # [<bool>]
        #Option     "SubPixelOrder"          # [<str>]
        #Option     "ShowCache"              # [<bool>]
        #Option     "ClockGating"            # [<bool>]
        #Option     "VGAAccess"              # [<bool>]
        #Option     "ReverseDDC"             # [<bool>]
        #Option     "LVDSProbePLL"           # [<bool>]
        #Option     "AccelMethod"            # <str>
        #Option     "DRI" "True"                    # [<bool>]
        #Option     "ConnectorTable"         # <str>
        #Option     "DefaultConnectorTable"     # [<bool>]
        #Option     "DefaultTMDSPLL"         # [<bool>]
        #Option     "TVDACLoadDetect"        # [<bool>]
        #Option     "ForceTVOut"             # [<bool>]
        #Option     "TVStandard"             # <str>
        #Option     "IgnoreLidStatus"        # [<bool>]
        #Option     "DefaultTVDACAdj"        # [<bool>]
        #Option     "Int10"                  # [<bool>]
        #Option     "EXAVSync"               # [<bool>]
        #Option     "ATOMTVOut"              # [<bool>]
        #Option     "R4xxATOM"               # [<bool>]
        #Option     "ForceLowPowerMode"      # [<bool>]
        #Option     "DynamicPM"              # [<bool>]
    Identifier  "Card0"
    Driver      "radeon"
    VendorName  "ATI Technologies Inc"
    BoardName   "RS780M/RS780MN [Radeon HD 3200 Graphics]"
    BusID       "PCI:1:5:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    SubSection "Display"
        Viewport   0 0
        Depth     1
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     4
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     8
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     15
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     16
    EndSubSection
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

/var/log/Xorg.0.log (filtered through grep for (WW) and (EE)):

(EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM
(EE) RADEON(0): Acceleration initialization failed
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
(WW) RADEON(0): LVDS Info:
(WW) RADEON(0): Direct rendering disabled

~/.xsession-errors:

/etc/gdm/Xsession: Beginning session setup...
/etc/gdm/Xsession: ssh-agent not found!
/etc/gdm/Xsession: Setup done, will execute: gnome-session
gnome-session[28618]: WARNING: Could not parse desktop file /home/jon/.config/autostart/xfce4-tips-autostart.desktop: Key file does not have key 'Name'
gnome-session[28618]: WARNING: could not read /home/jon/.config/autostart/xfce4-tips-autostart.desktop
gnome-session[28618]: WARNING: Could not parse desktop file /home/jon/.config/autostart/xfce4-settings-helper-autostart.desktop: Key file does not have key 'Name'
gnome-session[28618]: WARNING: could not read /home/jon/.config/autostart/xfce4-settings-helper-autostart.desktop
gnome-session[28618]: EggSMClient-WARNING: Invalid Version string '0.9.4' in /home/jon/.config/autostart/wicd.desktop
gnome-session[28618]: WARNING: Unable to find provider 'metacity' of required component 'windowmanager'
gnome-session[28618]: WARNING: Unable to find provider 'nautilus' of required component 'filemanager'
GNOME_KEYRING_SOCKET=/tmp/keyring-6lpdg3/socket
SSH_AUTH_SOCK=/tmp/keyring-6lpdg3/socket.ssh

(gnome-panel:28681): Gtk-CRITICAL **: gtk_accelerator_parse: assertion `accelerator != NULL' failed

** (gnome-panel:28681): WARNING **: Unable to parse mouse modifier '(null)'

tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Can't locate XML/Parser.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.1 /usr/share/perl5/site_perl/5.10.1 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current /usr/lib/perl5/site_perl/current .) at /usr/lib/xfce4/xfconf-migration/xfconf-migration-4.6.pl line 20.
BEGIN failed--compilation aborted at /usr/lib/xfce4/xfconf-migration/xfconf-migration-4.6.pl line 20.

(polkit-gnome-authentication-agent-1:28707): GLib-GObject-WARNING **: cannot register existing type `_PolkitError'

(polkit-gnome-authentication-agent-1:28707): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
tput: No value for $TERM and no -T specified
Unable to open desktop file epiphany.desktop for panel launcher
Unable to open desktop file evolution.desktop for panel launcher
/usr/lib/python2.6/site-packages/wicd/gui.py:151: GtkWarning: gtk_toolbar_set_icon_size: assertion `icon_size != GTK_ICON_SIZE_INVALID' failed
  self.wTree = gtk.glade.XML(gladefile)
ERROR:dbus.proxies:Introspect error on :1.70:/org/wicd/daemon: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
ERROR:dbus.proxies:Introspect error on :1.70:/org/wicd/daemon: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
ERROR:dbus.proxies:Introspect error on :1.70:/org/wicd/daemon: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
Importing pynotify failed, notifications disabled.
Has notifications support False
Loading...
Connecting to daemon...
Can't connect to the daemon, trying to start it automatically...
Connected.
warning: ignoring exception org.freedesktop.DBus.Error.ServiceUnknown: The name :1.70 was not provided by any .service files
warning: ignoring exception org.freedesktop.DBus.Error.ServiceUnknown: The name :1.70 was not provided by any .service files
Importing pynotify failed, notifications disabled.
Has notifications support False
Loading...
Connecting to daemon...
Can't connect to the daemon, trying to start it automatically...
Connected.
warning: ignoring exception org.freedesktop.DBus.Error.ServiceUnknown: The name :1.70 was not provided by any .service files

(firefox:30931): GLib-WARNING **: g_set_prgname() called multiple times
Registering '@mozilla.org/module-loader/python;1' (libpyloader.so)
Registering '@mozilla.org/network/protocol/about;1?what=python' (pyabout.py)

(Terminal:32576): Terminal-WARNING **: Unable to load terminal preferences.

(firefox:1968): GLib-WARNING **: g_set_prgname() called multiple times

(Terminal:5816): Terminal-WARNING **: Unable to load terminal preferences.

(Terminal:9027): Terminal-WARNING **: Unable to load terminal preferences.

(Terminal:9027): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed

(Terminal:9027): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed

(Terminal:9027): Gdk-CRITICAL **: gdk_drawable_get_screen: assertion `GDK_IS_DRAWABLE (drawable)' failed
polkit-gnome-authentication-agent-1: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
firefox: Fatal IO error 2 (No such file or directory) on X server :1.0.

Thanks,
Munky

Last edited by munkyeetr (2010-01-13 20:26:51)


If the advice you're given in this forum solves your issue, please mark the post as [SOLVED] in consideration to others.

"More than any time in history mankind faces a crossroads. One path leads to despair and utter hopelessness, the other to total extinction.
Let us pray that we have the wisdom to choose correctly." -- Woody Allen

Offline

#2 2010-01-13 20:04:05

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] "Server is already active for display 0" in Terminals

In bashrc try something like
[ -z "$DISPLAY" ] && startx && {sleep 5; DISPLAY=0:0 setsid Guake; }

Offline

#3 2010-01-13 20:26:32

munkyeetr
Member
From: Merritt, BC
Registered: 2008-08-07
Posts: 83

Re: [SOLVED] "Server is already active for display 0" in Terminals

Procyon:

You're awesome...that did the trick.

Thank you.
Munky


If the advice you're given in this forum solves your issue, please mark the post as [SOLVED] in consideration to others.

"More than any time in history mankind faces a crossroads. One path leads to despair and utter hopelessness, the other to total extinction.
Let us pray that we have the wisdom to choose correctly." -- Woody Allen

Offline

Board footer

Powered by FluxBB