Solved Davinci Resolve running on Freebsd using the linuxulator the GPU is working but full

+1 point for me ?
HI Mate, you'll get a mention in the video
for the code to manually install the nvidia drivers so they match those on the host

and for pointing out the dummy-uvm.so needed in the chroot so it can access the gpu

even though you method was a bit mad copying the linux libraries from the chroot into the freebsd libraries directory
fair play you did work out a few bits that were needed to get this working
 
II 23-02-24 14:17:54.853 - [src/main.cpp:334] Starting wayfire version v0.8.0
II 23-02-24 14:17:54.853 - [libseat] [libseat/libseat.c:77] Seat opened with backend 'seatd'
II 23-02-24 14:17:54.853 - [libseat] [libseat/backend/seatd.c:212] Enabling seat
II 23-02-24 14:17:54.853 - [backend/session/session.c:109] Successfully loaded libseat session
II 23-02-24 14:17:54.855 - [backend/session/session.c:473] Waiting for a DRM card device
EE 23-02-24 14:18:04.947 - [backend/backend.c:217] Found 0 GPUs, cannot create backend
EE 23-02-24 14:18:04.947 - [backend/backend.c:390] Failed to open any DRM device
EE 23-02-24 14:18:04.947 - [src/main.cpp:134] Fatal error: Segmentation fault
EE 23-02-24 14:18:04.948 - #1 0x363b40 <main+0x1580> at /usr/local/bin/wayfire
EE 23-02-24 14:18:04.948 - #2 0x82ae0053f <pthread_sigmask+0x53f> at /lib/libthr.so.3
EE 23-02-24 14:18:04.948 - #3 0x82adffafb <pthread_setschedparam+0x83b> at /lib/libthr.so.3
EE 23-02-24 14:18:04.948 - #4 0x820de82d3 <???> at ???
EE 23-02-24 14:18:04.948 - #5 0x82356b5d4 <wlr_backend_get_drm_fd+0x4> at /usr/local/wlroots016/lib/libwlroots.so.11
EE 23-02-24 14:18:04.948 - #6 0x362a3a <main+0x47a> at /usr/local/bin/wayfire
EE 23-02-24 14:18:04.948 - #7 0x82954bafa <__libc_start1+0x12a> at /lib/libc.so.7

these are the packages i installed for wayfire

Code:
sudo pkg install wayland wayland-protocols seatd qt5ct qt5-wayland

Code:
sudo pkg install wayfire wf-shell wayfire-plugins-extra alacritty swaylock-effects swayidle wlogout kanshi wcm


the reason i switched to dwl from wayfire was because i got terrible audio when recording with obs
i mention it because i dont know if the same issue would affect Davinci Resolve as well

wouldnt want you to spend ages editing a video and then find out the audio was full of pops and clicks

you can have zsh installed in the chroot but use your normal shell on the host
that shouldnt be an issue
 
Not sure if this will work for the automation of wayfire instead of dwl using the csh shell :

Code:
mkdir ~/.cache/run
chmod 700 ~/.cache/run

nano /home/marietto/.cshrc :

setenv XDG_RUNTIME_DIR=~/.cache/run
#setenv XDG_RUNTIME_DIR=/var/run/user/`id -u`
setenv GTK_THEME Nordic-v40
setenv GDK_BACKEND wayland
setenv QT_QPA_PLATFORM wayland
setenv QT_QPA_PLATFORMTHEME qt5ct
setenv LC_ALL it_IT.UTF-8
setenv LANG it_IT.UTF-8

nano /home/marietto/.xinitrc

setxkbmap it
exec ck-launch-session dbus-launch --exit-with-session wayfire -c ~/.config/wayfire/wayfire.ini
im not sure about that

it may be that certain apps expect the XDG_RUNTIME_DIR to be set to /var/run/user/1001
where 1001 is your id

Code:
id

you could try hardcoding the id

Code:
setenv XDG_RUNTIME_DIR=/var/run/user/1001
 
shkhln im using your dummy-uvm.so so the chroot can access the gpu

im going to create a github repository for this project
and wanted to ask your permission to include the dummy-uvm.so in the repository

i thought it only polite to ask first
its your work so you have the final say

if you rather i didnt include the dummy-uvm.so in the repository thats fine

then would you be able to post a link to the latest version of the dummy-uvm.so
so i can change the instruction and give people the download link

this project wouldnt have been possible without your work
which i will point out in the video

id be more than happy to add links to your github repo in the documentation as well

cheers
 
I consider the content of that gist to be below the threshold of originality (although it's clearly derived from Nvidia's kernel driver API, so there is that). Also, I don't want to be associated with your stuff in any way.
 
no problem its your work

im really sorry if i have annoyed you or offended you in any way
that was never my intention

im guessing you took issue with the video i did using poudriere to build widevine for chromium
rather than using the your method

i wasnt having a go at you at all, i didnt mean it come across that way
i just thought it was a good reason to learn how to use poudriere to build packages

i really cant think what else i may have done to offend you

i did update the forum post and mention that the fix for glib shim was no longer needed

so you would prefer that i didnt include the dummy-uvm.so in the repository

and that people build the dummy-uvm.so using the instructions below


Code:
# pkg install linux-c7-devtools

# fetch https://gist.githubusercontent.com/shkhln/40ef290463e78fb2b0000c60f4ad797e/raw/f640983249607e38af405c95c457ce4afc85c608/uvm_ioctl_override.c

# /compat/linux/bin/cc --sysroot=/compat/linux -m64 -std=c99 -Wall -ldl -fPIC -shared -o dummy-uvm.so uvm_ioctl_override.c
 
theres not really any difference between including the build instructions
for the dummy-uvm.so and the actual file itself

since this is open source unless the code has a license that prohibits include the file
then permission isnt needed

i was just trying to be polite

im not going to derail the whole project because of a personal difference of opinion

so i will include the the dummy-uvm.so in the repo
 
Hello. thanks for all the good work that you are doing. Point is that I like more wayfire than dwl. Can you post your wayfire.ini,please ? I'm pretty sure that some parameter is wrong inside mine. thanks.

This is mine :

Code:
[alpha]
min_value = 0.100000
modifier = <alt> <super>

[animate]
close_animation = zoom
duration = 400
enabled_for = (type equals "toplevel" | (type equals "x-or" & focusable equals true))
fade_duration = 400
fade_enabled_for = type equals "overlay"
fire_duration = 300
fire_enabled_for = none
fire_particle_size = 16.000000
fire_particles = 2000
open_animation = zoom
startup_duration = 600
zoom_duration = 500
zoom_enabled_for = none

[annotate]
clear_workspace = <alt> <super> KEY_C
draw = <alt> <super> BTN_LEFT
from_center = true
line_width = 3.000000
method = draw
stroke_color = \#FF0000FF

[autorotate-iio]
lock_rotation = false
rotate_down = <ctrl> <super> KEY_DOWN
rotate_left = <ctrl> <super> KEY_LEFT
rotate_right = <ctrl> <super> KEY_RIGHT
rotate_up = <ctrl> <super> KEY_UP

[autostart]
autostart_wf_shell = true
gamma = wlsunset
idle = swayidle before-sleep swaylock
notifications = mako
outputs = kanshi
#portal = /usr/libexec/xdg-desktop-portal

#[background-view]
#command = mpv --loop=inf
#file =

[bench]
average_frames = 1
frames_per_update = 3
position = top_center

[blur]
blur_by_default = type is "toplevel"
bokeh_degrade = 1
bokeh_iterations = 15
bokeh_offset = 5.000000
box_degrade = 1
box_iterations = 2
box_offset = 1.000000
gaussian_degrade = 1
gaussian_iterations = 2
gaussian_offset = 1.000000
kawase_degrade = 8
kawase_iterations = 2
kawase_offset = 2.000000
method = kawase
saturation = 1.000000
toggle = none

[command]
#binding_launcher = <super> <shift> KEY_ENTER
binding_lock = <super> <shift> KEY_ESC
binding_logout = <super> KEY_ESC
binding_mute = KEY_MUTE
binding_screenshot = <ctrl> <alt> <shift> KEY_S
binding_screenshot_interactive = <ctrl> <alt> KEY_S
#binding_screenshot = KEY_PRINT
#binding_screenshot_interactive = <shift> KEY_PRINT
binding_terminal = <super> KEY_ENTER
#command_launcher = wofi
command_light_down = decrease_brightness.sh
command_light_up = increase_brightness.sh
command_lock = swaylock
command_logout = wlogout
command_mute = amixer set Master toggle
#command_screenshot = grim $(date '+%F_%T').webp
command_screenshot = cd ~/Screenshots; grim
#command_screenshot_interactive = slurp | grim -g - $(date '+%F_%T').webp
command_screenshot_interactive = cd ~/Screenshots; slurp | grim -g -
command_terminal = alacritty
command_volume_down = mixer vol -5
command_volume_up = mixer vol +5
repeatable_binding_light_down = KEY_BRIGHTNESSDOWN
repeatable_binding_light_up = KEY_BRIGHTNESSUP
repeatable_binding_volume_down = KEY_VOLUMEDOWN
repeatable_binding_volume_up = KEY_VOLUMEUP

