Some Bits: Nelson's log

12 posts about steam

Steam Machine first impressions

On an impulse I bought a Steam Machine, a 512GB unit with controller. It’s very good! I signed up to order Sep 4 and it arrived Oct 8.

I’ve been fooling around with Linux gaming for awhile now, including Bazzite on a mini-PC for my TV. I’ve been very impressed but Linux has some rough edges. Was curious if the commercial supported product would be better. It is!

The overall product experience is quite good. Nice packaging, it works right out of the box, it’s simple to set up (login is just a click in the mobile app). There was one hiccup (some tutorial messages suggesting keyboard controls I don’t have access to) but overall very solid.

Game behavior seems much nicer. HDR works out of the box, as does switching resolutions and changing windowed / fullscreen in various newer games. I’ve had a lot of trouble with that in my own Linux gaming setups. I think the Steam Machine is just committed to running everything in gamescope always? It seems to work. They’re using MangoHUD for a performance overlay with good defaults, too.

Big improvement: the system wakes from sleep when I press the Steam controller button. Trying to get this working with Linux and other controllers is a huge PITA, I’ve never managed it.

It has a giant fan on the back and seems to be very quiet.

I haven’t seen much bullshit about shader compiling / update downloads. Both Enshrouded and Borderlands 4 give my desktop Linux box fits with that, lots of rebuilds, hangs, downloads. Steam Machine just seemed to work. Enshrouded recompiled shaders once in-game, a couple minutes’ wait, but then it just works.

Borderlands 4 has also been tricky on Linux because the game has its own in-game updater. On my desktop system it ends with a DOS window open saying something about the update and expecting me to type exit or close it. That didn’t happen on the Steam Machine. I saw the window and then it closed it itself somehow.

In general performance on the Steam Machine is good. I’m not equipped to really evaluate so I can say it’s significantly better than the Radeon 680M mini-pc it replaces. And obviously not as good as the Nvidia 5060 on my desktop. The Steam Machine comes preconfigured to limit at 1080p. But lower spec games work fine at 1440p or 2160p. HDR 10 works everywhere. 120Hz, too! First time I’ve ever seen that and not sure I can tell the difference.

I don’t love the Steam Controller. I didn’t like the old Steam Link one either. Really I’m happy with a classic Xbox controller with one extra set of buttons to replace the awkward stick-click input. They’re trying to make a controller work as mouse with a touchpad and enough remappable buttons to substitute as a keyboard too. This thing has a crazy number of capacitive sensors (two touchpads, two touch sensors on the joysticks, two touch sensors on the back) and they don’t seem useful for much. The mouse mode is too jiggly. The extra paddle buttons on the back are awkwardly placed. I’ll note all this other stuff on the controller is turned off in most games by default, even games that would benefit from it. Steam has a nice controller mapper to add in extra buttons but it’s an awful lot of work to set it up.

All in all I’m excited about this machine. It’s a shame it came after the components parts shortage and is priced at $1100. Even $800 would be a stretch for the market, I think. The pricing is fair given current market conditions, I’m sure you can’t build something of similar quality for much cheaper. But it feels awfully expensive for a toy.

Linux desktop gaming: ways to run

I’m deep in the weeds of tinkering with how Steam launches games. In Linux you have a bunch of options. Here’s some experiments I did running Borderlands 4 (Unreal Engine 5) on a mini PC with an AMD Ryzen 7 PRO 8845HS and a Radeon 780M graphics chip, trying to run the game at 1080p on my 6016 x 3384 screen.

Note this machine is woefully underpowered to run this game well, I’m on full Low settings. And Borderlands 4 is considered poorly optimized. I’m mostly concerned about the different display options: resolutions, HDR, upscaling. Those choices should apply on better hardware too but there’s less need to squeeze out more pixels with clever choices.

In all cases I’m changing launch options by right clicking the game in Steam, choosing General / Launch Options, and then pasting in command strings.

I’m using GE-Proton11-1 as the compatibility tool. This is a very recent version.

A useful reference: Proton Variants. This documents all the various fiddly environment variables the different compatibility tools use.

First, two digressions on other options

Frame generation

I am not ever enabling “frame generation” (DLSS or FSR) in the game. This is a gimmick where the GPU will generate whole frames by time-interpolating other frames. But it doesn’t look very good and it adds latency and seems always bad to use.

Gamemoderun

A wildcard: you can preface any program you run with gamemoderun. That enables game mode, a set of Linux kernel tweaks that lowers latency. This seems entirely orthogonal to different display options and offers only a tiny improvement, at least on a quiet system. I mostly use it but will not worry about testing it separately, I just use it everywhere.

Simply running it directly

gamemoderun %command%.

Just launch the game directly without tweaks. This works pretty well in Borderlands and arguably is the best way to run the game. The game will try to run at full desktop resolution but Borderlands detects other resolutions and lets you apply them. You can pick your upscaling algorithm, I’m using AMD’s FSR. TSR looks better but is a little slower.

The one drawback with this is there’s no HDR.

Running it directly with HDR

PROTON_ENABLE_WAYLAND=1 PROTON_ENABLE_HDR=1 DXVK_HDR=1 ENABLE_HDR_WSI=1 gamemoderun %command%

This is a variant of simply running it: Borderlands will talk directly to the display compositor the desktop is using. However there’s a whole raft of flags there to enable HDR. Why three flags for HDR? I don’t know honestly, I’m copying what the AI tells me to do. It’s possible these aren’t all necessary, particularly with GE-Proton, but they are harmless if not used.

The other flag here is PROTON_ENABLE_WAYLAND=1. That’s arguably the most important one. Without it, Proton runs games under XWayland, so that Proton is using X11 graphics and the XWayland X server is translating those to Wayland. With that Proton uses a native Wayland driver. That’s better but I guess that native driver isn’t entirely stable yet, so it’s not the default.

Running with Gamescope

gamemoderun gamescope -W 2560 -H 1440 -f -F fsr -- %command%

Gamescope is an intermediate compositor that smooths over a bunch of issues with gaming on Linux. It basically creates a virtual display that the game draws too, then blits that image to the real display. It’s pretty low latency and has solved a lot of problems for me, particularly older games that don’t seem to understand the Linux display very well. It doesn’t seem necessary for Borderlands 4 but we’ll try it anyway. (One drawback: Gamescope breaks the Steam overlay. There’s an experimental flag to enable it again but it doesn’t seem to work.)

-f just tells gamescope itself to be fullscreen, not a window.

-W 2560 -H 1440 -F fsr tells gamescope to run its virtual display at 1440p and use FSR if needed to scale things. The game will think it is running on a 1440p monitor. Borderlands lets me choose my own resolution inside the game, and I choose 1080p. So now Borderlands is drawing at 1080p.

Borderlands is well behaved and lets me set the resolution. Another way to set the resolution is to add -w 1920 -h 1080 to the gamescope options. That tells gamescope to tell the game it’s a 1080p screen but to automatically upscale to 1440p itself. I’m acomplishing the same thing by using the Borderlands menu to pick 1080p.

An added complication here is Borderlands itself may do some spatial upscaling depending on the graphics settings. I’m a little fuzzy on this but an AI tells me on “Performance” mode it renders the game at 50% (540p). So there’s several scaling steps here.

  1. 540p: the actual game geometry rendering
  2. 540p → 1080p. Borderlands upscaling with FSR 3.0
  3. 1080p → 1440p. Gamescope upscaling with FSR 1.0
  4. 1440p → 3384p. Linux graphics (KDE’s compositor?) upscaling with a crummy linear filter.
  5. 3384p → monitor. Linux is handing a full 3384p signal so the monitor doesn’t need to use its hardware upscaler. In other circumstances the monitor might upscale.

Writing all this out, step 3 seems bogus and it’d be better to eliminate it. Have gamescope just work at the same resolution you want the game to work at. The flipside is the FSR 1.0 in step 3 is probably better than whatever upscaling is in steps 4 and 5, so it might still be preferable to do the extra work in gamescope.

The other option that seems appealing is to run gamescope -W 6016 -h 3384 and have it fully upscale things with FSR 1.0. I think that’s how gamescope is intended to be used. But that’s a lot of pixels and this little video card is kinda limited, so the AI is advising me 1440p is better. FWIW I tried it at 3384p and it seemed to run just the same as with gamescope at 1080p.

Gamescope with HDR

ENABLE_HDR_WSI=1 DXVK_HDR=1 gamemoderun gamescope -W 2560 -H 1440 -f -F fsr --hdr-enabled -- %command%

Gamescope by default doesn’t do HDR. You have to add these flags to enable HDR both in the game (the environment variables) and in gamescope (--hdr-enabled).

