bug in inputtrap with QNX 6.3 ?

From the text console, when I do
/usr/photon/bin/inputtrap -t mytrapfile start

I get:
Input driver /usr/photon/devi-hirun is not avalable (error code = -1)
^^^^^^^ NOT my typo
Unable to spawn /usr/photon/devi-hirun

Shouldn’t it look for /usr/photon/bin/devi-hirun instead?

It works fine with QNX 6.2.X

anybody opened a ticket on this?

Frank Liu <fliu@usdjmp1.eng.vodafone-us.com> wrote:

From the text console, when I do
/usr/photon/bin/inputtrap -t mytrapfile start

I get:
Input driver /usr/photon/devi-hirun is not avalable (error code = -1)
^^^^^^^ NOT my typo
Unable to spawn /usr/photon/devi-hirun

Shouldn’t it look for /usr/photon/bin/devi-hirun instead?

It works fine with QNX 6.2.X

Frank Liu <fliu@usdjmp1.eng.vodafone-us.com> wrote:

anybody opened a ticket on this?

here is one more:
“use /sbin/io-hid”
gives the example:

io-hid -dusb -dps2_ser ps2mouse:mousedev…

it should really be
io-hid -dusb -dps2ser …
(no _ between ps2 and ser )

Frank

Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote:
From the text console, when I do
/usr/photon/bin/inputtrap -t mytrapfile start

I get:
Input driver /usr/photon/devi-hirun is not avalable (error code = -1)
^^^^^^^ NOT my typo
Unable to spawn /usr/photon/devi-hirun

Shouldn’t it look for /usr/photon/bin/devi-hirun instead?

It works fine with QNX 6.2.X

what is in the “mytrapfile” ?



Frank Liu <fliu@usdjmp1.eng.vodafone-us.com> wrote in message
news:cg544h$o5n$1@inn.qnx.com

anybody opened a ticket on this?

Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote:
From the text console, when I do
/usr/photon/bin/inputtrap -t mytrapfile start

I get:
Input driver /usr/photon/devi-hirun is not avalable (error code = -1)
^^^^^^^ NOT my typo
Unable to spawn /usr/photon/devi-hirun

Shouldn’t it look for /usr/photon/bin/devi-hirun instead?

It works fine with QNX 6.2.X

I’ve fixed the usage message to reflect the proper DLL name.
thanks
henry

Frank Liu <fliu@usdjmp1.eng.vodafone-us.com> wrote in message
news:cgda97$rur$1@inn.qnx.com

Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote:
anybody opened a ticket on this?

here is one more:
“use /sbin/io-hid”
gives the example:

io-hid -dusb -dps2_ser ps2mouse:mousedev…

it should really be
io-hid -dusb -dps2ser …
(no _ between ps2 and ser )

Frank


Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote:
From the text console, when I do
/usr/photon/bin/inputtrap -t mytrapfile start

I get:
Input driver /usr/photon/devi-hirun is not avalable (error code = -1)
^^^^^^^ NOT my typo
Unable to spawn /usr/photon/devi-hirun

Shouldn’t it look for /usr/photon/bin/devi-hirun instead?

It works fine with QNX 6.2.X

Henry VanDyke <henry@qnx.com> wrote:

what is in the “mytrapfile” ?

It doesn’t really matter. the error was printed even before
“mytrapfile” is being parsed. You can verify this by putting
some junk in “mytrapfile”, or whatever you like for testing
purpose.

Thanks!
Frank

Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote in message
news:cg544h$o5n$> 1@inn.qnx.com> …
anybody opened a ticket on this?

Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote:
From the text console, when I do
/usr/photon/bin/inputtrap -t mytrapfile start

I get:
Input driver /usr/photon/devi-hirun is not avalable (error code = -1)
^^^^^^^ NOT my typo
Unable to spawn /usr/photon/devi-hirun

Shouldn’t it look for /usr/photon/bin/devi-hirun instead?

It works fine with QNX 6.2.X

/usr/photon/bin/inputtrap -t ./mytrapfile start

Options: Unable to lookup sdfsdfsdf in module table

inputtrap -t ./mytrapfile start

Options: Unable to lookup sdfsdfsdf in module table

The only way I could get the error you arre seeing is to
put /usr/photon/devi-hirun in the trapfile.

