How to retrieve the display size for use with nvcompositor

Hello,

If I try to use an nvcompositor rendering on a nvoverlaysink with gdb3 disabled, how would I know the total amount of display size I can use for calculations of the compositors sink_0::xpos, sink_0::ypos , sink_1::xpos... as to maximize the usage of available screen ?

Is there a (non x-server) API I can use to retrieve the display resolution ?

kind regards,
Tom

ah… i may be able to use

cat /sys/class/graphics/fb0/virtual_size

Hi,
You can run this command to get the display mode:

$ cat /sys/class/graphics/fb0/mode

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.