X server slow to start

Pat Kane pekane52 at gmail.com
Thu Feb 25 13:41:00 PST 2010


I would use strace to get a low-level view of what is going on.
When the X server is in that 20 second state run:
     strace -tt -f -p PID_OF_X
if it is not busy doing system calls then you might need
to connect to the Xorg using gdb and then step to see
what is going on:
    gdb -p PID_OF_X

Pat
---


On Thu, Feb 25, 2010 at 2:06 PM, William Wagner
<will_wagner at carallon.com> wrote:
> Hi All,
>
> First I hope this is the correct list to post to, if not then please point
> me in the right direction.
>
> I am trying to get the X.Org xserver running on an x86 platform with intel
> 945GME graphics. It is for an embedded motherboard
> (http://www.axiomtek.com/products/ViewProduct.asp?view=462) and the bsp is
> built using buildroot (www.buildroot.org) so there is complete control (or
> lack of) over how everything is configured and built.
>
> The problem I have is that although xserver does run it takes ~20 secs to
> start up. Any help on why it is taking so long is much appreciated.
>
> I am using:
> linux 2.6.32.9 (with intel KMS)
> xserver 1.7.5
> xdriver_xf86-video-intel 2.10.0
>
> When it X starts up it pauses for ~20secs and then prints this to the
> console (it does not appear in the log):
> X server does not support locale
> cannot set locale modifiers
>
> Can anyone tell me how to get the xserver to be more verbose during boot so
> I can see exactly what it is doing? I have tried adding -logverbose 20 to
> xserverrc but that does not generate anything useful. Any suggestions on how
> to tackle this?
>
> Thanks
> Will
>
> The log output is:
>
> X.Org X Server 1.7.5
> Release Date: 2010-02-16
> X Protocol Version 11, Revision 0
> Build Operating System: Linux 2.6.26-2-amd64 x86_64
> Current Operating System: Linux buildroot 2.6.32.9 #7 SMP PREEMPT Thu Feb 25
> 19:35:58 GMT 2010 i686
> Kernel command line: root=/dev/sda1 console=ttyS0,115200 vga=792
> Build Date: 25 February 2010  04:11:04PM
>
> Current version of pixman: 0.17.6
>        Before reporting problems, check http://wiki.x.org
>        to make sure that you have the latest version.
> Markers: (--) probed, (**) from config file, (==) default setting,
>        (++) from command line, (!!) notice, (II) informational,
>        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/usr/var/log/Xorg.0.log", Time: Thu Feb 25 20:46:38 2010
> (++) Using config file: "/etc/xorg.conf"
> (==) ServerLayout "X.org Configured"
> (**) |-->Screen "Screen0" (0)
> (**) |   |-->Monitor "Monitor0"
> (**) |   |-->Device "Card0"
> (**) |-->Input Device "Mouse0"
> (**) |-->Input Device "Keyboard0"
> (==) Not automatically adding devices
> (==) Not automatically enabling devices
> (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/100dpi/".
>        Entry deleted from font path.
>        (Run 'mkfontdir' on "/usr/share/fonts/X11/100dpi/").
> (WW) The directory "/usr/lib/X11/fonts/misc/" does not exist.
>        Entry deleted from font path.
> (WW) The directory "/usr/lib/X11/fonts/TTF/" does not exist.
>        Entry deleted from font path.
> (WW) The directory "/usr/lib/X11/fonts/OTF" does not exist.
>        Entry deleted from font path.
> (WW) The directory "/usr/lib/X11/fonts/Type1/" does not exist.
>        Entry deleted from font path.
> (WW) The directory "/usr/lib/X11/fonts/100dpi/" does not exist.
>        Entry deleted from font path.
> (WW) The directory "/usr/lib/X11/fonts/75dpi/" does not exist.
>        Entry deleted from font path.
> (**) FontPath set to:
>        /usr/share/fonts/X11/misc/,
>        /usr/share/fonts/X11/Type1/,
>        /usr/share/fonts/X11/75dpi/
> (**) ModulePath set to "/usr/lib/xorg/modules"
> (II) Loader magic: 0x81921a0
> (II) Module ABI versions:
>        X.Org ANSI C Emulation: 0.4
>        X.Org Video Driver: 6.0
>        X.Org XInput driver : 7.0
>        X.Org Server Extension : 2.0
> (--) using VT number 3
>
> (--) PCI:*(0:0:2:0) 8086:27ae:8086:27ae rev 3, Mem @ 0xfde80000/524288,
> 0xd0000000/268435456, 0xfdf80000/262144, I/O @ 0x0000ff00/8
> (--) PCI: (0:0:2:1) 8086:27a6:8086:27ae rev 3, Mem @ 0xfdf00000/524288
> (--) PCI: (0:2:0:0) 104c:9065:6450:0004 rev 1, Mem @ 0xfd400000/4194304,
> 0xfc800000/8388608, I/O @ 0x0000ef00/16
> (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
> (II) "extmod" will be loaded. This was enabled by default and also specified
> in the config file.
> (II) "dbe" will be loaded. This was enabled by default and also specified in
> the config file.
> (II) "dri" will be loaded. This was enabled by default and also specified in
> the config file.
> (II) "dri2" will be loaded. This was enabled by default and also specified
> in the config file.
> (II) LoadModule: "dbe"
> (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
> (II) Module dbe: vendor="X.Org Foundation"
>        compiled for 1.7.5, module version = 1.0.0
>        Module class: X.Org Server Extension
>        ABI class: X.Org Server Extension, version 2.0
> (II) Loading extension DOUBLE-BUFFER
> (II) LoadModule: "dri"
> (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
> (II) Module dri: vendor="X.Org Foundation"
>        compiled for 1.7.5, module version = 1.0.0
>        ABI class: X.Org Server Extension, version 2.0
> (II) Loading extension XFree86-DRI
> (II) LoadModule: "extmod"
> (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
> (II) Module extmod: vendor="X.Org Foundation"
>        compiled for 1.7.5, module version = 1.0.0
>        Module class: X.Org Server Extension
>        ABI class: X.Org Server Extension, version 2.0
> (II) Loading extension XFree86-VidModeExtension
> (II) Loading extension XFree86-DGA
> (II) Loading extension DPMS
> (II) Loading extension XVideo
> (II) Loading extension XVideo-MotionCompensation
> (II) Loading extension X-Resource
> (II) LoadModule: "dri2"
> (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
> (II) Module dri2: vendor="X.Org Foundation"
>        compiled for 1.7.5, module version = 1.1.0
>        ABI class: X.Org Server Extension, version 2.0
> (II) Loading extension DRI2
> (II) LoadModule: "intel"
> (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
> (II) Module intel: vendor="X.Org Foundation"
>        compiled for 1.7.5, module version = 2.10.0
>        Module class: X.Org Video Driver
>        ABI class: X.Org Video Driver, version 6.0
> (II) LoadModule: "mouse"
> (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
> (II) Module mouse: vendor="X.Org Foundation"
>        compiled for 1.7.5, module version = 1.5.0
>        Module class: X.Org XInput Driver
>        ABI class: X.Org XInput driver, version 7.0
> (II) LoadModule: "kbd"
> (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
> (II) Module kbd: vendor="X.Org Foundation"
>        compiled for 1.7.5, module version = 1.4.0
>        Module class: X.Org XInput Driver
>        ABI class: X.Org XInput driver, version 7.0
> (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
>        i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G,
>        E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
>        965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
>        4 Series, G45/G43, Q45/Q43, G41, B43, Clarkdale, Arrandale
> (II) Primary Device is: PCI 00 at 00:02:0
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is 9, (OK)
> drmOpenByBusid: Searching for BusID pci:0000:00:02.0
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is 9, (OK)
> drmOpenByBusid: drmOpenMinor returns 9
> drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
> (==) intel(0): Depth 24, (--) framebuffer bpp 32
> (==) intel(0): RGB weight 888
> (==) intel(0): Default visual is TrueColor
> (II) intel(0): Integrated Graphics Chipset: Intel(R) 945GME
> (--) intel(0): Chipset: "945GME"
> (==) intel(0): video overlay key set to 0x101fe
> (II) intel(0): Output VGA1 using monitor section Monitor0
> (II) intel(0): Output TV1 using monitor section TV1
> (**) intel(0): Option "Ignore"
> (II) intel(0): EDID vendor "GSM", prod id 17357
> (II) intel(0): Using EDID range info for horizontal sync
> (II) intel(0): Using EDID range info for vertical refresh
> (II) intel(0): Printing DDC gathered Modelines:
> (II) intel(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688 1024
> 1025 1028 1066 +hsync +vsync (64.0 kHz)
> (II) intel(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605
> 628 +hsync +vsync (37.9 kHz)
> (II) intel(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484
> 500 -hsync -vsync (37.5 kHz)
> (II) intel(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492
> 525 -hsync -vsync (31.5 kHz)
> (II) intel(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414
> 449 -hsync +vsync (31.5 kHz)
> (II) intel(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688 1024
> 1025 1028 1066 +hsync +vsync (80.0 kHz)
> (II) intel(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769
> 772 800 +hsync +vsync (60.0 kHz)
> (II) intel(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771
> 777 806 -hsync -vsync (48.4 kHz)
> (II) intel(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628
> 667 -hsync -vsync (49.7 kHz)
> (II) intel(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604
> 625 +hsync +vsync (46.9 kHz)
> (II) intel(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865
> 868 900 +hsync +vsync (67.5 kHz)
> (II) intel(0): Output VGA1 connected
> (II) intel(0): Using exact sizes for initial modes
> (II) intel(0): Output VGA1 using initial mode 1280x1024
> (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise
> stated.
> (**) intel(0): Display dimensions: (340, 270) mm
> (**) intel(0): DPI set to (95, 96)
> (II) Loading sub module "fb"
> (II) LoadModule: "fb"
> (II) Loading /usr/lib/xorg/modules/libfb.so
> (II) Module fb: vendor="X.Org Foundation"
>        compiled for 1.7.5, module version = 1.0.0
>        ABI class: X.Org ANSI C Emulation, version 0.4
> (==) Depth 24 pixmap format is 32 bpp
> (II) intel(0): [DRI2] Setup complete
> (**) intel(0): Tiling enabled
> (**) intel(0): SwapBuffers wait enabled
> (==) intel(0): VideoRam: 262144 KB
> (II) intel(0): Attempting memory allocation with tiled buffers.
> (II) intel(0): Tiled allocation successful.
> (II) UXA(0): Driver registered support for the following operations:
> (II)         solid
> (II)         copy
> (II)         composite (RENDER acceleration)
> (II)         put_image
> (==) intel(0): Backing store disabled
> (==) intel(0): Silken mouse enabled
> (II) intel(0): Initializing HW Cursor
> (II) intel(0): No memory allocations
> (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled
> message.
> (==) intel(0): DPMS enabled
> (II) intel(0): Set up textured video
> (II) intel(0): direct rendering: DRI2 Enabled
> (--) RandR disabled
> (II) Initializing built-in extension Generic Event Extension
> (II) Initializing built-in extension SHAPE
> (II) Initializing built-in extension MIT-SHM
> (II) Initializing built-in extension XInputExtension
> (II) Initializing built-in extension XTEST
> (II) Initializing built-in extension BIG-REQUESTS
> (II) Initializing built-in extension SYNC
> (II) Initializing built-in extension XKEYBOARD
> (II) Initializing built-in extension XC-MISC
> (II) Initializing built-in extension XINERAMA
> (II) Initializing built-in extension XFIXES
> (II) Initializing built-in extension RENDER
> (II) Initializing built-in extension RANDR
> (II) Initializing built-in extension DAMAGE
> (II) intel(0): Setting screen physical size to 338 x 270
> (**) Option "Protocol" "auto"
> (**) Option "Device" "/dev/input/mice"
> (II) Mouse0: Setting mouse protocol to "ExplorerPS/2"
> (**) Mouse0: Device: "/dev/input/mice"
> (**) Mouse0: Protocol: "auto"
> (**) Option "CorePointer"
> (**) Mouse0: always reports core events
> (**) Option "Device" "/dev/input/mice"
> (==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
> (**) Option "ZAxisMapping" "4 5 6 7"
> (**) Mouse0: ZAxisMapping: buttons 4, 5, 6 and 7
> (**) Mouse0: Buttons: 11
> (**) Mouse0: Sensitivity: 1
> (II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
> (**) Mouse0: (accel) keeping acceleration scheme 1
> (**) Mouse0: (accel) acceleration profile 0
> (II) Mouse0: Setting mouse protocol to "ExplorerPS/2"
> (II) Mouse0: ps2EnableDataReporting: succeeded
> (**) Option "CoreKeyboard"
> (**) Keyboard0: always reports core events
> (**) Option "Protocol" "standard"
> (**) Keyboard0: Protocol: standard
> (**) Option "XkbRules" "base"
> (**) Keyboard0: XkbRules: "base"
> (**) Option "XkbModel" "pc105"
> (**) Keyboard0: XkbModel: "pc105"
> (**) Option "XkbLayout" "us"
> (**) Keyboard0: XkbLayout: "us"
> (**) Option "CustomKeycodes" "off"
> (**) Keyboard0: CustomKeycodes disabled
> (II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
> (II) intel(0): EDID vendor "GSM", prod id 17357
> (II) intel(0): Using hsync ranges from config file
> (II) intel(0): Using vrefresh ranges from config file
> (II) intel(0): Printing DDC gathered Modelines:
> (II) intel(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688 1024
> 1025 1028 1066 +hsync +vsync (64.0 kHz)
> (II) intel(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605
> 628 +hsync +vsync (37.9 kHz)
> (II) intel(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484
> 500 -hsync -vsync (37.5 kHz)
> (II) intel(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492
> 525 -hsync -vsync (31.5 kHz)
> (II) intel(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414
> 449 -hsync +vsync (31.5 kHz)
> (II) intel(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688 1024
> 1025 1028 1066 +hsync +vsync (80.0 kHz)
> (II) intel(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769
> 772 800 +hsync +vsync (60.0 kHz)
> (II) intel(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771
> 777 806 -hsync -vsync (48.4 kHz)
> (II) intel(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628
> 667 -hsync -vsync (49.7 kHz)
> (II) intel(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604
> 625 +hsync +vsync (46.9 kHz)
> (II) intel(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865
> 868 900 +hsync +vsync (67.5 kHz)
> #
>
> My Xorg config file is:
> 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/X11/misc/"
>        FontPath     "/usr/share/fonts/X11/Type1/"
>        FontPath     "/usr/share/fonts/X11/100dpi/"
>        FontPath     "/usr/share/fonts/X11/75dpi/"
> EndSection
>
> Section "Module"
>        Load  "dbe"
>        Load  "dri"
>        Load  "extmod"
>        Load  "dri2"
> 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"
>        Identifier   "Monitor0"
>        VendorName   "Monitor Vendor"
>        ModelName    "Monitor Model"
> EndSection
>
> Section "Monitor"
>    Identifier "TV1"
>    Option "Ignore"
> 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     "ColorKey"                  # <i>
>        #Option     "CacheLines"                # <i>
>        #Option     "Dac6Bit"                   # [<bool>]
>        #Option     "DRI"                       # [<bool>]
>        #Option     "NoDDC"                     # [<bool>]
>        #Option     "ShowCache"                 # [<bool>]
>        #Option     "XvMCSurfaces"              # <i>
>        #Option     "PageFlip"                  # [<bool>]
>        Identifier  "Card0"
>        Driver      "intel"
>        VendorName  "Unknown Vendor"
>        BoardName   "Unknown Board"
>        BusID       "PCI:0:2: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
>
> --
> ------------------------------------------------------------------------
> Will Wagner                                     will_wagner at carallon.com
> Development Manager                      Office Tel: +44 (0)20 7371 2032
> Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
> ------------------------------------------------------------------------
>
>
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
>



More information about the xorg mailing list