LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2010, 06:01 PM   #1
MOFH
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Rep: Reputation: 0
getting X11 to display in 8-bit


I've been told to use an old Electron Microscopy program that needs to display in 8-bit.When I install and try to run I get the error
Searching for 8 bit PseudoColor visual ...
Searching for 6-bit PseudoColour visual ...
Searching for 24-bit DirectColor visual ...
No matching visual available.

How do I get Suse 11.2 (my dist.) to show something that has such a requirement? I found something on the web for Mac where they said use xquartz to and quartz-wm but I don't think these work in Suse(?). I also went fooling around on Sax11 and couldn't really find anything.

Thanks
 
Old 06-30-2010, 09:45 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,245

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
I've been told to use an old Electron Microscopy program that needs to display in 8-bit.

why???

you can set the color depth in xorg.conf or ( if gnome) the display settings
or if nvidia in the nvidia config tool
 
Old 07-01-2010, 10:58 AM   #3
MOFH
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Most academic EM softwares that I've come by are quite old and this one specifically is from the time of G77 compilers (though I got it to work with gfortran). In any case, the modifications to xorg.conf, do you know what they are specifically? I don't want to mess about with it

Thanks
Mo
 
Old 07-01-2010, 01:58 PM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
Quote:
Originally Posted by MOFH View Post
Most academic EM softwares that I've come by are quite old and this one specifically is from the time of G77 compilers (though I got it to work with gfortran). In any case, the modifications to xorg.conf, do you know what they are specifically? I don't want to mess about with it

Thanks
Mo
That entirely depends on your xorg version, your xorg.conf, your graphics driver and whether you have an xorg.conf file at all or you are using a newer server with autoconfiguration.

However, the problem might lie in an entirely different place. Are you running the program using the same user that started the X server? Are you sure the program is supposed to work with your version of X?

Some modern drivers might not allow you to run in 8-bit mode at all, not sure. It's the graphics driver you use which ultimately define the capabilities you can use.

You could always use the generic vesa driver though.

In any case, is that program available for -public- testing? That would simplify the thing quite a bit.
 
Old 07-01-2010, 01:59 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,245

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
man xorg.conf

change the 24 to 8
######################
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "RenderAccel" "True"
Option "AllowGLXWithComposite" "True"
Option "AddARGBGLXVisuals" "true"
Option "metamodes" "1024x768 +0+0; 1600x1200 +0+0; 1280x1024 +0+0; 800x600 +0+0; 640x480 +0+0"
SubSection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
##########################
 
Old 07-01-2010, 03:41 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,195

Rep: Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563
Isn't there some checkbox to show all video settings? Sax2 should have worked.
 
Old 07-04-2010, 07:30 PM   #7
MOFH
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the responses

Yes, I can change the settings in Sax but that just messes the whole screen up (i.e, the whole screen goes 8-bit). I'd like to be able to open one screen in 8-bit if at all possible. Just to clarify, if I modify xorg.conf, the whole system is affected (i.e, similar to Sax modification)
 
Old 07-04-2010, 10:21 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 17,195

Rep: Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563Reputation: 2563
Maybe terminal settings. Is it X based?
 
Old 07-05-2010, 02:27 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
Quote:
Originally Posted by MOFH View Post
Thanks for the responses

Yes, I can change the settings in Sax but that just messes the whole screen up (i.e, the whole screen goes 8-bit). I'd like to be able to open one screen in 8-bit if at all possible. Just to clarify, if I modify xorg.conf, the whole system is affected (i.e, similar to Sax modification)
Then I am confused about what the goal is. I guess that we should be defining first what "whole screen" and "one screen" really mean for you.

In X a given "display" has a given depth, and all the "windows" (maybe that's the word you meant to use) in that display will use that same color depth.

At most, you could start many different X servers on different displays. In that case, each server could use different color depths. I guess you could also emulate the thing using Xnest or Xephyr. But right now I don't remember if it's possible for these nested servers to use a different color depth than the host server.
 
  


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
X11 display problem diver1 Linux - Newbie 1 06-09-2009 04:59 PM
How to do 8x8 multihead X11 display byhisdeeds Linux - Desktop 4 09-25-2008 09:28 AM
mplayer -vo x11, how do I specify which display? lukebeales Linux - Software 2 09-17-2004 10:35 AM
Correct X11 display??? s1lv1a9999 Linux - Software 2 05-03-2004 02:39 AM
X11 display failed logins rangerx Linux - Security 0 09-19-2002 11:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration