Some Bits: Nelson's log

13 posts in May 2026

Getting a no-DRM epub from Kobo

I bought a book from Kobo. It’s from 130 years ago, long out of copyright, none-the-less Kobo added some DRM to it. Here’s how I fixed it.

  • Buy the book on Kobo
  • Go to My Books. Click the three dots next to the book, choose “Download”.
  • Joke’s on you! Instead of downloading the book you get a 1.3KiB file named “URLLink.acsm”. This is really just a pointer to a copy of the book hosted by Adobe Digital Editions.
  • There are various ways to download the actual book. I used the Calibre ACSM Input Plugin to download it. Note this requires you log in to your Adobe ID or generate a temporary credential. Also note you have to install the plugin and restart Calibre before importing the ACSM file.
  • Joke’s on you! There’s now a ~2MB epub file but Calibre and nothing else can read it. It’s copy protected. Go ahead and delete the entry from Calibre.
  • Install the DeDRM tools plugin for Calibre. This one you have to download as a file. Restart Calibre.
  • Drag the ACSM file into Calibre again. It will download the epub, fix it, and store an unprotected version of the epub in your library. You can also export it and get a readable file.

Note for most books you can save yourself a lot of trouble by just downloading the book from an unlicensed source. They won’t play any jokes on you, either.

Streaming Linux audio to a Sonos S1

My new Linux desktop has a neat trick: I can route the sound I’m hearing to my Sonos S1 speakers. It’s always annoyed me I couldn’t do that easily before.

The magic plumbing is PulseAudio, the Linux subsystem that handles media streams. (Or actually PipeWire, the replacement.) Basically it lets you pipe music (and video) around from program to program.

There’s a third party Sonos controller app for Linux called Noson. It has the ability to tell the Sonos unit to play audio from a network stream. It will then create a network stream for you that is listening to PulseAudio on your Linux box.

Once this is going the Sonos shows it is playing a track named “pulse.flac?acr=hostname:1400”. I don’t think hostname has to actually resolve for it to work.

The other trick is to get the audio going out to PulseAudio. For me the source I want to play is Plexamp. By default Plexamp is playing out my speakers. I used pavucontrol to re-route it, choosing “noson” instead of my usual sound card / speakers for the output. I think I could also have just set this in Plexamp: right now it’s being told to play to “System default” but I can choose where it goes inside the app.

The one downside to this setup is latency. Sonos wants to buffer a stream before playing it so anything I play is delayed about 10 seconds. Not awful but a little annoying.

I’m doing all this to get Plexamp to drive the speakers in my house. Plexamp is really cool, working off my music library and doing all sorts of advanced DJ and mood / genre matching tricks.

(As with anything these days, I figured all this out thanks to AI. Here’s a link to the conversation.)

Pipewire

Need to learn more about this! Here’s what qpwgraph shows me, you can also edit this like patch bays. coppwr is another tool that shows a similar view with more low level detail

USB ports on my new computer setup

USB ports are so complicated now! So many different speeds and capabilities. I got a new computer for a Linux desktop. A Beelink SER8 and a fancy ProArt PC32QC monitor. Then I tested all the USB ports to see what they did.

The test I did was plugging a Crucial SSD into each port with a good cable. The SSD maxes out at 10 Gbps, and I observed speeds of 10 Gbps, 5 Gbps, and 480 Mbps on various ports.

Note: the monitor is plugged in with a USB-C cable between the monitor’s Thunderbolt upstream port to the Beelink’s USB4 40Gbps port in the back.

Beelink SER8 ports

There’s some good photos and info on the Beelink SER8 ports here.

Observed drive speeds:

  • Front A: 10 Gbps
  • Front C: 10 Gbps
  • Back A, top left: 10 Gbps
  • Back A, bottom left: 480 Mbps
  • Back A, bottom right: 480 Mbps
  • Back C: ???
    This is a USB-4 40 Gbps port, I’m using it to carry video and data to my monitor.

Bottom line here: the front ports are good. That back USB-C port is special. The back bottom ports are for low speed crap.

ProArt PA32QC ports

Observed drive speeds:

  • 6 Back USB-C (left): 10 Gbps
    This is actually a Thunderbolt daisy chaining port
  • 6 Back USB-C (right): ???
    This is a Thunderbolt port that goes to your computer. It’s carrying both video and data for me.
  • 7 Back USB-C (right). nothing
    This is an “upstream port”, hard drive does not work. I believe this is the port you connect to your computer if you’re not using the Thunderbolt at port 6.
  • 9 Back A: 5 Gbps
  • 9 Bottom A: 5 Gbps
  • 10 Bottom C: 5 Gbps

This is confusing! The two ports on the bottom of the monitor are utility ordinary USB ports. Shame they’re only 5 Gbps. The back ports are complicated because this monitor also functions as a KVM so needs to separate upstream and downstream.

I have another computer with a second ProArt monitor. That computer is plugged in from a USB 3.1 to to that back port 7 on the monitor the upstream port. That setup doesn’t work as well but I should test it again.

GV desktop (X570-Pro)

My ATX Linux desktop with an ASUS X570-Pro motherboard. The ports are all color coded and all seem to work as they should.

  • 2x USB-A black ports on front: 480M
  • 2x USB-A blue ports on front: 5G
  • 4x USB-A blue ports on back: 5G
  • 3x USB-A teal ports on back: 10G
  • 1x USB-C port on back: 10G

GV desktop monitor (ProArt)

I’ve got a ProART PA32QCV monitor plugged in to one of those 10G ports on the back of the computer. The hub in the monitor is only registering at 5G, not sure if that’s a cable problem or if it’s just a limitation of the monitor’s USB hub.

  • 6 Back USB-C (left): nothing
  • 6 Back USB-C (right): nothing
  • 7 Back USB-C (right). this is the port that has a USB cable going back to my desktop computer.
  • 9 Back A: 5 Gbps
  • 9 Bottom A: 5 Gbps
  • 10 Bottom C: 5 Gbps

The Apple keyboard I have plugged into 9 Back A has its own USB port on it, presumably for a mouse. A drive plugged into that works at 480M.

ProArt USB hub

Having done all this testing I now understand what the ProArt PA32QCV is doing with USB. And it’s all very sensible.

You have two choices for plugging the monitor in to your computer. Either a video cable (HDMI or DisplayPort) along with a USB 3 cable to port 7 on the back. Or else a USB 4 / Thunderbolt cable into port 6 (right) on the back carrying both video and data.

Either way, the ProArt gives you three ports for regular use: keyboard, mouse, speakers, drives. 9 Back A, 9 Bottom A, and 10 Bottom C. These all work at 5 Gbit.

The ProArt also has two unusual ports on the back in block 6. That’s really for the Thunderbolt subsystem: if you plug in the right side to your computer, then it’s daisy-chained to the left side and you can use it for a second monitor, or a peripheral, etc. It works at least up to 10G, wouldn’t surprise me if it does 40G. If you connect your monitor to the computer via video+USB both of these ports do nothing.

RII K22S keyboard bluetooth pairing

The trick is to hold down Fn+Shift for a few seconds until the light binks rapidly.

The Rii K22S keyboard is a nice little wireless keyboard. It’s well built and usable but I wouldn’t want to use it as my primary keyboard. Just perfect if you need an occasional couch keyboard or a backup for computer tinkering. I particularly like that it supports both Bluetooth and a proprietary 2.4GHz wireless dongle. (I don’t think it works via USB cable though, too bad.)

Anyway, the manual lies to you about Bluetooth pairing. It says

Press Fn+Shift, enter the Bluetooth pairing mode, the BT indicator flickers slowly. To pair with your device, open Bluetooth on the device, select RI721 BLE Keyboard and click on the connection.

The misinformation here is that flickering slowly is pairing mode. It’s not. You have to hold down Fn+Shift a few seconds and then the light will start flashing fast (twice a second?). Only then is it in pairing mode.

Rii makes a bunch of neat small wireless keyboards. I like the ultra-mini K06, about the size of a game controller. Not at all suitable for real typing but just perfect for a home theater PC where you need to press Win-Tab occasionally so the stupid game window comes into focus.

Proxmox container for a Tailscale exit node

I want to set up a Tailscale exit node for me on the server with a good home Internet connection. This is a sort of poor-man’s VPN, routing all traffic through my home ISP connection. It’s pretty easy but I ran into a problem with IP forwarding.

First I set up a tiny Alpine container and used the Tailscale community script to set up Tailscale on it. You can install Tailscale by hand but this script handles the extra config needed to give an unprivileged LXC access to the tunnel device.

Then I set up Tailscale in the container to advertise as an exit node. The key thing there is sysctl configurations to enable IP forwarding inside the container OS. Very important! You also have to tell tailscale to advertise itself as an exit node.

Once I did this it worked. At least, I think it did. But it stopped working, maybe after a reboot?

To fix it, I also enabled IP forwarding via sysctl on the Proxmox server itself. I’m not 100% sure this is required or even a good idea. But when I enabled it, the exit node started working again. I’m a little confused about this but I think it’s OK.

Death to Tailscale MagicDNS

It took several years but I finally disabled Tailscale MagicDNS. It just caused too many problems. It broke Proxmox containers. It broke private DNS on my Android phone. It broke all sorts of stuff. I don’t want tailscale to mess with DNS.

I’ve replaced it with tailscale-cloudflare-dnssync. This is a simple Python program that uses Tailscale and Cloudflare APIs to read your entire tailnet’s list of hostnames and create DNS records. There’s a zillion versions of this kind of script, including some that support other DNS services. This one works fine for me. I’ve set it up to run daily but since the Tailscape IP assignments are static, the DNS records aren’t going to change much.

I also set up my local resolver to search the subdomain I put all the tailnet hosts in. So I can use short hostnames like sfrouter instead of FQDNs like sfrouter.tailscale.example.com.

The downside of this new setup is now all my tailnet hostnames are out there in a public DNS list somewhere. They all point to private unroutable IP addresses, so there’s very little someone can do with that info. But now someone could figure out with some DNS queries that I have, say, a PiKVM and then try to attack it somehow. Then again I remember when AXFR was still a supported DNS query, and a very useful one at that! It just doesn’t seem that big a worry for me.

MagicDNS was always a kludge. Tailscale would basically try to intercept your system’s DNS resolvers and insert its own at 100.100.100.100. Its primary feature I used was to serve address records for hostname.your-tailnet.ts.net. (These aren’t real DNS records, they were only visible to you from their special nameserver). Over time it has grown a lot of other complex features, none of which I want. And it caused all sorts of problems. Good riddance.

As a bonus I think this will make it easier for me to get working SSL certificates for my tailscale names. There’s some way to do that with MagicDNS but I never figured it out.

Working with Ultra HDR JPGs

My Pixel phone takes nice HDR images and saves them as UltraHDR. (aka ISO 21496-1 or Adaptive HDR). These files look and act mostly like normal JPEGs but HDR-aware software can find a second raster image in there with a “gain map” which has extra brightness information for boosting the image into 10 bit HDR.

It’s a bit of a kludge but seems to work well in practice. Chrome and a lot of Android software works with them as true HDR images. Microsoft and Apple both support them, as do all the browsers. Any old software without UltraHDR falls back to an 8 bit SDR image: not great but better than nothing.

GUI HDR programs

I’d like to view and edit HDR images on my Linux desktop. I have a nice HDR monitor that is working! Unfortunately I can’t find a single mainstream Linux image viewer or editor that supports Ultra HDR JPGs. A little surprised at that. The only thing that will show them correctly is Chrome, you can drag a local file to it and it displays in HDR.

There are a couple of specialist viewers that sort of work. tev seems to handle the HDR data but I couldn’t easily get a display that looked right although fiddling with the tone mapping the image looked intact. HDRView displays the image great but I think is only rendering at 8 bits, just nicely tonemapped. Also it doesn’t scale the UI to my display so it’s unusable.

CLI HDR programs

Even worse, I can’t find a good command line program to work with UltraHDRs or even convert them intact to other HDR formats like AVIF or EXR. At least, nothing simple seems to work. I tried out a bunch of Gemini suggestions on a Pixel photo and didn’t get very far.

The winner is hdrify-cli, a pure Javascript node program. It is easy to install and use. I can convert the UltraHDR-JPG to a EXR file that when opened in Okulus looks... different than the source SDR. Like a badly tone mapped image, but maybe that’s Okulus’ display algorithm fault. If I convert it back to a JPEG and view it in Chrome it looks like the original, so actual round trip conversion! hdrify also supports writing 8 bit SDR files like WebPs, it seems to just extract the SDR from the source.

ImageMagick now has some HDR support but I can’t honestly tell how much. The build on my Nobara Linux system doesn’t include the support. I tried a precompiled build from the project but didn’t get much success with the converter. I got somewhere using this elaborate command, but the resulting tone mapping was too dark. Also this is way too complicated, why doesn’t convert foo.jpg foo.avif just work?

uhdr2avif seemed promising but the program just spun and ate 2 CPUs.

Google’s reference libultrahdr has a demo program but it’s more of a swiss army knife for working with UltraHDR images, not a simple converter.

A lot of these tools all seem very much aimed at experts who understand tone mapping curves and color spaces and gamuts. Not intended for civilian use.

File formats

Part of my confusion is what image format I should be using for HDR images.

UltraHDR JPG is what Google is giving me when I download my photos. It’s a kludgey format but has a lot of support, it seems OK.

AVIF seems like the “best” choice for a clean image format that happens to also do HDR. Unfortunately hdrify doesn’t support writing it.

EXR is a very low level HDR format that has some broad support. Main issue is there’s no lossy compression so files are huge.

JPEG-XL in theory should work but in practice is still a dead-on-arrival format.

HEIC/HEIF is what Apple has been doing but I don’t think much else supports it.

Wake on LAN

One fun thing about my new Linux desktop is that the computer is useful enough that I want to be able to access it remotely. I never cared with a Windows machine. I’ve got this machine set to go to sleep automatically but just set up Wake on LAN for the first time. Works like a charm.

The key piece of this is UpSnap. That’s a little Go program that provides a web server with a GUI for monitoring machines and sending Wake-on-LAN packets when you click a button. I installed it with a Proxmox community script and then put Tailscale on it so I can access the webapp remotely, like from my phone.

Beyond that was verifying my PC would actually Wake on LAN. There’s a BIOS setting to enable (although with that off it will still wake from sleep, just not full power off). There’s also a Linux feature you might have to enable in NetworkManager (it was already on for me). “Wake-on: g” is the important thing, the “g” means “wake on magic packet”

$ sudo nmcli connection modify "Wired connection 1" 802-3-ethernet.wake-on-lan magic
$ sudo ethtool enp5s0 | grep -i wake
        Supports Wake-on: pumbg
        Wake-on: g
      

Wake on LAN is a 30 year old technology! The core thing I’m using is that most ethernet hardware will wake up if it hears a magic packet sent to its MAC address, even if it’s otherwise mostly turned off. (Gemini says this uses under 1 watt) There’s a WiFi version too although I have to think that’s a lot more complicated given the need to maintain a radio link.

CoolerControl / quieting CPU fan

Awhile back I identified the fan that makes noise on my computer. It’s Fan 2, the Noctua CPU cooler. When it gets over about 55% (1000 RPM) I start to hear it. I just fixed it with a custom cooling curve, with help from Gemini. It was more annoying in Linux than in Windows. Not sure if Windows had some custom fan discipline or if Linux just had a way of spiking heat.

The result is at idle the cooler runs at about 30-35% speed, I can’t hear it, and the CPU hovers around 60°-70°C. Under heavy CPU load it gets to 80°C and 40% fan. I still can’t hear it!

I’m using CoolerControl to do this. It overrides the BIOS fan control. I’ve set a custom fan speed curve that’s slower than the BIOS. And then I added a smoothing function with a 3s delay to add a little hysteresis.

It seems a bit silly to have userspace software controlling this. Maybe I’ll figure out if I can make the BIOS do this for me. This CPU cooler is really quite good and lets me run the fan slower.

Update Nov 2026: CPU usage 3, BIOS

I got Claude Code to look deep at why CoolerControl keeps using so much CPU and it boils down to the kernel driver. Apparently it goes through the BIOS to read the numbers, which is slow. Also the driver has some caching but reloads things every 1.5 seconds for some reason, maybe just to work around bugs?

In any event I’ve now got the BIOS controlling the fan directly and it’s staying quiet even under load. The best thing is if the BIOS is wasting CPU time I won’t even know it.

Update Sep 2026: CPU usage 2

It’s taking about 3% of CPU.

ps -C coolercontrold -o %cpu=

Update August 2026: CPU usage

I noticed coolercontrold was using 5-10% of a single CPU. That seems like a lot! I spent some time with Claude trying to figure out why and what to do without it. To get dumb stuff out of the way: I’m polling once a second. I’m not using liquidctl.

First, a somewhat accurate measurement method for CPU time:
watch -n 1 ps -C coolercontrold -o pid,etime,time,cmd
This tells me the process has been running 90 seconds and has used 6 CPU seconds in that time.
systemctl show coolercontrold -p CPUUsageNSec will give you a more precise measurement but I didn’t want to deal with nanoseconds.

Second, what is the thing doing? strace helps here

sudo strace -c -p $(pgrep coolercontrold) -f
gives an overview of the system calls. Run this for a minute or so and Ctrl-C out of it to see the report. Here’s the big work.

% time     seconds  usecs/call     calls    errors syscall
------ ----------- ----------- --------- --------- ----------------
 39.93    3.246640       10274       316         1 futex
 39.82    3.237968        7100       456           epoll_wait
 20.05    1.630602        1811       900           read

sudo strace -f -e trace=openat -p $(pgrep coolercontrold) -T 2>&1 | head -50
Will show details on the last 50 openat() calls.

The big thing I learned doing this is for some reason the daemon is reopening a file once a second for every single sensor in my nct6798 fan controller. I helped this by disabling a bunch of sensors I don’t care about in the CoolerControl GUI. That brought down the CPU usage a little bit but not much. I’m still at about 6% CPU.

I can’t make any sense out of the futex calls at all. The AI’s guess is it’s using threads to monitor multiple sensors and we’re wasting a lot of time in thread synchronization. Could be true!

Temperature graph, including a stress period

Fan curve

Controls

Charging cheap devices with broken USB-C Charging

I have a tiny portable Bluetooth speaker (EWA A106) that I like but has an infuriating problem: I can’t charge it via its USB-C Charging port if I plug it into a USB-C charger with a C-to-C cable. I can only charge it by plugging into a USB-A charging port with an A-to-C cable or adapter. There’s a lot of cheap electronics that have this charging problem. They ship an A-to-C “charging cable” in the box and consider it good enough.

USB-C charging is complicated. Fancy devices use USB-PD and a protocol negotiation to charge. Even simple devices require 5.1k resistors on a couple of control pins: without them the USB-C chargers won’t know to charge. USB-A charging is much simpler. A-to-C cables work because USB-A chargers will just put out 5V without any signaling at all.

Another fix is a special C-to-C adapter that has the resistors. Amazon sells one named Hagibis 5.1k Resistor 5V/3A Charging Adapter. This Reddit teardown says it is reasonably well built. Adafruit sells another that’s not as nicely packaged.

It’s infuriating so many devices are being sold with these broken USB-C charging ports. The adapter is cheap enough but I really don’t want to have to carry it around!

Customizing my Nobara system

I’ve now set up KDE Plasma desktops under Fedora about 5 times. Here’s my notes on all the things I do. It’s a lot! What’s particularly annoying is there’s no easy way to capture all this config and just replay it all. The config files are too much of a mess.

Earliest setup

  • Switch to Breeze theme
  • Set wallpaper to solid #001830
  • Install Chrome from downloaded RPM.
  • Install 1Password from downloaded RPM.
  • Install tailscale
    curl -fsSL https://tailscale.com/install.sh | sh
  • Remove the Brave browser and disable its repository.
    sudo dnf remove brave-browser brave

Nobara Welcome App

First steps

  • Update my system. The installer will do this for you if you let it.
  • Install the Nobara codec package. It is very aggressive about launching this!
  • Open Driver Manager: I didn’t need to do anything

Optional Steps

  • Launch Steam. Then use ProtonPlus to Install Proton-GE

Recommended

  • Install Discord
  • Install Flatpak Bazaar
  • Uninstall OBS Studio, Kdenlive, and Blender 3D

Misc

Set up ssh agent stuff

Install RPMs

dnf history list is very helpful for reconstructing this list.

  • ghostty
  • joe
  • input-remapper
  • chezmoi
  • sunshine (beta)
    dnf copr enable lizardbyte/beta
    dnf install miniupnpc
    dnf install sunshine --repo=”copr:copr.fedorainfracloud.org:lizardbyte:beta”
  • syncthing
  • coolercontrol
  • adobe-source-sans-pro-fonts adobe-source-code-pro-fonts adobe-source-serif-pro-fonts google-roboto-fonts google-noto-sans-fonts jetbrains-mono-fonts fira-code-fonts

Install Flatpaks

flatpak history or flatpak list can help to reconstruct this.

Use Bazaar (installed above) to find things instead of Flatpost or Discover or whatever.

  • Slack
  • Mission Center. Consider hack to enable wattage info:
    sudo chmod a+r /sys/class/powercap/intel-rapl*/energy_uj
  • Gear Lever
  • Signal. Launch it and follow instructions about kwallet.
  • Plex. Had to install via command line.
  • Calibre
  • SyncThiny. Set up sync for ~/src

Install AppImages (in Gear Lever)

  • LM Studio
  • noson (for Sonos)

Customization

  • sudo systemctl enable --now sshd
  • chezmoi init nelson@sf.somebits.com:~/gitrepos/chezmoi
    chezmoi apply
  • Set up apps for favorites for launcher
  • Timeshift to do daily btrfs snapshots
  • Move system tray to left side, 146 pixels wide
  • Set date format to ddd MM/dd
  • Install KIM6 for image conversion in file manager
  • Set up an ssh-agent for the graphical environment. This is complicated and the linked AI answer is wrong in important ways.
  • Log in to every website, there is no way to copy login cookies to other machines.

Keyboard customizations

  • Fix the function keys
    echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple.conf
  • Use Input Remapper to override CapsLock to be F15. Make sure to apply it at boot!
  • Use Shortcuts to bind F15 to launch clipboard in web browser
  • Use Shortcuts to override F13 to take screenshots with Spectacle. (May not be necessary: F13 is in the same spot on my Apple Keyboard.)
  • Set up XCompose key under “Position of Compose Key”
  • Disable the Plasma virtual keyboard. It uses a lot of VRAM (a known bug).

Chez Moi: modernizing Linux config

I’ve used Linux since 1994 and Unix since 1989. I have some very old and crufty configurations I’ve hauled around over the years with some clunky script to set up a new machine. I’ve modernized it with help from Gemini.

Dotfile management

The key tool I used is chezmoi. It’s a nicer version of my clunky script. It feels a little like git, but customized for shell configs. For instance I run chezmod add ~/.bashrc and it makes a copy of my current bashrc to ~/.local/share/chezmoi. If I run chezmod apply it copies all the files from that chezmoi repository to live places. It’s a little goofy but it works and it has advanced features for templating, encrypting secrets, etc. Note you’re expected to use git yourself to keep versions of this chezmoi mirror of your config files.

Setting up chezmoi was a very manual process of deciding what config files I want and manually importing them. In the end I’ve got 31 config files. A bunch of ancient tty stuff from my old configs and some new KDE stuff from my new Linux desktop

Modern Linux file locations

XDG defines is the modern standard location for config files. The key thing is ~/.config, which in theory is where all config files belong. This has been predictably corrupted over the years. Chrome spams it with over 6000 files including a bunch of binary junk. But it’s still a pretty useful standard. ~/.config/lesskey for instance lets you configure the less pager. (And in a text format now, hooray!)

Auditing config files

It’s very confusing what all your config files are. xdg-ninja is a helpful tool. It looks in your home directory for standard config files for a bunch of programs and advises you ways you can modernize and move things to .config. Not a panacea but a helpful tool!

Modern bash shell

There’s some nice tools that make bash really nice to use.

starship is a lovely dynamic prompt framework that is very fast. The key thing I rely on is it showing me git repo status.

atuin turns your shell history into a giant database you can query. It’s very nice if you have the habit of building up complex commands interactively.

Modernizing configs

I had a surprising amount of fun showing Gemini my config files and asking it to advise me on how to update things. For instance it suggested I don’t need 25 year old Netscape environment variables anymore. And that there’s better / newer ways to do some things with modern tools. It was a fun interactive process for an hour or two sweeping off some of the cobwebs. Particularly impressive that I can ask it things like “what does mpage -a do?” and it remembers some 25 year old BSD utility I long since forgot.

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.