Solved

Color Problems in X

Posted on 1997-11-15
2
336 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

724 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