IRIX Network Forums
Switching between 24-bit and default colour modes to run Quake on a SGI Indigo2 R4000 - Printable Version

+- IRIX Network Forums (//forums.irixnet.org)
+-- Forum: SGI/MIPS (//forums.irixnet.org/forum-3.html)
+--- Forum: IRIX/Software (//forums.irixnet.org/forum-7.html)
+--- Thread: Switching between 24-bit and default colour modes to run Quake on a SGI Indigo2 R4000 (/thread-1767.html)



Switching between 24-bit and default colour modes to run Quake on a SGI Indigo2 R4000 - Irinikus - 01-03-2020

This video shows the procedure of switching between 24-bit and the default colour mode in order to run Quake in software mode on an SGI Indigo2 R4000:




RE: Switching between 24-bit and default colour modes to run Quake on a SGI Indigo2 R4000 - Irinikus - 01-03-2020

I've taken this a bit further, by creating two script files, one for 24-bit colour and one for default colour, which work perfectly in changing the colour-mode at the simple click of a mouse button!


RE: Switching between 24-bit and default colour modes to run Quake on a SGI Indigo2 R4000 - Irinikus - 01-03-2020

This video is a followup to the previous video, and covers the setup, which allows you to change your IRIX desktop colour, from 24-bit to default and back again at the click of a mouse button:




RE: Switching between 24-bit and default colour modes to run Quake on a SGI Indigo2 R4000 - Irinikus - 01-03-2020

I would like to make this system more elegant, so how would I swap out the required line in the "Xservers" text file using a script file in IRIX. (Editing it rather than replacing it)

I've already searched the web for solutions and none of them have worked!

Any help with this would be much appreciated!


RE: Switching between 24-bit and default colour modes to run Quake on a SGI Indigo2 R4000 - dexter1 - 01-07-2020

Instead of copying, you can make a symbolic link from /usr/lib/X11/xdm/Xservers to one of the 24bit or default Xservers-files like,

Code:
cd /usr/lib/X11/xdm/
mv Xservers Xservers.save
ln -s Xservers Xservers.24bit  or  ln -s Xservers Xservers.default

and instead of /usr/gfx/stopgfx;/usr/gfx/startgfx you can use the vulcan death grip: <left-ctrl><left-shift><F12><numeric-/>


RE: Switching between 24-bit and default colour modes to run Quake on a SGI Indigo2 R4000 - Irinikus - 01-07-2020

Is there a global system variable which indicates what graphics mode is set, that I can employ in an "if" statement to make it intuitive. Say if it's in a default mode, when you run the script, it automatically selects the 24bit mode and vice versa. I played with it a bit the other night and got it to a point that it would work if I had a system variable that I could compare a declared variable to.


RE: Switching between 24-bit and default colour modes to run Quake on a SGI Indigo2 R4000 - dexter1 - 01-07-2020

Well, xdpyinfo can give you the current default visual id and from that you can infer which class and colordepth it has. Something like:

Code:
$ xdpyinfo | grep "default visual id"
  default visual id:  0x21
$ xdpyinfo | grep -A 3 0x21
  default visual id:  0x21
  visual:
    visual id:    0x21
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield

This is from my Linux laptop btw, so check it first on your I2


RE: Switching between 24-bit and default colour modes to run Quake on a SGI Indigo2 R4000 - Irinikus - 01-07-2020

Thanks very much, I'll get to it when I can! Smile