Putting it all together

For Borderlands, I don’t want to use gamescope. I mean I could, and maybe the FSR 1.0 upscaling is better than the linear upscaling the Linux desktop would do. But it doesn’t look much better and gamescope certainly adds complexity and a little latency.

Without Gamescope I get about 39 fps in one little test I ran with this command:

PROTON_ENABLE_WAYLAND=1 PROTON_ENABLE_HDR=1 DXVK_HDR=1 ENABLE_HDR_WSI=1 gamemoderun %command%

If I did want to use gamescope, I’d run it at 1080p like this. I tried this and it might look a tiny bit better and runs at 38 fps instead of 39.

ENABLE_HDR_WSI=1 DXVK_HDR=1 gamemoderun gamescope -w 1920 -h 1080 -W 1920 -H 1080 -f -r 60 --hdr-enabled -- %command%

Closing thoughts

Hilarious thing: all these various options don’t really look that different to me. It seems less blurry when I do the more “optimal” things. And maybe I get 10% more framerate depending on how I tweak it. But honestly with this particular heavy game and this particular underpowered hardware, it’s not a big thing.

Linux gaming is easy!

Seriously, all this tinkering is ridiculous. One nice thing about Bazzite is you can ignore most of it: if you use Game Mode, it just handles Gamescope in the background and stuff works. Desktop Steam should get there eventually, but this transition where options like native Wayland rendering don’t work reliably yet is awkward.

Linux remote game streaming

One thing I miss from my Windows machine was it was easy to stream games to my TV. I installed a Steam Link client on the Android TV and it connected to my Windows box running Steam. Game streaming works surprisingly well on a LAN.

Steam streaming from Linux server

In theory I should be able to do the exact same thing from Steam running on Linux. In practice I found it didn’t just work when I tried it. I should try again, particularly now that I understand better how to use gamescope and deck mode to make the Linux box run Steam games better.

Sunshine / Moonlight

The other option for remote streaming is the Sunshine server running on the Moonlight client. This is an open source evolution of NVidia’s game streaming systems. It’s well loved because it’s very low latency, like 3ms on a LAN.

I’ve made it work but it’s very unreliable. The Sunshine server on Linux is quite janky and the way it captures audio and video seems delicate. It does work sometimes! But not regularly for me. Also I have to remember to manually set my desktop to 1080p before launching Sunshine. I think the Sunshine server can do that too but again I had trouble making that work.

Headless?

What I really want is a headless system. Something where the game is running on a virtual / offscreen display and doesn’t affect my desktop at all. In practice this also seems very difficult, in particular to get the GPU to render with hardware acceleration.

One solution is a dummy HDMI plug that looks like a fake monitor. I bought one and plugged it in and it sort of works. But now I have a new display in my desktop and I couldn’t get KDE Plasma to not use it for anything, it kept causing problems.

A second solution is a virtual display with a spoofed virtual EDID pretending to be a monitor. Apparently you can hack Linux to do this. The result is similar to the dummy HDMI plug but without the stupid hardware dongle. I have not tried this.

A third solution is truly headless. Most solutions for this use the Sway compositor which has both good support for running headless and also a remote video capture system wlr-screencopy that Sunshine can work well with. This all sounds good but very complicated to set up and too bleeding edge for me. Some links on that:

Linux desktop gaming notes (Gamescope)

I’m finally understanding how Linux gaming works. Particularly the problem of setting display resolution and driver features. See also this CachyOS guide.

Compatibility tool

The most important Linux-specific thing is what Windows emulator Steam uses to launch your game. They call this a “compatibility tool”. I believe Proton 10 is the default these days. Valve ships other Proton versions: there’s Proton 11, Experimental, Hotfix. You can select which one Steam uses. Proton-GE is a popular third party one, by the same GloriousEggroll who puts together Nobara.

Gamescope and resolutions

The other tricky thing with Linux is the display resolution compatibility is not great. If I launch something from my normal Linux desktop most games are fixed to some bizarro resolution like 7400x4000. There’s also issues with X11 vs Wayland vs XWayland.

The solution to a lot of this is Gamescope, a graphics compositor Valve built for the SteamDeck. It makes it very easy to launch a game with a specific resolution independent of what the underlying hardware and drivers are doing. For instance you can easily launch games in 1920x1080@60 fps. They will run well and gamescope will make sure it looks good on your screen.

You can run games directly in Linux without gamescope, but the quality of that experience is highly variable. Gamescope simplifies things so that games run more reliably.

Also related: MangoHud, the overlay for monitoring FPS in games and other things. I find it annoying and intrusive but it is the preferred tool if you want to test how well a game is running. Steam also has its overlay but it can be unreliable in Linux.

Steamdeck game mode

Bazzite and Nobara both have a thing they call “deck mode”. You log in to a special SteamDeck-like session instead of a normal KDE desktop session that is for nothing but running Steam in Big Picture mode. Behind the scenes that game mode is a GUI wrapping several tools.

Games are run with gamemoderun which tweaks Linux to run an app for better game performance. It does things like change the CPU governor and kernel scheduler to make the game run smoothly. It seems to actually help.

Game mode also launches games under Gamescope. And it has a GUI built into Steam that lets you configure the resolution, etc that Gamescope presents. It’s quite nice!

ProtonPlus

ProtonPlus is a standalone GUI for downloading compatibility tools like Proton-GE. That’s its main use and is under the “Tools” tab.

But the “Games” tab has a very handy feature: a sane editor for Gamescope configurations. All this is doing is modifying Steam’s config files to set launch options; you can do the exact same thing by setting custom command lines with the Steam properties editor. But there you are typing command lines by hand, with Proton Plus you can edit them with a GUI. Just remember to exit Steam first so that it doesn’t clobber the configs that ProtonPlus sets.

I am using this all the time to enable HDR and to set a specific resolution I want the game to run at. It’s a kludge but gamescope works around some limitations of Linux gaming.

Note ProtonPlus doesn’t really help you use gamemoderun. There’s a way to enable it but no simple checkbox for it.

Other configs

gamescope for resolutions is the main thing I’ve used so far. There’s a variety of environment variables that are popular for further tweaking how things run, stuff like PROTON_ENABLE_WAYLAND=1 and PROTON_ENABLE_NVAPI=1. I don’t know much about them. ProtonPlus sets some of them if you enable Advanced mode.

Gaming on desktop

Putting it all together... the easy thing is to use the Steam Deck mode that Bazzite or Nobara offers. If all you’re doing is gaming on the computer, it’s a great choice. But me I’m mostly working on this thing and then occasionally playing a game. So I use ProtonPlus to configure Steam to launch games with the resolution and options I need.

Linux gaming and resolution scaling

Deep into tinkering with gaming on Linux using Bazzite 44. The problem I’m wrestling with is that fullscreen games are guessing a different resolution than they should. my screen is 6016x3384 natively but instead the game is trying to run at 6863x3860 or some other wrong value. This doesn’t happen for all games.

These tests are for the game Rhythm Storm, a fairly simple but graphically intense game. I’m playing on a ProArt display that’s 6016x3384 natively, with a NVidia 5060 and the 595.71 Linux open drivers installed. Bazzite is pretty much an all-Wayland system, with just a bit of X11 compatibility. I am running the display at 225% scaling. This Gemini chat is all the research I’ve done so far.

First, a useful tool: xrandr. That shows a set of resolution that X11 apps think are valid. On my system with 225% scaling it shows 6863x3860, the mode the game is picking. If I change scaling this number changes in some mathematically way I can’t quite understand. Anyway this must be what the Steam game is picking up.

One tool to fix this scaling problem is gamescope. That’s some sort of Steam graphics shim that sits between the game and the Linux display software. It can be told to enforce a specific resolution and you can impose it for a particular game by altering the Steam game launch options. That works! Unfortunately it also hides the Steam overlay. There’s supposed to be a -e or --steam option to work around that, but when I try that the game never launches at all.

I’ve been surprised at how well games work on Steam / Linux in general. Proton is a marvel! But this kind of problem is exactly the sort of infuriating bullshit that makes Linux seem unacceptable as a desktop OS. Right now I’m still cheerful about trying to figure problems like this out, so I’ll stick with it. Wonder how long that will last.

Remote game streaming

Some things I’ve learned about playing games by running them on a big computer and using my TV as a client. Basically this is an optimized form of desktop screen sharing.

The client TV is a 2160p Sony Bravia. That runs Android and seems the best of the smart TV platforms. The server running the games is a desktop gaming PC, I’ve tried both Bazzite Linux and Windows. Both devices are wired on the same LAN. (This stuff works on the Internet too and is surprisingly responsive.)

Steam Remote Play

Valve has had a remote gaming product for some 10 years. I still have working Steam Link client hardware! But these days it’s easier to run a Steam client on the TV.

It works pretty well but is surprisingly flaky. The biggest problem is resolution switching. Steam should change the desktop resolution to the TV’s resolution, or down to 1080p if I tell it to. That only works one time out of three so mostly I have to change the resolution on the PC myself. (The TV can display anything, but 3440x1440 looks terrible on a 2160p display.)

The other knock on Steam Remote Play is that it’s not very optimized. Folks report 20-40ms latency, or maybe 2 frames of a 60fps game. I haven’t really noticed that but I’m not super sensitive to it.

Sunshine / Moonlight

The alternative fancy gamers recommend is the Sunshine streaming game server and the Moonlight client. These have been around quite awhile, started as an open source reimplementation of the NVidia Game Shield protocol. The big advantage folks quote over Steam is latency: it delivers 4ms on my LAN, or well under one game frame.

The server works well on Windows. It seems reliable. It has some nice stuff about launching things when a client connects, like invoking Steam Big Picture. I’m still having to set the Windows desktop resolution manually although I think Sunshine can do that for me.

The server does not work for me on Bazzite Linux. It sort of does. But the NVidia drivers on my old 1080 card aren’t correctly detecting display modes so I’m stuck streaming 3440x1440.

Alternate resolutions

One dumb thing about all these solutions is that they’re displaying what’s on the PC’s screen, at the PC’s resolution. But basically I have a remote screen on the cliente TV: why should I care what’s plugged in on the server?

One solution is a dummy HDMI plug. This does the EDID handshake to make the computer thing you have a monitor plugged in so you can configure the OS to use it as a primary or secondary screen. These are particularly popular for headless machines: with no monitors plugged in some GPUs refuse to operate at all.

The dummy plug seemed to work as a second screen on Linux. But caused all sorts of problems. First, the desktop GUI wants to use that screen! But it’s invisible, so stuff gets placed there you can’t see. Second, I couldn’t reliably get all the gaming stuff to happen on that fake screen while leaving my desktop alone for normal stuff. The software is just not designed to do it.

I went down a rabbit hole of trying to fix the resolution-switching problems on Linux with my 1080. Total disaster. There’s some hack with kernel keyword arguments with display mode lines, yuck! There’s also a hack where you load fake EDID data from a file to trick the graphics card. I couldn’t make any of that work. Honestly why doesn’t the NVidia driver just detect the modes that are there?

The other solution is a virtual display. Basically have a device driver fake a viritual screen disconnected from actual hardware. This feels like the right solution and reminds me of the ancient X11 virtual desktop hacks. Ironically, virtual displays are reportedly unreliable to impossible on Linux.

On a Windows server folks recommend Apollo, a Sunshine fork, which has virtual displays as a headline feature. I’ve tried this server and it works, but I haven’t tried the virtual display feature yet.

Booting Windows 11 23H2 to Steam Big Picture

I want my new TV gaming PC to boot all the way in to Steam Big Picture with no keyboard required. This is remarkably difficult and all the docs you find are outdated because Win 11 23H2 changed some things. Microsoft really doesn’t want you do this. Partly for good reason (it removes local system security) and partly because they are trying to force you into their monopoly experience.

This worked for me:

1. Log in locally, not with Microsoft account

Settings > Accounts > Your info has a “Sign in with a local account instead”. Turn that on.

Documented here, at least until Microsoft hides the docs again. When I did this I got warned I needed to back up my Bitlocker encryption key first, I guess because ordinarily that’s stored in your Microsoft key. I just removed Bitlocker entirely instead.

2. Re-enable the “no password” UI option

Go in RegEdit to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device and set the value DevicePasswordLessBuildVersion to 0. (Mine was 2).

This is a new thing in 23H2, documented here. If you don’t, the next step won’t work.

3. Enable passwordless login

Run the program netplwiz. Uncheck the checkbox at the top for “Users must enter a user name and password to use this computer”.

Documented here. This doesn’t work in 23H2 if you don’t do step 2 to re-enable it. Why the stupid program name? It started life as the “Add Network Places Wizard”, terminology from Windows 95.

4. Get Steam to start at boot in Big Picture mode

Go to Steam Settings > Interface. Enable “Run Steam when my computer starts” and “Start Steam in Big Picture Mode”.

Documented here. The web has all sorts of complicated docs with registry edits, batch files, replacing the Windows shell, etc... None of that is necessary.

Windows gaming PC

On a whim I bought a MinisForum UM690 Pro (Venus), a small form factor PC to use for light gaming on my TV. It’s fairly beefy for a small box, AMD 6900HX processor, Radeon 680M graphics, 32G of RAM. All for $430 on Amazon. More than double what I paid for the N100 server I bought last year but this was the cheapest I could get for what I wanted. My metric here was something with a real GPU, not just integrated. Then I kept bumping up the price a bit to hit the sweet spot of price / performance / newness. I also picked a dual LAN model in case I want to repurpose it as a router.

Hardware

The hardware seems pretty good. My only complaint is that the fan comes on pretty quickly and is not as quiet as I’d like. It’s nothing terrible, not like the vacuum cleaners of old, but it’s definitely not silent. The BIOS makes it look like there’s two fans maybe?

The GPU is OK but not amazing, benchmarks and specs put it at ⅓rd of a Radeon 1080 or 2x a Steam Deck.

At full synthetic load the system pulls about 90W. CPU is at 80°, GPU is at 60°. Fan is noisy but not awful. During normal light use it’s about 30W and the fan is a very quiet hum. 60W playing DRG: Survivor, a light 3d game. Idle is 10W and full sleep mode is 1.5W. It’s not great thermal engineering but it seems to do the job.

Update: the fan is annoying, it seems to come on in short loud bursts instead of a slow steady growth, even under constant load. Unfortunately there’s apparently no way to read or control the fan speed in software. Over on Reddit there are folks complaining and talking about replacing the hardware’s fan with something connected to USB they can control. See here for instance.

I have a beloved Logitech K830 wireless keyboard/mouse that I’m using with it now. Curious about weirdo keyboards like this one: obviously no good for regular typing but enough for pressing a few buttons to log in or launch something. Update: I ordered a Fosmon Mini Bluetooth keyboard.

For games I’m using an old Xbox controller with the unobtainium USB dongle. The pairing is flaky and won’t wake the system from sleep. I gather Xbox controllers are still the best choice for PCs. 8BitDo also makes good controllers for cheaper, I’ve pre-ordered the Ultimate 2C. Note there’s a feeling you’d rather have proprietary wireless because Bluetooth has high variable latency.

Windows 11

Windows 11 sure does not spark joy. There’s so many upsells and manipulations from Microsoft I feel like I’m fighting a war. OFGB is a help with that. I was originally going to reinstall Windows because I wasn’t sure I trusted whatever MinisForum installed but it seems fine. No bloatware at all. It does come with a Windows 11 Home license so that’s a bit of a nuisance, I’d really like Pro so I had remote desktop access. I may yet buy a cheap license key to upgrade.

I had a brief moment of excitement when I flashed the BIOS and it rebooted demanding my BitLocker key. I guess the drive is encrypted? I had no idea what the key might be. Fortunately Microsoft has a thoughtful recovery system, the BIOS displayed a URL to visit and I found my key there in my Microsoft account. All this stuff requires networks and logins of course but these days I just accept that’s the thing.

MinisForum has a nice driver distribution in the support page. Nothing too exotic, mostly it’s just AMD drivers. The only problem I’ve fun into is nothing seems to be able to read the fan speed. Hardly a big deal.

Software

I’m resisting the urge to install too much on this machine. Keep telling myself it’s for games, not a real working machine.

Steam, of course, for games. Its Big Picture mode is really nice. I haven’t yet figured out how to get the computer to boot into this mode, it may not be possible since Windows really wants you to type some sort of login PIN or something when the computer starts. That also means I need to keep a keyboard around, ugh. (“Local only account” I think is the solution for the PIN but I haven’t tried it.) Update: I set up autologin, notes here.

Playnite is an interesting alternative cross-platform game launcher. I gave it a quick try and I think I’ll stick with Steam. Playnite is interesting if you are playing a lot of games from other sources. The UI is pretty databasey though and it lacks Steam’s great “show only controller games” filter. Also doesn’t seem to fully support controller itself although it does in full screen. I do like how it uses IGDB though.

I’ve also installed UltraVNC for remote access. It’s clumsy software but does seem to work. The remote access world has gotten real weird, there’s a zillion different products out there that all seem a bit sketchy. VNC is still alive and well, TightVNC is the other one that comes recommended. RustDesk also looked interesting to me for something new.

Update: RustDesk seems to perform much better over LAN. All of them have bugs, like you can’t reliably resize windows on the remote desktop. (Alt-Space > Size helps with this.)

I installed Controller Companion. It’s a $3 Steam app that lets you use a game controller as a keyboard and mouse replacement. The mouse is great but the on-screen keyboard is clumsy. But it does kind of work and seems useful. It’s nearly abandonware: the last real work was in 2017 and the last update at all was 2020. JoyXOff is a free alternative that had an update in the last year. Steam also can do this itself if you enable Steam Input in desktop (in the controller settings.)

I’m having problems swapping between a running game and other stuff. Big Picture is 2160p and the game is 1080p fullscreen and when I Alt-Tab out of the game, Big Picture is in a window covering the top ¼ only. I think it’s supposed to be full screen though, maybe I didn’t tab to it on top?

I had a maddening problem where games would only run at 1080p 30Hz with vsync turned on. Without vsync they’d run at 120fps, so it wasn’t the GPU not keeping up. Finally figured out Windows had for some reason decided to run the display adapter at 2160p 30Hz, despite all the cables and monitor working fine at 60Hz. Took awhile to figure out: the Very Fancy AMD Adrenaline software that claims to optimize everything never noticed. Neither did Windows, nor Steam.

8bitdo SN30 Pro controller vs Steam

I have an 8BitDo Sn30 Pro game controller, a nice little portable Bluetooth / USB game controller that works in various modes. I had some initial flakiness but now it’s working well. The best discussion I’ve found is this Steam forum thread; if you read past all the rude people flaming each other there’s some useful info.

Working with a USB wired connection is easy. Working with Bluetooth seems to work reliably for me, at least right now. But I had to remove and re-add the device in Windows Bluetooth settings at least once, for awhile it was acting flaky.

The first insight is that the 8bitdo controller works in several modes that you can switch between depending on how you turn it on / use it.

  • Start+Y: Nintendo Switch mode.
    Windows sees this as “Pro Controller”, Steam sees this as “Nintendo Switch Pro Controller”. It seems to work pretty well for PC games although Steam may have to remap some inputs for you because few PC games support this directly.
  • Start+B: “Android mode”, which I think is the older DirectInput API.
    Windows says “8Bitdo SN30 Pro”, Steam says “Bluetooth Wireless Controller”.
    Steam made me set up the button mappings, pressing each button in turn. All of them worked except the last share button.
  • Start+X: “Windows mode”, which I think is the newer XInput API.
    Windows says “8Bitdo SN30 Pro”, but gives it a different listing in the Bluetooth devices from the Android mode entry. Steam says “XInput Controller”. Works well but no share button.
  • Start+A: “macOS mode”.
    Windows calls it a “Wireless Controller”, Steam calls it a “PS4 Controller”. The buttons all seem to work as expected.

The second insight is that these modes look like completely different Bluetooth controller entries in Windows. It’s like you own four separate devices depending on which way you turn the controller on. You have to configure each one individually in Windows. (Or pick the one you want and stick with it). I think one time it got confused and that’s why removing the Bluetooth device and re-adding it helped.

I think XInput mode is probably the best choice for most PC games.

There’s a small Star button in lower left on the 8bitdo. This works as a regular button in Nintendo Switch mode. But in XInput mode (and DInput?) this is a Turbo button, if you hold it down with a different button it toggles that input rapidly. In that mode the button itself doesn’t seem visible to the PC. Not a big loss but it means you won’t have a Share button.

One extra quirk: I bought the Switch edition of the SN30 Pro which has Nintendo’s bizarro button layout painted on the controller. So the button at the bottom of the cross on the right says “B”, not “A”. Steam has you identify buttons more by position than the labels so it’s not too big a deal to adapt.

PS: a big raspberry to Sony whose PS5 controllers are prone to stick drift. I used Steam to see the numeric outputs from the device. The stick gives reading from -32767 to 32767 with ideally 0 when at rest, or at least close to 0. My stick regularly jumps between -20000 and 0 with no input at all. I can’t even set a deadzone easily, Steam’s max is 18000. (And mapping 2/3 of the range to 0 is not a great experience anyway.) This flaw is common among PS5 owners. They aren’t cheap at $70.

Steam Link tricks: keyboards, tablets

In this post: how to play PC games on your TV or tablet computer.

