Ax-Shell icon indicating copy to clipboard operation
Ax-Shell copied to clipboard

Hyprlock and hypridle not updated (?)

Open Deivis44 opened this issue 1 year ago • 6 comments

With the new implementations, I was using the defaults for those config files provided by the script, using the UI toggle option that overwrite the actual ones and uses the ax-shell's versions for hyprlock and hypridle config files, but I'm having issues at the moment of launch, here are the logs, some parameters do not exist, everything was working fine in some previous versions. Not sure exactly which one, if I'm not wrong on an update my version of hyprlock was uninstalled by the script coz it wanted to update and then installed the hyprlock-git package

Image

Logs:

Hyprlock version v0.8.2
[ERR] Config has errors:
Config error in file /home/deivi/.config/hypr/hyprlock.conf at line 17: config option <general:no_fade_in> does not exist.
Config error in file /home/deivi/.config/hypr/hyprlock.conf at line 19: config option <general:disable_loading_bar> does not exist.
Proceeding ignoring faulty entries
[LOG]   | got iface: wl_compositor v6
[LOG]    > Bound to wl_compositor v6
[LOG]   | got iface: wl_drm v2
[LOG]   | got iface: wl_shm v2
[LOG]    > Bound to wl_shm v2
[LOG]   | got iface: wl_output v4
[LOG]    > Bound to wl_output v4
[LOG]   | got iface: zxdg_output_manager_v1 v3
[LOG]   | got iface: wl_data_device_manager v3
[LOG]   | got iface: xdg_toplevel_drag_manager_v1 v1
[LOG]   | got iface: zwp_primary_selection_device_manager_v1 v1
[LOG]   | got iface: wl_subcompositor v1
[LOG]   | got iface: xdg_wm_base v6
[LOG]   | got iface: gtk_shell1 v6
[LOG]   | got iface: wp_viewporter v1
[LOG]    > Bound to wp_viewporter v1
[LOG]   | got iface: wp_fractional_scale_manager_v1 v1
[LOG]    > Bound to wp_fractional_scale_manager_v1 v1
[LOG]   | got iface: zwp_pointer_gestures_v1 v3
[LOG]   | got iface: zwp_tablet_manager_v2 v1
[LOG]   | got iface: wl_seat v8
[LOG]    > Bound to wl_seat v8
[LOG]   | got iface: zwp_relative_pointer_manager_v1 v1
[LOG]   | got iface: zwp_pointer_constraints_v1 v1
[LOG]   | got iface: zxdg_exporter_v2 v1
[LOG]   | got iface: zxdg_importer_v2 v1
[LOG]   | got iface: zxdg_exporter_v1 v1
[LOG]   | got iface: zxdg_importer_v1 v1
[LOG]   | got iface: zwp_linux_dmabuf_v1 v5
[LOG]    > Bound to zwp_linux_dmabuf_v1 v5
[LOG]   | got iface: wp_single_pixel_buffer_manager_v1 v1
[LOG]   | got iface: zwp_keyboard_shortcuts_inhibit_manager_v1 v1
[LOG]   | got iface: zwp_text_input_manager_v3 v1
[LOG]   | got iface: wp_presentation v2
[LOG]   | got iface: xdg_activation_v1 v1
[LOG]   | got iface: zwp_idle_inhibit_manager_v1 v1
[LOG]   | got iface: wp_linux_drm_syncobj_manager_v1 v1
[LOG]   | got iface: xdg_wm_dialog_v1 v1
[LOG]   | got iface: wp_color_manager_v1 v1
[LOG]   | got iface: xdg_system_bell_v1 v1
[LOG]   | got iface: wp_drm_lease_device_v1 v1
[LOG]   | got iface: wp_commit_timing_manager_v1 v1
[LOG]   | got iface: wp_fifo_manager_v1 v1
[LOG]   | got iface: wp_cursor_shape_manager_v1 v2
[LOG]    > Bound to wp_cursor_shape_manager_v1 v2
[CRITICAL] Couldn't bind to ext-session-lock-v1, does your compositor support it?

Commenting those lines (17 & 19), same error:

Hyprlock version v0.8.2
[LOG]   | got iface: wl_compositor v6
[LOG]    > Bound to wl_compositor v6
[LOG]   | got iface: wl_drm v2
[LOG]   | got iface: wl_shm v2
[LOG]    > Bound to wl_shm v2
[LOG]   | got iface: wl_output v4
[LOG]    > Bound to wl_output v4
[LOG]   | got iface: zxdg_output_manager_v1 v3
[LOG]   | got iface: wl_data_device_manager v3
[LOG]   | got iface: xdg_toplevel_drag_manager_v1 v1
[LOG]   | got iface: zwp_primary_selection_device_manager_v1 v1
[LOG]   | got iface: wl_subcompositor v1
[LOG]   | got iface: xdg_wm_base v6
[LOG]   | got iface: gtk_shell1 v6
[LOG]   | got iface: wp_viewporter v1
[LOG]    > Bound to wp_viewporter v1
[LOG]   | got iface: wp_fractional_scale_manager_v1 v1
[LOG]    > Bound to wp_fractional_scale_manager_v1 v1
[LOG]   | got iface: zwp_pointer_gestures_v1 v3
[LOG]   | got iface: zwp_tablet_manager_v2 v1
[LOG]   | got iface: wl_seat v8
[LOG]    > Bound to wl_seat v8
[LOG]   | got iface: zwp_relative_pointer_manager_v1 v1
[LOG]   | got iface: zwp_pointer_constraints_v1 v1
[LOG]   | got iface: zxdg_exporter_v2 v1
[LOG]   | got iface: zxdg_importer_v2 v1
[LOG]   | got iface: zxdg_exporter_v1 v1
[LOG]   | got iface: zxdg_importer_v1 v1
[LOG]   | got iface: zwp_linux_dmabuf_v1 v5
[LOG]    > Bound to zwp_linux_dmabuf_v1 v5
[LOG]   | got iface: wp_single_pixel_buffer_manager_v1 v1
[LOG]   | got iface: zwp_keyboard_shortcuts_inhibit_manager_v1 v1
[LOG]   | got iface: zwp_text_input_manager_v3 v1
[LOG]   | got iface: wp_presentation v2
[LOG]   | got iface: xdg_activation_v1 v1
[LOG]   | got iface: zwp_idle_inhibit_manager_v1 v1
[LOG]   | got iface: wp_linux_drm_syncobj_manager_v1 v1
[LOG]   | got iface: xdg_wm_dialog_v1 v1
[LOG]   | got iface: wp_color_manager_v1 v1
[LOG]   | got iface: xdg_system_bell_v1 v1
[LOG]   | got iface: wp_drm_lease_device_v1 v1
[LOG]   | got iface: wp_commit_timing_manager_v1 v1
[LOG]   | got iface: wp_fifo_manager_v1 v1
[LOG]   | got iface: wp_cursor_shape_manager_v1 v2
[LOG]    > Bound to wp_cursor_shape_manager_v1 v2
[CRITICAL] Couldn't bind to ext-session-lock-v1, does your compositor support it?

Deivis44 avatar Jun 14 '25 22:06 Deivis44

Hi, this seems like an issue related to Hyprlock and your system. Have you updated your system lately? Maybe there is a version mismatch, since Ax-Shell only installs and updates the packages it needs. I use the config it provides with no issues. Also, thank you because I didn't know they removed no_fade_in and disable_loading_bar, though Hyprlock still works.

Please let me know if a complete system update solves this.

Alternatively, try using hyprlock from the terminal. You can use hyprlock or the command that Ax-Shell uses, which is loginctl lock-session.

Axenide avatar Jun 15 '25 02:06 Axenide

1st question: yes I update like every day (arch)

As I said, I think in some time, my hyprlock package reinstalled in the -git version. If I delete the hyprlock.conf file this does not happen but also I don't have the lock interface -obviously-

