Skip to content
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

Tester wanted: to get steamlink running on PiOS Bullseye #2198

Closed
Botspot opened this issue Dec 16, 2022 · 29 comments
Closed

Tester wanted: to get steamlink running on PiOS Bullseye #2198

Botspot opened this issue Dec 16, 2022 · 29 comments
Labels
bug Something isn't working Testers wanted Upstream Bug something isn't working that can only be fixed upstream

Comments

@Botspot
Copy link
Owner

Botspot commented Dec 16, 2022

Steamlink runs fine on PiOS Buster, but on Bullseye it displays this error on launch:
IMG_4137
This is caused by a safety check in the ~/.local/share/SteamLink/steamlink.sh script:

# Make sure we're not trying to display DRM frames on X11
if [ ! -f "$TOP/.ignore_x11" ] && [ "$DISPLAY" != "" ]; then
    OS_VERSION=$(fgrep VERSION_ID /etc/os-release | sed 's,.*"\([0-9]\+\)",\1,')
    if [ "$OS_VERSION" -gt 10 ]; then
        show_message --warning $"X11 is not supported on this version of Raspbian. You can run on the console or downgrade to Raspberry Pi Buster."
        exit 1
    fi
fi

While I can easily disable thus safety check to cause the fullscreen UI to load, this does nbot really prove anything. Reportedly, the problem with Bullseye only occurs when the game video stream starts. As I do not have immediate access to another computer on the network with Steam installed, I really have no way to test what graphical tweaks are necessary to make it fully work on PiOS Bullseye.

Tester requested! I want to see if switching to the FKMS GL driver allows the video stream to render, or if just running it in the console is enough. Additionally, I am interested in finding a way to run Steamlink from the graphical desktop, without any manual console-switching or changes to /boot/config.txt.
If this venture fails, then I see little point in continuing to carry Steamlink in Pi-Apps if it cannot run on the default OS going forward.

Those interested in workarounds can look to this tutorial: https://blog.iancolwell.ca/steamlink-aarch64

@Botspot Botspot added bug Something isn't working Testers wanted labels Dec 16, 2022
@Botspot
Copy link
Owner Author

Botspot commented Dec 16, 2022

The tester needs to have a Pi4 that is running PiOS Bullseye, with access to a PC that is running Steam.

@theofficialgman
Copy link
Collaborator

theofficialgman commented Dec 16, 2022

might be a good time to plug moonlight-qt (client software) and sunshine (an alterntive open source host software for your PC which you can use for AMD/intel GPUS) as steamlink alternatives.

Moonlight (client): https://github.com/moonlight-stream/moonlight-qt/releases
Nvidia GPU drivers (Windows only, Nvidia GPU host PC): https://www.nvidia.com/en-in/geforce/geforce-experience/download/
Sunshine (host PC alternative for AMD/Intel/Nvidia GPUS on Linux and Windows): https://github.com/LizardByte/Sunshine

there are specific debian repos of moonlight-qt for the pi (buster and bullseye 32/64bit) and nvidia jetson line (switch included) both with hardware accelerated decoding h264/hevc for fast and power efficient streaming

@theofficialgman
Copy link
Collaborator

Yes I'm well aware of the wiki. It's linked on the github releases page

@Pi-Boy-314
Copy link

I'd be willing to test as well

@Botspot
Copy link
Owner Author

Botspot commented Dec 17, 2022

OK testers, first let's set some ground terms:

  • "test" means to run the steamlink command, and see if it can play games without crashing. A successful program launch is not enough in this case.

First, the safety check for Debian Buster should be removed.
In the ~/.local/share/SteamLink/steamlink.sh file, please change line 52 from:

	if [ "$OS_VERSION" -gt 10 ]; then

To:

	if false; then

This will allow steamlink to launch, but I need someone to actually test it. ;)
I'm expecting the program to launch but for the test to fail. Please verify, @Pi-Boy-314 @GYKgamer.

@Rak1ta
Copy link
Contributor

Rak1ta commented Dec 17, 2022

@Botspot I could check in the next few days. I have a laptop nearby and the raspberry is connected to ethernet. Which Bullseye do you need? 32/64

@Botspot
Copy link
Owner Author

Botspot commented Dec 17, 2022

@Botspot I could check in the next few days. I have a laptop nearby and the raspberry is connected to ethernet. Which Bullseye do you need? 32/64

I have no preference. Go with whichever one is more convenient for you. I will operate under the assumption that the solution for one will work on the other.

@Botspot
Copy link
Owner Author

Botspot commented Dec 17, 2022

Does the game need to take lots of system resources, or just any game?

Well ideally it would not be like 5fps, so I suppose that may rule out low-refresh games like tetris. But it doesn't have to be taxing either. The Pi just plays a video stream from another computer running Steam.

@Rak1ta
Copy link
Contributor

Rak1ta commented Dec 17, 2022

@GYKgamer Are your PC and Pi connected to Wi-Fi?

@Botspot
Copy link
Owner Author

Botspot commented Dec 17, 2022

2022-12-17.04-14-34.mp4
@Botspot Steam Link crashes when trying to join my pc

That is to be expected. Steamlink was disabled on Bullseye for a reason! 😆 We are trying to find what tweaks will make it work again.
@GYKgamer, Please run steamlink in a terminal and post the output.

@Botspot
Copy link
Owner Author

Botspot commented Dec 17, 2022

@GYKgamer, now try running steamlink in a console on your Pi. You will need physical access to it, along with a real screen to do it.
Press Ctrl+Alt+F1 to get to the console. To return to the desktop press Ctrl+Alt+F7.
Try testing steamlink in the console. This ought to work, according to that tutorial website.

@Botspot
Copy link
Owner Author

Botspot commented Dec 17, 2022

This may be a bit of a problem, my micro-hdmi cable is broken. So I can't test it out (Yet). I'm probably going to buy one today. But it's 5am so the earliest I could do this is in about 6-ish hours.

In the meantime you could verify that switching to FKMS solves the problem.
Just add dtoverlay=vc4-fkms-v3d to /boot/config.txt, reboot, and now steamlink should work. (again, according to that website)
Having pi-apps users all switch to FKMS is not ideal, but this may give a clue as to another workaround that does not require permanent system changes. Please post the output of steamlink when fkms is enabled.

@Pi-Boy-314
Copy link

It works for me just fine. A bit laggy, but that's to be expected. Doing it through WiFi on both the PC and the Pi. Both are plugged into monitors. Link to video showing it working.It works! Wooo!

Also screenshot of neofetch to prove I'm using 64-bit bullseye
image

@Pi-Boy-314
Copy link

Pi-Boy-314 commented Dec 17, 2022

I was using VNC Viewer to screen record. Not sure why it would cause issues for you. Maybe mine's a fluke or something. Are you using 32 bit or 64 bit?

@Botspot
Copy link
Owner Author

Botspot commented Dec 24, 2022

Does anyone here have their Pi displaying to an actual screen?

@Pi-Boy-314
Copy link

I did when testing it.

@libewa
Copy link
Contributor

libewa commented Jun 1, 2023

yeah my steamlink froze on the first launch screen when launching from the fullscreen terminal (64-bit bullseye)

@ianalexis ianalexis mentioned this issue Aug 4, 2023
4 tasks
@theofficialgman theofficialgman added the Upstream Bug something isn't working that can only be fixed upstream label Oct 29, 2023
@theofficialgman
Copy link
Collaborator

Closing as not planned.
If steamlink is to come to modern ARMhf/ARM64 debian/ubuntu versions, this needs to come from valve and not hacks to workaround the ancient binary that requires suitably ancient proprietary broadcom libraries not available on newer hardware.

@theofficialgman theofficialgman closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Testers wanted Upstream Bug something isn't working that can only be fixed upstream
Projects
None yet
Development

No branches or pull requests

6 participants
@theofficialgman @Botspot @libewa @Pi-Boy-314 @Rak1ta and others