balena-io-examples / nvidia-x86

Example of using CUDA on an Nvidia GPU in an x86 device.
3 stars 4 forks source link

Question: Use this example to get graphical output #4

Open ngmartins opened 2 years ago

ngmartins commented 2 years ago

Hello there,

Great repo with very detailed information. I was wondering if I can use the GPU container and install the same driver version into a browser container to get a graphical output on a screen. Did you know if it can work?

Thanks, in advance,

Nuno

alanb128 commented 2 years ago

Hi Nuno,

If you just want browser output on the monitor connected to the GPU and the container does not require CUDA, I think you can just use the default video driver in the OS. You could try using our browser block alone (without this repo) and see if that works.

Alan

ngmartins commented 2 years ago

Hello Alan.

I did some tests with both: browser block and electron block in the past (using intel NUCs and NOT NVIDIA devices). I end up with a lot of tearing effects affecting my visual experience.

Then I put some time into a solution to run electron using Wayland (with sway). Now I was trying to expand this solution to generic x86 devices using NVIDIA graphical cards. That's how I get here.

I struggled a bit unmounting the nouveau driver but stopping the Plymouth service did the trick (more infohere)

But it looks like there is a tech incompatibility between sway and NVIDIA drivers (more info here).

So maybe e need to look into the Browser Block again. Do you know if there is any way of running it using Wayland (instead of Xserver)?