hyprwm / hypridle

Hyprland's idle daemon
BSD 3-Clause "New" or "Revised" License
373 stars 22 forks source link

Hypridle ignores dbus inhibits and systemd-inhibits #32

Closed samchouse closed 6 months ago

samchouse commented 6 months ago

When Firefox plays media, Hypridle doesn't listen to the dbus events to prevent idle. I solved this using https://github.com/loops/idlehack on Swayidle but it seems that Hypridle ignores systemd-inhibits too so it doesn't work anymore.

Cody-W-Tucker commented 6 months ago

Do you get any errors when you run xdg-open https://example.com?

Hypridle uses org.freedesktop.ScreenSaver to check for systemd-inhibits. If your desktop environment doesn't provide the ScreenSaver service, it can't inhibit idle.

samchouse commented 6 months ago

I don't get any errors running xdg-open but I do get this when running hypridle. I haven't noticed it since I run it at startup.

[LOG] wayland done, registering dbus
[LOG] Using dbus path /org/freedesktop/login1/session/_313
[ERR] Failed registering for /org/freedesktop/ScreenSaver, perhaps taken?
err: [org.freedesktop.DBus.Error.FileExists] Failed to request bus name (File exists)
fufexan commented 6 months ago

@Xenfo you can check which program took that name with busctl --user status org.freedesktop.ScreenSaver.

samchouse commented 6 months ago

So it was taken by idlehack which I've now uninstalled. Thank you!