this post was submitted on 03 Sep 2023
40 points (97.6% liked)

Linux

48090 readers
792 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I just put together my first dedicated Linux machine. Running Pop!_OS, and I've got a problem with Steam. I've tried installing it from the Pop Shop (i love that name), both the .deb and flatpak versions as well as sudo apt install steam. In both cases, when I open the app it will just blink at me. Like the window is trying to maximize but then minimizes before it can get that far. I made sure that all my drivers look good and was just playing Starfield, so I know it's at least somewhat functional. What's weird is that it launched once for me. Long enough to get signed in. But after a reboot, it will not open unless I type steam --reset from terminal. Then it opens just fine and acts like nothing happened. Of course if I close that terminal window, Steam closes. And if I don't do a reset, it will go right back to flashing at me again.

I've also noticed that games show "Cloud Status: Unable to sync" in the app. The following games are installed currently:

  • The Outer Worlds: Spacer's Choice Edition
  • Warhammer 40,000: Boltgun
  • Starfield Premium edition All of these games show the cloud sync error. But when I checked the first two, the game save I had from my steam deck worked fine. But it still shows the error.

I tried opting into Beta to see if that might have some bleeding edge fix, nope. I'm still new to Linux and I'll admit I'm not even sure where to look for Steam errors specifically to give more details.

Hardware (in case it helps):

  • AMD Ryzen 5 7600X
  • 32GB G.Skill Flare
  • Gigabyte B650i Aurous ITX
  • WD Black 1TB boot drive
  • Samsung Evo Plus 2TB storage
  • Cooler Master 850w gold SFX PSU
  • XFX 6700XT 12GB

Any ideas on what I can try? Or where I can find logs to better understand? I asked in the Linux Gaming sub....lemmy? at least about the cloud sync, but got no traction.

top 24 comments
sorted by: hot top controversial new old
[–] [email protected] 18 points 1 year ago* (last edited 1 year ago) (3 children)

This is an issue/bug with steam trying to open with the dGPU. In the steam.desktop file, change the PrefersDedicatedGPU (might not be exactly worded like this) parameter from true to false. Though after using this, you might have to use the DRI_PRIME=1 with your games to make them use the dGPU

Edit : credit for this goes to a kind gentleman who helped with the issue 2 months ago when the new steam UI dropped.

[–] [email protected] 5 points 1 year ago (1 children)

Yeah this is the reason most probably. After the UI update I had the exact same problem. After 2 days of search for solution I finally found it. When it tries to open with discrete GPU it just blinks and doesn't open. I can only open it with integrated GPU. And you definitely have to use DRI_PRIME=1 argument for every game to open them with dGPU. It is kinda annoying but it's only solution for now until Valve updates it.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

And you definitely have to use DRI_PRIME=1 argument for every game to open them with dGPU.

In my case, I am on a amd+amd laptop and I don't have to use the DRI_PRIME=1 argument to make the game use the dGPU. It just automatically uses the dGPU but I have seen others mention that they needed to use the argument.

[–] [email protected] 2 points 1 year ago (1 children)

I'll have to try it without the argument to see. Do you mean you have an AMD single chip CPU/GPU? Like the APUs?

[–] [email protected] 2 points 1 year ago

He means that his laptop has a dedicated GPU from AMD and his CPU with iGPU is also made by AMD

[–] [email protected] 4 points 1 year ago

I had no idea. I even poked around their Github page and didn't see anything mentioned that sounded like this. Hopefully they get a fix released at some point. Thanks for the heads up!

[–] [email protected] 1 points 1 year ago (1 children)

These are the two options in steam.desktop that I see. I've tried setting both, one at a time, and then both simulanteously. Rebooting in between each change. I still can only get it to launch once to sign in and then it just sits in the task tray with no response from any of the menu items other than exit. Am I adjusting the right file? It was the only one that came up in a system-wide search.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago) (2 children)

The line you are changing is the right one. Change the PrefersNonDefaultGPU option from true to false

https://lemmy.one/post/151466. Refer to this for the location of the file. This is for the native .deb package

[–] [email protected] 1 points 1 year ago (1 children)

