Current setup is Dual monitor with HDMI and DP port both works fine.
Issue
Lets say we have application running on the HDMI screen(which is a touch screen) and if we try running a video from a terminal it also displays on the HDMI, where we want it to be displayed on the DP-port which doesn’t happens.
We are unable to find a way to manually select display in our case video on the DP- port and application on the HDMI.
Note:
We can manually move the video screen from HDMI to DP-port but we are looking for better way to do it.
Hello and welcome to the NVIDIA developer forums @shahidadnaan2000.
The assignment of apps to monitors is entirely handled by the window manager. I don’t know which OS you are using, so it is hard to say which API to use to control where the windows of your app will end up.
For Windows for example you would use Winuser.h and its Display and Window functionality, starting with Display enumeration and going from there.
If you are looking for some magic command-line tricks I have to disappoint you, unless you are using some third-party desktop management tools that “remember” app window positions.
I hope that helps.
1 Like
After a long struggle with the window manger and other options it dosent work as we expected.
looking for better solution
when we do xrandr is show hdmi and dport both as 0 is there a way to change the number
so that we can play a video based on our requirement
command: xrandr
output: HDMI-0 , DP-0
how can we change the index.