Solved

Color Problems in X

Posted on 1997-11-15
2
330 Views
Last Modified: 2008-03-17
When I first installed X-Windows my colors worked fine. After I installed a window manager called AfterStep my colors started acting weird. Many of my programs are in black & white. And I get the following errors from xterm when I run X programs from it.

XView warning: Unable to allocate control colors for colormap segment (Color package)

Any ideaz?

Buddha
0
Comment
Question by:buddha50
  • 2
2 Comments
 
LVL 1

Accepted Solution

by:
Belar earned 100 total points
ID: 1634042
This is caused by X running in 8 bits (256) color mode. A fast fix is to try to start X in 16 bits (65536) or 24 bits(lots) to do so you type:

startx -- -bpp 16

To fix in a more permanent way you'll have to edit the /etc/XF86Config in the screen section and add DefaultColorDepth 16 or 24


Section "Screen"
    Driver      "accel"
    Device      "WhateverCardYouHave"
    Monitor     "WhateverYourMonitorIsCalled"
    DefaultColorDepth 16
    Subsection "Display"
        Depth       8
        Modes       "640x480" "800x600" "1024x768" "1280x1024"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "640x480" "800x600" "1024x768"
        ViewPort    0 0
    EndSubsection
EndSection

Hope this help!

0
 
LVL 1

Expert Comment

by:Belar
ID: 1634043
I forgot to mention why you had black and white. It is because X wasn't able to assign more colors.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
centos linux 65 159
000webhost.com default error log 1 40
What is linux 4.8.22? Is it the same as ubuntu 16.10 ?? 2 56
The better OS Architecture 13 68
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question