Skip to content

Instantly share code, notes, and snippets.

@SalomonBrys
Last active February 15, 2023 17:48
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save SalomonBrys/c76637e4ac026466201e6ef14be14002 to your computer and use it in GitHub Desktop.
Save SalomonBrys/c76637e4ac026466201e6ef14be14002 to your computer and use it in GitHub Desktop.
Stadia in Ubuntu

Stadia in Ubuntu

1. Install Chromium-vaapi & drivers

  • Add the chromium-vaapi dev repository:
    sudo add-apt-repository ppa:saiarcot895/chromium-beta
    sudo apt-get update
    
  • Install Chromium-vaapi:
    sudo apt install chromium-browser
    
  • Start chromium-browser, go to chrome://flags/#disable-accelerated-video-decode and enable Hardware-accelerated video decode.
  • If using NVidia, Download this deb and install it using command-line with sudo dpkg -i vdpau-va-driver_0.7.4-7ubuntu1~ppa1~18.10.1_amd64.deb && sudo apt install -f

2. Create Stadia app

  • In chromium-browser, go to https://stadia.google.com/home and click the + at the right of the address bar, click Install, then close the new window and every chromium window.
  • In your window manager, find the new Stadia app icon, right click on it and edit the application.
  • Change the command from /usr/bin/chromium-browser --profile-directory=Default --app-id=[APP-ID] to /usr/bin/chromium-browser --ignore-gpu-blacklist --disable-gpu-vsync --profile-directory=Default --app-id=[APP-ID] (replace [APP-ID] with the actual app ID).

3. Start Stadia

  • Make sure chromium-browser is not running (i.e. there is no open Chromium window). Note that Google Chrome being a different application, it can be open.
  • Start the Stadia app from your window manager's application list.
  • Enjoy your games!

TIP: If, when in full screen, the esc key pops up the window manager bar on top of the game, you can mitigate this by enabling the "Keep Above Others" option on the Stadia window.

4. [OPTIONAL] Verify hardware acceleration

  • Install vainfo with sudo apt install vainfo and check that the command vainfo shows:
    libva info: va_openDriver() returns 0
    
  • Open chromium, go to chrome://flags/#enable-media-internals-devtools, enable media log in developer tools (``), then close the window.
  • Start the Stadia application from your application launcher.
  • Open developer tools with ctrl+shift+i, then go to the developer tools settings (F1) and in Experiments, enable Media Element Inspection, then close the developer tools window.
  • Start any game, wait for its launch the long-pres esc to exit full-screen
  • Open developer tools, and go to menu > more tools > Media
  • Verify that, in the player, in the Video Decoder section, Hardware Decoder is set to true.
@cc653
Copy link

cc653 commented Mar 9, 2021

ok so i have stadia on my ubuntu 20.04 grub pc, but i keep getting bash when trying to copy and paste in terminal. also unity using alt f2 does not work/ do anything and when i right click on stadia also dosent have an edit option as well as unable to verify on the last step still shows bash which means push file im lost please help

@michaelbutler
Copy link

@cc653 you have to use ctrl shift v to paste in terminal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment