Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Cannot display photon window from QNX: (5 Items)
   
Cannot display photon window from QNX  
I'm running Neutrino 6.4.0 on a Virtual machine, and having problems getting the Photon graphical interface to load.

When I run "ph" at the QNX command line, I get the following error:

# ph
Unable to start graphics driver(s)


The following is some useful info I retrieved based on comments in another post. Unfortunately, that post didn't 
complete and no solution was listed, so I'm hoping some can help me out here.


# sloginfo
.
.
May 20 16:40:48    1     8     0 phfont.so: init...
May 20 16:40:48    1     8     0 phfont.so: initialized.
May 20 16:40:48    1     8     0 phfont.so: '/dev/phfont[<32|64>]' server installed.
May 20 16:40:48    6     8     0 pci_init: found PCI device 15ad:405
May 20 16:40:48    6     8     0 VMWARE svgaid=0x90000002
May 20 16:40:48    2     8   200 io-display: driver doesn't support, or not configured for "argb8888" at 1024x768, 60Hz
May 20 16:40:48    2     8     0 /usr/photon/bin/io-graphics: gf_dev_attach('/dev/io-display/15ad,0405,0'): gf errno 4


# ls -l /dev/io-display/
total 0
crw-rw----  1 root      root         0,   1 May 20 14:09 15ad,0405,0


# pci -v
.
.
Class          = Display (VGA)
Vendor ID      = 15adh, VMware Inc
Device ID      = 405h,  Abstract SVGA II Adapter
PCI index      = 0h
Class Codes    = 030000h
Revision ID    = 0h
Bus number     = 0
Device number  = 15
Function num   = 0
Status Reg     = 290h
Command Reg    = 7h
Header type    = 0h Single-function
BIST           = 0h Build-in-self-test not supported
Latency Timer  = 40h
Cache Line Size= 8h un-cacheable
PCI IO Address  = 10f0h length 16 enabled
PCI Mem Address = d0000000h 32bit length 134217728 enabled
PCI Mem Address = d8000000h 32bit length 8388608 enabled
Subsystem Vendor ID = 15adh
Subsystem ID        = 405h
PCI Expansion ROM = 0h length 32768 disabled
Max Lat        = 0ns
Min Gnt        = 0ns
PCI Int Pin    = INT A
Interrupt line = 9
CPU Interrupt  = 9h
Capabilities Pointer = 40h
Capability ID        = 0h - Unknown
Capabilities         = 0h - 0h



Thanks,
Dan
Re: Cannot display photon window from QNX  
It looks like /etc/system/config/display.conf contains:
pixel_format=argb8888 
for the VMWare driver. The driver can't find this mode.

Try changing windows to 32 bit, or try changing pixel_format to a format that matches your windows setup. I guess you 
will need to restart VMWare too.
Re: Cannot display photon window from QNX  
Thanks for the reply.

I've verified within my Display properties in Windows that I'm setup for 32bit, then restarted Vmware server processes 
on the Linux host system. The problem unfortunately still exists, and Photon cannot start. Is there any issue between 
running Photon on a Windows desktop, when VMware Server is running on a Linux host machine?

I've included a copy of my display.conf file from the virtual QNX host.


device {
        drivername=coral
        vid=0x10cf
        did=0x201e
        deviceindex=0
        display {
                xres=640
                yres=480
                refresh=60
                pixel_format=argb1555
        }
}
device {
        drivername=coral
        vid=0x10cf
        did=0x2019
        display {
                xres=640
                yres=480
                refresh=60
                pixel_format=argb1555
        }
}
device {
        drivername=carmine
        vid=0x10cf
        did=0x202b
        deviceindex=0
        display {
                xres=800
                yres=600
                refresh=60
                pixel_format=argb8888
        }
}
device {
        photon {
                driver {
                        drivername=vmware
                        modeopts=
                }
        }
        drivername=vmware
        vid=0x15ad
        did=0x405
        deviceindex=0x0
        modeopts=
        display {
                xres=800
                yres=600
                refresh=60
                pixel_format=argb8888
                photon {
                        enabled=1
                        xoffset=0
                        yoffset=0
                        cursor=hardware
                        input_group=1
                }
        }
}

#Add your Devices PCI vid and did
#device {
#       drivername=vesabios
#       vid=0x0
#       did=0x0
#       deviceindex=0
#       display {
#               xres=640
#               yres=480
#               refresh=60
#               pixel_format=argb8888
#       }
#}

#Add your Devices PCI did
#device {
#       drivername=extreme2
#       vid=0x8086
#       did=0x0
#       deviceindex=0
#       display {
#               xres=800
#               yres=600
#               refresh=60
#               pixel_format=argb8888
#       }
#}
#
#





Thanks,
Dan
Re: Cannot display photon window from QNX  
I guess in your case you need to make sure that your linux box runs in 32bit mode. If this doesn't work try different 
pixel_format: 
argb1555, rgb565, rgb888 or argb8888.
Re: Cannot display photon window from QNX  
Hi Misha,

Thanks for your help.

I needed to ensure the Display settings on the Linux server, matched those in the display.conf file on the VM, in my 
case 1024 x 768 and 60 Hz.

It was then a matter of trial and error with the four pixel format options. Each time I had to apply the changes to 
display.conf, shutdown the VM and restart VMware on the server. After doing this with the pixel format set to rgb565, 
the photon display was available.

Thanks again :)
Dan