Page 1 of 1

8-bit Pseudocolor on Solaris?

Posted: Sun Jan 17, 2016 6:51 pm
by ClassicHasClass
I can't run Doom on Solaris! This is serious businesses!

The default visual is 24-bit colour on this Ultra-3 (ATI RAGE Mobility M1 framebuffer). That works fine (Firefox, etc.) and is what I want by default. But Sun DGA Doom and sunxdoom won't run and complain with

Code: Select all

Error: could not get 8 bit Pseudocolor visual


Okay, says I, I'll run it in Xnest.

Code: Select all

% Xnest -pn -depth 8 -class Pseudocolor -install :1

Fatal server error:
Unable to find desird default visual.


So I look at xdpyinfo, and dammit, it's right. There's only one visual defined, and it's TrueColor. I don't see an obvious way to set this, though I freely admit my Solaris ignorance. Does anyone know how to do this?

Re: 8-bit Pseudocolor on Solaris?

Posted: Sun Jan 17, 2016 11:36 pm
by ClassicHasClass
So, I get to answer my own question. The Ultra-3's RAGE Pro equivalent is an ATI Mobility M1, which confusingly Sun alternately calls M64 or PGX64. (I did get Quake2 on it and was quite perturbed to see how badly it performs under OpenGL. Apparently the driver doesn't expose most of the 3D acceleration functionality. Looked nice, though. That said, the software renderer was scads faster.) Since this is a SPARC running Solaris 10, it runs Xsun, not Xorg.

For this purpose, m64config should work. On that page it says setting it to depth 32 allows 8-bit depth windows simultaneously, so I tried that, but it said /dev/fbs/m640 was not an M64 device.

Turns out Tadpole's Mobility M1 doesn't get seen as a PGX64 by the system, even though it is. However, I could tell what m64config was going to do to OWconfig, so I just added a depth="32" into the right stanza within OWconfig by hand under /etc/openwin and restarted, and Xsun duly came up in 32-bit mode and xdpyinfo now shows all the expected visuals.

Now fixed up, I was indeed able to get Xnest at 8-bit depth and sunxdoom (though not sundgadoom) will now actually start and run briefly within it before dying with "Broken pipe." (Neither will run "naked" against the regular Xserver, for some reason.) But the Quake software renderer works now too and that actually plays, so the problem is at least now with the OS somewhere and not the colour depth anymore.

Re: 8-bit Pseudocolor on Solaris?

Posted: Sat Dec 30, 2017 11:47 am
by tux
ClassicHasClass wrote:Now fixed up, I was indeed able to get Xnest at 8-bit depth and sunxdoom (though not sundgadoom) will now actually start and run briefly within it before dying with "Broken pipe." (Neither will run "naked" against the regular Xserver, for some reason.) But the Quake software renderer works now too and that actually plays, so the problem is at least now with the OS somewhere and not the colour depth anymore.


I had the same "broken pipe" problem running sundgadoom on my Solaris 2.4 IPX sparcstation. I can get rid of the problem by removing the sndserver bindary from my path or renaming it to .sndserver. However, now it runs without sound.

Re: 8-bit Pseudocolor on Solaris?

Posted: Mon Jan 01, 2018 6:51 am
by Shiunbird
I'm still waiting for our old school UNIX multiplayer match of Quake/Doom. =)