Skip to content

steam: many fixes - #157907

Closed
jonringer wants to merge 14 commits into
NixOS:masterfrom
jonringer:steam-fixes
Closed

jonringer wants to merge 14 commits into
NixOS:masterfrom
jonringer:steam-fixes

Conversation

@jonringer

@jonringer jonringer commented Feb 2, 2022 •

Copy link
Copy Markdown
Contributor
Motivation for this change

This is an attempt to do a not-so-kind cleanup of nix's steam package.

related: ValveSoftware/Dota-2#2018

Closes: #161136 #157614 #148483 #140543 #135298 #126428 #108598 #83603 #73191 #69037 #69037

To test:

  • run nix run github:jonringer/nixpkgs/steam-fixes#steam

TODO:

  • Get csgo to launch (opengl, native, older runtime)
  • Get dota2 to launch (vulkan, native, newer runtime)
  • Get proton game to launch (e.g. timberborn)
    • Proton runtime 6
    • Proton runtime 7
  • Allow people to mount their own steam directories
Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@github-actions github-actions Bot added the 6.topic: steam Steam game store/launcher (store.steampowered.com) label Feb 2, 2022
@ofborg ofborg Bot added the 8.has: package (new) This PR adds a new package label Feb 2, 2022
@ofborg
ofborg Bot requested review from Ma27, edolstra and jagajaga February 2, 2022 23:10
@ofborg ofborg Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Feb 2, 2022
@jonringer

Copy link
Copy Markdown
Contributor Author

able to get csgo (native linux) to launch, but proton seems to fail to launch anything

@tgharib

tgharib commented Feb 3, 2022 •

Copy link
Copy Markdown
Contributor

Using this branch, I was able to get dota to launch with the soldier-on-scout runtime but it doesn't seem to remember my video settings nor can I save video settings. Thus the game always launches in windowed mode using opengl rather than vulkan. Forcing vulkan by using -vulkan launch flag fails as the game reverts back to opengl.

The command-line output from steam complains about missing libcairo, libtensorflow, failed dbus connection, etc.

As for Proton, I launched Quake Champions with Proton Experimental but it was extremely slow. CLI output indicated it was using lavapipe: WARNING: lavapipe is not a conformant vulkan implementation, testing use only.

@jonringer

Copy link
Copy Markdown
Contributor Author

Using this branch, I was able to get dota to launch with the soldier-on-scout runtime but it doesn't seem to remember my video settings nor can I save video settings. Thus the game always launches in windowed mode using opengl rather than vulkan. Forcing vulkan by using -vulkan launch flag fails as the game reverts back to opengl.

The command-line output from steam complains about missing libcairo, libtensorflow, failed dbus connection, etc.

As for Proton, I launched Quake Champions with Proton Experimental but it was extremely slow. CLI output indicated it was using lavapipe: WARNING: lavapipe is not a conformant vulkan implementation, testing use only.

Do you use nvidia or AMD for a gpu?

@tgharib

tgharib commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

Do you use nvidia or AMD for a gpu?

I use nvidia 1060. I tested with nix shell --impure github:jonringer/nixpkgs/steam-fixes#steam.

@jonringer

Copy link
Copy Markdown
Contributor Author

Do you use nvidia or AMD for a gpu?

I use nvidia 1060. I tested with nix shell --impure github:jonringer/nixpkgs/steam-fixes#steam.

I'll try to download dota tonight, I don't think I have any vulkan game already installed

@tgharib

tgharib commented Feb 3, 2022 •

Copy link
Copy Markdown
Contributor

I went ahead and replicated all the logs I produced in ValveSoftware/Dota-2#2018 but against this new branch instead of steam in nixpkgs stable.

system-info-soldier.txt

slr-app302380-t20220203T094554.log

steam-runtime.txt

system-info-soldier.txt

Comment thread pkgs/games/steam/fhsenv.nix Outdated

@tgharib tgharib Feb 3, 2022 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • It appears this is using /steamrt as a custom path of the runtime but STEAM_RUNTIME is unset so wouldn't this cause a conflict with Steam?
  • Is there a reason why we are using /steamrt over ~/.steam/root/ubuntu12_32/steam-runtime? I think we should just follow Simon's recommendation of using default paths to make it easier for Simon to support the Steam package.
  • /steamrt still appears to have the incorrect directory layout:
> ls /steamrt
amd64  i386  run.sh  setup.sh

Where is /steamrt coming from anyway?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's coming from the original steamPackages.steam package IIRC

Comment thread pkgs/games/steam/fhsenv.nix Resolved
@tgharib

tgharib commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

The command-line output from steam complains about missing libcairo, libtensorflow, failed dbus connection, etc.

Running dota in steam flatpak, it also complains about missing libcairo and libtensorflow so I suppose that is normal. No complaint about dbus though.

log-flatpak.txt

@tfmoraes

Copy link
Copy Markdown
Contributor

Hi @jonringer, because of this merged PR #158276 Steam is not loading Vulkan when using Nvidia. I think this is happening because the steam helper verify if /usr/share/vulkan/icd.d/nvidia_icd.json exists, but after the PR #158276 it should check if /share/vulkan/icd.d/nvidia_icd.x86_64.json at this line https://github.com/NixOS/nixpkgs/blob/f34c1a053a80cab898e1921f22543cf82ac465a7/pkgs/games/steam/fhsenv.nix#L215

@ckiee

ckiee commented Feb 17, 2022

Copy link
Copy Markdown
Member

For me, unlike @tfmoraes, it does load and I can start up a Proton game but it uses llvmpipe (software rendering) which is incredibly slow. Reverting #158276 does fix it.

@jtrees

jtrees commented Feb 18, 2022

