Repository navigation
fix(steam): sign in again when Big Picture is stuck on its sign-in page after a slow network - #26
Merged
Merged
Conversation
…ge after a slow network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On 2 of 14 boots of the RG40XX-H, Big Picture came up on Steam's full sign-in page (QR code, password) even though the client logged on by itself a few seconds later. In one boot Wi-Fi joined after 109 s; in the other the IPv4 lease arrived after 470 s. When that happens, Steam's sign-in fails, it falls back to offline, the network arrives in the middle of that fallback, and the UI ends up in login state 1 with result 130. Nothing short of restarting the client brings it back:
GoOnline,StartLogin, going offline and online, andRestartJSContextwere all tried.SteamClient.User.RestartAsCurrentUser()does recover it, in about 95 s.mdeck ui-fixesnow checks Steam's login state every 15 s. It restarts Steam as the saved user once all of these hold for two checks in a row:It does this at most once per boot.
Tested on the device: I set the failed state by hand. The daemon restarted Steam 38 s later, and the library (1,136 apps) was back about 2 minutes after that.
tests/test_login_retry.pycovers the conditions; it andtest_ui_resumepass on Linux.docs/findings.mdalso records the download-responsiveness investigation. It explains why controls crawl during downloads (Steam's UI heap and its GC under memory pressure) and lists the kernel and scheduler changes that didn't help.