[core]
background_color = \#1A1A1AFF
close_top_view = <super> KEY_Q | <alt> KEY_F4
focus_button_with_modifiers = false
focus_buttons = BTN_LEFT | BTN_MIDDLE | BTN_RIGHT
focus_buttons_passthrough = true
max_render_time = -1
plugins = alpha animate autostart command cube expo fast-switcher fisheye grid idle invert move oswitch place resize switcher vswitch window-rules wm-actions wobbly wrot zoom decoration
preferred_decoration_mode = server
vheight = 3
vwidth = 3
xwayland = true
xwayland_scale = 1

[crosshair]
line_color = \#FF0000FF
line_width = 2

[cube]
activate = <alt> <ctrl> BTN_LEFT
background = \#1A1A1AFF
background_mode = simple
cubemap_image =
deform = 0
initial_animation = 350
light = true
rotate_left = none
rotate_right = none
skydome_mirror = true
skydome_texture =
speed_spin_horiz = 0.020000
speed_spin_vert = 0.020000
speed_zoom = 0.070000
zoom = 0.100000

[dbus_interface]

[decoration]
active_color = \#2E3440FF
border_size = 4
button_order = minimize maximize close
font = sans-serif
ignore_views = none
inactive_color = \#353B49FF
title_height = 30

[expo]
background = \#1A1A1AFF
duration = 300
offset = 10
select_workspace_1 = KEY_1
select_workspace_2 = KEY_2
select_workspace_3 = KEY_3
select_workspace_4 = KEY_4
select_workspace_5 = KEY_5
select_workspace_6 = KEY_6
select_workspace_7 = KEY_7
select_workspace_8 = KEY_8
select_workspace_9 = KEY_9
toggle = <super>

[extra-gestures]
close_fingers = 20
move_delay = 500
move_fingers = 3

[fast-switcher]
activate = <alt> KEY_ESC
activate_backward = <alt> <shift> KEY_ESC
inactive_alpha = 0.700000

[fisheye]
radius = 450.000000
toggle = <ctrl> <super> KEY_F
zoom = 7.000000

[follow-focus]
change_output = true
change_view = true
focus_delay = 50
raise_on_top = true
threshold = 10

[force-fullscreen]
constrain_pointer = false
constraint_area = view
key_toggle_fullscreen = <alt> <super> KEY_F
preserve_aspect = true
transparent_behind_views = true
x_skew = 0.000000
y_skew = 0.000000

[grid]
duration = 300
restore = <super> KEY_DOWN | <super> KEY_KP0
slot_b = <super> KEY_KP2
slot_bl = <super> KEY_KP1
slot_br = <super> KEY_KP3
slot_c = <super> KEY_UP | <super> KEY_KP5
slot_l = <super> KEY_LEFT | <super> KEY_KP4
slot_r = <super> KEY_RIGHT | <super> KEY_KP6
slot_t = <super> KEY_KP8
slot_tl = <super> KEY_KP7
slot_tr = <super> KEY_KP9
type = crossfade

[idle]
cube_max_zoom = 1.500000
cube_rotate_speed = 1.000000
cube_zoom_speed = 1000
disable_on_fullscreen = true
dpms_timeout = -1
screensaver_timeout = 3600
toggle = none

[input]
click_method = default
cursor_size = 24
cursor_theme = default
disable_touchpad_while_mouse = false
disable_touchpad_while_typing = false
gesture_sensitivity = 1.000000
kb_capslock_default_state = false
kb_numlock_default_state = false
kb_repeat_delay = 400
kb_repeat_rate = 40
left_handed_mode = false
middle_emulation = false
modifier_binding_timeout = 400
mouse_accel_profile = default
mouse_cursor_speed = 0.500000
mouse_scroll_speed = 1.000000
natural_scroll = false
scroll_method = default
tap_to_click = true
touchpad_accel_profile = default
touchpad_cursor_speed = 0.000000
touchpad_scroll_speed = 1.000000
xkb_layout = it
xkb_model =
xkb_options =
xkb_rules = evdev
xkb_variant =

[input-device]
output =

[invert]
preserve_hue = false
toggle = <super> KEY_I

[join-views]

[keycolor]
color = \#000000FF
opacity = 0.250000
threshold = 0.500000

[mag]
default_height = 500
toggle = <alt> <super> KEY_M
zoom_level = 75

[move]
activate = <super> BTN_LEFT
enable_snap = true
enable_snap_off = true
join_views = false
quarter_snap_threshold = 50
snap_off_threshold = 10
snap_threshold = 10
workspace_switch_after = -1

[oswitch]
next_output = <super> KEY_O
next_output_with_win = <shift> <super> KEY_O

[output]
mode = auto
position = auto
scale = 1.000000
transform = normal

[place]
mode = center

[preserve-output]
last_output_focus_timeout = 10000

[resize]
activate = <super> BTN_RIGHT

[scale]
allow_zoom = false
bg_color = \#1A1A1AE6
duration = 750
inactive_alpha = 0.750000
interact = false
middle_click_close = false
spacing = 50
text_color = \#CCCCCCFF
title_font_size = 16
title_overlay = all
title_position = center
toggle = <super> KEY_P
toggle_all =

[scale-title-filter]
bg_color = \#00000080
case_sensitive = false
font_size = 30
overlay = true
share_filter = false
text_color = \#CCCCCCCC

[showrepaint]
reduce_flicker = true
toggle = <alt> <super> KEY_S

[simple-tile]
button_move = <super> BTN_LEFT
button_resize = <super> BTN_RIGHT
inner_gap_size = 5
keep_fullscreen_on_adjacent = true
key_focus_above = <super> KEY_K
key_focus_below = <super> KEY_J
key_focus_left = <super> KEY_H
key_focus_right = <super> KEY_L
key_toggle = <super> KEY_T
outer_horiz_gap_size = 0
outer_vert_gap_size = 0
tile_by_default = all

[switcher]
next_view = <alt> <shift> KEY_TAB
prev_view = <alt> KEY_TAB
speed = 500
view_thumbnail_scale = 1.000000

[vswipe]
background = \#1A1A1AFF
delta_threshold = 24.000000
duration = 180
enable_free_movement = false
enable_horizontal = true
enable_smooth_transition = false
enable_vertical = true
fingers = 4
gap = 32.000000
speed_cap = 0.050000
speed_factor = 256.000000
threshold = 0.350000

[vswitch]
background = \#1A1A1AFF
binding_down = <ctrl> <super> KEY_DOWN
binding_left = <ctrl> <super> KEY_LEFT
binding_right = <ctrl> <super> KEY_RIGHT
binding_up = <ctrl> <super> KEY_UP
binding_win_down = <ctrl> <shift> <super> KEY_DOWN
binding_win_left = <ctrl> <shift> <super> KEY_LEFT
binding_win_right = <ctrl> <shift> <super> KEY_RIGHT
binding_win_up = <ctrl> <shift> <super> KEY_UP
duration = 300
gap = 20
wraparound = false

[water]
activate = <ctrl> <super> BTN_LEFT

[windecor]
active_color = \#222222AA
border_size = 4
button_order = minimize maximize close
close_color = \#CC000077
font = sans-serif
ignore_views = none
inactive_color = \#333333DD
maximize_color = \#09FF0077
minimize_color = \#EDD40077
title_height = 24

[window-rules]

[winzoom]
dec_x_binding = <ctrl> <super> KEY_LEFT
dec_y_binding = <ctrl> <super> KEY_UP
inc_x_binding = <ctrl> <super> KEY_RIGHT
inc_y_binding = <ctrl> <super> KEY_DOWN
modifier = <ctrl> <super>
nearest_filtering = false
preserve_aspect = true
zoom_step = 0.100000

[wm-actions]
minimize = none
send_to_back = none
toggle_always_on_top = none
toggle_fullscreen = none
toggle_maximize = none
toggle_showdesktop = none
toggle_sticky = none

[wobbly]
friction = 3.000000
grid_resolution = 6
spring_k = 8.000000

[workarounds]
all_dialogs_modal = true
app_id_mode = stock
dynamic_repaint_delay = false

[workspace-names]
background_color = \#333333B3
display_duration = 500
font = sans-serif
position = center
show_option_names = false
text_color = \#FFFFFFFF

[wrot]
activate = <ctrl> <super> BTN_RIGHT
activate-3d = <shift> <super> BTN_RIGHT
invert = false
reset = <ctrl> <super> KEY_R
reset-one = <super> KEY_R
reset_radius = 25.000000
sensitivity = 24

[zoom]
modifier = <super>
smoothing_duration = 300
speed = 0.010000
 
HI Mate, heres my wayfire config


 
Back
Top