Copy link
Copy Markdown
Contributor

@ckiee How do you revert the PR?

@ckiee

ckiee commented Feb 19, 2022

Copy link
Copy Markdown
Member

@ckiee How do you revert the PR?

Well, I have a branch for little things like this so I ran git revert 1da4e07ea68c1782f11889f507d3e923d6b9ad85 there. Getting Nix to use that nixpkgs depends on how you're building your system.

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/steam-proton-games-1-fps/17794/6

@jonringer

Copy link
Copy Markdown
Contributor Author

going to attempt to do #135024 again, feels more aligned with steam runtime assumptions

@github-actions github-actions Bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` labels Feb 22, 2022
@ofborg ofborg Bot added the 8.has: clean-up This PR removes packages or removes other cruft label Feb 22, 2022
@ofborg
ofborg Bot requested review from pasqui23 and rapenne-s February 22, 2022 01:54

@Princemachiavelli Princemachiavelli left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is 9c1a210 suppose to be empty? Or is c076315 the intended change?

@jonringer

Copy link
Copy Markdown
Contributor Author

probably a bad merge conflict resolution, going to set this draft for now

@LunNova

LunNova commented May 7, 2022

Copy link
Copy Markdown
Member

This PR helps with Lutris too, it fixes the Vulkan ICD Loader option which previously was a blank dropdown.

@jansol

jansol commented Jul 5, 2022

Copy link
Copy Markdown
Contributor

At least #148483 persists, even with the rest of the fixes from this PR applied.

@jonringer

Copy link
Copy Markdown
Contributor Author

:(

@jaen

jaen commented Jul 13, 2022

Copy link
Copy Markdown
Contributor

@jonringer any plans to update this for new glibc? I'm not sure if I should wait or just drop it for now from my config.

@jonringer

Copy link
Copy Markdown
Contributor Author

short term, no. I pruned most of the obvious wins, if people would like to pick apart relevant fixes, then I think that would be the best way forward.

@jaen

jaen commented Jul 13, 2022

Copy link
Copy Markdown
Contributor

I see. Is there any reason the glibc variant change wasn't extracted? Does it break anything? Or would be it acceptable to mainstream it?

@jonringer

Copy link
Copy Markdown
Contributor Author

The glibc variant wasn't exported because I was able to get where I wanted with out it.

It would still probably enable other scenarios, but I just don't have a personal compelling example (yet).

@SuperSamus

SuperSamus commented Nov 3, 2022 •

Copy link
Copy Markdown
Contributor

Since this PR was split into many others (which have been merged), shouldn't the issues that have been fixed be closed?
Other than the ones in the main post, I found:

Surely: #25444, #73445, #136352.

Probably (didn't test): #126389, #150319, #76516.

(Also, this can probably be closed too #63837)

@Atemu

Atemu commented Nov 3, 2022

Copy link
Copy Markdown
Member

@SuperSamus feel free to ping the issues and let the people test whether it's fixed or not.

@SuperSamus

SuperSamus commented Nov 3, 2022 •

Copy link
Copy Markdown
Contributor

Someone already did with #73445, and I already did with #136352, the issues are still open. These are not the first issues I've seen that haven't been closed by the opener after being pinged, and I'm not optimistic that pinging the others will yield different results.
So, if someone with issue closing permissions won't close them, no one will.

EDIT: I pinged these issues.

@Atemu

Atemu commented Nov 3, 2022

Copy link
Copy Markdown
Member

@SuperSamus oh, you're not a maintainer yet? I don't know what the process is to get into the team nowadays but you're more than qualified I think.

Still, I'd prefer someone to actually try to reproduce the bug or ping and wait a week or so before closing issues.

@vcunat

vcunat commented Nov 3, 2022

Copy link
Copy Markdown
Member

The process is NixOS/nixpkgs-committers#60

@Atemu

Atemu commented Nov 3, 2022

Copy link
Copy Markdown
Member

@vcunat that's for the commit access. I meant the maintainer team which is permitted to close issues.

@vcunat

vcunat commented Nov 3, 2022

Copy link
Copy Markdown
Member

@SuperSamus

Copy link
Copy Markdown
Contributor

So, 10 days have passed.
#126389 and #150319 haven't answered.
#76516 had two answers, one "works for me" and one (in NixOS stable) "doesn't work for me".
What should be done about them?

Also, #25444 #161136 #157614 #140543 #135298 #83603 #73191 can surely be closed by now. (And maybe #63837.)

@Atemu

Atemu commented Nov 13, 2022

Copy link
Copy Markdown
Member

@SuperSamus I've taken care of the issues.

FYI, such "meta issues" (issues about issues) are very helpful for cleanup. I suggest you open a new issue about it in the future (a PR isn't really the right place for this) or get yourself into the maintainers team so that you can do it yourself.

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/overriding-steam-runtime/23683/4

@stale stale Bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 18, 2023
@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/where-did-you-get-stuck-in-the-nix-ecosystem-tell-me-your-story/31415/6

@stale stale Bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 8, 2023
@wegank wegank added 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 2.status: merge conflict This PR has merge conflicts with the target branch labels Mar 19, 2024
@stale stale Bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 20, 2024
@nyabinary

Copy link
Copy Markdown
Contributor

Is this still needed?

@jonringer

Copy link
Copy Markdown
Contributor Author

Probably not, most of the higher value fixes were separated into separate PRs and merged years ago.

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

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: steam Steam game store/launcher (store.steampowered.com) 8.has: changelog This PR adds or changes release notes 8.has: clean-up This PR removes packages or removes other cruft 8.has: documentation This PR adds or changes documentation 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Steam not loading Nvidia Vulkan libs