I’m trying to get Holoviz exclusive mode to work. My system is a Intel CPU based Ubuntu machine. It has an integrated Intel GPU and a integrated touch panel display. I also have a NVidia GPU card plugged into a PCIe slot and have an external monitor connected to the Displayport of the GPU card.
My plan is to let Holoviz exclusive mode working on the external monitor, while keeping the touch panel display working with X-window desktop. I followed the Holoscan SDK document to disable the external monitor from the “X Server Display Configuration” tab in nvidia-settings. However, I still get the following error
[error] [context.cpp:58] ERROR: NVIDIA
→ Failed to acquire modeset ownership. Make sure user has adequate permissions.
The installed drivers are nvidia-driver-575-open and nvidia-dkms-575-open.
BTW, if I treat it as a single display and stop the display-manager service, Holoviz works in exclusive mode. But in that case, I only have a blank screen on the built-in touch panel display.
Xorg.0.log (106.7 KB)
Hi,
The Xorg.0.log shows that the name of your monitor is DFP-6
. Did you set the display_name
parameter accordingly as described here?
Could you share the full application log and the output of the xrandr
command?
Regards,
Andreas
I used the aja_video_capture app in the Holohub repo. And I set the display_name parameter. Here are the logs you wanted.
holoviz.log (7.8 KB)
xrandr.log (2.0 KB)
Thanks for the quick response. It looks like the error is specific to that setup where the touch panel is driven by the Intel GPU. I can see the Optimus library which is handling that case on the call stack. I have to reach out internally to get more information on that but it seems to me this is a driver bug.
As a workaround you could try to not use exclusive mode and use wmctrl to place the Holoviz window on the second screen.
Hope this helps.
Thanks for digging into this. I’ll try the wmctrl solution. But I’m wondering if there is any performance, specifically latency, difference between using exclusive mode and using wmctrl?
Yes, there is latency difference between using exclusive mode and not. This is because the display manager needs to composite the final result. But our internal tests showed that this difference is less than one millisecond, but it depends on your usage case.