Replies: 2 comments 6 replies
-
Yes, this is idle-inhibit. But it requires a surface visible on screen to inhibit idle. SwayAudioIdleInhibit seems to just create a surface and do nothing with it as far as I can tell: https://github.com/ErikReider/SwayAudioIdleInhibit/blob/e660559718913c1e3d3aadf03f2986ed687d4fb9/src/idle.cpp#L50 The protocol says:
And if you do nothing with the surface then it's unmapped, meaning that the idle inhibitor is not active. So I'm not sure why it works on sway, maybe a sway bug. One thing you could try is to call |
Beta Was this translation helpful? Give feedback.
-
Perhaps my ala-lape tool can be of use here? Its purpose is to inhibit idle when certain conditions apply, and it does so through systemd, rather than any wayland protocols, because I found this method to work much more reliably. It can currently detect gamepad input and configured processes, but I suspect it wouldn't be too hard to teach it to monitor pipewire either. I'll see what I can do. |
Beta Was this translation helpful? Give feedback.
-
I'm lookng for a successful strategy to inihibit idle whilst playing audio, and if you have one please do tell. Below, I detail my unsuccessful attempts, and what I understand.
I am using swayidle which determines idle timeout before dpms off, and suspend; In order to inhibit swayidle when playing audio I tried two alternative scripts, sway-audio-inhibit and waylpand-pipewire-audio-idle-inhibit,
Audio plays through pipewire. I have pipewire-pulse and pipewire-alsa service files enabled.
I read that Niri,
And yes, to confirm, I find idle is nicely inhibited as desired and expected when playing videos in browsers ( qutebrowser, brave) and, also mpv.
I'm wondering if ext-idle-notify and idle-inhibit Wayland protocols include zwp_idle_inhibit_manager_v1 :
From the README, of Sway-audio -idle-inhibit
From Wayland PipeWire Idle Inhibit:
I haven't installed (available in arch user reporitory ) the xscreensaver-dbus-screenlock package, which perhaps could help there, but I doubt it; I'm running niri-session with the xdg-desktop-portal-gtk.service running.
Cheers, John
Beta Was this translation helpful? Give feedback.
All reactions