Qtile, Lazy Manufacturers, and a New Year's Query

by @thecrazygm • 2025-12-31 16:56

Hey everyone,

I was planning to drop a post today about my new Engine Watchdog script, but I’ll save that for 2026 (tomorrow). I got sidetracked fixing an annoyance in my daily driver: Qtile.

Still My Favorite WM

I run a multi-monitor setup, and I noticed Qtile was struggling to distinguish between my displays. After digging into the code, I found the culprit: lazy hardware manufacturers.

The Bug: "000000000000"

Qtile tries to be smart. It looks at the EDID information from your monitor to get a unique Serial Number. This is great because if you unplug your monitors and plug them back in, Qtile remembers which one is which.

The problem? Some manufacturers just hardcode the serial number to 000000000000 for every single unit.

When Qtile sees two monitors both claiming to be Serial #0, it assumes they are the same physical device, even if they are plugged into different ports and showing different things.

The Fix

I submitted a PR today that forces Qtile to sanitize these inputs.

  1. It strips whitespace from the serials (because some vendors pad them with spaces).
  2. It explicitly checks for the 000000000000 pattern.
  3. If it sees that garbage serial, it ignores it and falls back to identifying the monitor by its geometry (resolution and position) instead.

If you are a Python dev or just curious, you can check the diff here: PR #5743

A Question for You

Before I sign off for the year, I need a quick sanity check from my readers.

In my recent posts (like the MongoBleed one), I’ve been including a "Layman's Terms" section where I break down the tech using analogies.

  • Does this help you?
  • Or does it feel like I’m talking down to you?

I want this blog to be useful, not condescending. If you prefer I stick to the raw code and technicals, let me know in the comments.

Happy New Year! See you in 2026.

As always,
Michael Garcia a.k.a. TheCrazyGM

#dev #personal #archon #tribes #pimp #proofofbrain
▲ 153 💰 4.103 HBD