Steam Link is Valve’s half-abandoned technology for streaming PC games. The original product idea was you’d install PC games on your fancy gaming PC, then stream them to a cheap streaming video device on your TV so you could play on your couch. They got it working reasonably well at 1080p on a wired home LAN, but it never succeeded in the market and you can’t buy the hardware anymore.

For me the real problem was the Steam Controller which was not only a bad game controller, but also a really bad fit for PCs keyboard-and-mouse user interfaces. They did their best but it sucked.

But what if you don’t use the Steam Controller and use a regular keyboard and trackpad instead? Turns out that’s pretty easy, particularly with the excellent Logitech K830 wireless keyboard/trackpad. I’ve now been playing games like Dicey Dungeons and Crusader Kings 3 three different ways.

A long HDMI cable is by far the easiest way. Just set your TV up as a second display for your PC, no Steam Link required. Use the K830 as a second keyboard/mouse for the PC. Obviously only works if you’re in range to run the cable. HDMI 2.0 (required for 4k) only works to 35 feet or so; beyond that you need some sort of expensive fiber or ethernet conversion cable. Or wireless.

Steam Link hardware. You can’t buy this new anymore, but if you have one lying around or buy a cheap used one it still works perfectly well for 1080p display. You can plug the K830 wireless adapter into the Steam Link’s USB ports and control it from there. Works a lot better on wired LAN but wifi is possible. Resolution matching is a little fiddly but I’ve had good luck if I run my PC at 1920x1080 first, Steam Link will sync to that pretty well.

Steam Link on a tablet. Just tried this on my Samsung Galaxy Tab 5e and it’s pretty brilliant; there’s Steam Link clients for both iOS and Android. No easy wired LAN option but the WiFi seems pretty good other than some minor graphics and sound glitchiness. The mixed bag is the control; with no other hardware, Steam emulates a simple gamepad with touch controls. But it also emulates a mouse with touch controls which is all you need for playing a fully mouse-UI game like Dicey Dungeons. For more complex UIs like Crusader Kings 3 I’m back to keyboard-and-mouse. Pairing the K830 via bluetooth to the tablet works great, it becomes fully usable in the Steam Link Android client.

I’m amazed how well all this works. But in retrospect it’s pretty simple. The only drawback is that while the K830 is a nice portable keyboard/trackpad, it’s really not a gaming mouse. Not even a full size keyboard. Not great for faster games that require precise mouse input. One alternative is a Corsair lapboard with matching wireless keyboard and mouse of your choice. That gives you a full size desk-like setup, but be aware it’s pretty big.

Steam (MacOS sucks)

The Steam client on MacOS has always been terrible. I mean it’s badly designed as a product, but then also the implementation is terrible. Basically it’s 90% just showing a web page, but that’s always been slow and cranky and broken.

But today takes the cake. Because running Steam has brought my whole system to its knees. Beachball cursors, 10 second delay switching apps, 20 second delay to launch Console.app. Total trash. And as bad as Steam is, the real blame falls on MacOS for freezing because one app is badly behaved. I don’t see anything obviously wrong running top or activity monitor. Is the graphical shell single threaded or something? Steam wasn’t even doing much, just sitting there showing me a web page and downloading an update in the background.

To be fair, I think part of the problem was memory. When I killed Steam and relaunched it a bunch of memory freed up and things are better. So maybe that’s a Steam bug afterall. No Unix kernel schedules memory contention well.

 

 

Steam’s lousy throttling

Steam does a lousy job of bandwidth throttling. I had it set to limit downloads to 512kbytes/sec. (Why? Because despite using a fancy router with QoS control, QoS still sucks in 2014. Can’t stream video while downloading, derp). Here’s the graph of throughput from my router. X axis scale is 1 pixel = 2 seconds, max throughput is about 900 kbytes/sec. I turned off throttling halfway through.

Screen Shot 2014-03-02 at 8.35.12 AM

 

So looking at the first half of that graph, what Steam is actually doing is running at full capacity for about 10 seconds, then backing off to the requested 512 kbytes/sec for about 10 seconds, then averaging it out by going slow for 10 seconds. Back and forth. That’s just awesome.

I sure wish QoS worked on the modern Internet. The academic research I’m familiar with was all worried about solving the hard problem of fair congestion management through the whole Internet. I don’t care about that; I just want to manage QoS on one link, from my router to my ISP over the slow pipe.