-
Notifications
You must be signed in to change notification settings - Fork 8
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
Option to use steam via flatpak? #63
Comments
Buddy uses a hardcoded path of |
If you can build Buddy, take a look at https://github.com/FrogTheFrog/moondeck-buddy/blob/df5381e43711f36e30a5f98db485134856a2efa5/src/lib/os/linux/steamregistryobserver.cpp#L138C39-L138C53. I'm currently checking only 1 directory, please create a PR if you want to check multiple or even another approach. |
Thanks for the quick reply. I tried placing the shim at
I can definitely run |
Have you managed to get it working? |
I didn't, for some reason my build produces an unusable executable, it exits immediately without any error (exit code 0). |
It will do this if some other instance of MoonDeckBuddy is already running. |
I will try installing flatpak on my laptop and will let you know about my experience. |
@alucryd it was more annoying than I thought as flatpak messed everything up... I've added 2 config settings (they will be saved to file once the new executable is run). They are called The build can be found here until I get the release going: |
Actually use this build: |
I'm also having this issue. If you have an appimage I can install to test your build I'd be happy to trial it for you. |
I have restarted the build, please use the AppImage from that link above |
Looks like your linux build failed. |
Will fix it properly later, some stupid diagnostic check. Use build from this one: (once it finishes) |
I set my override in ~/.config/moondeckbuddy/settings.json The app starts up, but when I go to my deck and try to start a game using moondeck, in this case TF2, I get this error.
Edit wait, I think I also need to add the steam flatpak binary path too. let me see if I can find that |
I added a steam shim in ~/.local/bin and set the binary override to that. It seemed to start games. TF2 loaded but I couldn't control anything via the deck. I tried Sea of Stars and Baulder's Gate 3 and they both just error'd out on the deck side, though they did start the game on my computer's side. This is what the log looks like
|
Could you enable debug logs for Buddy and paste the log again? |
Here's the log for "Sea of Stars" which does start up on the computer but fails to display anything on the deck and I have to "b" out of. |
Pfff, well the Buddy is working as expected at least, a little too spamy (which I will fix), but works.
Did you try restarting SteamDeck? Sometimes the UI bugs out. Also, what does it mean exactly? Does it launch Moonlight or does it get stuck with the Steam spinner? FYI, Valve broke something since the last big update and now Buddy cannot detect intermediate states for the games. It's either running (the process itself) or not. So, if Steam decides to update it on the host, you will get error'ed out. These timeouts can be increased in MoonDeck. |
Restarting the deck seems to work. |
Also, I noticed in the logs intially (not the set I sent you) that it says auto-changing the resolution isn't supported in wayland. I do have a solution on my end for this in a gnome desktop environment. I imagine that KDE will require a different app than: gnome-randr though |
Yeah, wayland specification does not yet have the protocol for changing resolution... I would highly recommend to take a look into https://docs.lizardbyte.dev/projects/sunshine/en/nightly/about/guides/app_examples.html#changing-resolution-and-refresh-rate-linux-wayland |
If "pass to Moonlight" option is enabled you can pass it all the way from MoonDeck to Sunshine. However, Moonlight only supports integers, so you would have to somehow find the closest value that your host supports. Or you could have multiple Sunshine app entries for MoonDeck, each with different resolution. |
I'm getting "failed to launch app in time" errors, though the apps are, in fact, launching on my PC. This is for BG3 here. |
Could you run |
Also, was Steam closed after the first Stream?
|
Here you go. I cropped out the unnessessary stuff unrelated to steam/moondeck
I added a "flatpak kill com.valvesoftware.Steam" command to the Sunshine app for MoonDeckStream because it seems to leave it running even though the config file says to kill it. |
Thanks. I think killing it makes it problematic for Buddy and I will need to make it more robust :/. |
@Nitrousoxide https://github.com/FrogTheFrog/moondeck-buddy/actions/runs/6685007818 should be more robust now when the Steam is killed. However, I would recommend you to enable the MoonDeck option I've mentioned. It's under host settings. |
Thanks, I took out the do/undo command to flatpak kill steam. It does seem to properly close it now (I didn't have it also selected in the moondeck app on the deck before so that might have been why) I am still getting the timed out game start error though. It does start up on the computer and if I start the stream back up after it errors out I can control the game for 10 or 20 seconds but then it jumps back out again with the same failure to start error. moondeckbuddy.log Edit: this time I was trying "Sea of Stars" rather than BG3 |
@Nitrousoxide This should work now https://github.com/FrogTheFrog/moondeck-buddy/actions/runs/6685412767 Also found an issue with Sunshine where it waits on a zombie SteamDeckStream process... Will address this on MoonDeck and notify the Sunshine team. |
Sorry I'm late to the party. I tried the latest build, it does start the game and I can play for a bit, but it quickly fails with the timeout error. I can provide logs later if that can help (it's getting late here). |
This seems to be reliably working so far. |
I'm also heading to sleep. Please post the debug logs from the from the build from the last link I've posted. Will take a look tomorrow. |
I'm closing this as it has been resolved for one person and new version has been released. |
Hi there, I'm trying to get the flatpak version of steam to work with this, I created a simple shim in
/usr/local/bin/steam
so that it is available in path, but moondeck complains it failed to run the steam app. I can briefly see my desktop via Moonlight before I get the error message. Has anyone got a similar setup working?Content of the shim:
The text was updated successfully, but these errors were encountered: