Issues running Xorg in 8 bit color mode:q

Doug Kuvaas doug.kuvaas at gmail.com
Thu Sep 15 12:26:24 PDT 2011


I have a legacy application that is run from a UNIX host computer that does
not function properly if executed with color depths greater than 8 bits.
 When I try to run Xorg in the form of Xorg :0 +bs -wm -retro -depth 8
-fbbpp 8, all I end up with is grayscale, no color at all.

Hardware is a Dell Optiplex 390 with integrated Intel HD graphics card.  I
have also tried using an ATI X300 graphics card to see if it was an
intel/driver issue, but both performed in the same manner.

I have tried using different visuals in the xorg.conf screen
section--PseudoColor, TrueColor, DirectColor, and StaticColor, all with the
same result.

I have tried setting a number of video card options to see if this works,
such as Dac6Bit and Dac8Bit.

I have tried this with both CentOS 6.0 and Fedora 15, both 64 bit
distributions.  I did try using Xephyr, the nested X-server, and while this
did address the color depth issue, it created a new problem in the backing
store not working, leading to "holes" in the display when a menu was opened.

If I could either get Xorg to operate the way I want or the Backing Store to
work with Xephyr, I would be satisfied.  I am going to try a 32 bit version
of Fedora to see if it makes a difference as well.

Thanks in advance for any assistance or insights.

Some information that might prove helpful:
-----------------------------------------------------------------------
Output of uname -a
-----------------------------------------------------------------------
Linux xterm1 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64
x86_64 x86_64 GNU/Linux

-----------------------------------------------------------------------
Output of Xorg -version:
-----------------------------------------------------------------------
X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: c6b3 2.6.32-44.2.el6.x86_64
Current Operating System: Linux xterm1 2.6.32-71.el6.x86_64 #1 SMP Fri May
20 03:51:51 BST 2011 x86_64
Kernel command line: ro root=/dev/mapper/vg_xterm1-lv_root
rd_LVM_LV=vg_xterm1/lv_root rd_LVM_LV=vg_xterm1/lv_swap rd_NO_LUKS rd_NO_MD
rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc
KEYTABLE=us crashkernel=128M rhgb quiet
Build Date: 12 November 2010  07:08:30AM
Build ID: xorg-x11-server 1.7.7-26.el6
Current version of pixman: 0.16.6
        Before reporting problems, check
https://www.redhat.com/apps/support/
        to make sure that you have the latest version.

------------------------------------------------------------------------
Output of xdpyinfo:
------------------------------------------------------------------------
name of display:    :0.0
version number:    11.0
vendor string:    Red Hat, Inc.
vendor release number:    10707000
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0x2600004, revert to Parent
number of extensions:    26
    BIG-REQUESTS
    Composite
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    DRI2
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    MIT-SHM
    RANDR
    RECORD
    RENDER
    SGI-GLX
    SHAPE
    SYNC
    X-Resource
    XC-MISC
    XFIXES
    XFree86-DGA
    XFree86-VidModeExtension
    XINERAMA
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
default screen number:    0
number of screens:    1
screen #0:
  dimensions:    1280x1024 pixels (338x270 millimeters)
  resolution:    96x96 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0x10b
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x20
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store YES, save-unders NO
  largest cursor:    64x64
  current input event mask:    0xfa8033
    KeyPressMask             KeyReleaseMask           EnterWindowMask
    LeaveWindowMask          ExposureMask             StructureNotifyMask
    SubstructureNotifyMask   SubstructureRedirectMask FocusChangeMask
    PropertyChangeMask       ColormapChangeMask
  number of visuals:    64
(Note:  I am running in 24 bit color mode right now)

-------------------------------------------------------------------
Contents of /etc/X11/xorg.conf:
-------------------------------------------------------------------
Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath   "/usr/lib64/xorg/modules"
        FontPath     "catalogue:/etc/X11/fontpath.d"
        FontPath     "built-ins"
        FontPath     "tcp/192.168.1.56:7000"
EndSection

Section "Module"
        Load  "dri2"
        Load  "dri"
        Load  "dbe"
        Load  "extmod"
        Load  "glx"
        Load  "record"
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      410   310     # mm
        Identifier   "Monitor0"
        VendorName   "NEC"
        ModelName    "LCD2080UX+"
        HorizSync    30.0 - 96.0
        VertRefresh  48.0 - 87.0
        Option      "DPMS"
EndSection

Section "Device"
        Option      "BackingStore" "true"
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "ATI Technologies Inc"
        BoardName   "RV370 5B60 [Radeon X300 (PCIE)]"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
#       DefaultDepth 8
        SubSection "Display"
                Viewport   0 0
                Depth     1
                Modes     "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
                Modes     "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
                Visual    "StaticColor"
                Modes     "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
                Modes     "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes     "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes     "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20110915/999c4b06/attachment.html>


More information about the xorg mailing list