this is the fucked up janky linux bullshit i had to do to get steam working on t...
🌈 vanta rainbow black 🌈 @vantablack@cyberpunk.lol
this is the fucked up janky linux bullshit i had to do to get steam working on this laptop lol
https://www.reddit.com/r/AsahiLinux/comments/1v66av7/steam_both_arm64_and_x86_stuck_on_waiting_for/
UPDATE: ISSUE FIXED.
THANKS TO ALMIGHTY GOD THEN THE GREAT COMMUNITY!
Two things combined did it:
1- i applied a patch using a modified version of the script u/parkerlreed wrote. Here is how to do the fix:
First, find the chunk file (the hash in the name changes with Steam updates, so use this to locate it):
grep -l 'System.Network.RegisterForDeviceChanges' ~/.local/share/Steam/steamui/chunk~*.js
That'll print the chunk file path.
[EDIT 2] [DISCLAIMER]: THIS SCRIPT WORKED FOR ME AND THAT DOSENT MEAN IT WILL 100% WORK FOR YOU. I AM NOT RESPONSIBLE FOR ANY DAMAGE THAT MAY HAPPEN TO YOUR STEAM INSTIANCE, ACCOUNT OR ANYTHING ELSE. USE AT YOUR OWN RISK. sorry guys had to write this just in case lol.
Now this is the script:
#!/usr/bin/env ruby
# Steam chunk patch for Asahi Linux — fixes "Waiting for network" stuck state.
# Patches ~/.local/share/Steam/steamui/chunk~xxxxxxx.js to bypass failing
# SteamClient.System.Network callbacks that return "is not a function".
#
# Usage: ruby patch_steam_chunk.rb <path-to-chunk-js>
#
# After applying this patch, launch Steam with:
# steam -noverifyfiles -nobootstrapupdate -skipinitialbootstrap -norepairfiles
p = ARGV[0]
s = File.binread(p)
replacements = {
%q{const t=(0,B.Dp)("System.Network.RegisterForDeviceChanges");} =>
%q{const t="function"==typeof SteamClient?.System?.Network?.RegisterForDeviceChanges;},
%q{(0,B.Dp)("System.Network.GetProxyInfo")&&SteamClient.System.Network.GetProxyInfo().then} =>
%q{"function"==typeof SteamClient?.System?.Network?.GetProxyInfo&&SteamClient.System.Network.GetProxyInfo().then},
%q{(0,B.Dp)("System.Network.RegisterForConnectivityTestChanges")&&SteamClient.System.Network.RegisterForConnectivityTestChanges(this.OnConnectivityTestStateChanged)} =>
%q{"function"==typeof SteamClient?.System?.Network?.RegisterForConnectivityTestChanges&&SteamClient.System.Network.RegisterForConnectivityTestChanges(this.OnConnectivityTestStateChanged)},
%q{t||(this.m_bIsAwaitingInitialNetworkState=!1)} =>
%q{t||(this.m_bIsAwaitingInitialNetworkState=!1,this.m_bIsConnectedToANetwork=!0)}
}
replacements.each do |old, new|
abort "Expected exactly one match for #{old}, found #{s.scan(old).length}" unless s.scan(old).length == 1
s = s.sub(old, new)
end
File.binwrite(p, s)
puts "patched OK"
Then apply it (This is mine, replace the path with whatever grep returned):
ruby patch_steam_chunk.rb ~/.local/share/Steam/steamui/chunk~2dcc5aaf7.js
Should print patched OK.
2- For me i was missing dbus-glib so after applying the patch the steam window didnt open at all, so i just installed dbus-glib through dnf install dbus-glib.
3- Now you can launch steam with the bypass flags! Enjoy!
steam -noverifyfiles -nobootstrapupdate -skipinitialbootstrap -norepairfiles
This patch thingi worked for me on both x86 and ARM native. I would recommend giving the arm verison a shot, i noticed its wayyy faster!
Big thanks to u/parkerlreed for the chunk patch, u/Siffredinho for pointing at the missing dep, and everyone else who chimed in.