8-bit Pseudocolor on Solaris?

Sun workstations/servers and operating systems (SunOS, Solaris and OpenSolaris)
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
ClassicHasClass
Donor
Donor
Posts: 2194
Joined: Wed Jul 25, 2012 7:12 pm
Location: Sunny So Cal
Contact:

8-bit Pseudocolor on Solaris?

Unread postby ClassicHasClass » Sun Jan 17, 2016 6:51 pm

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?
smit happens.

:Fuel: bigred, 900MHz R16K, 4GB RAM, V12 DCD, 6.5.30
:Indy: indy, 150MHz R4400SC, 256MB RAM, XL24, 6.5.10
:Indigo2IMP: purplehaze, 175MHz R10000, Solid IMPACT
probably posted from Image bruce, Quad 2.5GHz PowerPC 970MP, 16GB RAM, Mac OS X 10.4.11
plus IBM POWER6 p520 * Apple Network Server 500 * RDI PrecisionBook * BeBox * Solbourne S3000 * Commodore 128 * many more...

User avatar
ClassicHasClass
Donor
Donor
Posts: 2194
Joined: Wed Jul 25, 2012 7:12 pm
Location: Sunny So Cal
Contact:

Re: 8-bit Pseudocolor on Solaris?

Unread postby ClassicHasClass » Sun Jan 17, 2016 11:36 pm

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.
smit happens.

:Fuel: bigred, 900MHz R16K, 4GB RAM, V12 DCD, 6.5.30
:Indy: indy, 150MHz R4400SC, 256MB RAM, XL24, 6.5.10
:Indigo2IMP: purplehaze, 175MHz R10000, Solid IMPACT
probably posted from Image bruce, Quad 2.5GHz PowerPC 970MP, 16GB RAM, Mac OS X 10.4.11
plus IBM POWER6 p520 * Apple Network Server 500 * RDI PrecisionBook * BeBox * Solbourne S3000 * Commodore 128 * many more...

User avatar
tux
Posts: 73
Joined: Sat Oct 15, 2011 2:10 pm
Location: Garland Texas, USA

Re: 8-bit Pseudocolor on Solaris?

Unread postby tux » Sat Dec 30, 2017 11:47 am

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.
:Fuel: asterix - R16K 700 MHz, V10, 2 GByte ram
:Octane2: speedracer - Dual R14k 600 MHz, V12, 2 GByte ram
:O2: moosehead - R12k 400 MHz, 768 MByte ram
:O2: Ox - R5k 300 MHz, 224 MByte ram
:Indy: ryoko - R5k 180 MHz, 128 MByte ram
:Indigo2IMP: Iris - R10k 195 MHz, Max Impact, 512 MByte ram
[ -] stingray - Macintosh IIci

Shiunbird
Donor
Donor
Posts: 488
Joined: Fri May 06, 2016 1:43 pm
Location: Czech Republic

Re: 8-bit Pseudocolor on Solaris?

Unread postby Shiunbird » Mon Jan 01, 2018 6:51 am

I'm still waiting for our old school UNIX multiplayer match of Quake/Doom. =)
ImageImage


Return to “Sun”

Who is online

Users browsing this forum: No registered users and 1 guest