Skip to content

suspend inhibit lock is released too early #166

@IiroUllin

Description

@IiroUllin

...In particular, hyprlock only starts after the system has already woken up from sleep, even though before_sleep_cmd starts to execute before going to sleep. Before the hyprlock starts, it is even possible to interact with the window that had focus before suspending...

Just rebooted; here is the full hypridle log:

hypridle log before systemctl suspend

Jul 10 12:17:16 nebula systemd[1288]: Started Hyprland's idle daemon.
Jul 10 12:17:16 nebula hypridle[2175]: [LOG] Registered timeout rule for 600s:
Jul 10 12:17:16 nebula hypridle[2175]:       on-timeout: brightnessctl -s set 10
Jul 10 12:17:16 nebula hypridle[2175]:       on-resume: brightnessctl -r
Jul 10 12:17:16 nebula hypridle[2175]: [LOG] Registered timeout rule for 600s:
Jul 10 12:17:16 nebula hypridle[2175]:       on-timeout: brightnessctl -sd asus::kbd_backlight set 0
Jul 10 12:17:16 nebula hypridle[2175]:       on-resume: brightnessctl -rd asus::kbd_backlight
Jul 10 12:17:16 nebula hypridle[2175]: [LOG] Registered timeout rule for 900s:
Jul 10 12:17:16 nebula hypridle[2175]:       on-timeout: hyprctl dispatch dpms off
Jul 10 12:17:16 nebula hypridle[2175]:       on-resume: hyprctl dispatch dpms on && brightnessctl -r
Jul 10 12:17:16 nebula hypridle[2175]: [LOG] Registered timeout rule for 1800s:
Jul 10 12:17:16 nebula hypridle[2175]:       on-timeout: /home/ibrahim/.config/hypr/scripts/suspend.sh
Jul 10 12:17:16 nebula hypridle[2175]:       on-resume:
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wl_seat v9
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]    > Bound to wl_seat v9
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wl_data_device_manager v3
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wl_compositor v6
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wl_subcompositor v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wl_shm v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_viewporter v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_tearing_control_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_fractional_scale_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zxdg_output_manager_v1 v3
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_cursor_shape_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_idle_inhibit_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_relative_pointer_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zxdg_decoration_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_alpha_modifier_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwlr_gamma_control_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: ext_foreign_toplevel_list_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_pointer_gestures_v1 v3
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwlr_foreign_toplevel_manager_v1 v3
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_keyboard_shortcuts_inhibit_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_text_input_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_text_input_manager_v3 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_pointer_constraints_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwlr_output_power_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: xdg_activation_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: ext_idle_notifier_v1 v2
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]    > Bound to ext_idle_notifier_v1 v2
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: hyprland_lock_notifier_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]    > Bound to hyprland_lock_notifier_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: ext_session_lock_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_input_method_manager_v2 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_virtual_keyboard_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwlr_virtual_pointer_manager_v1 v2
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwlr_output_manager_v1 v4
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: org_kde_kwin_server_decoration_manager v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: hyprland_focus_grab_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_tablet_manager_v2 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwlr_layer_shell_v1 v5
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_presentation v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: xdg_wm_base v6
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwlr_data_control_manager_v1 v2
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_primary_selection_device_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: xwayland_shell_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwlr_screencopy_manager_v1 v3
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: hyprland_toplevel_export_manager_v1 v2
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: hyprland_toplevel_mapping_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: hyprland_global_shortcuts_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: xdg_wm_dialog_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_single_pixel_buffer_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_security_context_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: hyprland_ctm_control_manager_v1 v2
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: hyprland_surface_manager_v1 v2
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_content_type_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: xdg_toplevel_tag_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: xdg_system_bell_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_color_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_drm_lease_device_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wp_linux_drm_syncobj_manager_v1 v1
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wl_drm v2
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: zwp_linux_dmabuf_v1 v5
Jul 10 12:17:16 nebula hypridle[2175]: [LOG]   | got iface: wl_output v4
Jul 10 12:17:16 nebula hypridle[2175]: [LOG] found 4 rules
Jul 10 12:17:16 nebula hypridle[2175]: [LOG] wayland done, registering dbus
Jul 10 12:17:16 nebula hypridle[2175]: [LOG] Sleep inhibition enabled
Jul 10 12:17:16 nebula hypridle[2175]: [LOG] Using dbus path /org/freedesktop/login1/session/_35
Jul 10 12:17:16 nebula hypridle[2175]: [LOG] Inhibited sleep with fd 10

log after systemctl suspend

Jul 10 12:24:30 nebula hypridle[2175]: [LOG] Got PrepareForSleep from dbus with sleep true
Jul 10 12:24:30 nebula hypridle[2175]: [LOG] Executing ~/.config/hypr/scripts/before-sleep-cmd.sh
Jul 10 12:24:30 nebula hypridle[2175]: [LOG] Process Created with pid 2879
Jul 10 12:24:30 nebula hypridle[2175]: [LOG] Releasing the sleep inhibitor!
Jul 10 12:24:30 nebula hypridle[2175]: [LOG] Got dbus .Session
Jul 10 12:24:30 nebula hypridle[2175]: [LOG] Got Lock from dbus
Jul 10 12:24:30 nebula hypridle[2175]: [LOG] Locking with pidof hyprlock || hyprlock
Jul 10 12:24:30 nebula hypridle[2175]: [LOG] Executing pidof hyprlock || hyprlock
Jul 10 12:24:30 nebula hypridle[2175]: [LOG] Process Created with pid 2883
Jul 10 12:24:34 nebula hypridle[2175]: [LOG] Got PrepareForSleep from dbus with sleep false
Jul 10 12:24:34 nebula hypridle[2175]: [LOG] Inhibited sleep with fd 10
Jul 10 12:24:34 nebula hypridle[2175]: [LOG] Executing ~/.config/hypr/scripts/after-sleep-cmd.sh
Jul 10 12:24:34 nebula hypridle[2175]: [LOG] Process Created with pid 3231
Jul 10 12:24:34 nebula hypridle[3232]: Couldn't commit output {}
Jul 10 12:24:34 nebula hypridle[2175]: [LOG] Wayland session got locked
Jul 10 12:24:34 nebula hypridle[2175]: [LOG] Executing
Jul 10 12:24:34 nebula hypridle[2175]: [LOG] Process Created with pid 3263
Jul 10 12:24:34 nebula hypridle[2883]: Fontconfig warning: using without calling FcInit()
Jul 10 12:24:36 nebula hypridle[2883]: Hyprlock version v0.8.2
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wl_seat v9
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]    > Bound to wl_seat v9
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wl_data_device_manager v3
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wl_compositor v6
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]    > Bound to wl_compositor v6
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wl_subcompositor v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wl_shm v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]    > Bound to wl_shm v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_viewporter v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]    > Bound to wp_viewporter v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_tearing_control_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_fractional_scale_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]    > Bound to wp_fractional_scale_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zxdg_output_manager_v1 v3
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_cursor_shape_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]    > Bound to wp_cursor_shape_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_idle_inhibit_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_relative_pointer_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zxdg_decoration_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_alpha_modifier_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwlr_gamma_control_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: ext_foreign_toplevel_list_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_pointer_gestures_v1 v3
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwlr_foreign_toplevel_manager_v1 v3
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_keyboard_shortcuts_inhibit_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_text_input_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_text_input_manager_v3 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_pointer_constraints_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwlr_output_power_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: xdg_activation_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: ext_idle_notifier_v1 v2
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: hyprland_lock_notifier_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: ext_session_lock_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]    > Bound to ext_session_lock_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_input_method_manager_v2 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_virtual_keyboard_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwlr_virtual_pointer_manager_v1 v2
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwlr_output_manager_v1 v4
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: org_kde_kwin_server_decoration_manager v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: hyprland_focus_grab_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_tablet_manager_v2 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwlr_layer_shell_v1 v5
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_presentation v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: xdg_wm_base v6
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwlr_data_control_manager_v1 v2
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_primary_selection_device_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: xwayland_shell_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwlr_screencopy_manager_v1 v3
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]    > Bound to zwlr_screencopy_manager_v1 v3
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: hyprland_toplevel_export_manager_v1 v2
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: hyprland_toplevel_mapping_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: hyprland_global_shortcuts_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: xdg_wm_dialog_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_single_pixel_buffer_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_security_context_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: hyprland_ctm_control_manager_v1 v2
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: hyprland_surface_manager_v1 v2
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_content_type_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: xdg_toplevel_tag_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: xdg_system_bell_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_color_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_drm_lease_device_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wp_linux_drm_syncobj_manager_v1 v1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wl_drm v2
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: zwp_linux_dmabuf_v1 v5
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]    > Bound to zwp_linux_dmabuf_v1 v5
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]   | got iface: wl_output v4
Jul 10 12:24:36 nebula hypridle[2883]: [LOG]    > Bound to wl_output v4
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] Exposed seat name: Hyprland
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] [core] dmabufFeedbackMainDevice
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] output eDP-1 name eDP-1
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] output 58 description BOE 0x0BC7  (eDP-1)
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] output 58 make BOE model 0x0BC7
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] output 58 done
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] Running on Hyprland
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] Locking session
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] Starting fade in
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] fprint: using device path /net/reactivated/Fprint/Device/0
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] Got fractional scale: 160.0%
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] configure with serial 2144
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] Configuring surface for logical [Vector2D: x: 1600, y: 1000] and pixel [Vector2D: x: 2560, y: 1600]
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] onLockLocked called
Jul 10 12:24:36 nebula hypridle[2883]: [ERR] Invalid key down event (stray release event?)
Jul 10 12:24:36 nebula hypridle[2883]: [ERR] Invalid key down event (stray release event?)
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] fprint: claimed device
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] fprint: started verifying
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] fprint: finger selected: right-index-finger
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] fprint: handling status verify
Jul 10 12:24:36 nebula hypridle[2175]: [LOG] Wayland session got unlocked
Jul 10 12:24:36 nebula hypridle[2175]: [LOG] Executing
Jul 10 12:24:36 nebula hypridle[2175]: [LOG] Process Created with pid 3278
Jul 10 12:24:36 nebula hypridle[2883]: -match
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] fprint: stopped verification
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] Unlocking session
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] Unlocked, exiting!
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] fprint: released device
Jul 10 12:24:36 nebula hypridle[2883]: [LOG] Reached the end, exiting

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions