weird colors - Xwindows

This is a discussion on weird colors - Xwindows ; I have a fresh Ubuntu 7.10 remotely, in a hosting provider. In order to run some X programs easily I run Xvfb and a lightweight window manager. it works like a charm but colors are weird. I am not familiar ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: weird colors

  1. weird colors

    I have a fresh Ubuntu 7.10 remotely, in a hosting provider.

    In order to run some X programs easily I run Xvfb and a lightweight
    window manager. it works like a charm but colors are weird. I am not
    familiar with this stuff and after trying some options I don't know
    what could I do. See:

    http://s3.amazonaws.com/fxn/infierno.png

    That's taken from a x11vnc session whose output I attach below the
    signature.

    The only complain of Xvfb is

    Could not init font path element /usr/share/fonts/X11/cyrillic,
    removing from list!
    Could not init font path element /usr/share/fonts/X11/Type1, removing
    from list!

    the rest of fonts (100dpi etc) are installed. If I launch icewm I see
    these warnings a lot

    IceWM: Warning: ypixbuf.cc:545: 8 bit visuals are not supported (yet)

    I don't know whether it has nothing to do with this but when Xvfb
    quits I see this message

    FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be
    1; fixing.

    I don't know whether "depth" is what I should look into, but if I try
    to run Xvfb this way

    Xvfb :1 -screen N 800x600x32

    for N = 0 or 1 there's an error saying that the screen can't be
    created. I've tried several geometries.

    How could I improve that?

    -- fxn


    Settings:
    display: :1
    authfile: null
    subwin: 0x0
    -sid mode: 0
    clip: null
    flashcmap: 0
    shiftcmap: 0
    force_idx: 0
    cmap8to24: 0
    8to24_opts: null
    24to32: 0
    visual: null
    overlay: 0
    ovl_cursor: 1
    scaling: 0 1.0000
    viewonly: 0
    shared: 0
    conn_once: 1
    timeout: 0
    inetd: 0
    filexfer: 1
    http: 0
    connect: null
    connectfile null
    vnc_conn: 1
    allow: null
    input: null
    passfile: null
    unixpw: 0
    unixpw_lst: null
    stunnel: 0
    accept: null
    accept: null
    gone: null
    users: null
    using_shm: 1
    flipbytes: 0
    onetile: 0
    solid: null
    blackout: null
    xinerama: 1
    xtrap: 0
    xrandr: 0
    xrandrmode: null
    padgeom: null
    logfile: null
    logappend: 0
    flag: null
    rc_file: ""
    norc: 0
    dbg: 0
    bg: 0
    mod_tweak: 1
    isolevel3: 0
    xkb: 0
    skipkeys: null
    sloppykeys: 0
    skip_dups: 0
    addkeysyms: 1
    xkbcompat: 0
    clearmods: 0
    remap: null
    norepeat: 1
    norepeatcnt:2
    nofb: 0
    watchbell: 1
    watchsel: 1
    watchprim: 1
    seldir: null
    cursor: 1
    multicurs: 0
    curs_mode: null
    arrow: 1
    xfixes: 1
    alphacut: 240
    alphafrac: 0.33
    alpharemove:0
    alphablend: 1
    cursorshape:1
    cursorpos: 1
    xwarpptr: 0
    buttonmap: null
    dragging: 1
    wireframe: 0xff,3,0,32+8+8+8,all,0.15+0.30+5.0+0.125
    wirecopy: always
    scrollcopy: always
    scr_area: 60000
    scr_skip: ##Soffice.bin,##StarOffice
    scr_inc: ##Nomatch
    scr_keys: null
    scr_term: null
    scr_keyrep: null
    scr_parms: 0+64+32+32,0.02+0.10+0.9,0.03+0.06+0.5+0.1+5.0
    fixscreen: null
    noxrecord: 0
    grabbuster: 0
    ptr_mode: 2
    inputskip: 10
    speeds: null
    wmdt: null
    debug_ptr: 0
    debug_key: 0
    defer: 30
    waitms: 30
    wait_ui: 2.00
    nowait_bog: 0
    slow_fb: 0.00
    readtimeout: 20
    take_naps: 1
    sb: 60
    fbpm: 1
    xdamage: 1
    xd_area: 20000
    xd_mem: 1.000
    sigpipe: null
    threads: 0
    fs_frac: 0.75
    gaps_fill: 4
    grow_fill: 3
    tile_fuzz: 2
    snapfb: 0
    rawfb: null
    pipeinput: null
    gui: 0
    gui_mode: null
    noremote: 0
    unsafe: 0
    privremote: 0
    safer: 0
    nocmds: 0
    deny_all: 0
    pid: 4824

    20/02/2008 23:40:58 x11vnc version: 0.8.2 lastmod: 2006-07-12
    20/02/2008 23:40:58 Using X display :1
    20/02/2008 23:40:58
    20/02/2008 23:40:58 ------------------ USEFUL INFORMATION
    ------------------
    20/02/2008 23:40:58 X DAMAGE available on display, using it for
    polling hints.
    20/02/2008 23:40:58 To disable this behavior use: '-noxdamage'
    20/02/2008 23:40:58 Wireframing: -wireframe mode is in effect for
    window moves.
    20/02/2008 23:40:58 If this yields undesired behavior (poor
    response, painting
    20/02/2008 23:40:58 errors, etc) it may be disabled:
    20/02/2008 23:40:58 - use '-nowf' to disable wireframing
    completely.
    20/02/2008 23:40:58 - use '-nowcr' to disable the Copy Rectangle
    after the
    20/02/2008 23:40:58 moved window is released in the new position.
    20/02/2008 23:40:58 Also see the -help entry for tuning parameters.
    20/02/2008 23:40:58 You can press 3 Alt_L's (Left "Alt" key) in a
    row to
    20/02/2008 23:40:58 repaint the screen, also see the -fixscreen
    option for
    20/02/2008 23:40:58 periodic repaints.
    20/02/2008 23:40:58 Note: '-scale' is on and this can cause more
    problems.
    20/02/2008 23:40:58 XFIXES available on display, resetting cursor mode
    20/02/2008 23:40:58 to: '-cursor most'.
    20/02/2008 23:40:58 to disable this behavior use: '-cursor arrow'
    20/02/2008 23:40:58 or '-noxfixes'.
    20/02/2008 23:40:58 using XFIXES for cursor drawing.
    20/02/2008 23:40:58 GrabServer control via XTEST.
    20/02/2008 23:40:58 Scroll Detection: -scrollcopyrect mode is in
    effect to
    20/02/2008 23:40:58 use RECORD extension to try to detect scrolling
    windows
    20/02/2008 23:40:58 (induced by either user keystroke or mouse
    input).
    20/02/2008 23:40:58 If this yields undesired behavior (poor
    response, painting
    20/02/2008 23:40:58 errors, etc) it may be disabled via: '-noscr'
    20/02/2008 23:40:58 Also see the -help entry for tuning parameters.
    20/02/2008 23:40:58 You can press 3 Alt_L's (Left "Alt" key) in a
    row to
    20/02/2008 23:40:58 repaint the screen, also see the -fixscreen
    option for
    20/02/2008 23:40:58 periodic repaints.
    20/02/2008 23:40:58 Note: '-scale' is on and this can cause more
    problems.
    20/02/2008 23:40:58 XKEYBOARD: all 28 "must have" keysyms accounted
    for.
    20/02/2008 23:40:58 Not automatically switching to -xkb mode.
    20/02/2008 23:40:58 If some keys still cannot be typed, try using -
    xkb.
    20/02/2008 23:40:58 Also, remember "-remap DEAD" for accenting
    characters.
    20/02/2008 23:40:58 X FBPM extension not supported.
    20/02/2008 23:40:58
    --------------------------------------------------------
    20/02/2008 23:40:58
    20/02/2008 23:40:58 Default visual ID: 0x27
    20/02/2008 23:40:58 Read initial data from X display into framebuffer.
    20/02/2008 23:40:58 initialize_screen: fb_depth/fb_bpp/fb_Bpl 8/8/1280
    20/02/2008 23:40:58 scaling screen: 1280x1024 -> 1152x921
    scale_fac=0.90000
    20/02/2008 23:40:58
    20/02/2008 23:40:58 X display :1.0 is 8bpp indexed color
    20/02/2008 23:40:58
    20/02/2008 23:40:58 In 8bpp PseudoColor mode if you experience color
    20/02/2008 23:40:58 problems you may want to enable following the
    20/02/2008 23:40:58 changing colormap by using the -flashcmap option.
    20/02/2008 23:40:58

    FrameBuffer Info:
    width: 1280
    height: 1024
    scaled_width: 1152
    scaled_height: 921
    indexed_color: 1
    bits_per_pixel: 8
    depth: 8
    red_mask: 0x00000000 00000000000000000000000000000000
    green_mask: 0x00000000 00000000000000000000000000000000
    blue_mask: 0x00000000 00000000000000000000000000000000
    red: max: 0 shift: 0
    green: max: 0 shift: 0
    blue: max: 0 shift: 0
    mainfb_bytes_per_line: 1280
    rfb_fb_bytes_per_line: 1152
    format: ZPixmap
    byte_order: LSBFirst
    bitmap_pad: 32
    bitmap_unit: 32
    bitmap_bit_order: LSBFirst
    rfb_fb: 0xb79e4008
    main_fb: 0xb7ae8008
    8to24_fb: (nil)
    snap_fb: (nil)
    raw_fb: (nil)
    fake_fb: (nil)

    20/02/2008 23:40:58 setting up 32 cursors...
    20/02/2008 23:40:58 done.
    20/02/2008 23:40:58
    20/02/2008 23:40:58 Autoprobing TCP port
    20/02/2008 23:40:58 Autoprobing selected port 5900
    20/02/2008 23:40:58 Xinerama: disabling: display does not support it.
    20/02/2008 23:40:58 created 40 tile_row shm polling images.
    20/02/2008 23:40:58 fb read rate: 83 MB/sec
    20/02/2008 23:40:58 screen setup finished.
    20/02/2008 23:40:58
    20/02/2008 23:40:58 WARNING: You are running x11vnc WITHOUT a
    password. See
    20/02/2008 23:40:58 WARNING: the warning message printed above for
    more info.
    20/02/2008 23:40:58
    The VNC desktop is: www:0
    PORT=5900


  2. Re: weird colors

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Xavier Noria wrote:
    > I have a fresh Ubuntu 7.10 remotely, in a hosting provider.
    >
    > In order to run some X programs easily I run Xvfb and a lightweight
    > window manager. it works like a charm but colors are weird. I am not
    > familiar with this stuff and after trying some options I don't know
    > what could I do. See:
    >
    > http://s3.amazonaws.com/fxn/infierno.png
    >
    > That's taken from a x11vnc session whose output I attach below the
    > signature.
    >
    > The only complain of Xvfb is
    >
    > Could not init font path element /usr/share/fonts/X11/cyrillic,
    > removing from list!
    > Could not init font path element /usr/share/fonts/X11/Type1, removing
    > from list!
    >
    > the rest of fonts (100dpi etc) are installed. If I launch icewm I see
    > these warnings a lot
    >
    > IceWM: Warning: ypixbuf.cc:545: 8 bit visuals are not supported (yet)


    8-bit colour provides for up to 256 colours, by mapping each colour into one
    of the 256 values an 8-bit number can have.

    Your picture shows a colour problem. You get a warning that 8-bit visuals are
    not supported, and (if you take a look at the other errors below), you see
    that your X session is running in 8-bit colour mode. Sounds to me like you are
    running into a limitation of 8-bit colours.

    [snip]
    > -- fxn

    [snip]
    > 20/02/2008 23:40:58 x11vnc version: 0.8.2 lastmod: 2006-07-12
    > 20/02/2008 23:40:58 Using X display :1
    > 20/02/2008 23:40:58
    > 20/02/2008 23:40:58 ------------------ USEFUL INFORMATION
    > ------------------

    [snip]
    > --------------------------------------------------------
    > 20/02/2008 23:40:58
    > 20/02/2008 23:40:58 Default visual ID: 0x27
    > 20/02/2008 23:40:58 Read initial data from X display into framebuffer.
    > 20/02/2008 23:40:58 initialize_screen: fb_depth/fb_bpp/fb_Bpl 8/8/1280
    > 20/02/2008 23:40:58 scaling screen: 1280x1024 -> 1152x921
    > scale_fac=0.90000
    > 20/02/2008 23:40:58
    > 20/02/2008 23:40:58 X display :1.0 is 8bpp indexed color
    > 20/02/2008 23:40:58
    > 20/02/2008 23:40:58 In 8bpp PseudoColor mode if you experience color
    > 20/02/2008 23:40:58 problems you may want to enable following the
    > 20/02/2008 23:40:58 changing colormap by using the -flashcmap option.
    > 20/02/2008 23:40:58

    [snip]

    Did you take the advice of the warning message above, and enable the
    - -flashcmap option?


    - --
    Lew Pitcher

    Master Codewright & JOAT-in-training | Registered Linux User #112576
    http://pitcher.digitalfreehold.ca/ | GPG public key available by request
    - ---------- Slackware - Because I know what I'm doing. ------


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.7 (GNU/Linux)
    Comment: Armoured with GnuPG

    iD8DBQFHvJQUagVFX4UWr64RAkAFAJ9+pyMQcz9dq0IMajfIsB JLFbN7hgCeIg9R
    qwAax+kc2B1w6YZ7bFYMvPc=
    =RpPt
    -----END PGP SIGNATURE-----

  3. Re: weird colors

    On Feb 20, 9:56*pm, Lew Pitcher wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    >
    >
    > Xavier Noria wrote:
    > > I have a fresh Ubuntu 7.10 remotely, in a hosting provider.

    >
    > > In order to run some X programs easily I run Xvfb and a lightweight
    > > window manager. it works like a charm but colors are weird. I am not
    > > familiar with this stuff and after trying some options I don't know
    > > what could I do. See:

    >
    > > * *http://s3.amazonaws.com/fxn/infierno.png

    >
    > > That's taken from a x11vnc session whose output I attach below the
    > > signature.

    >
    > > The only complain of Xvfb is

    >
    > > Could not init font path element /usr/share/fonts/X11/cyrillic,
    > > removing from list!
    > > Could not init font path element /usr/share/fonts/X11/Type1, removing
    > > from list!

    >
    > > the rest of fonts (100dpi etc) are installed. If I launch icewm I see
    > > these warnings a lot

    >
    > > IceWM: Warning: ypixbuf.cc:545: 8 bit visuals are not supported (yet)

    >
    > 8-bit colour provides for up to 256 colours, by mapping each colour into one
    > of the 256 values an 8-bit number can have.
    >
    > Your picture shows a colour problem. You get a warning that 8-bit visuals are
    > not supported, and (if you take a look at the other errors below), you see
    > that your X session is running in 8-bit colour mode. Sounds to me like youare
    > running into a limitation of 8-bit colours.


    Do you know whether there's a way to configure Xvfb to use more bits?
    I've read the man page but see no way to do it. I've played with -
    screen and -pixdepth to no avail.

    Indeed the -flashcmap and -8to24 options of x11vnc improve the
    situation a little bit, but it still doesn't look normal. See for
    example the contextual menu of blackbox:

    http://s3.amazonaws.com/fxn/blackbox...xtual_menu.png

    you can't even see the menu entries but the one the cursor is on.

    -- fxn


  4. Re: weird colors

    On Feb 20, 4:30 pm, Xavier Noria wrote:

    > Do you know whether there's a way to configure Xvfb to use more bits?
    > I've read the man page but see no way to do it. I've played with -
    > screen and -pixdepth to no avail.


    Yes, try something like:

    Xvfb :N -screen 0 1280x1024x16

    for 16-bit color or 1280x1024x24 for full color.

    On some recent Xvfb's you'll also need '-cc 4' to force TrueColor (it
    chooses DirectColor
    for some reason, and that will give you messed up colors too).

    BTW, recent x11vnc's have the '-create' option that will start up Xvfb
    for you automatically,
    and reattach to it when you reconnect.

  5. Re: weird colors

    On Feb 20, 10:40*pm, goog...@karlrunge.com wrote:
    > On Feb 20, 4:30 pm, Xavier Noria wrote:
    >
    > > Do you know whether there's a way to configure Xvfb to use more bits?
    > > I've read the man page but see no way to do it. I've played with -
    > > screen and -pixdepth to no avail.

    >
    > Yes, try something like:
    >
    > * * *Xvfb :N *-screen 0 1280x1024x16


    That one worked! I tried a few combinations but got "Couldn't add
    screen 0" errors. Excellent you made my day :-).

    -- fxn


  6. Re: weird colors

    Please, i have the same problem, just installed slackware 12.2 everithing ok but when i start x desktop i get all weird like old 8 bit screen, someone help me

+ Reply to Thread