Remote X color problems

IRIX and IRIX software discussion including open source and commerical offerings.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
Dodoid
Posts: 643
Joined: Mon Jul 04, 2016 1:36 pm
Location: Ottawa, Canada
Contact:

Remote X color problems

Unread postby Dodoid » Sat Nov 18, 2017 2:16 pm

Hi Nekochan!

I'm currently trying to make my SGI O2 display a Firefox running on a remote GNU/Linux machine (a Mini Indigo, actually). So far, the remote X seems to be working fine. I can run Xterm:

2017-11-18 17.01.06.jpg
As you can see, the Xterm here is running on the remote box, and displaying on the SGI just fine. If I VNC into the O2 from my desktop, I can run Firefox off the Mini Indigo just fine:

Screen Shot 2017-11-18 at 5.07.09 PM.png
The problem comes when I try to run Firefox on the O2's display.

2017-11-18 17.00.16.jpg
The browser works fine, but the color is totally broken. I presume this has to do with color depth or mapping of some sort? That would explain why it works when viewing the O2's desktop via VNC. What do I need to do to make the Firefox display properly on the O2's built-in graphics?

Thanks!
:Onyx: :O2000: :Fuel: :Octane: :Octane: :Octane: :O2: :O2: :Indigo2: :Indigo2: :Indy: :Indy:
and a small army of Image

devv
Posts: 136
Joined: Sat Jun 30, 2012 6:04 pm

Re: Remote X color problems

Unread postby devv » Sat Nov 18, 2017 3:20 pm

Hey,

Yes, this is related to color depth.

The issue with color depth is partly described on:
http://www.nekochan.net/wiki/True_Color

And my scripted/automated solution to switch to 24 bit color depth is (you should execute all 3 lines):

perl -pi -e's#-depth \d+#-depth 24# or s# /usr/bin/X11/X # /usr/bin/X11/X -depth 24 #' /var/X11/xdm/Xservers
perl -pi -e's#-pseudomap \w+ ##' /var/X11/xdm/Xservers
perl -pi -e's#-class \w+#-class TrueColor# or s# /usr/bin/X11/X # /usr/bin/X11/X -class TrueColor #' /var/X11/xdm/Xservers

The lines are idempotent and can be ran multiple times with no adverse effects.
oOoO :Tezro: oOoO

User avatar
Dodoid
Posts: 643
Joined: Mon Jul 04, 2016 1:36 pm
Location: Ottawa, Canada
Contact:

Re: Remote X color problems

Unread postby Dodoid » Sat Nov 18, 2017 3:43 pm

Thanks! I used the config change listed on the wiki and it works great.
:Onyx: :O2000: :Fuel: :Octane: :Octane: :Octane: :O2: :O2: :Indigo2: :Indigo2: :Indy: :Indy:
and a small army of Image

User avatar
johnnym
Donor
Donor
Posts: 196
Joined: Sun Sep 04, 2016 9:53 pm

Re: Remote X color problems

Unread postby johnnym » Sun Nov 19, 2017 12:43 am

Dodoid wrote:Thanks! I used the config change listed on the wiki and it works great.


I find this remote X windows on SGI machines intriguing. Would you mind describing your used setup a little bit, e.g. which tools you used on IRIX and on Linux, which OS version on the Mini Indigo and so on?
:Indy: :O2: :Octane: :Octane2: :O200: = :O200: - :O200: = :O200: (O200 cluster w/2 GIGAchannel cabinets)
[ ( hp ) ] 712/80 c3000 (dead) :hpserv: (J5600) c3700 c3750 c8000 rp2470 :rx2600: (rx2620) rx4640
| d | i | g | i | t | a | l | AXPpci33 AlphaStation 200 AlphaStation 255 PWS 500au AlphaServer DS20E AlphaServer DS25
C O B A L T Qube 2 Qube 3 RaQ RaQ 2 RaQ 4r RaQ XTR

User avatar
Dodoid
Posts: 643
Joined: Mon Jul 04, 2016 1:36 pm
Location: Ottawa, Canada
Contact:

Re: Remote X color problems

Unread postby Dodoid » Sun Nov 19, 2017 4:03 pm

Nothing particularly difficult.

The Mini Indigo is running DietPi v158 (a minimal Debian ARM variant), though I don't imagine you would have compatibility issues with other UNIXes (X11 is pretty universal, barring extensions like GLX or RANDR). On the Mini Indigo, I run export DISPLAY=192.168.0.33:0.0 (the IP and :0 X display of the O2), and then on the O2 I run xhost +192.168.0.11 (the IP of the Mini Indigo, this authorizes the Mini Indigo to draw windows on the SGI's screen). As discussed in this thread, the color depth fix also needs to be done. From there, I just run "firefox" or any other Xwindows program on the Mini Indigo and the window pops up on the SGI. Display on other hosts is by far my favorite X feature, and one that gets overlooked a lot. It is worth noting that while Firefox (and others) works great, Chromium won't start, citing that the SGI's X display does not support the RANDR (Resize AND Rotate) extension. This may be a limitation with certain applications.

I am working on a product that uses this. Plans are in place, design is ongoing, software is working, and Ian Mapleson has been contacted about supplying hardware. Nekochan Forums 15th birthday is on January 23rd, 2018. Expect something then. Stay tuned :) .

2018-01-23.png
:Onyx: :O2000: :Fuel: :Octane: :Octane: :Octane: :O2: :O2: :Indigo2: :Indigo2: :Indy: :Indy:
and a small army of Image

danPixl
Posts: 2
Joined: Mon Sep 25, 2017 1:55 am
Contact:

Re: Remote X color problems

Unread postby danPixl » Sun Nov 19, 2017 6:47 pm

Dodoid wrote:Nothing particularly difficult.

The Mini Indigo is running DietPi v158 (a minimal Debian ARM variant), though I don't imagine you would have compatibility issues with other UNIXes (X11 is pretty universal, barring extensions like GLX or RANDR). On the Mini Indigo, I run export DISPLAY=192.168.0.33:0.0 (the IP and :0 X display of the O2), and then on the O2 I run xhost +192.168.0.11 (the IP of the Mini Indigo, this authorizes the Mini Indigo to draw windows on the SGI's screen). As discussed in this thread, the color depth fix also needs to be done. From there, I just run "firefox" or any other Xwindows program on the Mini Indigo and the window pops up on the SGI. Display on other hosts is by far my favorite X feature, and one that gets overlooked a lot. It is worth noting that while Firefox (and others) works great, Chromium won't start, citing that the SGI's X display does not support the RANDR (Resize AND Rotate) extension. This may be a limitation with certain applications.

I am working on a product that uses this. Plans are in place, design is ongoing, software is working, and Ian Mapleson has been contacted about supplying hardware. Nekochan Forums 15th birthday is on January 23rd, 2018. Expect something then. Stay tuned :) .

2018-01-23.png


;)
D1-teaser-proto1.png
D1-teaser-proto1.png (31.71 KiB) Viewed 101 times

danPixl
Posts: 2
Joined: Mon Sep 25, 2017 1:55 am
Contact:

Re: Remote X color problems

Unread postby danPixl » Mon Nov 20, 2017 12:15 am

Took another swing at a teaser - there's a small film grain texture, as a callback to the various movies made better with SGI machines.
D1-teaser2.png


Return to “IRIX and Software”

Who is online

Users browsing this forum: No registered users and 2 guests