Solved

Color Problems in X

Posted on 1997-11-15
2
327 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
Comment Utility
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
Comment Utility
I forgot to mention why you had black and white. It is because X wasn't able to assign more colors.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now