protonscr

Steam Link doesn't work on Ubuntu 22

steamclosed Intel driversStreamingDistro Family: Ubuntu
ValveSoftware/steam-for-linux#8848 · opened 2022-10-13 by ghost · updated 2023-02-15 · 7 comments · github
?ghost 2022-10-13 github

Hi,

Steam Link stopped working for me when I upgraded to Ubuntu 22.04.01 LTS. Steam on my desktop restart when I establish a connection via Steam Link.

  1. Start Steam on my desktop machine
  2. Start Steam Link on Android TV (Shield TV) and connect to Steam on desktop machine
  3. Steam restarts on desktop machine and so does Steam Link on Android TV

The results is the same whether I run my desktop session on X11 or Wayland.

Kkisak-valve maintainer 2022-10-13 github

Possibly related to #8843.

?ghost 2023-02-15 github

Still occurring. Steam crashes (Dumps core) and then restarts. Here's log from starting Steam client on the command line until the crash occurs: https://gist.github.com/rifftual/085ccd21974fe3c0c8b57b3f5670f719

Kkisak-valve maintainer 2023-02-15 github

Hello @rifftual, steam: i965_encoder.c:1692: intel_enc_hw_context_init: Assertion `encoder_context->mfc_context' failed. is the line of interest from your log. This is coming from your Intel vaapi driver. It is most like incomplete or broken.

Please copy your system information from Steam (Steam -> Help -> System Information) and put it in a gist, then include a link to the gist in this issue report.

Disabling hardware accelerated video encode should workaround this issue. (Steam -> Settings -> Remote Play -> Advanced Host Options -> uncheck Enable hardware encoding on Intel iGPU)

?ghost 2023-02-15 github

Disabling HW encoding doesn't work.

Here's the log when starting Steam without HW encoding in Remote Play: https://gist.github.com/rifftual/61e907d29e767363710b4ab6ca71b986

And here's the system information: https://gist.github.com/rifftual/9ef631fabf9105d64fe749ca3356232b

Also please note that Steam remote play used to work on Ubuntu 20.04.

Kkisak-valve maintainer 2023-02-15 github

Looks like hardware encoding didn't get disabled for the software encode workaround experiment.

Your system information confirms that Intel vaapi is broken (https://gist.github.com/rifftual/9ef631fabf9105d64fe749ca3356232b#file-steam-system-information-txt-L217-L230 https://gist.github.com/rifftual/9ef631fabf9105d64fe749ca3356232b#file-steam-system-information-txt-L394-L413). That should be reported to your distro's package maintainer(s) for their Intel vaapi packages.

Blind guess, can you check if i965-va-driver-shaders and i965-va-driver-shaders:i386 are installed with something like apt policy i965-va-driver-shaders i965-va-driver-shaders:i386?

?ghost 2023-02-15 github

Thank you! Installing the shader packages made Remote play work!

Couple of issues persist still (Of which the latter also occurred on Ubuntu 20.04):

  • On Wayland, only native Linux games work, but Steam Big Picture mode doesn't display (I have to navigate with the host PC). On Xorg, Big Picture mode works, but with non native Linux games (Proton) there is a blank screen on client, as it is on Wayland. Tried disabling both HW encoding and decoding to no avail.
  • Proton games show a blank screen. I think I could get them to work previously, although slowly, by specifying some opengl CLI flag

Here's the log when I try to play a Proton game on Wayland with HW encoding and decoding disabled: https://gist.github.com/rifftual/e78a008009c5095f5e4610eed1718405

There's at least these errors:

Steam: An X Error occurred
X Error of failed request:  BadWindow (invalid Window parameter)
Major opcode of failed request:  20 (X_GetProperty)
Resource id in failed request:  0x0
Serial number of failed request:  9
xerror_handler: X failed, continuing

ERROR: ld.so: object '/home/foo/.steam/debian-installation/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

ERROR: ld.so: object '/home/foo/.steam/debian-installation/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

Kkisak-valve maintainer 2023-02-15 github

Glad to hear it started working for you. This issue needs be evaluated on the distro side.

For the follow up issues; the first bullet point is #6148; the second might be similar to https://github.com/ValveSoftware/steam-for-linux/issues/6716#issuecomment-617037116, but regardless, follow up issues should be evaluated separately.

The X error is #9164 and the LD_PRELOAD lines are harmless (#6718)

Closing because this was a system config issue.