-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] The Steamdeck takes 30 to 45 seconds to shut down after Steam closes when any plugin is installed in Decky Loader #683
Comments
@SteamDeckHomebrew/decky-testers I need folks to attempt to replicate this, the more people attempting to replicate the better. |
Can confirm. The delay is due to Decky loader taking too long to unload itself. Confirmed by manually stopping it before shutdown and seeing that the Steam Deck restart delay is gone. Also, stopping Decky delays significantly.
I have been experiencing this for days during my plugin testing, so it's been here for a while.
Logs of previous run attached as screenshots. Note Everything below is deprecated, was written while I was investigating, ignore unless you are a Decky dev and think you might catch something I missed.
|
discovered this recently as a workaround, the timeout is set to 45 seconds by default. Changing it to 2s resolved the issue for me: sudo sed -i 's~TimeoutStopSec=.*$~TimeoutStopSec=2~g' /etc/systemd/system/plugin_loader.service
sudo systemctl daemon-reload |
Ok, so we know why it's a 45 seconds delay specifically. The question still remains on why it needs to timeout in order to stop and not do it faster than that. Is there something specific I can look for to help troubleshoot this? |
Decky as far as i know doesn't capture any signals from the os, we probably should capture the sigint signal and gracefully stop decky when that goes off |
Huge thanks to @aaron-lee for original fix See: SteamDeckHomebrew/decky-loader#683
Huge thanks to @aarron-lee for original fix See: SteamDeckHomebrew/decky-loader#683
@milroneth looking at the codebase, this was already implemented, huh. Which plugins do you have installed? It's possible one is stalling the max wait time (40s) until shutdown. (Note: i'm currently in the train, i'll check later on deck but i don't remember decky shutdown taking too long) Edit: |
I have A LOT of plugins installed to be honest, but OP said they even completely reset everything and still got this issue with any plugin installed. Though I guess we don't know what any plugin they chose, it might have been something specific that causes this. Here's a log on v3.0.0-pre10 after running Stopping SteamDeck Plugin Loader LOG.txt Is the log of any use? Do I understand correctly that it's trying to re-load certain plugins instead of unloading them? |
That indeed looks very weird, and not like the behaviour i posted. I'll see if i can repro it later. OP may be using stable decky, which does not have this fix yet. Either way, this seems broken right now, will look into it |
I don't know if my problem is related, but when shutting down I also have to wait for the plugins to unload. Now I saw when I manually stop it, that two processes are still running:
I am on a Onexplayer X1 though and not on the steam deck.... |
Is this still an issue? |
No, apart from the X1 issue above (which might be irrelevant and unsupported platform), this has been fixed. |
Please confirm
Bug Report Description
Expected Behaviour
When either shutting down or rebooting the Steamdeck, the hardware should shutdown within 0 to 5 seconds
SteamOS version
SteamOS 3.5.19
Selected Update Channel
Stable
Have you modified the read-only filesystem at any point?
No
Backend Logs
deckylog.txt
Frontend Logs
cef_log.txt
cef_log.previous.txt
The text was updated successfully, but these errors were encountered: