Problems configuring minimal xorg

Steve Bennett sablists at earthlink.net
Thu Aug 13 17:54:51 PDT 2009


Hi!

For the last few weeks, I've been trying to get a minimal Linux  
system running with X11.   The goal is to get a system that boots,  
quickly, off a CD or USB flash drive entirely into ram, with the root  
filesystem existing on the initrd.   As such, it's important to keep  
the total distribution size down to something fairly small, yet still  
boot on a wide variety of machines.

I'm using Buildroot (www.buildroot.org) to build the kernel and  
configure the various packages included in this system.  Originally,  
the plan was to use TinyX/Kdrive for the X11, and in fact, that's how  
it's currently configured.   But this has been plagued with problems.

The first attempts involved using Xvesa.  Getting Xvesa running  
wasn't difficult, but I had major issues with input devices.   Mouse  
movement was erratic at best when the system started up -- jumping  
all over the screen as it tried various mouse protocols and  
eventually settled down on the right one.   (I looked at kdrive's  
mouse code to see if this was fixable, since I'd written a lot of  
mouse drivers over the years -- all I have to say is "ugh"... :P )    
I was, however, completely unable to get keyboard input to work no  
matter what I did.

Research showed several people suggesting Xfbdev with a vesa frame  
buffer instead, since Xvesa was deprecated and in fact is apparently  
removed from current development tree.  So I switched to Xfbdev,  
using vesafb as an underlying base.   This reduces video card support  
a bit, but it got me some working keyboard support.   But even here,  
mouse support is still just as erratic at startup, and keyboard  
support seems problematic as well at the start.   Further, if  
keyboard support is turned on at all (with -keybd keyboard), I  
completely lose the ability to Ctrl+Alt+F1 back to the console, a big  
problem for development.

I tried switching the keyboard and mouse support to use the kernel  
evdev support, but that got me nowhere -- I was unable to get either  
mouse or keyboard working, even when I looked at the evdev code in  
kdrive and tried to configure it based on that.

So, based on yet another set of comments I saw suggesting that you  
can get a modular xorg configuration that doesn't take up much more  
space than a kdrive one, I went and tried to configure it that way,  
still using the vesafb framebuffer underneath.   (I did briefly try  
to get the xf86-video-vesa driver setup, but couldn't build it -- I  
got errors compiling vesa.h:125: expected specifier-qualifier-list  
before 'ShadowUpdateProc', and couldn't figure them out, so I got rid  
of that package and went back to the vesafb frame buffer, which is  
useful for other reasons anyway.)

And here I am now - I can get startx to start up the server with my  
current xorg.conf, but after briefly displaying the initial X screen,  
it immediately exits for no apparent reason.   Looking at the output  
and logs, the only error I can see is two messages saying "(EE) FBDEV 
(0): FBIOBLANK: Invalid argument".

I'm at an effective dead end here, so I finally break down and write  
to this mailing list in the vain hope *someone* will have some clue  
where to go from here.  I've included my xorg.conf file and Xorg. 
0.log output below.  At this point, I could easily go with Xfbdev if  
I could get the mouse and keyboard to work more effectively, or I  
could go with modular xorg if I could get that running well.  Advice  
on either path is welcome.

Thanks,
-->Steve Bennett

--------------------

Here's my xorg.conf file (edited slightly to get rid of comments and  
keep this email shorter -- Yes I know the entries in the "Files"  
section are wrong and need fixing...):

Section "Module"
	Disable	"glx"
	Load	"freetype"
EndSection

Section "Files"
     FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
     FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
     FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "ServerFlags"

EndSection

Section "InputDevice"

     Identifier	"Keyboard1"
     Driver	"kbd"
     Option "AutoRepeat" "500 30"

     Option "XkbRules"	"base"
     Option "XkbModel"	"pc105"
     Option "XkbLayout"	"us"

EndSection

Section "InputDevice"
     Identifier	"Mouse1"
     Driver	"mouse"
     Option "Protocol"    "auto"
     Option "Device"      "/dev/input/mice"
EndSection

Section "Monitor"
     Identifier  "Any"
     HorizSync   31.5-35.1
     VertRefresh 50-70
EndSection

Section "Device"
     Identifier	"Standard VGA"
     VendorName	"Unknown"
     BoardName	"Unknown"
     Driver     "vga"
EndSection

Section "Device"
     Identifier  "Vesafb"
     Driver      "fbdev"
EndSection

Section "Screen"
     Identifier  "Screen 1"
     Device      "Vesafb"
     Monitor     "Any"
     DefaultDepth 16

     Subsection "Display"
         Depth       8
         Modes       "1280x1024" "1024x768" "800x600" "640x480"
         ViewPort    0 0
     EndSubsection
     Subsection "Display"
         Depth       16
         Modes       "1024x768" "800x600" "640x480"
         ViewPort    0 0
     EndSubsection
     Subsection "Display"
         Depth       24
         Modes       "800x600" "640x480"
         ViewPort    0 0
     EndSubsection
EndSection

Section "ServerLayout"
     Identifier  "Simple Layout"
     Screen "Screen 1"
     InputDevice "Mouse1" "CorePointer"
     InputDevice "Keyboard1" "CoreKeyboard"
EndSection



-------------
And here's my Xorg.0.log file:

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/ctbaselinux:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X.Org X Server 1.5.2
Release Date: 10 October 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.27-11-generic i686
Current Operating System: Linux ctbaselinux 2.6.29.4 #1 Wed Aug 12  
18:43:35 EDT 2009 i686
Build Date: 12 August 2009  06:18:07PM

	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: "/usr/var/log/Xorg.0.log", Time: Thu Aug 13 11:57:26 2009
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Simple Layout"
(**) |-->Screen "Screen 1" (0)
(**) |   |-->Monitor "Any"
(**) |   |-->Device "Vesafb"
(**) |-->Input Device "Mouse1"
(**) |-->Input Device "Keyboard1"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/X11R6/lib/X11/fonts/misc/" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/75dpi/" does not exist.
	Entry deleted from font path.
(WW) The directory "/usr/X11R6/lib/X11/fonts/100dpi/" does not exist.
	Entry deleted from font path.
(WW) FontPath is completely invalid.  Using compiled-in default.
(==) FontPath set to:
	/usr/lib/X11/fonts/misc/,
	/usr/lib/X11/fonts/TTF/,
	/usr/lib/X11/fonts/OTF,
	/usr/lib/X11/fonts/Type1/,
	/usr/lib/X11/fonts/100dpi/,
	/usr/lib/X11/fonts/75dpi/
(==) ModulePath set to "/usr/lib/xorg/modules"
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or  
directory)
(II) No APM support in BIOS or kernel
(II) Loader magic: 0x81803ac
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.4
	X.Org Video Driver: 4.1
	X.Org XInput driver : 2.1
	X.Org Server Extension : 1.1
	X.Org Font Renderer : 0.6
(II) Loader running on linux
(--) using VT number 2

(--) PCI:*(0 at 1:0:0) unknown vendor (0x1002) unknown chipset (0x71c5)  
rev 0, Mem @ 0x80000000/0, 0x88300000/0, I/O @ 0x00002000/0, BIOS @  
0x????????/131072
(II) System resource ranges:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[4] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[5] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
(WW) "glx" will not be loaded unless you've specified it to be loaded  
elsewhere.
(II) "extmod" will be loaded by default.
(II) "dbe" will be loaded by default.
(II) "glx" will be loaded even though the default is to disable it.
(II) "freetype" will be loaded. This was enabled by default and also  
specified in the config file.
(II) "dri" will be loaded by default.
(II) LoadModule: "freetype"

(II) Loading /usr/lib/xorg/modules/fonts//libfreetype.so
(II) Module freetype: vendor="X.Org Foundation & the After X-TT Project"
	compiled for 1.5.2, module version = 2.1.0
	Module class: X.Org Font Renderer
	ABI class: X.Org Font Renderer, version 0.6
(II) Loading font FreeType
(II) LoadModule: "extmod"

(II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 1.1
(II) Loading extension SHAPE
(II) Loading extension MIT-SUNDRY-NONSTANDARD
(II) Loading extension BIG-REQUESTS
(II) Loading extension SYNC
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XC-MISC
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-Misc
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension TOG-CUP
(II) Loading extension Extended-Visual-Information
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"

(II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.0.0
	Module class: X.Org Server Extension
	ABI class: X.Org Server Extension, version 1.1
(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.5.2, module version = 1.0.0
	ABI class: X.Org Server Extension, version 1.1
(II) Loading extension XFree86-DRI
(II) LoadModule: "fbdev"

(II) Loading /usr/lib/xorg/modules/drivers//fbdev_drv.so
(II) Module fbdev: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 0.4.0
	ABI class: X.Org Video Driver, version 4.1
(II) LoadModule: "mouse"

(II) Loading /usr/lib/xorg/modules/input//mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.3.0
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 2.1
(II) LoadModule: "kbd"

(II) Loading /usr/lib/xorg/modules/input//kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.3.1
	Module class: X.Org XInput Driver
	ABI class: X.Org XInput driver, version 2.1
(II) FBDEV: driver for framebuffer: fbdev
(II) Primary Device is: PCI 01 at 00:00:0
(II) Loading sub module "fbdevhw"
(II) LoadModule: "fbdevhw"

(II) Loading /usr/lib/xorg/modules/linux//libfbdevhw.so
(II) Module fbdevhw: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 0.0.2
	ABI class: X.Org Video Driver, version 4.1
(**) FBDEV(0): claimed PCI slot 1 at 0:0:0
(II) FBDEV(0): using default device
(II) resource ranges after probing:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[4] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[5] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
(**) FBDEV(0): Depth 16, (--) framebuffer bpp 16
(==) FBDEV(0): RGB weight 565
(==) FBDEV(0): Default visual is TrueColor
(==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
(II) FBDEV(0): hardware: VESA VGA (video memory: 1875kB)
(II) FBDEV(0): checking modes against framebuffer device...
(II) FBDEV(0): 	mode "1024x768" test failed
(II) FBDEV(0): 	mode "800x600" test failed
(II) FBDEV(0): 	mode "640x480" test failed
(II) FBDEV(0): checking modes against monitor...
(--) FBDEV(0): Virtual size is 800x600 (pitch 800)
(**) FBDEV(0):  Built-in mode "current": 48.0 MHz, 46.9 kHz, 75.1 Hz
(II) FBDEV(0): Modeline "current"x0.0   48.00  800 832 928 1024  600  
604 608 624 -hsync -vsync -csync (46.9 kHz)
(==) FBDEV(0): DPI set to (96, 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.5.2, module version = 1.0.0
	ABI class: X.Org ANSI C Emulation, version 0.4
(**) FBDEV(0): using shadow framebuffer
(II) Loading sub module "shadow"
(II) LoadModule: "shadow"

(II) Loading /usr/lib/xorg/modules//libshadow.so
(II) Module shadow: vendor="X.Org Foundation"
	compiled for 1.5.2, module version = 1.1.0
	ABI class: X.Org ANSI C Emulation, version 0.4
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0	0x000f0000 - 0x000fffff (0x10000) MX[B]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[3] -1	0	0x00000000 - 0x0009ffff (0xa0000) MX[B]
	[4] -1	0	0x0000ffff - 0x0000ffff (0x1) IX[B]
	[5] -1	0	0x00000000 - 0x00000000 (0x1) IX[B]
(EE) FBDEV(0): FBIOBLANK: Invalid argument
(==) FBDEV(0): Backing store disabled
(II) FBDEV(0): DPMS enabled
(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(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 COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing built-in extension XEVIE
(**) Option "Protocol" "auto"
(**) Option "Device" "/dev/input/mice"
(II) Mouse1: Setting mouse protocol to "ExplorerPS/2"
(**) Mouse1: Device: "/dev/input/mice"
(**) Mouse1: Protocol: "auto"
(**) Option "CorePointer"
(**) Mouse1: always reports core events
(**) Option "Device" "/dev/input/mice"
(==) Mouse1: Emulate3Buttons, Emulate3Timeout: 50
(**) Mouse1: ZAxisMapping: buttons 4 and 5
(**) Mouse1: Buttons: 9
(**) Mouse1: Sensitivity: 1
(**) Option "CoreKeyboard"
(**) Keyboard1: always reports core events
(**) Option "Protocol" "standard"
(**) Keyboard1: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "base"
(**) Keyboard1: XkbRules: "base"
(**) Option "XkbModel" "pc105"
(**) Keyboard1: XkbModel: "pc105"
(**) Option "XkbLayout" "us"
(**) Keyboard1: XkbLayout: "us"
(**) Option "CustomKeycodes" "off"
(**) Keyboard1: CustomKeycodes disabled
(II) evaluating device (Mouse1)
(II) XINPUT: Adding extended input device "Mouse1" (type: MOUSE)
(II) evaluating device (Keyboard1)
(II) XINPUT: Adding extended input device "Keyboard1" (type: KEYBOARD)
(II) Mouse1: Setting mouse protocol to "ExplorerPS/2"
(II) Mouse1: ps2EnableDataReporting: succeeded
Could not init font path element /usr/lib/X11/fonts/TTF/, removing  
from list!
Could not init font path element /usr/lib/X11/fonts/OTF, removing  
from list!
Could not init font path element /usr/lib/X11/fonts/Type1/, removing  
from list!
(EE) FBDEV(0): FBIOBLANK: Invalid argument
(II) UnloadModule: "mouse"
(II) UnloadModule: "kbd"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20090813/52e21db4/attachment.html>


More information about the xorg mailing list