swaywm/swayidle

swayidle ignores controller input

clarfonthey opened this issue · 7 comments

sway commit: gfa2d2c85
wlroots commit: 8beeb883

Controller is a GameCube controller via a USB adapter, which works as expected in most games. The issue is that swayidle doesn't seem to be interpreting the controller input as any actual input and triggers even if I've been playing for a few minutes. I suspect that this hasn't been coded into swayidle at all, but if it has and this is an issue for my specific config, I'd be more than willing to provide more info.

Hm... I consider the bug here is really that your games don't support idle-inhibit. Adding support for controllers doesn't make sense for us. But maybe there should be a sway command which inhibits idle?

That's fair, and to clarify, the main program I've been running into this on has been Dolphin. Later I'll go and check to see if they're actually sending idle-inhibit correctly, because they should.

@clarfon Dolphin's idle inhibit has pretty much never worked for me. I can confirm that the latest version in Arch also does not inhibit idle on KDE/X11. So I think it's safe to say the bug lies in Dolphin.

However, I think it might be interesting to get idle inhibit for X11 games. For instance, Stardew Valley inhibits under X11 but not under Sway/Xwayland.

Unrelated: you reminded me that this isn't really our bug.

swayidle respecting xwayland idle suspension

From what I've understood this isn't possible.

You might want to open a ticket with Xwayland instead.