Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hyprlock doesn' work - fails to bind to ext-session-lock-v1 #2360

Closed
d3-X-t3r opened this issue May 16, 2024 · 10 comments
Closed

hyprlock doesn' work - fails to bind to ext-session-lock-v1 #2360

d3-X-t3r opened this issue May 16, 2024 · 10 comments
Labels

Comments

@d3-X-t3r
Copy link

Describe the bug
hyprlock fails to launch under Wayfire (latest git build), giving an error [CRITICAL] Couldn't bind to ext-session-lock-v1, does your compositor support it?

I believe ext-session-lock-v1 was implemented as part of #2237 ?

To Reproduce
Steps to reproduce the behavior:

  1. Launch hyprlock
  2. Check stdout/stderr

Expected behavior
Hyprlock should work.

Screenshots or stacktrace

$ hyprlock
[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: zwp_primary_selection_device_manager_v1 v1
[LOG]   | got iface: zwlr_data_control_manager_v1 v2
[LOG]   | got iface: zwlr_output_manager_v1 v4
[LOG]   | got iface: zwlr_output_power_manager_v1 v1
[LOG]   | got iface: xdg_wm_base v3
[LOG]   | got iface: zwlr_layer_shell_v1 v4
[LOG]   | got iface: xwayland_shell_v1 v1
[LOG]   | got iface: zwp_tablet_manager_v2 v1
[LOG]   | got iface: wl_seat v8
[LOG]    > Bound to wl_seat v8
[LOG]   | got iface: zwlr_screencopy_manager_v1 v3
[LOG]    > Bound to zwlr_screencopy_manager_v1 v3
[LOG]   | got iface: zwlr_gamma_control_manager_v1 v1
[LOG]   | got iface: zwlr_export_dmabuf_manager_v1 v1
[LOG]   | got iface: zxdg_output_manager_v1 v3
[LOG]   | got iface: wp_drm_lease_device_v1 v1
[LOG]   | got iface: zwlr_input_inhibit_manager_v1 v1
[LOG]   | got iface: ext_idle_notifier_v1 v1
[LOG]   | got iface: zwp_idle_inhibit_manager_v1 v1
[LOG]   | got iface: org_kde_kwin_server_decoration_manager v1
[LOG]   | got iface: zxdg_decoration_manager_v1 v1
[LOG]   | got iface: zwp_virtual_keyboard_manager_v1 v1
[LOG]   | got iface: zwlr_virtual_pointer_manager_v1 v2
[LOG]   | got iface: zwp_pointer_gestures_v1 v3
[LOG]   | got iface: zwp_relative_pointer_manager_v1 v1
[LOG]   | got iface: zwp_pointer_constraints_v1 v1
[LOG]   | got iface: wp_presentation v1
[LOG]   | got iface: wp_viewporter v1
[LOG]    > Bound to wp_viewporter 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: wp_fractional_scale_manager_v1 v1
[LOG]    > Bound to wp_fractional_scale_manager_v1 v1
[LOG]   | got iface: wp_single_pixel_buffer_manager_v1 v1
[LOG]   | got iface: wl_output v4
[LOG]    > Bound to wl_output v4
[LOG]   | got iface: zwlr_foreign_toplevel_manager_v1 v3
[LOG]   | got iface: gtk_shell1 v3
[CRITICAL] Couldn't bind to ext-session-lock-v1, does your compositor support it?

Wayfire version: 0.9.0 git

Distro: Arch Linux

Hyprlock version: 0.3.0-1.1

@d3-X-t3r d3-X-t3r added the bug label May 16, 2024
@kode54
Copy link
Contributor

kode54 commented May 16, 2024

You need to enable the Session Lock Protocol plugin. (So named session-lock in the .ini file)

@d3-X-t3r
Copy link
Author

That fixed it, thanks. :)

@salahoued
Copy link

Sorry, but I also have the same issue but with wayfire 0.8.1 from opeSUSE Tumblweed repos, I couldn't find the session-lock in wcm so I added it in [core].plugins in wayfire.ini without success. is it a wayfire 0.9 new additon?

and why is swaylock working? is it because it implement a different protocol?

Thanks.

@d3-X-t3r
Copy link
Author

d3-X-t3r commented Jun 2, 2024

@salahoued ext-session-lock-v1 was only implemented on the 22nd of March, whereas the official 0.8.1 Wayfire release was on the 14th of March. Which means the package on openSUSE repos doesn't have this support, so you'll need to build Wayfire yourself from the git sources.

swaylock works because it falls back to using an insecure locking method (wlr-layer-shell + wlr-input-inhibitor) when it can't find ext-session-lock-v1.

@salahoued
Copy link

@d3-X-t3r OK, Thank you very much sir, so very clear.

@SvitlanochkaIsTheBest
Copy link
Contributor

Is this reasonable to consider adding the session-lock plugin to the list of enabled ones in the default wayfire.ini config?

Currently, it's really hard to find any references to this plugin (the only things that I was able to find are direct code implementations and this issue). Besides, a few lines with swaylock and swayidle that are present in the default config make things even more confusing from the expectations perspective.

@soreau
Copy link
Member

soreau commented Oct 16, 2024

Is this reasonable to consider adding the session-lock plugin to the list of enabled ones in the default wayfire.ini config?

Currently, it's really hard to find any references to this plugin (the only things that I was able to find are direct code implementations and this issue). Besides, a few lines with swaylock and swayidle that are present in the default config make things even more confusing from the expectations perspective.

Good point, it probably could use a patch. Also I don't see an entry for it in the wiki. An entry could be created from the description in the xml file.

@SvitlanochkaIsTheBest
Copy link
Contributor

Good point, it probably could use a patch. Also I don't see an entry for it in the wiki. An entry could be created from the description in the xml file.

Thanks for your response! I was able to update the wiki following the suit of other plugins. As for the "using a patch" - do you refer to adding a session-lock entry to the root wayfire.ini, or there are another definition of the "patch" that exist in the scope of the Wayfire project?

@soreau
Copy link
Member

soreau commented Oct 25, 2024

Thanks for your response! I was able to update the wiki following the suit of other plugins.

👍

As for the "using a patch" - do you refer to adding a session-lock entry to the root wayfire.ini, or there are another definition of the "patch" that exist in the scope of the Wayfire project?

I meant that we should update the example wayfire.ini and add it to the list of default plugins. (so if wayfire is started without a config file, for example, the defaults will be loaded).

@SvitlanochkaIsTheBest
Copy link
Contributor

Then it should be it: #2500. Please take a look when you have free time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants