swaywm / swayidle

Idle management daemon for Wayland
MIT License
550 stars 50 forks source link

Swayidle blocks screen while playing games with a controller. #110

Closed gbj1viciado closed 2 years ago

gbj1viciado commented 2 years ago

Swayidle doesn't seem to identify joysticks inputs as a activity on the system, putting it to sleep, this doesn't happen if playing games using keyboard.

emersion commented 2 years ago

Yes. Sway manages this, and doesn't open gamepad devices at all.

ammgws commented 2 years ago

@gbj1viciado Did you come up with a solution for the time being?

gbj1viciado commented 2 years ago

@ammgws Yes actually at least on sway. for_window [shell=".*"] inhibit_idle fullscreen will make it so swayidle doesn't block the screen if a full screen app is active. It will still block the screen if you play a game on window mode. for that i used sway-audio-idle-inhibit make it so it won't block the screen if audio is playing. You can find sway-audio-idle-inhibit here. https://github.com/ErikReider/SwayAudioIdleInhibit

jason-shen commented 1 year ago

this no longer works