hyprwm / hyprlock

Hyprland's GPU-accelerated screen locking utility
BSD 3-Clause "New" or "Revised" License
794 stars 59 forks source link

path = screenshot not working #80

Closed RoccoRakete closed 8 months ago

RoccoRakete commented 8 months ago

Output is:


[LOG]   | got iface: wl_drm v2
[LOG]   | got iface: zwp_linux_dmabuf_v1 v4
[LOG]    > Bound to zwp_linux_dmabuf_v1 v4
[LOG]   | got iface: wl_compositor v6
[LOG]    > Bound to wl_compositor v6
[LOG]   | got iface: wl_subcompositor v1
[LOG]   | got iface: wl_data_device_manager v3
[LOG]   | got iface: zwlr_export_dmabuf_manager_v1 v1
[LOG]   | got iface: zwlr_data_control_manager_v1 v2
[LOG]   | got iface: zwp_primary_selection_device_manager_v1 v1
[LOG]   | got iface: wp_viewporter v1
[LOG]    > Bound to wp_viewporter v1
[LOG]   | got iface: zwlr_gamma_control_manager_v1 v1
[LOG]   | got iface: zwlr_output_power_manager_v1 v1
[LOG]   | got iface: xdg_wm_base v6
[LOG]   | got iface: wl_seat v9
[LOG]    > Bound to wl_seat v9
[LOG]   | got iface: wp_presentation v1
[LOG]   | got iface: ext_idle_notifier_v1 v1
[LOG]   | got iface: zwlr_layer_shell_v1 v4
[LOG]   | got iface: org_kde_kwin_server_decoration_manager v1
[LOG]   | got iface: zxdg_decoration_manager_v1 v1
[LOG]   | got iface: zwlr_output_manager_v1 v4
[LOG]   | got iface: zwp_keyboard_shortcuts_inhibit_manager_v1 v1
[LOG]   | got iface: zwp_pointer_constraints_v1 v1
[LOG]   | got iface: zwp_relative_pointer_manager_v1 v1
[LOG]   | got iface: zwp_virtual_keyboard_manager_v1 v1
[LOG]   | got iface: zwlr_virtual_pointer_manager_v1 v2
[LOG]   | got iface: zwlr_foreign_toplevel_manager_v1 v3
[LOG]   | got iface: wp_drm_lease_device_v1 v1
[LOG]   | got iface: zwp_tablet_manager_v2 v1
[LOG]   | got iface: zwp_idle_inhibit_manager_v1 v1
[LOG]   | got iface: zxdg_exporter_v1 v1
[LOG]   | got iface: zxdg_importer_v1 v1
[LOG]   | got iface: zxdg_exporter_v2 v1
[LOG]   | got iface: zxdg_importer_v2 v1
[LOG]   | got iface: zwp_pointer_gestures_v1 v3
[LOG]   | got iface: zwp_text_input_manager_v3 v1
[LOG]   | got iface: zwp_input_method_manager_v2 v1
[LOG]   | got iface: xdg_activation_v1 v1
[LOG]   | got iface: ext_session_lock_manager_v1 v1
[LOG]    > Bound to ext_session_lock_manager_v1 v1
[LOG]   | got iface: wp_cursor_shape_manager_v1 v1
[LOG]    > Bound to wp_cursor_shape_manager_v1 v1
[LOG]   | got iface: wp_tearing_control_manager_v1 v1
[LOG]   | got iface: wp_single_pixel_buffer_manager_v1 v1
[LOG]   | got iface: xwayland_shell_v1 v1
[LOG]   | got iface: hyprland_toplevel_export_manager_v1 v2
[LOG]   | got iface: wp_fractional_scale_manager_v1 v1
[LOG]    > Bound to wp_fractional_scale_manager_v1 v1
[LOG]   | got iface: zwp_text_input_manager_v1 v1
[LOG]   | got iface: hyprland_global_shortcuts_manager_v1 v1
[LOG]   | got iface: zwlr_screencopy_manager_v1 v3
[LOG]    > Bound to zwlr_screencopy_manager_v1 v3
[LOG]   | got iface: zxdg_output_manager_v1 v3
[LOG]   | got iface: wl_output v4
[LOG]    > Bound to wl_output v4
[LOG] [core] dmabufFeedbackMainDevice
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
[LOG] output 49 make AU Optronics model 0xD291
[LOG] output 49 name eDP-1
[LOG] output 49 description AU Optronics 0xD291 (eDP-1)
[LOG] Locking session
[LOG] eglQueryDmaBufModifiersEXT found 6 mods
[1]    718637 segmentation fault (core dumped)  hyprlock```
sentakuhm commented 8 months ago

update hyperlock and put you settings here.

RoccoRakete commented 8 months ago

hyprlock is a nix flake

it is on commit #57e8000


background {
    monitor = eDP-1
    #path = /home/martin/.dots/backgrounds/blobs-d.png 
    path = screenshot 
    blur_passes = 3
    blur_size = 7
}

label {
    text = $TIME
    color = rgba(200, 200, 200, 1.0)
    font_size = 62
    font_family = Ubuntu Nerd Font Bold

    position = 0, 380
    halign = center
    valign = center
}

label {
    text = Welcome back $USER!
    color = rgba(200, 200, 200, 1.0)
    font_size = 25
    font_family = Ubuntu Nerd Font Bold

    position = 0, 80
    halign = center
    valign = center
}

input-field {
    size = 300, 50
    outline_thickness = 5
    dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8
    dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0
    dots_center = false
    outer_color = rgb(151515)
    inner_color = rgb(110, 110, 110)
    fade_on_empty = false
    placeholder_text = <i></i> # Text rendered in the input box when it's empty.
    hide_input = false

    position = 0, -20
    halign = center
    valign = center

}
sentakuhm commented 8 months ago

try remove eDP-1 from monitor keep it empty: monitor =

RoccoRakete commented 8 months ago

still the same


[LOG]   | got iface: wl_shm v1
[LOG]   | got iface: wl_drm v2
[LOG]   | got iface: zwp_linux_dmabuf_v1 v4
[LOG]    > Bound to zwp_linux_dmabuf_v1 v4
[LOG]   | got iface: wl_compositor v6
[LOG]    > Bound to wl_compositor v6
[LOG]   | got iface: wl_subcompositor v1
[LOG]   | got iface: wl_data_device_manager v3
[LOG]   | got iface: zwlr_export_dmabuf_manager_v1 v1
[LOG]   | got iface: zwlr_data_control_manager_v1 v2
[LOG]   | got iface: zwp_primary_selection_device_manager_v1 v1
[LOG]   | got iface: wp_viewporter v1
[LOG]    > Bound to wp_viewporter v1
[LOG]   | got iface: zwlr_gamma_control_manager_v1 v1
[LOG]   | got iface: zwlr_output_power_manager_v1 v1
[LOG]   | got iface: xdg_wm_base v6
[LOG]   | got iface: wl_seat v9
[LOG]    > Bound to wl_seat v9
[LOG]   | got iface: wp_presentation v1
[LOG]   | got iface: ext_idle_notifier_v1 v1
[LOG]   | got iface: zwlr_layer_shell_v1 v4
[LOG]   | got iface: org_kde_kwin_server_decoration_manager v1
[LOG]   | got iface: zxdg_decoration_manager_v1 v1
[LOG]   | got iface: zwlr_output_manager_v1 v4
[LOG]   | got iface: zwp_keyboard_shortcuts_inhibit_manager_v1 v1
[LOG]   | got iface: zwp_pointer_constraints_v1 v1
[LOG]   | got iface: zwp_relative_pointer_manager_v1 v1
[LOG]   | got iface: zwp_virtual_keyboard_manager_v1 v1
[LOG]   | got iface: zwlr_virtual_pointer_manager_v1 v2
[LOG]   | got iface: zwlr_foreign_toplevel_manager_v1 v3
[LOG]   | got iface: wp_drm_lease_device_v1 v1
[LOG]   | got iface: zwp_tablet_manager_v2 v1
[LOG]   | got iface: zwp_idle_inhibit_manager_v1 v1
[LOG]   | got iface: zxdg_exporter_v1 v1
[LOG]   | got iface: zxdg_importer_v1 v1
[LOG]   | got iface: zxdg_exporter_v2 v1
[LOG]   | got iface: zxdg_importer_v2 v1
[LOG]   | got iface: zwp_pointer_gestures_v1 v3
[LOG]   | got iface: zwp_text_input_manager_v3 v1
[LOG]   | got iface: zwp_input_method_manager_v2 v1
[LOG]   | got iface: xdg_activation_v1 v1
[LOG]   | got iface: ext_session_lock_manager_v1 v1
[LOG]    > Bound to ext_session_lock_manager_v1 v1
[LOG]   | got iface: wp_cursor_shape_manager_v1 v1
[LOG]    > Bound to wp_cursor_shape_manager_v1 v1
[LOG]   | got iface: wp_tearing_control_manager_v1 v1
[LOG]   | got iface: wp_single_pixel_buffer_manager_v1 v1
[LOG]   | got iface: xwayland_shell_v1 v1
[LOG]   | got iface: hyprland_toplevel_export_manager_v1 v2
[LOG]   | got iface: wp_fractional_scale_manager_v1 v1
[LOG]    > Bound to wp_fractional_scale_manager_v1 v1
[LOG]   | got iface: zwp_text_input_manager_v1 v1
[LOG]   | got iface: hyprland_global_shortcuts_manager_v1 v1
[LOG]   | got iface: zwlr_screencopy_manager_v1 v3
[LOG]    > Bound to zwlr_screencopy_manager_v1 v3
[LOG]   | got iface: zxdg_output_manager_v1 v3
[LOG]   | got iface: wl_output v4
[LOG]    > Bound to wl_output v4
[LOG] [core] dmabufFeedbackMainDevice
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions
[LOG] output 49 make AU Optronics model 0xD291
[LOG] output 49 name eDP-1
[LOG] output 49 description AU Optronics 0xD291 (eDP-1)
[LOG] Locking session
[LOG] eglQueryDmaBufModifiersEXT found 6 mods
[1]    30016 segmentation fault (core dumped)  hyprlock
sentakuhm commented 8 months ago

i dont have this output in my logs:

failed to bind extensions
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')

isn't latest mesa driver is 24.0.1 on nix.

RoccoRakete commented 8 months ago

according to nixos search it's 23.3.5

sentakuhm commented 8 months ago

i think this is not a hyprlock's bug see #727 and some fix for same issue here i asked on hyprland discord and seems to be wrong mesa version.

vaxerski commented 8 months ago
DRI driver not from this Mesa build ('23.3.5' vs '23.1.9')
failed to bind extensions

kinda self-explanatory

RoccoRakete commented 8 months ago

So this means, this doesn't work on nixos right now. Right?

vaxerski commented 8 months ago

more like you broke your nixos install

RoccoRakete commented 8 months ago

Huh? That's the version of mesa, nixpkgs provides right now?!

fufexan commented 8 months ago

@RoccoRakete the problem lies in the fact that the mesa version that hyprlock is built with differs from the one on your system. I'll fix it in a moment.

fufexan commented 8 months ago

Should be fixed with 844a89925487cc4a129021d8d1b8a3c91596efb8.

RoccoRakete commented 8 months ago

Should be fixed with 844a89925487cc4a129021d8d1b8a3c91596efb8.

It's still the same issue, sorry.

RoccoRakete commented 8 months ago

nvm, a rebbot fixed it now... weird tho. Thank you! <3

RoccoRakete commented 7 months ago

@fufexan

DRI driver not from this Mesa build ('24.0.1' vs '24.0.2')
failed to bind extensions
DRI driver not from this Mesa build ('24.0.1' vs '24.0.2')
failed to bind extensions
DRI driver not from this Mesa build ('24.0.1' vs '24.0.2')
failed to bind extensions
DRI driver not from this Mesa build ('24.0.1' vs '24.0.2')
failed to bind extensions
DRI driver not from this Mesa build ('24.0.1' vs '24.0.2')
failed to bind extensions
DRI driver not from this Mesa build ('24.0.1' vs '24.0.2')

same error after a recent update

wenjinnn commented 7 months ago

same issue here in nixos. just override the mesa arg to your system default version, this work for me (hyprlock.override {mesa = pkgs.mesa;})