Multiple Input Devices for Photon

Hi,

I am working on a project that requires a QNX computer with dual
physical monitors. The requirement of configuration is as follows :-
Computer installed with QNX 4.25, Photon 1.13, Dual PCI VGA cards
installed on computer, two physical monitors connected to same computer. The
computer has a PS/2 mouse, a PS/2 keyboard connected to it. We have
installed a touch screen on secondary physical monitor. The touch screen
(smartset protocol) is interfaced on an RS232 serial port of the computer.

We require to configure Photon in such a way that a separate application
can be run on each monitor. User sitting in front of first physical monitor
should be able to interact with the application using mouse and keyboard.
The application running on secondary display should respond only to
touch-screen.

We could get the basic setup working. We have configured Photon for dual
display. When photon starts, mouse pointer appers on one monitor (which is
second console of photon workspace) and does not move on to display area of
second monitor. Second monitor (first console of photon workspace) has a
separate application running and touch screen functions properly. How to
configure Photon to accept mouse/keyboard input only for one application and
touchscreen input for second application?

We have also realised that if both applications are simultaneously used,
focus will keep on switching from one application to another. Hence it may
not be possible to use both applications simultaneously. Is there any way of
configuring Photon for running separate applications (accepting inputs from
separate devices) and also using the two simultaneously?

Cheers,
Krupa

Krupa <seto@vsnl.com> wrote:

We require to configure Photon in such a way that a separate application
can be run on each monitor. User sitting in front of first physical monitor
should be able to interact with the application using mouse and keyboard.
The application running on secondary display should respond only to
touch-screen.

We could get the basic setup working. We have configured Photon for dual
display. When photon starts, mouse pointer appers on one monitor (which is
second console of photon workspace) and does not move on to display area of
second monitor. Second monitor (first console of photon workspace) has a
separate application running and touch screen functions properly. How to
configure Photon to accept mouse/keyboard input only for one application and
touchscreen input for second application?

We have also realised that if both applications are simultaneously used,
focus will keep on switching from one application to another. Hence it may
not be possible to use both applications simultaneously. Is there any way of
configuring Photon for running separate applications (accepting inputs from
separate devices) and also using the two simultaneously?

Start them as two seaparate input groups – the window manager keeps
track of focus separately for each input group. It might not be 100 per
cent seamless though – I imagine you might still have some problems
with menus and possibly other small things.

Is there a reason why you couldn’t run two completely separate Photons
sessions?

Hello,
How to start them as two separate input groups? Is there any way of
starting two separate photon sessions on two physical monitors connected to
same computer?
Thanks,
Krupa

Wojtek Lerch <wojtek_l@yahoo.ca> wrote in message
news:b98htm$1td$1@inn.qnx.com

Krupa <> seto@vsnl.com> > wrote:
We require to configure Photon in such a way that a separate
application
can be run on each monitor. User sitting in front of first physical
monitor
should be able to interact with the application using mouse and
keyboard.
The application running on secondary display should respond only to
touch-screen.

We could get the basic setup working. We have configured Photon for
dual
display. When photon starts, mouse pointer appers on one monitor (which
is
second console of photon workspace) and does not move on to display area
of
second monitor. Second monitor (first console of photon workspace) has a
separate application running and touch screen functions properly. How to
configure Photon to accept mouse/keyboard input only for one application
and
touchscreen input for second application?

We have also realised that if both applications are simultaneously
used,
focus will keep on switching from one application to another. Hence it
may
not be possible to use both applications simultaneously. Is there any
way of
configuring Photon for running separate applications (accepting inputs
from
separate devices) and also using the two simultaneously?

Start them as two seaparate input groups – the window manager keeps
track of focus separately for each input group. It might not be 100 per
cent seamless though – I imagine you might still have some problems
with menus and possibly other small things.

Is there a reason why you couldn’t run two completely separate Photons
sessions?

Krupa <seto@vsnl.com> wrote:

How to start them as two separate input groups? Is there any way of

Input has a command-line option (-g, I think) you can use to specify the
input group number – just tell it to use input group 2 instead of the
default 1. So do the graphics drivers. If you’re using crttrap and
inputtrap, you’ll have to modify their config files. Or, you can read
the “Photon in Embedded System” chapter of the docs and learn how to
start all the pieces by hand.

starting two separate photon sessions on two physical monitors connected to
same computer?

Sure; you just need to make sure that they don’t both try to call
themselves “/dev/photon” or to use the same hardware. You can do that
by playing with the PHOTON environment variable and the ph script and/or
crttrap/inputtrap config files, or by starting all the necessary pieces
by hand according to the advice of the Photon in Embedded System
chapter.

Thanks,

Could get it working. We are able to use Keyboard on one console
(primary physical monitor) and mouse on second console (secondary physical
monitor). The applications running on both consoles are able to take input
from separate input devices. Now we have observed that if we click menu of
application running primary monitor, menu-box appears on secondary monitor.
Due to this we can still not use primary display without causing
interference to user of second display. Is there any way of resolving this
particular problem?

Regards,
Krupa

Wojtek Lerch <wojtek_l@yahoo.ca> wrote in message
news:b9b9fc$6ib$1@inn.qnx.com

Krupa <> seto@vsnl.com> > wrote:
How to start them as two separate input groups? Is there any way of

Input has a command-line option (-g, I think) you can use to specify the
input group number – just tell it to use input group 2 instead of the
default 1. So do the graphics drivers. If you’re using crttrap and
inputtrap, you’ll have to modify their config files. Or, you can read
the “Photon in Embedded System” chapter of the docs and learn how to
start all the pieces by hand.

starting two separate photon sessions on two physical monitors connected
to
same computer?

Sure; you just need to make sure that they don’t both try to call
themselves “/dev/photon” or to use the same hardware. You can do that
by playing with the PHOTON environment variable and the ph script and/or
crttrap/inputtrap config files, or by starting all the necessary pieces
by hand according to the advice of the Photon in Embedded System
chapter.

Krupa <seto@vsnl.com> wrote:

Could get it working. We are able to use Keyboard on one console
(primary physical monitor) and mouse on second console (secondary physical
monitor). The applications running on both consoles are able to take input
from separate input devices. Now we have observed that if we click menu of
application running primary monitor, menu-box appears on secondary monitor.
Due to this we can still not use primary display without causing
interference to user of second display. Is there any way of resolving this
particular problem?

The best one I can think of is by running two Photons…

Does the app on the second screen use menus, too? I think the problem is
that instead of being associated with a particular input group, menus
insist on being visible on the input group that was created most
recently. If making all menus appear on the first monitor rather than
the second monitor is good enough for you, creating the input group in
the opposite order should take care of it.

We thank you for continuously providing inputs/suggestions for making the
dual display experiment work as per our requirement. We have been able to
configure dual photon sessions on the same computer with 3 input devices (2
mouse and 1 keyboard) and 2 monitors.

Regards,
Krupa

Wojtek Lerch <wojtek_l@yahoo.ca> wrote in message
news:b9dvu6$a8a$1@inn.qnx.com

Krupa <> seto@vsnl.com> > wrote:
Could get it working. We are able to use Keyboard on one console
(primary physical monitor) and mouse on second console (secondary
physical
monitor). The applications running on both consoles are able to take
input
from separate input devices. Now we have observed that if we click menu
of
application running primary monitor, menu-box appears on secondary
monitor.
Due to this we can still not use primary display without causing
interference to user of second display. Is there any way of resolving
this
particular problem?

The best one I can think of is by running two Photons…

Does the app on the second screen use menus, too? I think the problem is
that instead of being associated with a particular input group, menus
insist on being visible on the input group that was created most
recently. If making all menus appear on the first monitor rather than
the second monitor is good enough for you, creating the input group in
the opposite order should take care of it.