18
Run Steam from console? (programming.dev)
submitted 1 day ago* (last edited 1 day ago) by emotional_soup_88@programming.dev to c/linux@lemmy.ml

I finally separated some overkill hardware from my server rig (an RTX 3080 and a Ryzen 5800X3D) and put them in their own chassi. Installed Arch, again, of course. The server got a "new" Ryzen 5700G , which apparently is a repurposed laptop APU.

A few years ago, I used to fire up my desktop environment (dwm on X11) and launch Steam from a pseudo terminal.

On my reborn gaming PC, could I skip installing a desktop environment and still play games on Steam? Will it run directly from the console like - for instance - mpv does?

The purpose would be to minimize any overhead from dwm and X11. Which sounds ridiculous now that I "say" it out loud, because it's negligible, but still. My question still stands.

top 15 comments
sorted by: hot top controversial new old
[-] IrritableOcelot@beehaw.org 12 points 1 day ago* (last edited 1 day ago)

You can't run steam with no compositor whatsoever, but you can use the steam deck's solution of using their gamescope micro compositor for everything. You should be able to install gamescope and just run gamescope -e {other CLI options} steam (assuming you're using the native Arch package and not the flatpak).

My experience using gamescope for steam has been very mixed, but I've seen a tutorial somewhere on doing exactly this.

Gamescope isn't necessarily the best option for every game, and having a normal compositor (which, for now, must support XWayland) is just a much more flexible solution.

This may also be possible with something more general like xwayland-satellite, but frankly steam and all its games still run on the X11 protocol, so if you really don't need a GUI you might be able to install a vanilla X11 instance and hook to that directly. I can't speak to either of those options directly.

But is this worth it, in a practical sense? No. You have a reasonably powerful system, and the only performance you'd be saving is a few percent of a single core on the CPU, which in your config is absolutely not worth it.

Thanks for the input! As the post says, I don't actually have performance issues. It was more of a "is it technically possible?" type of post.

Interesting about the gamescope solution!

[-] IrritableOcelot@beehaw.org 2 points 1 day ago

Ahhh got it. I thought it was a "I know this is inadvisable, but dammit I'm going to do it anyways" type of post :)

[-] folekaule@lemmy.world 6 points 1 day ago

Back in the olden days we used to run games buikt with SDL on the console without a desktop. But they have to be built for it and Steam doesn't fit that bill.

[-] folekaule@lemmy.world 2 points 21 hours ago

Unfortunately I don't think the latest SDL works with the Linux console frame buffer anymore, but thanks for the links!

[-] juipeltje@lemmy.world 2 points 1 day ago

If you mean running a game directly without any display server of whatever running, i don't think that's possible, but the closest thing to that might be gamescope i think? Gamescope should be able to run directly as a graphical session instead of it being nested inside an X server/wayland compositor, but gamescope still runs on wayland regardless.

[-] utopiah@lemmy.ml 2 points 1 day ago

FWIW the SteamDeck running official SteamOS does have a full desktop environment, it's just hidden by starting Steam in Big Picture mode.

So... you could benchmark the "gain" but I doubt it's significant, if any.

Also if you do like to play with hardware for gaming across networks checking Selkies or Moonlight to stream from your machine to your machine, no intermediary, little latency or overhead.

[-] nous@programming.dev 2 points 1 day ago

I am not sure that is fully true. Or at least not fully explained. The Steamdeck has a full KDE environment installed and it uses this when in desktop mode. But steam is not running in big picture mode in front of this.

KDE is not running at all when in the game mode of the Steamdeck. In that mode it uses a compositor written by valve called gamescope. Switching between these is effectively logging out and back in again to switch the compositor.

Also it now has a way to run the desktop as a nested session in game mode but that is winning kwin inside gamescope.

[-] utopiah@lemmy.ml 1 points 22 hours ago

I haven't tested this myself but I assume one could benchmark both and see if there is noticeable performance loss.

Thanks for the advice on gaming over networks! :)

Yeah, I also don't think there is any noticeable gain to be had here.

[-] KindaABigDyl@programming.dev 4 points 1 day ago* (last edited 1 day ago)

You still need X11 or Wayland somehow. I would suggest something that can run in "kiosk" mode. That's essentially what you want - boot a single app and run that.

If you don't care about wayland, just install xorg-xinit (since you said Arch) and put this in ~/.xinitrc: exec steam -bigpicture

Run startx to launch it on its own. There may be other dependencies you need for steam or for games, but you don't need a whole DE.

If you want, you can even enable auto-login and then set up auto-start by adding this to your ~/.bashrc (or whatever shell you use):

if [[ -z $DISPLAY ]]; then
  startx
fi

Very interesting! God I love the customizability and playfulness of Linux :)

Thanks for all the advice!

[-] nous@programming.dev 4 points 1 day ago

You cannot eliminate X11/wayland overhead. You need a display manager of some sort. I suspect most games/proton will require X11 or at least xwayland and a wayland compositor. You probably do want to use a window manager of some sort as well or you do lose out on a lot of controls like window placement and sizing. Some games might do weird things if they dont directly launch in full screen mode. And steam itself would probably want to be run in big picture mode to make it go full screen. If you want something designed for gaming then you might try gamescope which is what the steamdeck uses as its window manager in the game mode.

There are probably other areas with a higher impact that you can optimize more before really worrying about a lack of window manager though.

Thanks for the input on screen sizing! I've never really had any performance issues with my setup, except for some weird stutter issues not hardware related:

https://steamcommunity.com/sharedfiles/filedetails/?id=3393460710

this post was submitted on 24 Mar 2026
18 points (95.0% liked)

Linux

63789 readers
697 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 6 years ago
MODERATORS