ErikReider / SwayAudioIdleInhibit

GNU General Public License v3.0
160 stars 14 forks source link

No longer seems to work with games #16

Open a-priestley opened 11 months ago

a-priestley commented 11 months ago

It's hard to sus out precisely which actor is the culprit here, but I've observed the following while running sway-audio-idle-inhibit against swayidle built with systemd support, on hyprland (pipewire for audio):

I've always had intermittent issues with idle in general, but I think this is the first time I've observed unwanted behavior that I can actually pin down and reproduce. I may be doing something wrong, or making some incorrect assumptions about how the underlying mechanism works (It's probably not as simple as "if any audio stream is playing, block swayidle"). So I'm wondering if there is a concrete list of requirements that the audio stream needs to have such that it will be picked up by the inhibitor.

Edit: Here's some extra info I just observed: While running a game, I can "cajole" the inhibitor into working by adjusting the volume. After doing so, swayidle is successfully blocked. But interestingly, after closing the game, the inhibitor does not release until I poke it again with another volume adjustment.

sh4r10 commented 6 months ago

Having the same issue but with firefox, it reports running but idle is not inhibited. I am running it on qtile-wayland though, maybe that could be causing some conflicts.

The run command I use for swayidle: swayidle -w timeout 300 'swaylock -f' timeout 320 'systemctl suspend' before-sleep "swaylock -f"

Any help is much appreciated

fahim44 commented 6 months ago

Same issue on fedora39-sway. App: Firefox. While running video on Firefox, IDLE INHIBITED is called. But actually, idle is not inhabited.

Jeff-WuYo commented 3 days ago

Same issue on Arch with qtile, with librewolf and brave. I don't know if zwp_idle_inhibit_manager_v1 is implemented or not. During dryrun, it says it's running, but idle still happened. \ With brave, even the video is stopped, it still says running.

ErikReider commented 3 days ago

Same issue on Arch with qtile, with librewolf and brave. I don't know if zwp_idle_inhibit_manager_v1 is implemented or not. During dryrun, it says it's running, but idle still happened. \

With brave, even the video is stopped, it still says running.

Only Wayland compositor are supported...

Jeff-WuYo commented 3 days ago

qtile wayland is wayland compositor I suppose? DWL works as intended.

ErikReider commented 3 days ago

qtile wayland is wayland compositor I suppose? DWL works as intended.

Oh my bad...