The photo of my screen is what happens when hyprlock is triggered when the idle time it's done, it's like a blue screen haha, those logs are exactly the print lines that shows my terminal when I run the hyprlock command out of hyprland (with ax-shell files implemented)

Maybe I should try install the base version (not -git) and see what's going on, but my system indeed it's full updated.

Deivis44 avatar Jun 15 '25 02:06 Deivis44

Alright, that's why those logs show the [CRITICAL] message. You can't run Hyprlock if you are not in Hyprland. That would happen with any GUI app if you try to run it from a TTY session (which while it shows text, there isn't a display). So debugging from there isn't really the best.

I would go for the non -git version. At least it works on all my machines, and nobody else has reported this error. It might just be a "last commit bug". I saw the same screen in Reddit yesterday.

Off-topic but I had a good laugh the first time I got it, I had never seen it before and was like "wait is it April Fools or something?". xD

Axenide avatar Jun 15 '25 02:06 Axenide

Well I was wrong, this is still hapenning, I do not have the -git version, just the stable one, so IDK what is going on. I was trying to debug on gnome using my terminal to see what is going on in the logs (you said it's not the best way) but now IDK what to do

Edit: now I'm reinstalling all the hyprland environment with the -git packages to see what is the problem

For the off-topic did you get the same screen error?

Update: Indeed the problem is with your hyprlock config file, I'm trying with other one simple and there's no screen of death

background {
    blur_passes = 2
    blur_size = 3
    contrast = 1.0
    brightness = 0.7
    vibrancy = 0.0
    vibrancy_darkness = 0.0
}

input-field {
    size = 200, 40
    outline_thickness = 1
    outer_color = rgba(50, 50, 50, 0.6)
    inner_color = rgba(20, 20, 20, 0.9)
    font_color = rgb(255, 255, 255)
    position = 0, 0
    halign = center
    valign = center
    placeholder_text = Password...
    font_family = monospace
}

label {
    text = cmd[update:1000] echo $(date +"%H:%M:%S")
    color = rgb(255, 255, 255)
    font_size = 16
    font_family = monospace
    position = 0, -100
    halign = center
    valign = center
}

Here persists the same supposed errors

Image

Deivis44 avatar Jun 15 '25 22:06 Deivis44

Well, apparently the problem was my wallpaper. I don’t exactly understand the reasons, but my theory is this: after cleaning the ax-shell Hyprlock config file and setting all the path = entries to /dev/null, the error completely disappeared. That gave me a clue — so I started tweaking the config again and testing different wallpapers.

Eventually, I discovered that the issue was caused by a specific wallpaper. Replacing it with another one made everything work perfectly.

I should also mention that I encountered a similar error before when testing dotfiles from the end-4 repo. Some wallpapers would break the color detection system that syncs your lockscreen’s visuals with the wallpaper — probably the blur engine or color extractor. I don’t remember the exact tool, but it was related to Python and handled background colors for the lockscreen dynamically.

So my final theory is this:

A wallpaper with a flat or uniform color distribution might be causing the blur or color extraction process to crash internally, resulting in Hyprlock failing.

Maybe the image output is invalid, or the color parsing fails silently, which causes Hyprlock to "explode" when it tries to render.

If you're curious, I can share the original wallpaper that caused the issue, and another one that works fine, in case you want to test it yourself.

1. Error one:

Image Original wall file: https://github.com/Deivis44/dotfiles/blob/main/Resources/Wallpapers/rocket.png


2. Every other (works perfect) -I'll search for other wallps in my library to check my theory-

Image

Image

Deivis44 avatar Jun 16 '25 00:06 Deivis44

Ah, yes... Hyprlock crashes with some wallpapers sadly. It used to happen to me too, but after an update it worked just fine so I assumed this wasn't the issue.

In the future I'll implement a lock screen and wallpaper daemon myself, so we don't depend on third-party packages.

Thank you for letting me now!

Axenide avatar Jun 17 '25 03:06 Axenide