I moved devi-hirun from /usr/photon/bin/
and tried inputtrap start and I get

mv /usr/photon/bin/devi-hirun /tmp/

inputtrap -t ./mytrapfile start

Input driver /usr/photon/bin/devi-hirun is not avalable (error code = -1)
Unable to spawn /usr/photon/bin/devi-hirun
Unable to start devi-hirun from trapfile ./mytrapfile

I put /usr/photon/devi-hirun in the trapfile and I get.

mv /tmp/devi-hirun /usr/photon/bin/

inputtrap -t ./mytrapfile start

Input driver /usr/photon/devi-hirun is not avalable (error code = -1)
Unable to spawn /usr/photon/devi-hirun
Unable to start devi-hirun from trapfile ./mytrapfile

cat mytrapfile

/usr/photon/devi-hirun

Frank Liu <fliu@usdjmp1.eng.vodafone-us.com> wrote in message
news:cgibia$q3q$1@inn.qnx.com

Henry VanDyke <> henry@qnx.com> > wrote:

what is in the “mytrapfile” ?

It doesn’t really matter. the error was printed even before
“mytrapfile” is being parsed. You can verify this by putting
some junk in “mytrapfile”, or whatever you like for testing
purpose.

Thanks!
Frank




Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote in message
news:cg544h$o5n$> 1@inn.qnx.com> …
anybody opened a ticket on this?

Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote:
From the text console, when I do
/usr/photon/bin/inputtrap -t mytrapfile start

I get:
Input driver /usr/photon/devi-hirun is not avalable (error code = -1)
^^^^^^^ NOT my typo
Unable to spawn /usr/photon/devi-hirun

Shouldn’t it look for /usr/photon/bin/devi-hirun instead?

It works fine with QNX 6.2.X

Henry VanDyke <henry@qnx.com> wrote:

/usr/photon/bin/inputtrap -t ./mytrapfile start

Options: Unable to lookup sdfsdfsdf in module table

inputtrap -t ./mytrapfile start

Options: Unable to lookup sdfsdfsdf in module table

Can you please try this test on a text console, NOT within Photon.
just put some junk in the “mytrapfile”.
Thanks!
Frank

The only way I could get the error you arre seeing is to
put /usr/photon/devi-hirun in the trapfile.

I moved devi-hirun from /usr/photon/bin/
and tried inputtrap start and I get

mv /usr/photon/bin/devi-hirun /tmp/

inputtrap -t ./mytrapfile start

Input driver /usr/photon/bin/devi-hirun is not avalable (error code = -1)
Unable to spawn /usr/photon/bin/devi-hirun
Unable to start devi-hirun from trapfile ./mytrapfile

I put /usr/photon/devi-hirun in the trapfile and I get.

mv /tmp/devi-hirun /usr/photon/bin/

inputtrap -t ./mytrapfile start

Input driver /usr/photon/devi-hirun is not avalable (error code = -1)
Unable to spawn /usr/photon/devi-hirun
Unable to start devi-hirun from trapfile ./mytrapfile

cat mytrapfile

/usr/photon/devi-hirun

Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote in message
news:cgibia$q3q$> 1@inn.qnx.com> …
Henry VanDyke <> henry@qnx.com> > wrote:

what is in the “mytrapfile” ?

It doesn’t really matter. the error was printed even before
“mytrapfile” is being parsed. You can verify this by putting
some junk in “mytrapfile”, or whatever you like for testing
purpose.

Thanks!
Frank




Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote in message
news:cg544h$o5n$> 1@inn.qnx.com> …
anybody opened a ticket on this?

Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote:
From the text console, when I do
/usr/photon/bin/inputtrap -t mytrapfile start

I get:
Input driver /usr/photon/devi-hirun is not avalable (error code = -1)
^^^^^^^ NOT my typo
Unable to spawn /usr/photon/devi-hirun

Shouldn’t it look for /usr/photon/bin/devi-hirun instead?

It works fine with QNX 6.2.X
\

Frank Liu <fliu@usdjmp1.eng.vodafone-us.com> wrote:

Henry VanDyke <> henry@qnx.com> > wrote:

/usr/photon/bin/inputtrap -t ./mytrapfile start

Options: Unable to lookup sdfsdfsdf in module table

inputtrap -t ./mytrapfile start

Options: Unable to lookup sdfsdfsdf in module table

Can you please try this test on a text console, NOT within Photon.

Running inputtrap within Photon doesn’t make much sense since
all the input drivers are running already.

What I wanted to is to mouse in the text mode, without Photon.
e.g. I can only the following in mytrapfile:
-Pr ps2 mousedev
which essentially starts
/usr/photon/bin/devi-hirun -Pr ps2 mousedev

I can’t use “devi-hirun” directly because it requires root privillage,
“inputtrap start” works as non-root but unfortunately inputtrap doesn’t
have the -P -r option. Using mytrapfile is the only kludge I can
think of. Maybe you can add -P -r to inputtrap for the future release?

Back to the original problem, I think the reason it worked for you
is because you did it withint photon where you can PHOTON_PATH set.
If I do
export PHOTON_PATH=/usr/photon
before inputtrap, the problem seems to go away. But I don’t think
this really should be an requirement given that I am on a text
console, and same thing worked fine with QNX 6.2.x

Regards,
Frank

Ok.
I see the problem now and have submitted a PR.

thanks
Henry

Frank Liu <fliu@usdjmp1.eng.vodafone-us.com> wrote in message
news:cgiomc$63q$1@inn.qnx.com

Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote:
Henry VanDyke <> henry@qnx.com> > wrote:

/usr/photon/bin/inputtrap -t ./mytrapfile start

Options: Unable to lookup sdfsdfsdf in module table

inputtrap -t ./mytrapfile start

Options: Unable to lookup sdfsdfsdf in module table

Can you please try this test on a text console, NOT within Photon.

Running inputtrap within Photon doesn’t make much sense since
all the input drivers are running already.

What I wanted to is to mouse in the text mode, without Photon.
e.g. I can only the following in mytrapfile:
-Pr ps2 mousedev
which essentially starts
/usr/photon/bin/devi-hirun -Pr ps2 mousedev

I can’t use “devi-hirun” directly because it requires root privillage,
“inputtrap start” works as non-root but unfortunately inputtrap doesn’t
have the -P -r option. Using mytrapfile is the only kludge I can
think of. Maybe you can add -P -r to inputtrap for the future release?

Back to the original problem, I think the reason it worked for you
is because you did it withint photon where you can PHOTON_PATH set.
If I do
export PHOTON_PATH=/usr/photon
before inputtrap, the problem seems to go away. But I don’t think
this really should be an requirement given that I am on a text
console, and same thing worked fine with QNX 6.2.x

Regards,
Frank

Henry VanDyke <henry@qnx.com> wrote:

Ok.
I see the problem now and have submitted a PR.

Thanks Henry!
It will be great if -P -r stuff can be added to “inputtrp” options :slight_smile:

Frank

thanks
Henry

Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote in message
news:cgiomc$63q$> 1@inn.qnx.com> …
Frank Liu <> fliu@usdjmp1.eng.vodafone-us.com> > wrote:
Henry VanDyke <> henry@qnx.com> > wrote:

/usr/photon/bin/inputtrap -t ./mytrapfile start

Options: Unable to lookup sdfsdfsdf in module table

inputtrap -t ./mytrapfile start

Options: Unable to lookup sdfsdfsdf in module table

Can you please try this test on a text console, NOT within Photon.

Running inputtrap within Photon doesn’t make much sense since
all the input drivers are running already.

What I wanted to is to mouse in the text mode, without Photon.
e.g. I can only the following in mytrapfile:
-Pr ps2 mousedev
which essentially starts
/usr/photon/bin/devi-hirun -Pr ps2 mousedev

I can’t use “devi-hirun” directly because it requires root privillage,
“inputtrap start” works as non-root but unfortunately inputtrap doesn’t
have the -P -r option. Using mytrapfile is the only kludge I can
think of. Maybe you can add -P -r to inputtrap for the future release?

Back to the original problem, I think the reason it worked for you
is because you did it withint photon where you can PHOTON_PATH set.
If I do
export PHOTON_PATH=/usr/photon
before inputtrap, the problem seems to go away. But I don’t think
this really should be an requirement given that I am on a text
console, and same thing worked fine with QNX 6.2.x

Regards,
Frank