I have managed to get Davinci Resolve running on Freebsd,
using the linuxulator the GPU is working but full
Davinci Resolve is installed using the linuxulator in a ubuntu chroot
and the gpu is working with the dummy-uvm.so by shkhln
using waypipe which like x11 forwarding for wayland
i create a waypipe client socket in the tmp directory inside the ubuntu chroot from the freebsd host
and then run waypipe inside the chroot and connect to the client socket as the server and launch davinci resolve
the display is forwarded over the waypipe socket
and davinci resolve runs as a xwayland rootless window on freebsd
i had to enable xwayland support in dwl my wayland window manager on freebsd
i created a pro res video clip and imported it into davinci resolve
but i couldnt drag the clip into the timeline because i got an error saying the gpu was full
i have installed the same nvidia drivers on ubuntu in the chroot as i have on the freebsd host
nvidia-smi works in the chroot and cuda is also enabled
using the dummy-uvm.so by shkhln we can access the gpu from the chroot
i use LD_PRELOAD in a ~/.zshenv and export the location of the dummy-uvm.so
i just need to fix the gpu memory issue
thats the last piece of the puzzle and then we will be able to run Davinci Resolve on Freebsd
if anyone knows what the fix is let me know
when davici resovle is running its listed in the output of the nvidia-smi command on freebsd
in my ~/.login_conf on the freebsd host :memorylocked=unlimited:
i also created the ~/.login_conf.db
launching davinci resolve
freebsd
create the client socket in the ubuntu chroot tmp directory
ubuntu chroot launch resolve and forward the display
davinci resolve runs as a xwayland application
so we set the QT_QPA_PLATFORM=xcb in the ~/.zshenv file in the chroot
you can also set that option with waypipe
Davinci Resolve launch screen
Davinci Resolve running in the ubuntu linuxulator chroot
with the display forwarded over the waypipe socket
davinci resolve runs as a xwayland rootless window on freebsd
Davinci Resolve main interface
Davinci Resolve settings for Memory and GPU
Showing the GPU and Cuda enabled
nvidia-smi run on freebsd showing davici resolve is using the gpu
i forgot to run nv-sglrun nvidia-smi
which would have shown cuda in the screenshot below
running just nvidia-smi doesnt show cuda in the output
my bad
top running on freebsd
showing the Xwayland rootless window that is displaying davinci resolve
using the linuxulator the GPU is working but full
cerberus/freebsd/linuxlator-ubuntu.org at master · NapoleonWils0n/cerberus
cerberus code library. Contribute to NapoleonWils0n/cerberus development by creating an account on GitHub.
github.com
Davinci Resolve is installed using the linuxulator in a ubuntu chroot
and the gpu is working with the dummy-uvm.so by shkhln
using waypipe which like x11 forwarding for wayland
i create a waypipe client socket in the tmp directory inside the ubuntu chroot from the freebsd host
and then run waypipe inside the chroot and connect to the client socket as the server and launch davinci resolve
the display is forwarded over the waypipe socket
and davinci resolve runs as a xwayland rootless window on freebsd
i had to enable xwayland support in dwl my wayland window manager on freebsd
i created a pro res video clip and imported it into davinci resolve
but i couldnt drag the clip into the timeline because i got an error saying the gpu was full
i have installed the same nvidia drivers on ubuntu in the chroot as i have on the freebsd host
nvidia-smi works in the chroot and cuda is also enabled
using the dummy-uvm.so by shkhln we can access the gpu from the chroot
i use LD_PRELOAD in a ~/.zshenv and export the location of the dummy-uvm.so
Code:
export LD_PRELOAD=/home/djwilcox/.config/gpu/dummy-uvm.so
i just need to fix the gpu memory issue
thats the last piece of the puzzle and then we will be able to run Davinci Resolve on Freebsd
if anyone knows what the fix is let me know
when davici resovle is running its listed in the output of the nvidia-smi command on freebsd
in my ~/.login_conf on the freebsd host :memorylocked=unlimited:
Code:
me:\
:charset=UTF-8:\
:lang=en_GB.UTF-8:\
:setenv=LC_COLLATE=C:\
:memorylocked=unlimited:
i also created the ~/.login_conf.db
launching davinci resolve
freebsd
create the client socket in the ubuntu chroot tmp directory
Code:
waypipe --socket /compat/ubuntu/tmp/waypipe.sock client &
ubuntu chroot launch resolve and forward the display
Code:
waypipe --socket /tmp/waypipe.sock server /opt/resolve/bin/resolve
davinci resolve runs as a xwayland application
so we set the QT_QPA_PLATFORM=xcb in the ~/.zshenv file in the chroot
Code:
export QT_QPA_PLATFORM=xcb
you can also set that option with waypipe
Davinci Resolve launch screen
Davinci Resolve running in the ubuntu linuxulator chroot
with the display forwarded over the waypipe socket
davinci resolve runs as a xwayland rootless window on freebsd
Davinci Resolve main interface
Davinci Resolve settings for Memory and GPU
Showing the GPU and Cuda enabled
nvidia-smi run on freebsd showing davici resolve is using the gpu
i forgot to run nv-sglrun nvidia-smi
Code:
nv-sglrun nvidia-smi
which would have shown cuda in the screenshot below
running just nvidia-smi doesnt show cuda in the output
my bad
Code:
nvidia-smi
top running on freebsd
showing the Xwayland rootless window that is displaying davinci resolve