video detect at system start??

I’m working on a system which uses an industrial SBC with onboard video.
We’d like to upgrade some of our target systems with higher performance CPU
boards, but the video hardware on the boards is not the same as the original
target system. I’d like to modify our target application so that the video
driver will be automatically selected and set to the desired display mode
(800 x 600 x :sunglasses:. I thought that I might be able to do this via a series of
crttrap commands in the sysinit file, but the system always ends up in VGA
mode.

Thanks,

Dan Garber | Systems Engineer, Advanced Process Control Engineering | VERTIS
4371 County Line Rd. | Chalfont, PA 18914-1825
P 215.997.5434 | F 215.997.5455
dgarber@vertisinc.com | http://www.vertisinc.com
Vertis is a global powerhouse for integrated marketing and advertising
solutions that
seamlessly combine advertising, direct marketing, media, imaging and
progressive
technology.

Previously, Dan Garber wrote in qdn.public.qnx4.photon:

I’m working on a system which uses an industrial SBC with onboard video.
We’d like to upgrade some of our target systems with higher performance CPU
boards, but the video hardware on the boards is not the same as the original
target system. I’d like to modify our target application so that the video
driver will be automatically selected and set to the desired display mode
(800 x 600 x > :sunglasses:> . I thought that I might be able to do this via a series of
crttrap commands in the sysinit file, but the system always ends up in VGA
mode.

Maybe you could cheat by running “sin info”, detecting the type
of CPU, and then starting the appropriate driver…

Yeah, it’s a hack… :slight_smile:

  • PDM


±---- Pete DiMarco ------±--------------------------------------+
| Staff Software Engineer | Web: www.ifspurity.com |
| Integrated Flow Systems | Email: peted [At] ifspurity [Dot] com |
±------------------------±--------------------------------------+
<< Opinions expressed here are my own, not those of my employer. >>

“Dan Garber” <dgarber@vertisinc.com> wrote in message
news:bc2l4i$eql$1@inn.qnx.com

I’m working on a system which uses an industrial SBC with onboard video.
We’d like to upgrade some of our target systems with higher performance CPU
boards, but the video hardware on the boards is not the same as the original
target system. I’d like to modify our target application so that the video
driver will be automatically selected and set to the desired display mode
(800 x 600 x > :sunglasses:> . I thought that I might be able to do this via a series of
crttrap commands in the sysinit file, but the system always ends up in VGA
mode.

use crttrap

crttrap - Trap video hardware

crttrap options command

Command:
trap Detect graphics card and write config file
start Start graphics driver indicated by config file
gmode Start modeswitcher only
grafx Start Photon graphics driver only
test Test to see if config file matches hardware
safe Start a safe graphics driver (vga 640x480 16 color)
query Print the command line that would be executed by start
dump Display the config file
clear Remove the current config file <--------

or execute rm /etc/config/trap/crt.1

I can get the system to re-detect the video, but I can’t get it to change to
the desired resolution without manual intervention.

“T.K.” <spflag@anet.ne.jp> wrote in message news:bccapt$jjd$1@inn.qnx.com

“Dan Garber” <> dgarber@vertisinc.com> > wrote in message
news:bc2l4i$eql$> 1@inn.qnx.com> …
I’m working on a system which uses an industrial SBC with onboard video.
We’d like to upgrade some of our target systems with higher performance
CPU
boards, but the video hardware on the boards is not the same as the
original
target system. I’d like to modify our target application so that the
video
driver will be automatically selected and set to the desired display
mode
(800 x 600 x > :sunglasses:> . I thought that I might be able to do this via a series
of
crttrap commands in the sysinit file, but the system always ends up in
VGA
mode.

use crttrap

crttrap - Trap video hardware

crttrap options command

Command:
trap Detect graphics card and write config file
start Start graphics driver indicated by config file
gmode Start modeswitcher only
grafx Start Photon graphics driver only
test Test to see if config file matches hardware
safe Start a safe graphics driver (vga 640x480 16 color)
query Print the command line that would be executed by start
dump Display the config file
clear Remove the current config file <--------

or execute rm /etc/config/trap/crt.1

I think that we have to select the resolution manually at the beginning.
Open config file “/etc/config/trap/crt.1” and see the top line.

Then please distribute 2 files,
“/etc/config/trap/crt.1” and “/etc/config/sysinit.1”.

“Dan Garber” <dgarber@vertisinc.com> wrote in message
news:bcci80$rh3$1@inn.qnx.com

I can get the system to re-detect the video, but I can’t get it to change to
the desired resolution without manual intervention.

“T.K.” <> spflag@anet.ne.jp> > wrote in message news:bccapt$jjd$> 1@inn.qnx.com> …

“Dan Garber” <> dgarber@vertisinc.com> > wrote in message
news:bc2l4i$eql$> 1@inn.qnx.com> …
I’m working on a system which uses an industrial SBC with onboard video.
We’d like to upgrade some of our target systems with higher performance
CPU
boards, but the video hardware on the boards is not the same as the
original
target system. I’d like to modify our target application so that the
video
driver will be automatically selected and set to the desired display
mode
(800 x 600 x > :sunglasses:> . I thought that I might be able to do this via a series
of
crttrap commands in the sysinit file, but the system always ends up in
VGA
mode.

use crttrap

crttrap - Trap video hardware

crttrap options command

Command:
trap Detect graphics card and write config file
start Start graphics driver indicated by config file
gmode Start modeswitcher only
grafx Start Photon graphics driver only
test Test to see if config file matches hardware
safe Start a safe graphics driver (vga 640x480 16 color)
query Print the command line that would be executed by start
dump Display the config file
clear Remove the current config file <--------

or execute rm /etc/config/trap/crt.1

\

Thanks, I’ll give it a try.


“T.K.” <spflag@anet.ne.jp> wrote in message news:bck0d6$6tj$1@inn.qnx.com

I think that we have to select the resolution manually at the beginning.
Open config file “/etc/config/trap/crt.1” and see the top line.

Then please distribute 2 files,
“/etc/config/trap/crt.1” and “/etc/config/sysinit.1”.

“Dan Garber” <> dgarber@vertisinc.com> > wrote in message
news:bcci80$rh3$> 1@inn.qnx.com> …
I can get the system to re-detect the video, but I can’t get it to
change to
the desired resolution without manual intervention.

“T.K.” <> spflag@anet.ne.jp> > wrote in message
news:bccapt$jjd$> 1@inn.qnx.com> …

“Dan Garber” <> dgarber@vertisinc.com> > wrote in message
news:bc2l4i$eql$> 1@inn.qnx.com> …
I’m working on a system which uses an industrial SBC with onboard
video.
We’d like to upgrade some of our target systems with higher
performance
CPU
boards, but the video hardware on the boards is not the same as the
original
target system. I’d like to modify our target application so that
the
video
driver will be automatically selected and set to the desired display
mode
(800 x 600 x > :sunglasses:> . I thought that I might be able to do this via a
series
of
crttrap commands in the sysinit file, but the system always ends up
in
VGA
mode.

use crttrap

crttrap - Trap video hardware

crttrap options command

Command:
trap Detect graphics card and write config file
start Start graphics driver indicated by config file
gmode Start modeswitcher only
grafx Start Photon graphics driver only
test Test to see if config file matches hardware
safe Start a safe graphics driver (vga 640x480 16 color)
query Print the command line that would be executed by start
dump Display the config file
clear Remove the current config file <--------

or execute rm /etc/config/trap/crt.1


\