Well this is frustrating.... I changed it as referenced in your other thread and it still will not work. Since this is a new computer, it was no big loss to format the drive and start with a fresh install. But this time I installed EndeavorOS, since it's not Ubuntu-based like Pop. Then installed Steam and opened it to login. Then closed it, reopened, repeatedly to see if I could replicate the issue. Nope. It works fine on EndeavorOS. Nothing against that OS in general, but Pop is a much better fit for me. So I formatted the drive once again and did a fresh install of Pop instead. I then installed the .deb package from Pop Shop and before even launching the app for the first time I edited steam.desktop and switched PrefersDedicateGPU to false. It won't launch at all now. Before it would launch once to let me login and I could even install and play games. But once I closed the app it was right back to the flashy business. Looks like I'll need to try to get some help from Valve and/or System76 on this one. So strange!

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Maybe you can try logging in before changing the file. Then quit steam, change the file and restart your ~~steam~~ system and then try to open steam. This was the exact process I followed and it worked.

Edit : the change to the .desktop file is not applied until you reboot your system.

[–] [email protected] 2 points 1 year ago (1 children)

No luck. I uninstalled it via Pop Shop first, but it was still holding onto my login. So I removed it via terminal:

sudo apt remove steam

sudo apt purge steam

sudo apt autoremove

rm -rf ~/.steam

rm -rf ~/.local/share/Steam

At this point I conffirmed the steam.desktop was removed

sudo apt clean

I was able to open it to logon page and sign in. But it immediately began the flash dance. steam via Terminal does work to open it, but of course if you kill that session the app closes as well.

[–] [email protected] 2 points 1 year ago (1 children)

I have edited the comment above. I had made an error while typing. Please check if that changes anything

[–] [email protected] 2 points 1 year ago

Hmm, it works now. But I swear I rebooted multiple times! Oh well, I'm just happy it works now. Thanks for being patient with a newb!

[–] [email protected] 1 points 1 year ago

Great, thank you!

[–] [email protected] 7 points 1 year ago (1 children)

I would recommend using the flatpak version of steam and seeing if that works before heading any further.

[–] [email protected] 6 points 1 year ago (1 children)

Well, I was cautiously optimistic. I removed the .deb version and installed the flatpak version. I was able to launch it and sign in. I was about to try installing a game when I remembered I hadn't turned on Proton and all that mess, which requires steam to restart. Now instead of just flashing at me I get the Steam "waiting for network" screen, then the icon appears in the task bar (idk if that's what it's called in Linux, but in Pop, this is the top right corner where volume, network, etc is). But the favorited icon in the dock doesn't show the little dot under it like normal open apps would show. If I click on the task bar item, I get the menu, but it's all unresponsive other than Exit.

I forgot to mention in my original post but this issue persisted through a reimage of the boot drive. That's not why I reimaged, but pretty alarming that it would stick around through a full reinstall of the OS.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Are you sure that Steam is uninstalled completely from your filesystem. Steam creates a ".steam" user directory and leftover data in the directory may be conflicting with the flatpak. Delete it if it exists and then try restarting your computer. The flatpak version of steam sandboxes the .steam directory.


As always, Steam is proprietary software and doesn't bother to follow freedesktop standards. The support I can give can only go so far. GOG is always a better solution as it can be used with a libre client like Heroic Games Launcher or Lutris without DRM or invasive anti features. You do not need Steam to leverage Valve's contributions with Proton and Vulkan.

[–] [email protected] 4 points 1 year ago

I suppose I can't answer that with any confidence. I will look closer at it and try again. Good to know about the other game launchers.

[–] [email protected] 7 points 1 year ago (1 children)

Not sure how to help with this but as a temporary workaround you can append an "&" after the command to make it run even after the terminal is closed. Should look like steam --restart &.

[–] [email protected] 3 points 1 year ago

Oh, right you are. I'll have to do that until I can figure it out. So weird.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Try closing steam entirely before closing the terminal.

[–] [email protected] 2 points 1 year ago (1 children)

Just tried and it's the same thing. I don't know why I didn't think about Linux being any different when it was "closed" vs actually closed.

[–] [email protected] 2 points 1 year ago (1 children)

Is it still in your system tray when you close steam though? Mine doesn't like to fully exit that way. If so then it isn't exiting cleanly, you could have bad data getting read the next time you open it.

[–] [email protected] 4 points 1 year ago

Yeah, it was, but I clicked on it and Exited. Weirdly it seems really slow to reply to that exit command but it does eventually close.