flathub / com.valvesoftware.Steam

https://flathub.org/apps/details/com.valvesoftware.Steam
337 stars 70 forks source link

Steam not preventing sleep #1148

Open rowbawts opened 10 months ago

rowbawts commented 10 months ago

Game information

N/A

Distribution name and version where applicable

Fedora Linux 37.20230903.0 (Silverblue)

Flatpak info

Flatpak 1.14.4, default host

Problem description

Games are not preventing sleep causing my computer to go to sleep when watching cutscenes or walking away

Does this issue reproduce with native Steam

Have not tested

nanonyme commented 10 months ago

I assume this is about some D-Bus access that is being blocked. Steam doesn't use expected portal directly.

doogie544 commented 10 months ago

If it helps gamemode stops sleep iirc. This issue used to happen with the native package as well if you were using a controller as it didn't register the controller as activity. I don't know if this is still the case as I rarely play with a controller.

If you can install gamemode and use gamemoderun %command% as a launch option it should keep the screen awake if I am correct about gamemode preventing sleep by default

rowbawts commented 10 months ago

Oh thanks for the workaround! But @nanonyme if this is truly a issue with native Steam as well then feel free to close the issue.

doogie544 commented 10 months ago

Oh thanks for the workaround! But @nanonyme if this is truly a issue with native Steam as well then feel free to close the issue.

idk for sure if it still is happening in native.. Like I said I rarely use a controller and now use the flatpak as well so I can't test native. I would assume that it still is an issue tho if I had to guess

rowbawts commented 10 months ago

I get you, I might check and make an upstream issue then because games should not require activity to stay awake. They should be treated like videos where just by being focused or just open should be preventing sleep (in my opinion)