LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-28-2014, 06:41 AM   #1
eRJe
Member
 
Registered: May 2005
Location: Netherlands
Distribution: Slackware 13 Kernel 2.6.32.7
Posts: 98

Rep: Reputation: 16
8 bit X-Win application in 24/16 bit Xorg


Hello,

From a Debian system I remotely login to a AIX system and then I run a x-win application that has a 8 bit color depth. It works but the colors are wrong and I am getting the following error messages. (This is just an extraction of the errors, there are many more of the same)

Code:
CPU0: XXG:Index surpassed 256 color 3136
CPU0: XXG:Index surpassed 256 color 3200
CPU0: XXG:Index surpassed 256 color 3264
CPU0: XXG:Index surpassed 256 color 3328
CPU0: XXG:Index surpassed 256 color 3392
CPU0: XXG:Index surpassed 256 color 3456
The colors are being displayed quite good accept for a few (perhaps only one) THese color(s) are now just black.

When start x in with a lower color depth,
Code:
startx -- -depth 8
even more colors are being displayed black and I'm getting the following error messages:
Code:
CPU0: XXG: Failed to Allocate Colors Reverting to Black & White
CPU0: XXG: Failed to Allocate Colors Reverting to Black & White
CPU0: XXG: Failed to Allocate Colors Reverting to Black & White
CPU0: XXG: Failed to Allocate Colors Reverting to Black & White
CPU0: XXG: Failed to Allocate Colors Reverting to Black & White
CPU0: XXG: Failed to Allocate Colors Reverting to Black & White
CPU0: XXG: Failed to Allocate Colors Reverting to Black & White
Is there anything I can do to solve this issue?

Thanks,
Robbert
 
Old 03-02-2014, 03:30 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,605

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
What's your video Card. Does that handle 8 bit?
This is probably a video issue. Can you get to use vesa, or framebuffer for this thing?

There's also some weird special purpose X servers, one of which might handle 8 bit better.
 
Old 03-05-2014, 03:19 AM   #3
eRJe
Member
 
Registered: May 2005
Location: Netherlands
Distribution: Slackware 13 Kernel 2.6.32.7
Posts: 98

Original Poster
Rep: Reputation: 16
Thanks for you response business_kid,

Actually I'm running this from a Raspberry Pi.

There are two applications that I'm running in 8 bit. Application A is showing the colors just fine in 16 bit, though I get messages like this:
Code:
CPU0: XXG:Index surpassed 256 color 3136
CPU0: XXG:Index surpassed 256 color 3200
CPU0: XXG:Index surpassed 256 color 3264
CPU0: XXG:Index surpassed 256 color 3328
CPU0: XXG:Index surpassed 256 color 3392
CPU0: XXG:Index surpassed 256 color 3456
But I guess this is good and is just some translation of the color table?

When I do startx -- -depth 8 and run application A, the colors are all wrong, mainly black but there are no messages.

When running application B in 16 bit mode, the colors are wrong, mainly black, (application A is still fine) and I'm getting the message
Code:
Visual type immutable, using default colormap
When doing the same again in 8 bit, both applications are showing wrong (black) colors but no messages at all.

What exactly do you mean with "vesa" or "framebuffer"? Do you happen to know which xserver would be a good go to test? I'm currently using mwm as window manager.

Last edited by eRJe; 03-05-2014 at 03:22 AM.
 
Old 03-05-2014, 01:55 PM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,605

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
The Raspberry pi has a fairly sophisticated OpenGL driver for X bundled that is all in the firmware. It does full hdmi. You can't use mplayer - you need ?omxplayer? or something. I have one myself.

If that's a Pi, you're going down in flames. you need to get your software using that driver or using OpenGL. I haven't gone there, as I took the line of least resistance. I wanted to watch an internet movie to prove a point, and did, using a fifo and omxplayer. Something like this:

Code:
omxplayer ./my_nutty_fifo & youtube-dl http://www.youtube.com/some_video > my_nutty_fifo
 
Old 03-05-2014, 03:58 PM   #5
eRJe
Member
 
Registered: May 2005
Location: Netherlands
Distribution: Slackware 13 Kernel 2.6.32.7
Posts: 98

Original Poster
Rep: Reputation: 16
I'm not sure if we are still talking about the same thing here. Just to be clear, I am not trying to play any video content. I am trying to run an application via a xserver-client setup. The xserver being the raspberry, the client an old fart AIX Risc system.

I did see some changes when I switched back from mwm to Openbox. Openbox shows more colors in 16 bit than mwm. Perhaps I should try some more xservers. Like you mentioned in your first post, I think.
 
Old 03-06-2014, 08:22 AM   #6
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,605

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
Right. I would get some remote desktop thing going on them. That would get around the software hassle.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 64 Bit Itanium - Need to run 32 bit application. HELP Squerl101 Linux - Server 2 11-02-2011 03:30 PM
[SOLVED] 64 bit processor - 64 bit OS - 64 bit application amodpandey Linux - General 5 09-14-2011 08:07 PM
compiling 32 bit application on 64 bit linux(x86_64) uttam_h Linux - Software 16 07-19-2008 03:33 PM
porting of 32 bit application on 64 bit linux architecture vikaschoudhry1985 Linux - Newbie 2 07-13-2008 11:39 PM
64-bit or 32-bit Application on 64-bit Linux jjana123 Linux - General 4 05-06-2008 06:27 PM


All times are GMT -5. The time now is 04:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration