How do I select a default visual

Kotaru, Raj Raj.Kotaru at acs-inc.com
Wed Jul 13 08:09:54 PDT 2011


Hi Lukasz,

I tried "startx -- -depth 8".
The X server via "ps" is identified to be running as:

root      2130  2129  1 05:11 tty8     00:00:00 /usr/bin/X :0 -depth 8 -auth /root/.serverauth.2112

In Xorg log file, I see:
[  4369.973] (++) intel(0): Depth 8, (--) framebuffer bpp 8
[  4369.973] (==) intel(0): RGB weight 888
[  4369.973] (**) intel(0): Default visual is PseudoColor
[  4369.973] (II) intel(0): Integrated Graphics Chipset: Intel(R) 965Q
[  4369.973] (--) intel(0): Chipset: "965Q"
[  4369.973] (**) intel(0): DRI is disabled because it runs only at depths 16 and 24.

I do not see any errors in Xorg log file.


However xdpyinfo still gives me a default trucolor (24 bit)  visual.

[orbcad at orbcad-testpc ~]$ xdpyinfo
name of display:    localhost:12.0
version number:    11.0
vendor string:    Hummingbird Ltd.
vendor release number:    10000
maximum request size:  4194300 bytes
motion buffer size:  1
bitmap unit, bit order, padding:    8, MSBFirst, 32
image byte order:    MSBFirst
number of supported pixmap formats:    4
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 12, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 254
focus:  window 0x2800090, revert to Parent
number of extensions:    13
    BIG-REQUESTS
    DOUBLE-BUFFER
    Extended-Visual-Information
    HCL-DOS-Access
    HCLMISC
    HCLxperf
    LBX
    SECURITY
    SHAPE
    TOG-CUP
    XC-APPGROUP
    XC-MISC
    XInputExtension
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1680x1050 pixels (480x300 millimeters)
  resolution:    89x89 dots per inch
  depths (4):    1, 8, 12, 24
  root window id:    0x36
  depth of root window:    24 planes
  number of colormaps:    minimum 8183, maximum 8183
  default colormap:    0x20
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store WHEN MAPPED, save-unders NO
  largest cursor:    32x32
  current input event mask:    0x70003c
    ButtonPressMask          ButtonReleaseMask        EnterWindowMask          
    LeaveWindowMask          SubstructureRedirectMask FocusChangeMask          
    PropertyChangeMask       
  number of visuals:    4
  default visual id:  0x24
  visual:
    visual id:    0x21
    class:    PseudoColor
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x22
    class:    StaticGray
    depth:    8 planes
    available colormap entries:    256
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x23
    class:    PseudoColor
    depth:    12 planes
    available colormap entries:    4096
    red, green, blue masks:    0x0, 0x0, 0x0
    significant bits in color specification:    8 bits
  visual:
    visual id:    0x24
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff, 0xff00, 0xff0000
    significant bits in color specification:    8 bits
[orbcad at orbcad-testpc ~]$                                                                           



-----Original Message-----
From: xorg-bounces+raj.kotaru=acs-inc.com at lists.freedesktop.org [mailto:xorg-bounces+raj.kotaru=acs-inc.com at lists.freedesktop.org] On Behalf Of Lukasz Masko
Sent: Monday, July 11, 2011 3:06 PM
To: xorg at lists.freedesktop.org
Subject: Re: How do I select a default visual

Dnia poniedziałek, 11 lipca 2011, Kotaru, Raj napisał:
> I am running Fedora 14 on a HP PC.  The video is "Intel Corporation
> 82Q963/Q965 Integrated Graphics Controller".
> 
> I need to run a legacy application that requires an 8 bit Pseudocolor
> default visual.   It uses overlay visuals and requires a writable color
> map.
> 
> I edited "xorg.conf" as follows:
> 
> 
> 
> Output of Xdpyinfo gives me an 8 bit pseudocolor visual, but this is not
> the default.  Is there an option that lets me choose the default visual?

What happens when you start X with
startx -- -bpp 8
?
-- 
Łukasz Maśko                                           GG:   2441498    _o)
Lukasz.Masko(at)ipipan.waw.pl                                           /\\
Registered Linux User #61028                                           _\_V
Ubuntu: staroafrykańskie słowo oznaczające "Nie umiem zainstalować Debiana"
_______________________________________________
xorg at lists.freedesktop.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: raj.kotaru at acs-inc.com



More information about the xorg mailing list