command line arguments for crttrap

Hello, All

I try to use crttrap with argument “-gx,y” in order to get a config file
with some predefined videomode (say, 800x600) in the first line (to start it
by default). In qnx4, it works; but in 6.3 crttrap displays a message that
no videomode found, and writes only a single line with VGA 640x480 mode.
When starting crttrap without arguments, all modes I need are detected and
written in config file. But to make them work I have to edit config file (or
switch the videomode from Photon) manually. What is it - a bug in crttrap or
in the documentation?

Regards
Alexander

I took a look at the code … it expects -g xres,yres,bpp (i.e. -g
800,600,32) …
that is the short answer … as to who is right, the code or docs, I’m not
sure …
also, if the filter doesn’t support that desired mode, like vga, you’ll
still
get entries like 640,480,8 because that’s all that driver supports. The
code
looks a little dicey, cause it breaks out of the getopt loop if it don’t get
the expected input, but I can’t see where is deals with only partials data,
if you just passed -g800,600 … anways …

I’ll check the PR database for any pending issues, and if one doesn’t exist,
I’ll enter one for you.

later,
D.

“Alexander Orkin” <a7o@mail.ru> wrote in message
news:csja2m$atd$1@inn.qnx.com

Hello, All

I try to use crttrap with argument “-gx,y” in order to get a config file
with some predefined videomode (say, 800x600) in the first line (to start
it
by default). In qnx4, it works; but in 6.3 crttrap displays a message that
no videomode found, and writes only a single line with VGA 640x480 mode.
When starting crttrap without arguments, all modes I need are detected and
written in config file. But to make them work I have to edit config file
(or
switch the videomode from Photon) manually. What is it - a bug in crttrap
or
in the documentation?

Regards
Alexander

\

I tried both “-g xres,yres” and “-g xres,yres,bpp” with the same result.
It’s only in 6.3 (i haven’t tried in 6.2/6.1). In 4.25 crttrap works fine.

“Derek Leach” <dleach@qnx.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:d17c4e$8av$1@nntp.qnx.com

I took a look at the code … it expects -g xres,yres,bpp (i.e. -g
800,600,32) …
that is the short answer … as to who is right, the code or docs, I’m not
sure …
also, if the filter doesn’t support that desired mode, like vga, you’ll
still
get entries like 640,480,8 because that’s all that driver supports. The
code
looks a little dicey, cause it breaks out of the getopt loop if it don’t
get
the expected input, but I can’t see where is deals with only partials
data,
if you just passed -g800,600 … anways …

I’ll check the PR database for any pending issues, and if one doesn’t
exist,
I’ll enter one for you.

later,
D.

“Alexander Orkin” <> a7o@mail.ru> > wrote in message
news:csja2m$atd$> 1@inn.qnx.com> …
Hello, All

I try to use crttrap with argument “-gx,y” in order to get a config file
with some predefined videomode (say, 800x600) in the first line (to
start
it
by default). In qnx4, it works; but in 6.3 crttrap displays a message
that
no videomode found, and writes only a single line with VGA 640x480 mode.
When starting crttrap without arguments, all modes I need are detected
and
written in config file. But to make them work I have to edit config file
(or
switch the videomode from Photon) manually. What is it - a bug in
crttrap
or
in the documentation?

Regards
Alexander



\