<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://jayd.ml/feed.xml" rel="self" type="application/atom+xml" /><link href="https://jayd.ml/" rel="alternate" type="text/html" /><updated>2026-11-22T00:54:40+00:00</updated><id>https://jayd.ml/feed.xml</id><title type="html">Jayden’s Blog</title><subtitle>Jayden&apos;s Amazing Blog</subtitle><author><name>Jayden Milne</name><email>blog@jayd.ml</email></author><entry><title type="html">Porting Rockbox to an undocumented $9 Aliexpress ‘YP3’ MP3 Player with LLMs</title><link href="https://jayd.ml/2026/11/14/rockbox-on-yp3.html" rel="alternate" type="text/html" title="Porting Rockbox to an undocumented $9 Aliexpress ‘YP3’ MP3 Player with LLMs" /><published>2026-11-14T08:55:00+00:00</published><updated>2026-11-14T08:55:00+00:00</updated><id>https://jayd.ml/2026/11/14/rockbox-on-yp3</id><content type="html" xml:base="https://jayd.ml/2026/11/14/rockbox-on-yp3.html"><![CDATA[<p><a href="https://www.rockbox.org/">Rockbox</a> is a wonderful old custom firmware project for
a variety of MP3 players and iPods. Flashing rockbox to my <a href="https://en.wikipedia.org/wiki/Sansa_e200_series">Sansa E200</a>
was a seminal moment for me: computers were everywhere, and if they didn’t do
cool things, it was because no one had bothered to program them to do so. Looking
back, that played no small part in my choice of career.</p>

<p>It seems like in 2026 there aren’t any cheap MP3 players that Rockbox supports 
though. Reverse engineering an embedded platform like this is one of the hardest
things I can think of, and I had decided to pay the big bucks for one of those
delicious subsidized token plans to try and push it as hard as I could, and
I did have a dirt cheap $9 Aliexpress MP3 player lying around.</p>

<p>TL;DR: it ported Rockbox to a 512 KiB player, I was barely involved. 
Then, I had it build a re-usable toolkit/set of skills for future ports based on
what worked from the first attempt approach, and Claude was able to get Rockbox 
running on another MP3 player (TS47) in 4 hours.</p>

<iframe width="560" height="315" src="https://www.youtube.com/embed/4_XmC1UqO1U?si=zrLtwsddV3i1syp6" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen=""></iframe>

<p><strong>I made a quick website for the project: <a href="https://rockslop.jayd.ml">https://rockslop.jayd.ml</a></strong></p>

<p>Here is the porting toolkit: <a href="https://github.com/jaydens-tasty-slop/auto-rockbox">auto-rockbox</a></p>

<h2 id="enter-the-yp3">Enter: The YP3</h2>

<p><img alt="listing from aliexpress" src="/assets/posts/2026-11-14-rockbox-on-yp3/listing.png" /></p>

<p>This is an unbranded player, sold under a variety of fake consonant soup brands
on Amazon as well as Aliexpress. You can order them wholesale from Alibaba for
less than $7 or so each.</p>

<p>It calls itself a <code class="language-plaintext highlighter-rouge">yp3_2.0.43</code> in the “About” menu as. <a href="https://www.aliexpress.us/item/3256807764385286.html">This appears to be a listing for a YP3</a> - the original is gone. I paid $9.71 for mine, shipped.</p>

<blockquote>
  <p>NOTE: Before you run off and buy one, I have another rockbox port that is probably
a week or two out, it is booting and stable, just needs more acceptance testing.
This device is extremely similar but has 4 MiB PSRAM, so it has fewer compromises</p>

  <p><a href="https://www.tengsen.vip/pages/mp3-player-w1.html">This was $20 on sale</a></p>

  <p>I also have a stack of other random MP3 players I intend to repeat this with</p>

  <p>See the project website: <a href="https://rockslop.jayd.ml">https://rockslop.jayd.ml</a></p>
</blockquote>

<h3 id="special-thanks">Special thanks</h3>

<p>If anyone gets credit for this rockbox port, it’s <a href="https://github.com/ilyakurdyukov/smartlink_flash">ilyakurdyukov</a> - they figured out how to get it into ROM Download
mode (Down + USB), and wrote a utility to dump / write flash. Then I could be
a little slop kiddie and not have to use a soldering iron.</p>

<p>See <a href="https://rockslop.jayd.ml/players/yp3/">the YP3 page</a> on the project
website for more info.</p>

<h2 id="the-good">The good:</h2>

<ul>
  <li>It costs $9. If it breaks buy another one.</li>
  <li>USB-C and Blueooth!</li>
  <li>There is a physical reset button, device is easily recoverable</li>
  <li>Unbrickable (if you keep stock bootloader): holding down and resetting brings
you into a DFU USB download mode.</li>
  <li>Someone already figured out how to flash and interact with ROM DFU</li>
  <li>That ROM DFU mode lets you poke flash and RAM.</li>
</ul>

<h2 id="the-bad">The bad</h2>

<ul>
  <li><strong>SoC:</strong> Complete mystery meat Chinese “Smartlink SL6801” / Jointbees. Does
not exist online
    <ul>
      <li>2x Cortext-M4 r0p1 cpuID <code class="language-plaintext highlighter-rouge">0x410fc241</code></li>
      <li>192 MHz (stock does not vary CPU freq). Has an FPU</li>
      <li>Capable of Execute In Place (XIP) from flash, but no cache at all. Slow as dirt.</li>
      <li>When XIP-ing code, cpu1 always waits behind cpu0 and can stall indefinitely
if cpu0 is continuously fetching instructions from flash. Very easy to deadlock</li>
    </ul>
  </li>
  <li><strong>SRAM</strong> 512 KiB plus about ~30 KiB for packets for the bluetooth radio.</li>
  <li>2 MB Flash ROM</li>
  <li>128x160 full color LCD (RGB565)</li>
  <li>Only 5 buttons - a dpad with a center press (center press is power &amp; wired to 
PMU)</li>
  <li>Bluetooth (with an undocumented stack)</li>
</ul>

<p>It has 512KiB of SRAM, and the smallest existing Rockbox target was 2 MiB, I was
already scrolling Aliexpress for another one, but the LLM said “trust me bro I 
can make it happen” and I decided to try its luck.</p>

<h2 id="the-ugly">The ugly</h2>

<ul>
  <li>While the hardware is cheap but functional, stock OS is painful to use</li>
  <li>It regularly crashes and watchdogs when in USB transfer mode</li>
</ul>

<h1 id="where-the-port-ended-up">Where the port ended up</h1>

<p><img alt="frequency response" src="/assets/posts/2026-11-14-rockbox-on-yp3/booted.jpg" /></p>

<p>YP3 running Rockbox</p>

<p>After about a week it was booting a build of Rockbox on a crash diet - every
single buffer had been cut to the bone, but it could start and play audio. 
Tuning, bug fixing, etc took another month or so.</p>

<p>I am not aware of anything that isn’t working hardware wise.</p>

<p>The main feature you lose is concurrency while playing music and plugins. Codecs
and plugins are already loaded and swapped around at runtime with normal Rockbox,
but on this player there is one shared 128 KiB arena for both, so starting a 
plugin stops music playback.</p>

<h2 id="other-cuts-include">Other cuts include:</h2>

<ul>
  <li>No voice</li>
  <li>Only English is supported</li>
  <li><strong>DSP:</strong> No pitch/speed control, surround, crossfade</li>
  <li>Cuesheets</li>
  <li>album art</li>
  <li>Theme backdrop pictures</li>
  <li>No dircache, so folders are read straight from SD card
    <ul>
      <li>Large folders are truncated by default at 256 (configurable from 32 to 512)</li>
    </ul>
  </li>
  <li>Playlists are capped at 400</li>
  <li>Codecs: WMA Pro, Musepack (MPC), RealAudio (Cook), and the chiptune formats 
SID, NSF, VGM, KSS, HES, SGC, ASAP. WavPack (16-bit), (24-bit/96 kHz)</li>
</ul>

<h2 id="what-made-it-somehow">What made it, somehow:</h2>

<ul>
  <li>MP3 (up to 320 kbps), AAC/M4A (AAC+ too, HE-AAC v2 plays in mono),
WMA, Opus (up to ~192 kbps), Ogg Vorbis, FLAC (stereo, up to 24-bit/96 kHz), 
ALAC, WAV, AIFF, AU, TTA, APE, Speex, MOD, SPC, AY, GBS, A52/AC3, ATRAC3, 
Shorten, ADX, VOX, SMAF.</li>
  <li>
    <p>The database.</p>

    <p>The database has a new variant that is disk only and has synchronous, blocking
updates (ie the player shows a loading screen and stops music when it refreshes
and doesn’t refresh in background). I think it also cut the “songs by letter”
menu.</p>

    <p>The database requests memory for its menus at runtime, and depending on the
size of your theme it can refuse to open the menus.</p>
  </li>
  <li>Themes, without backgrounds. load and work, although heavy themes can cause the
database to stop opening (handled gracefully with a warning)</li>
  <li>
    <p>Bluetooth</p>

    <p>Overnight Claude reverse engineered the bluetooth stack and wrote a bluetooth 
HAL for Rockbox. I asked it before I went to bed and it was working in the
morning.</p>

    <p>No binary blobs are shipped: the bt stack is burned into chip ROM (not flash),
and the YP3 bluetooth driver calls into the stack.</p>
  </li>
</ul>

<h4 id="a-note-on-codecs">A note on codecs</h4>

<p>Most of the codecs run from SRAM as normal. MP3, AAC, WMA, Vorbis and Opus, 
however, wouldn’t fit in our arena nicely, so they run from flash.</p>

<p>But, our XIP flash is dirt slow, so lots of very careful profiling was done to 
move hot code loops back into SRAM. This kind of profiling had to be done
all over Rockbox to get hot loops into SRAM - font rendering, alpha blending,
scrolling, etc. This is where most of the “weeks of polishing” went.</p>

<h3 id="battery-life">Battery Life</h3>

<p>Largely comparable to stock. I hooked the player up to the PC’s line in or
fake bluetooth sink and set it to repeat Daft Punks <em>Random Access Memories</em>. A 
script on the PC detected when it cut out.</p>

<p><strong>Stock:</strong> 21.29 hours wired, 20.07 on Bluetooth</p>

<p><strong>Rockbox:</strong> 20.07 hours wired, 19.3 on Bluetooth</p>

<p>There was some variation in the battery voltage at start, and this was just
one run, so expect some variation.</p>

<p>Battery life is surprisingly impressive on this player,</p>

<h1 id="approach">Approach</h1>

<p>I’m one of those software guys, I can’t solder or find UART pads to save my life.
This was an entirely software only port; I haven’t ever opened mine up.</p>

<p>I hooked up ghidra-mcp and let it start pulling the firmware apart. It figured
out how to inject tasks into the running RTOS (FreeRTOS) in bootloader mode. 
This allowed it to probe the hardware and even write drivers before attempting a
Rockbox boot.</p>

<p>To be clear: this is <em>100% vibecoded</em>. I have only glanced at some of the code 
it wrote. I contributed my approach to development and testing, was the PM and 
QA person, and the agent’s little meat robot to reboot it when it crashed or 
wander around my house with headphones on while it tuned the bluetooth radio.
I haven’t doneC and firmware development for years.</p>

<h2 id="cleanroom">Cleanroom</h2>

<p>Initially I let the same agent do the reverse engineering as implementation.
Later I had it go through and rip out anything that wasn’t a hardware fact (ie
a register) and re-did the drivers with a cleanroom setup. One dirty agent with
Ghidra, one referee agent in between to make sure nothing leaks, and the implementation
agent. Subsequent ports used a variation of this setup from the beginning</p>

<p>The most work I have done personally on this project is writing this blog post.</p>

<h2 id="robotic-eyes-and-ears">Robotic eyes and ears</h2>

<p><img alt="eternally patient claude is always watching" src="/assets/posts/2026-11-14-rockbox-on-yp3/claude_is_watching.jpg" /></p>

<ul>
  <li>Webcam pointed at the screen, so the model could see what the player was
doing and to work on the LCD drivers.</li>
  <li>
    <p>Webcam mic for bringing up the speaker</p>

    <p>(had to yell at Claude when it decided to start playing tones at 2 AM)</p>
  </li>
  <li>
    <p>Headphone jack plugged into Line In on my PC (finally, I used it!!)</p>

    <p>This allowed it to test and tune audio output.</p>
  </li>
  <li>Bluetooth adapter. I plugged in a bluetooth adapter and gave it full reign
for testing. It used Google’s <a href="https://google.github.io/bumble/">Bumble</a> python
bluetooth stack to have the PC pretend to be headphones</li>
  <li>Claude kept picking “We Will Rock You” as a test track. I choose to believe this
is evidence of a subtle sense of humor when working on a Rockbox port</li>
</ul>

<h3 id="opus-55-sol">Opus 5.5 »»»&gt; Sol</h3>

<p>This port was started with Codex/Sol 5.6. It was making progress, but was incredibly
risk averse and slow. It took it 5 days or so and dozens of manual resets on my
part until it felt ready to flash something and boot it.</p>

<p>I should have told it how to figure out how to arm the watchdog and reboot into
download mode itself sooner. Codex got it to showing the rockbox logo with buggy
drivers stubbed out, but had clearly lost its mind in the meantime. I hadn’t 
been paying attention too closely, but as it had spun around it had:</p>

<ul>
  <li>Created 55 GB of files in 2,567 dirs. 3.87 million files total</li>
  <li>443 one off tool scripts, 384 documents written</li>
  <li>an incredibly paranoid flasher that would check each block as it was written 
and took 15 minutes to write 2 MiB
    <ul>
      <li>
        <p>This flashing script - and many other tool scripts - would check the sha256
of the <em>documentation files they depended on</em> to ensure nothing had changed.</p>

        <p>It’s kind of beautiful in its own insane way: this seems to be an attempt to
work around multiple agents and memory limits. Madness though</p>
      </li>
    </ul>
  </li>
  <li>An MCP server with tons of ceremony and tools around flashing things, running 
tests, etc</li>
</ul>

<p>Claude immediately threw that garbage away and wrote like a few python scripts
to use instead. Auto mode in claude code helped too.</p>

<p>The subsequent TS17 port went from me plugging it in to a usable alpha build
in about 4 hours with Opus 5.5 (there was little to re-use from the YP3 other 
than scripts and skills).</p>

<h3 id="bidirectional-rockbox-dev-shell">Bidirectional Rockbox Dev Shell</h3>

<p>This is one of the most valuable things it did. Rockbox has an existing one-way USB 
serial driver for logs. I had that extended to have dozens of little commands to
drive the player, everything from injecting keypresses to taking screenshots to 
debugging the bluetooth radio.</p>

<p>This was critical for completely hands off development - I had it build a torture
test suite in Python that would monkey-test the player for hours, pressing
buttons at random. Many bugs were found doing this - including some in Rockbox
upstream. At this point the player has hundreds of hours of bench testing under
Rockbox - I could just leave it running and Claude would patiently watch the
test logs for new failures to diagnose and fix.</p>

<p>An agent can reboot to recovery, flash firmware, reboot into Rockbox, run tests,
see what is on the screen, hear what it is doing, completely on its own. Most of
the development of this project happened while I was asleep.</p>

<h3 id="audio-tuning">Audio Tuning</h3>

<p>For audio (and battery endurance testing) Claude had me set up a 3.5 mm splitter 
with one end going into the PC’s Line In and the other going into real 
headphones to provide an actual load.</p>

<p>Then I had it build a test suite and file that plays a variety of sweeps and 
test tones. I used an Apple lightning adapter to use as the ground truth for this
setup, then used it to compare audio levels and frequency response.</p>

<p>My PC’s sound card is not high sensitivity equipment, but this is enough of a 
sanity check for me.</p>

<p><img alt="frequency response" src="/assets/posts/2026-11-14-rockbox-on-yp3/fr.png" /></p>

<details>
  <summary>
    <p>More charts that I don’t understand&lt;/summary&gt;
<img alt="Harmonic distortion vs fundemental frequency" src="/assets/posts/2026-11-14-rockbox-on-yp3/hd_freq.png" />
<img alt="total harmonic distortion vs level" src="/assets/posts/2026-11-14-rockbox-on-yp3/thdn_level.png" />
&lt;/details&gt;</p>

    <h3 id="the-hardest-parts">The Hardest Parts</h3>

    <p>There were two tricky things to work out that Claude struggled to fix. 
The exact power off sequence took quite a few tries, probably because it was the 
only thing I had to be there to test, it couldn’t just work on it for hours 
overnight.</p>

    <p>The other crazy bug was that the FM radio sounded terrible. You
could tune to a station, but the sound was distorted and clipped. Claude spent
forever trying to figure out why, but eventually I noticed that the frequency
it was tuned to did not match the station identifier over the air.</p>

    <p>It turns out the tuner had been set up with a slightly wrong clock source, so it
was ~4 MhZ off. It just so happened to work out that when I tuned it to my test
station, it could kind of lock on to another one, but sounded terrible.</p>

    <h1 id="other-new-features">Other New Features</h1>

    <h2 id="plugin-psychosis">Plugin Psychosis</h2>

    <p>I told Claude to port as many games as it could to Rockbox.</p>

    <p>This release adds <strong>THREE HUNDRED AND FIFTY SEVEN</strong> new plugins. That is not a 
typo: 357. Most of these are ports, a few are originals. Given the quantity here
I haven’t done enough QA here.</p>

    <h3 id="originals">Originals</h3>

    <h4 id="rockgpt">RockGPT</h4>

    <p>This is going to get its own blog post because it is deeply amusing. A ~1 million
param model running on your MP3 player. Almost coherent, fine tuned to be aloof
and dismissive of humanity. Weights are streamed from SD card. Crazy</p>

    <h4 id="rocktrack">RockTrack</h4>

    <p>A little tracker/chiptune editor for Rockbox. I haven’t had a ton of time to 
test this one. Probably needs ergonomic improvements.</p>

    <h4 id="video-player">Video Player</h4>

    <p>Rockbox’s existing mpegplayer didn’t fit on the YP3 and I didn’t want to hack
it up too much, so I had Claude write a new one, with a nicer pixel art UI,
MKV support. AVI, MKV, MP4; MPEG-1/2, MJPEG.</p>

    <h3 id="ports">Ports</h3>

    <p>There are too many to list. <a href="https://rockslop.jayd.ml/features/">Here is the full set of ports</a></p>

    <ul>
      <li>Anarch - FOSS DOOM clone</li>
      <li>Celeste Classic - Platformer Maddy Thorson, Noel Berry</li>
      <li>MicroCity City builder, jhhoward</li>
      <li>Prizm Racing, Racing, duarteapcoelho</li>
      <li>Rockcraft Minecraft-style block sandbox, port of Blocks-TI-84 by The Science Elf, MIT</li>
      <li>Terrario, Terraria-like KBD2</li>
      <li>Jet Island, 3D island demo CubeCoders</li>
      <li>Rock88, 3D rendered Film player demo JetExamples</li>
    </ul>

    <h4 id="bulk-ports">Bulk Ports</h4>

    <p>We got to stupid plugin numbers by writing compat shims/libraries for several 
popular open source players:</p>

    <ul>
      <li><a href="https://www.arduboy.com/">Arduboy</a>: 240</li>
      <li><a href="https://www.pokitto.com/">Pokitto</a>: 23</li>
      <li><a href="https://flipper.net/">Flipper Zero</a>: 33</li>
      <li><a href="gamebuino">Gamebuino</a>: 17</li>
    </ul>

    <h2 id="misc-features">Misc Features</h2>

    <ul>
      <li>Enhanced RDS: program type names, call letters, clock time, RadioText+ 
(artist/title)</li>
      <li>Charge limiter (hardware dependent, allows 50-100% cap)</li>
      <li>
        <p>Bluetooth HID drivers</p>

        <p>Yes, you can pair a PS4 controller or keyboard to Rockbox. I wanted to see how 
much we could do with the existing Bluetooth stack</p>
      </li>
      <li>Bluetooth headset battery level detection, with an icon in the status bar</li>
    </ul>

    <h2 id="themes">Themes</h2>

    <p>I had it port some themes from the Rockbox website to work on this screensize, 
add a bluetooth status icon, and it generated 5 original themes: Ukiyo (my 
favorite), Asterism, Chaldani, Lavenia, Cyanotype.</p>

    <p><img alt="Now playing" src="/assets/posts/2026-11-14-rockbox-on-yp3/themes-nowplaying.png" /></p>

    <p><img alt="Menus" src="/assets/posts/2026-11-14-rockbox-on-yp3/themes-menus.png" /></p>

    <blockquote>
      <p>Note: This is a WIP screenshot, there have been bug fixes &amp; some of these got
cut because of unclear licensing.</p>
    </blockquote>

    <p>Note that heavy themes can cause some issues, so I would suggest sticking with
lightweight ones.</p>

    <h1 id="fin">Fin</h1>

    <p>Well, reverse engineering a completely undocumented chipset was one of the 
hardest things I could think of to do, and Claude can ace it. I’m planning on
porting Rockbox to a bunch of other cheap MP3 players.</p>

    <p><a href="https://rockslop.jayd.ml/players/">THEY ALL SHALL RUN ROCKBOX!</a></p>

    <h1 id="appendix-identifying-a-yp3">Appendix: Identifying a YP3</h1>

    <p>There are lots of clones that look like each other. The YP3 specifically:</p>

    <ul>
      <li>Only has 5 buttons - dpad and center
        <ul>
          <li>no power, volume</li>
          <li>symbols molded into buttons, not printed on them in white</li>
        </ul>
      </li>
      <li>Has a reset pinhole on the <em>right</em></li>
      <li>Speaker on <em>top</em> rear</li>
      <li>USB on bottom right, headphone jack on left</li>
      <li>SD card on the left</li>
      <li>I think they’re all black</li>
    </ul>

    <p>Also, these screens are made of cheese, you’ll want a screen protector.</p>
  </summary>
</details>]]></content><author><name>Jayden Milne</name><email>blog@jayd.ml</email></author><summary type="html"><![CDATA[Rockbox is a wonderful old custom firmware project for a variety of MP3 players and iPods. Flashing rockbox to my Sansa E200 was a seminal moment for me: computers were everywhere, and if they didn’t do cool things, it was because no one had bothered to program them to do so. Looking back, that played no small part in my choice of career.]]></summary></entry><entry><title type="html">LLMs are going to crush every open source bug</title><link href="https://jayd.ml/2026/11/01/llms-are-going-to-crush-every-bug.html" rel="alternate" type="text/html" title="LLMs are going to crush every open source bug" /><published>2026-11-01T08:30:00+00:00</published><updated>2026-11-01T08:30:00+00:00</updated><id>https://jayd.ml/2026/11/01/llms-are-going-to-crush-every-bug</id><content type="html" xml:base="https://jayd.ml/2026/11/01/llms-are-going-to-crush-every-bug.html"><![CDATA[<p>Lately I decided to see how good Claude is at bringing up modern Linux on a
9 year old Galaxy Tab S3. Here’s a sample of how that is going.</p>

<blockquote>
  <p><strong>Me:</strong> Hey I noticed that screen rotation is janky and it is clearly compositing
uninitialized memory</p>
</blockquote>

<p><em>One hour goes by</em></p>

<blockquote>
  <p>No problem boss, all good now! All I had to do was:</p>

  <ul>
    <li>Backport a WIP GPU patch from LKML that hasn’t even been merged yet to your kernel</li>
    <li>Fix a freedreno GPU driver bug that has existed since 2018</li>
    <li>Find two separate bugs in Kwin</li>
    <li>Find an Alpine packaging bug that has prevented any file capabilities from being
applied to binaries for the past month</li>
  </ul>

  <p>I’ve forked each project and prepared MR descriptions for each.</p>
</blockquote>

<p>LLMs have been derided as mediocrity machines that just give stochastic averages.
Even if we accept that framing, despite all the cynicism in tech about software
quality, most code really does mostly work.</p>]]></content><author><name>Jayden Milne</name><email>blog@jayd.ml</email></author><summary type="html"><![CDATA[Lately I decided to see how good Claude is at bringing up modern Linux on a 9 year old Galaxy Tab S3. Here’s a sample of how that is going.]]></summary></entry><entry><title type="html">iFlac: Sync your FLAC files to your iPhone from Linux</title><link href="https://jayd.ml/2026/10/08/iflac-sync-flacs-to-iphone.html" rel="alternate" type="text/html" title="iFlac: Sync your FLAC files to your iPhone from Linux" /><published>2026-10-08T18:33:00+00:00</published><updated>2026-10-08T18:33:00+00:00</updated><id>https://jayd.ml/2026/10/08/iflac-sync-flacs-to-iphone</id><content type="html" xml:base="https://jayd.ml/2026/10/08/iflac-sync-flacs-to-iphone.html"><![CDATA[<blockquote>
  <p><strong>COGNITOHAZARD WARNING:</strong> This README is written by a real life meat computer
but the rest of the project is 100% vibecoded</p>
</blockquote>

<p><a href="https://github.com/jaydens-tasty-slop/iFlac">https://github.com/jaydens-tasty-slop/iFlac</a></p>

<p>I have a growing FLAC collection that I’d like on my phone, but I don’t want to
have to boot Windows to use the Apple Music app or (shudders) iTunes.</p>

<p>Had a friendly robot write this project to sync your FLAC files to your iPhone.</p>

<p>Based off of:</p>

<ul>
  <li><a href="https://libimobiledevice.org/">libimobiledevice</a> and the approach</li>
  <li><a href="https://github.com/EduAlexxis/ByeTunes">ByeTunes</a></li>
</ul>

<p>It works by pairing your PC then injecting rows into Apple Music’s sqlite database (!!).
Seems to work fine from my testing on an iPhone 12.</p>

<p>TIP: Don’t use Bluetooth or this whole exercise was pointless - Bluetooth will compress your delicious lossless audio.</p>]]></content><author><name>Jayden Milne</name><email>blog@jayd.ml</email></author><summary type="html"><![CDATA[COGNITOHAZARD WARNING: This README is written by a real life meat computer but the rest of the project is 100% vibecoded]]></summary></entry><entry><title type="html">Get Player Stats From Your Minecraft Server Logs</title><link href="https://jayd.ml/2026/10/08/minecraft-log-analyzer.html" rel="alternate" type="text/html" title="Get Player Stats From Your Minecraft Server Logs" /><published>2026-10-08T18:26:00+00:00</published><updated>2026-10-08T18:26:00+00:00</updated><id>https://jayd.ml/2026/10/08/minecraft-log-analyzer</id><content type="html" xml:base="https://jayd.ml/2026/10/08/minecraft-log-analyzer.html"><![CDATA[<blockquote>
  <p><em>NOTE:</em> The subject of this post was vibecoded, but this post is 100% written
by a real life human being</p>
</blockquote>

<p>I have a Minecraft server with about 6 years of logs (covid minecraft server baby!)
and I always wondered who has played the most and when, so I had a friendly robot
slop together a little go app you can run on a cronjob to generate an HTML report.</p>

<h2 id="for-a-demo-of-the-report-see-here">For a demo of the report, see here:</h2>

<p><a href="https://jaydens-tasty-slop.github.io/minecraft-log-analyzer/">https://jaydens-tasty-slop.github.io/minecraft-log-analyzer/</a></p>

<p>Here’s the repo: <a href="https://github.com/jaydens-tasty-slop/minecraft-log-analyzer">https://github.com/jaydens-tasty-slop/minecraft-log-analyzer</a></p>

<p>It saves events it parses out of the logs into a sqlite database, then incrementally
parses new files daily if you run it in a cronjob.</p>

<h2 id="features">Features</h2>

<h3 id="server-stats">Server Stats:</h3>

<ul>
  <li>Total unique players</li>
  <li>Total play time in hours
    <ul>
      <li>Play time by year</li>
      <li>Play time by player</li>
    </ul>
  </li>
</ul>

<h3 id="player-stats">Player Stats:</h3>

<ul>
  <li>Play time (hours) (and by year)</li>
  <li>Play time with other players (see who plays with who)</li>
  <li>Sessions</li>
  <li>Time played
    <ul>
      <li>Social time (with at least 1 other player on)</li>
      <li>Loner time (playing alone)</li>
    </ul>
  </li>
  <li>Longest, shortest, and average session</li>
  <li>Longest, shortest, and minimum in-game lifetime</li>
  <li>Deaths</li>
  <li>Chat messages / commands</li>
  <li>Previous aliases</li>
</ul>

<h3 id="chat-messages">Chat Messages:</h3>

<ul>
  <li>By default there is also a chat log rendered (but not linked to from other pages)</li>
  <li>Pass <code class="language-plaintext highlighter-rouge">-no-chat</code> to omit the generated <code class="language-plaintext highlighter-rouge">chat.html</code> transcript. Chat counts remain
in player statistics.</li>
</ul>]]></content><author><name>Jayden Milne</name><email>blog@jayd.ml</email></author><summary type="html"><![CDATA[NOTE: The subject of this post was vibecoded, but this post is 100% written by a real life human being]]></summary></entry><entry><title type="html">Connect Sony WH-1000XM3 on Arch Linux and a buggy UGREEN Bluetooth adapter</title><link href="https://jayd.ml/2026/10/03/sony-headphones-action-bluetooth-adapter.html" rel="alternate" type="text/html" title="Connect Sony WH-1000XM3 on Arch Linux and a buggy UGREEN Bluetooth adapter" /><published>2026-10-03T09:25:00+00:00</published><updated>2026-10-03T09:25:00+00:00</updated><id>https://jayd.ml/2026/10/03/sony-headphones-action-bluetooth-adapter</id><content type="html" xml:base="https://jayd.ml/2026/10/03/sony-headphones-action-bluetooth-adapter.html"><![CDATA[<p>Tried to connect to my Sony WH-1000XM3 headphones on Arch Linux KDE, it would
try and connect but fail with <code class="language-plaintext highlighter-rouge">The setup of WH-1000XM3 failed</code>.</p>

<p>I have a <a href="https://www.amazon.com/dp/B0CZD94YFR">UGREEN USB Bluetooth 5.3 Adapter</a>
adapter, which contains an Actions ATS2851 chipset.</p>

<p>Apparently this is a <a href="https://lore-kernel.gnuweeb.org/linux-bluetooth/20260820140547.1148128-1-lidaoxun25%40mails.ucas.ac.cn/?utm_source=chatgpt.com">known chipset quirk with Sony headphones and this adapter</a>.</p>

<p>Attempting to connect manually with bluetoothctl would just stall out:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>bluetoothctl]&gt; scan bredr
SetDiscoveryFilter success
Discovery started
[CHG] Controller F4:4E:FC:77:8F:36 Discovering: yes
[NEW] Device 54:3A:D6:26:7A:E4 [TV] Samsung Q80AA 65 TV
[NEW] Device CC:DE:AD:BE:EE:FF WH-1000XM3
[bluetoothctl]&gt; scan off
Discovery stopped
[CHG] Device CC:DE:AD:BE:EE:FF RSSI is nil
[CHG] Device 54:3A:D6:26:7A:E4 RSSI is nil
[CHG] Controller F4:4E:FC:77:8F:36 Discovering: no
[bluetoothctl]&gt; pair CC:DE:AD:BE:EE:FF
Attempting to pair with CC:DE:AD:BE:EE:FF
[CHG] Device CC:DE:AD:BE:EE:FF Connected: yes
[DEL] Device 54:3A:D6:26:7A:E4 [TV] Samsung Q80AA 65 TV
[WH-1000XM3]&gt;
</code></pre></div></div>

<h2 id="the-workaround">The Workaround</h2>

<p>This only happens when you do initial pairing. If you skip <code class="language-plaintext highlighter-rouge">pair</code>
it apparently works.</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>power off
power on
agent off
agent KeyboardDisplay
default-agent
scan bredr

(wait for headphones to appear)

scan off
trust CC:DE:AD:BE:EE:FF
connect CC:DE:AD:BE:EE:FF
</code></pre></div></div>

<p>I can’t find any firmware updates from UGREEN, so you’ll have to do this to
get it to pair for the first time. I reached out to their support, so we’ll see
if by some miracle they do anything about it.</p>]]></content><author><name>Jayden Milne</name><email>blog@jayd.ml</email></author><summary type="html"><![CDATA[Tried to connect to my Sony WH-1000XM3 headphones on Arch Linux KDE, it would try and connect but fail with The setup of WH-1000XM3 failed.]]></summary></entry><entry><title type="html">Abusing CD-Rs, DVD-Rs, and BD-Rs for Science</title><link href="https://jayd.ml/2026/09/05/burned-media-torture-test.html" rel="alternate" type="text/html" title="Abusing CD-Rs, DVD-Rs, and BD-Rs for Science" /><published>2026-09-05T11:41:00+00:00</published><updated>2026-09-05T11:41:00+00:00</updated><id>https://jayd.ml/2026/09/05/burned-media-torture-test</id><content type="html" xml:base="https://jayd.ml/2026/09/05/burned-media-torture-test.html"><![CDATA[<p>I’ve been on an optical media kick lately, having a grand old time burning
discs and whatnot. One bit of advice that consistently comes up: don’t let your
burned discs get exposed to sunlight; the dye layer is UV after all, and since
the <a href="https://youtu.be/xuCn8ux2gbs?t=182">sun is a deadly laser</a> it can damage
your precious bits.</p>

<p>Naturally, this advice needs to be tested to determine what <em>actually</em> happens 
if you disregard it.</p>

<p>I had a friendly LLM <a href="https://github.com/jaydens-tasty-slop/optical-stress-tests/tree/master">shart out some scripts</a> 
to generate max-size iso images and sha256sum them from the disc, and burned 
using k3b:</p>

<ul>
  <li><a href="https://www.amazon.com/dp/B00029U1DK">Verbatim CD-R</a> (at max speed, 40x)</li>
  <li><a href="https://www.amazon.com/dp/B00029U1DK">Verbatim CD-RW</a> (at max speed, 40x)</li>
  <li><a href="https://www.amazon.com/dp/B000FFQ1WG?th=1">Verbatim DVD-R</a> (at max speed, 16x)
    <ul>
      <li>I also have a second DVD-R that long story short had 615 buffer underruns
while burning. It passed verification, but it seemed like a poor test subject.
I exposed it though because it would be interesting if using Burnfree made
it degrade faster</li>
    </ul>
  </li>
  <li><a href="https://www.amazon.com/dp/B00GSQ4DBM?th=1">Verbatim BD-R</a> (at max speed, 12x)</li>
</ul>

<p>The CD and DVD were burned with a brand new (old stock) Hitachi-LG data storage
<a href="https://hitachi-lg.com/en/products/data.view/?v=19">GHD0N</a>, the Blu-ray with
a brand new LG <a href="https://www.lg.com/us/burners-drives/lg-wh16ns60-internal-blu-ray-dvd-drive">WH16NS60</a>. The blanks were also just purchased
from Amazon, so hopefully they are fresh.</p>

<p>I verified each burn with k3b as well as my slop-script, and placed them in 
a ziplock baggie (so they don’t get physically dirty and ruin by readers) with
the media side facing west in a window. They’ll get blasted by the sun for hours
each day, and are physically warm to the touch.</p>

<p>I’ll update this post as I go along.</p>

<h1 id="updates">Updates</h1>

<h2 id="2026-09-06">2026-09-06</h2>

<p>Hung the discs in the window.</p>

<h2 id="2026-09-21">2026-09-21</h2>

<p>Finally had time to check on these. Looks like I waited too long.</p>

<ul>
  <li><strong>CD-R:</strong> Read fine</li>
  <li><strong>CD-RW:</strong> Read fine</li>
  <li><strong>DVD-R:</strong> I could tell these were toast before I even put them in the drive.
Visibly discolored ring around the middle, and an odd intrusion on the side
of one as well. No longer have a blue tint.</li>
  <li>
    <p><strong>BD-R:</strong> Didn’t seem visibly damaged and my drive still recognizes it. The 
sector analysis software was able to get at least one good sector off of it
after retying a few times, but it seems like this disc is toast too.</p>

    <details>

      <summary>
        <p>Scan tool output&lt;/summary&gt;</p>

        <div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>Comparing 12219392 sectors from /dev/sr2 against /optical-stress-bd-r.iso
Scan plan: start LBA=0, forward with wrap, chunk=256 sectors (524288 bytes), slow-read warning=5s
Loading first source chunk: LBA=0-255 offset=0 bytes=524288
Reading first device chunk: LBA=0-255 offset=0 bytes=524288

Slow device read: phase=chunk LBA=0-255 offset=0 bytes=524288 elapsed=5s; optical drive or kernel may be retrying

Slow device read: phase=chunk LBA=0-255 offset=0 bytes=524288 elapsed=10s; optical drive or kernel may be retrying
device read returned: phase=chunk LBA=0-255 read=0/524288 elapsed=10.3s error=read /dev/sr2: input/output error
Chunk read failed: LBA=0-255 read=0/524288 elapsed=10.3s error=read /dev/sr2: input/output error; bisecting range

Slow device read: phase=recovery LBA=0-127 offset=0 bytes=262144 elapsed=5s; optical drive or kernel may be retrying

Slow device read: phase=recovery LBA=0-127 offset=0 bytes=262144 elapsed=10s; optical drive or kernel may be retrying
device read returned: phase=recovery LBA=0-127 read=262144/262144 elapsed=10.7s error=&lt;nil&gt;
Compared 256 / 12219392 sectors (0.0%); last LBA 0-255; good=256 bad=0; 0.02 MiB/s; elapsed=26s ETA=342h31m10s    Chunk read failed: LBA=512-767 read=65536/524288 elapsed=4.8s error=read /dev/sr2: input/output error; bisecting range
Unreadable sector: LBA=544 read=0/2048 elapsed=1.5s error=read /dev/sr2: input/output error (unreadable count=1)
Unreadable sector: LBA=545 read=0/2048 elapsed=1.9s error=read /dev/sr2: input/output error (unreadable count=2)
Unreadable sector: LBA=546 read=0/2048 elapsed=1.7s error=read /dev/sr2: input/output error (unreadable count=3)
Unreadable sector: LBA=547 read=0/2048 elapsed=1.8s error=read /dev/sr2: input/output error (unreadable count=4)
Unreadable sector: LBA=548 read=0/2048 elapsed=1.7s error=read /dev/sr2: input/output error (unreadable count=5)
Unreadable sector: LBA=549 read=0/2048 elapsed=1.6s error=read /dev/sr2: input/output error (unreadable count=6)
Unreadable sector: LBA=550 read=0/2048 elapsed=1.6s error=read /dev/sr2: input/output error (unreadable count=7)
Unreadable sector: LBA=551 read=0/2048 elapsed=1.4s error=read /dev/sr2: input/output error (unreadable count=8)
Unreadable sector: LBA=552 read=0/2048 elapsed=1.2s error=read /dev/sr2: input/output error (unreadable count=9)
Unreadable sector: LBA=553 read=0/2048 elapsed=1.7s error=read /dev/sr2: input/output error (unreadable count=10)
Compared 768 / 12219392 sectors (0.0%); last LBA 512-767; good=692 bad=76; 0.00 MiB/s; elapsed=5m56s ETA=1574h43m27s    Chunk read failed: LBA=768-1023 read=0/524288 elapsed=2.8s error=read /dev/sr2: input/output error; bisecting range
Compared 1024 / 12219392 sectors (0.0%); last LBA 768-1023; good=930 bad=94; 0.00 MiB/s; elapsed=7m20s ETA=1458h25m20s    
Slow device read: phase=chunk LBA=3072-3327 offset=6291456 bytes=524288 elapsed=5s; optical drive or kernel may be retrying
device read returned: phase=chunk LBA=3072-3327 read=65536/524288 elapsed=6.4s error=read /dev/sr2: input/output error
Chunk read failed: LBA=3072-3327 read=65536/524288 elapsed=6.4s error=read /dev/sr2: input/output error; bisecting range
Unreadable sector: LBA=3109 read=0/2048 elapsed=2.4s error=read /dev/sr2: input/output error (unreadable count=100)

Slow device read: phase=recovery LBA=3200-3263 offset=6553600 bytes=131072 elapsed=5s; optical drive or kernel may be retrying
device read returned: phase=recovery LBA=3200-3263 read=65536/131072 elapsed=5.8s error=read /dev/sr2: input/output error
^Cmake: *** [Makefile:86: map-bd-r] Interrupt
</code></pre></div>        </div>

        <p>&lt;/details&gt;</p>

      </summary>
    </details>
  </li>
</ul>
<p><img alt="failed DVD-R" src="/assets/posts/2026-09-06-burned-media-torture-test/dvd-r.jpg" /></p>

<p>I’ll hang them back up and check in again later.</p>]]></content><author><name>Jayden Milne</name><email>blog@jayd.ml</email></author><summary type="html"><![CDATA[I’ve been on an optical media kick lately, having a grand old time burning discs and whatnot. One bit of advice that consistently comes up: don’t let your burned discs get exposed to sunlight; the dye layer is UV after all, and since the sun is a deadly laser it can damage your precious bits.]]></summary></entry><entry><title type="html">A Bad HDMI Cable Broke My Mouse</title><link href="https://jayd.ml/2026/08/05/bad-hdmi-cable-broken-mouse.html" rel="alternate" type="text/html" title="A Bad HDMI Cable Broke My Mouse" /><published>2026-08-05T16:35:00+00:00</published><updated>2026-08-05T16:35:00+00:00</updated><id>https://jayd.ml/2026/08/05/bad-hdmi-cable-broken-mouse</id><content type="html" xml:base="https://jayd.ml/2026/08/05/bad-hdmi-cable-broken-mouse.html"><![CDATA[<p>I got tasked to fix some bizarre issues a friend was having with their gaming PC.
They had had lots of bluetooth issues, and recently their mouse stopped working
entirely in Windows 11 - nothing would show up in Control Panel. Other mice also
didn’t work.</p>

<p>It worked fine in the BIOS and in an Manjaro installer, so I got suspicious and
for the first time in my storied career there was actually bad stick of RAM!</p>

<p>This person had expressed interest in switching to Linux before, and they had
done enough fiddling around with drivers (plus the OS was installed with bad ram - 
I’m never trusting it again) that I convinced them to install Manjaro.</p>

<p>The mouse worked fine in the installer, rebooted, no mouse. Or keyboard now! We
made it worse!</p>

<p><code class="language-plaintext highlighter-rouge">Ctrl</code> + <code class="language-plaintext highlighter-rouge">Alt</code> + <code class="language-plaintext highlighter-rouge">F1</code> switched to a working TTY though, which was odd. I tried
updating the BIOS, checking <code class="language-plaintext highlighter-rouge">dmesg</code>. The chatbots had me going down wild goose
chases in the BIOS fiddling IOMMU settings and XHCI handoffs.</p>

<p>Finally I decided to just start unplugging things to see if something was screwing
up the USB bus. WiFi/BT card didn’t help, so the next step was the 4k Samsung
monitor.</p>

<p>The mouse immediately started working.</p>

<p>I plugged it back in.</p>

<p>It stopped.</p>

<p>I used a different HDMI cord.</p>

<p>It started to work again.</p>

<p>̄\<em>(ツ)</em>/ ̄</p>

<p>Reminds me of the time <a href="https://www.youtube.com/watch?v=n2DPLEvwO-k">I had a cheap USB switch that would cause WiFi / HDMI
radio interference</a> 
<em>but only when the screen was mostly white</em>. I guess HDMI is cursed.</p>]]></content><author><name>Jayden Milne</name><email>blog@jayd.ml</email></author><summary type="html"><![CDATA[I got tasked to fix some bizarre issues a friend was having with their gaming PC. They had had lots of bluetooth issues, and recently their mouse stopped working entirely in Windows 11 - nothing would show up in Control Panel. Other mice also didn’t work.]]></summary></entry><entry><title type="html">Microsoft Game Pass Ultimate Billing Fraud</title><link href="https://jayd.ml/2026/02/14/microsoft-game-pass-fraud.html" rel="alternate" type="text/html" title="Microsoft Game Pass Ultimate Billing Fraud" /><published>2026-02-14T14:38:00+00:00</published><updated>2026-02-14T14:38:00+00:00</updated><id>https://jayd.ml/2026/02/14/microsoft-game-pass-fraud</id><content type="html" xml:base="https://jayd.ml/2026/02/14/microsoft-game-pass-fraud.html"><![CDATA[<p>I purchased an Xbox Series X out of some misplaced sense of nostalgia for the 
360 and because I needed a 4K player. At the time you could still do the trick
where you load up on Xbox Live Gold and then convert it to Game Pass Ultimate
cheaply.</p>

<p>I signed up for it and then <strong>made absolutely sure to disable any autorenewing settings everywhere I could.</strong> I remember  seeing something to the effect of “Your subscription will
expire 2/2026 and will not renew.</p>

<p>At the time I still trusted Microsoft a little, but I made sure to use a one
time use credit card number, just in case.</p>

<p>Lo and behold, I just got this email:</p>

<p><img alt="there is only one ad and one video visible" src="/assets/posts/2026-02-14-microsoft-game-pass-fraud/those_liars_and_cheats.png" /></p>

<p>Conveniently for those liars and cheats at Microsoft, <em>somehow</em> in the intervening
three years autorenew got turned back on. Oopsie whoopsie sowwy 👉👈!</p>

<p>I don’t know how this isn’t outright fraud.</p>]]></content><author><name>Jayden Milne</name><email>blog@jayd.ml</email></author><summary type="html"><![CDATA[I purchased an Xbox Series X out of some misplaced sense of nostalgia for the 360 and because I needed a 4K player. At the time you could still do the trick where you load up on Xbox Live Gold and then convert it to Game Pass Ultimate cheaply.]]></summary></entry><entry><title type="html">letterboxd2jellyfin sync script</title><link href="https://jayd.ml/2026/02/14/letterboxd2jellyfin.html" rel="alternate" type="text/html" title="letterboxd2jellyfin sync script" /><published>2026-02-14T14:38:00+00:00</published><updated>2026-02-14T14:38:00+00:00</updated><id>https://jayd.ml/2026/02/14/letterboxd2jellyfin</id><content type="html" xml:base="https://jayd.ml/2026/02/14/letterboxd2jellyfin.html"><![CDATA[<p>I have an incredibly niche use case where I</p>

<ol>
  <li>Have a physical media collection that I haven’t ripped</li>
  <li>Would like to browse that collection in Jellyfin like its my own personal 
Netflix</li>
  <li>Have a public list in Letterboxd of all the movies I own</li>
</ol>

<p>So I wrote a <a href="https://github.com/jaydenmilne/letterboxd-2-jellyfin">quick script</a> 
and <a href="https://pypi.org/project/letterboxd2jellyfin/">published it to pypi</a>.
Shout out to <a href="https://github.com/nmcassa/letterboxdpy">letterboxdpy</a> that made
this incredibly simple.</p>

<p>This script reads the playlist from letterboxd and writes stub <code class="language-plaintext highlighter-rouge">.mp4</code> files in 
the appropriate Jellyfin file structure so you can browse it, eg</p>

<div class="language-sh highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nv">$ </span>letterboxd2jellyfin  <span class="nt">-o</span> <span class="s1">'/path/to/jellyfin/library/Movies'</span> <span class="nt">-url</span> https://letterboxd.com/matchup/list/scream-ranked/
parsing URL
Loading playlist <span class="sb">`</span>scream-ranked<span class="sb">`</span> from username <span class="sb">`</span>matchup<span class="sb">`</span>...
<span class="k">done</span><span class="o">!</span>
This playlist has 6 entries
creating stub file  deleteme/Scream <span class="o">(</span>1996<span class="o">)</span>/Scream <span class="o">(</span>1996<span class="o">)</span>.mp4
creating stub file  deleteme/Scream 4 <span class="o">(</span>2011<span class="o">)</span>/Scream 4 <span class="o">(</span>2011<span class="o">)</span>.mp4
creating stub file  deleteme/Scream 2 <span class="o">(</span>1997<span class="o">)</span>/Scream 2 <span class="o">(</span>1997<span class="o">)</span>.mp4
creating stub file  deleteme/Scream VI <span class="o">(</span>2023<span class="o">)</span>/Scream VI <span class="o">(</span>2023<span class="o">)</span>.mp4
creating stub file  deleteme/Scream <span class="o">(</span>2022<span class="o">)</span>/Scream <span class="o">(</span>2022<span class="o">)</span>.mp4
creating stub file  deleteme/Scream 3 <span class="o">(</span>2000<span class="o">)</span>/Scream 3 <span class="o">(</span>2000<span class="o">)</span>.mp4
all <span class="k">done</span><span class="o">!</span>
</code></pre></div></div>

<p>Now obviously you can’t play this, it just plays a <a href="https://github.com/jaydenmilne/letterboxd-2-jellyfin/blob/main/src/letterboxd2jellyfin/bluray.mp4">cheeky stub of a video</a>,
but it is good enough to trick Jellyfin into showing all of the metadata. This
lets me doomscroll my own collection without having to walk over a few feet and
actually look at it, but also lets me sort and filter easily by actors.</p>

<p>This was also my first project using <code class="language-plaintext highlighter-rouge">uv</code> - it is indeed quite fast! Took me a 
while to figure out how to get those <code class="language-plaintext highlighter-rouge">.mp4</code> files embedded though. Turns out you
still have to opt in to the <code class="language-plaintext highlighter-rouge">uv build</code> backend even though that was what I was
trying to configure.</p>]]></content><author><name>Jayden Milne</name><email>blog@jayd.ml</email></author><summary type="html"><![CDATA[I have an incredibly niche use case where I]]></summary></entry><entry><title type="html">Windows 2000 Minesweeper recreated in Godot 4.1</title><link href="https://jayd.ml/2026/02/14/godot-minesweeper.html" rel="alternate" type="text/html" title="Windows 2000 Minesweeper recreated in Godot 4.1" /><published>2026-02-14T13:00:00+00:00</published><updated>2026-02-14T13:00:00+00:00</updated><id>https://jayd.ml/2026/02/14/godot-minesweeper</id><content type="html" xml:base="https://jayd.ml/2026/02/14/godot-minesweeper.html"><![CDATA[<h2 id="tldr">TL;DR</h2>

<p><img src="/assets/posts/2026-02-14-godot-minesweeper/screenshot.png" /></p>

<p><a href="https://minesweeker.jayd.ml">Play the game at minesweeper.jayd.ml!</a></p>

<p><a href="https://github.com/jaydenmilne/godot-minesweeper">See the AGPL source code here!</a></p>

<h2 id="why">Why??</h2>

<p>I decided to recreate Windows 2000 minesweeper in Godot 4.1 as accurately as I
reasonably could. I wanted to get more familiar with Godot, and wanted a project
where I didn’t have to worry about what to do, only how to do it. In the end, I
ended up going down the rabbit hole and spending 30% of my time on the actual 
game and the other 70% on menus, dialogs, and other triviality.</p>

<p>It was fun working on stuff that I’d never get past a PM, like black and white 
mode, and recreating the ding/blinking window animation when you click on a 
window while a dialog is open.</p>

<p>The overall experience with Godot was very pleasant - working with Godot has
dispelled any desire I had to make my own game engine. Godot is lightweight and
well thought out.</p>

<h2 id="overall-approach">Overall Approach</h2>

<p>I wanted to recreate Minesweeper as pixel-perfect as I could. Depite my best
efforts (see Fonts below), I couldn’t get Godot to render the Windows 2000/9x
bitmapped fonts in a pixel perfect way, so the approach was to take screenshots
in a VM and only render text with Godot where absolutely needed (highscores).</p>

<h2 id="font-rendering-purgatory">Font Rendering Purgatory</h2>

<p>I spent way, way too much time fiddling with fonts trying to get them to work.
In the end I got something that was close enough and try not to think about it 
too much.</p>

<p>Minesweeper in Windows 95 uses the bitmapped <a href="https://stackoverflow.com/questions/6057239/which-font-is-the-default-for-mfc-dialog-controls">“MS Shell Dlg”</a> font.</p>

<p>At first I tried to be clever and pull bitmapped fonts out of the <a href="https://github.com/kode54/wine/blob/master/fonts/ms_sans_serif.ttf">WINE project,</a> 
but those ended up not being an exact match (I guess whoever made them for WINE 
wanted them to be different?). They also only worked at certain pixel sizes.</p>

<p>Eventually I settled on a recreation called “W95FA” by Alle Sava. Sadly, the 
font’s website has been taken down since I started this project. For some reason
Godot won’t render this font right, and I tried about every option in Godot I 
could, and its just still not quite right.</p>

<p><img src="/assets/posts/2026-02-14-godot-minesweeper/fonts.png" /></p>

<p>I rabbit holed on this for way too long, it almost killed the project. Looking
back it was a silly thing to get hung up on.</p>

<h2 id="dpi-scaling">DPI Scaling</h2>

<p>I ended up rolling my own crazy DPI scaling and not using Godot’s built in stuff.</p>

<p>I wanted a combination of</p>

<ol>
  <li>Integer/pixel scaling, no fuzzy up or downscaling</li>
  <li>No fixed aspect ratios - should use the entire canvas</li>
  <li>Matching the browser window’s DPI automatically</li>
  <li>Automatically changing the DPI when the DPI of the document changes.</li>
</ol>

<p>This was surprisingly annoying to do. I ended up doing this by injecting some 
Javascript to read the CSS DPI, and then it calls a callback to update the Godot
scaling.</p>

<p><a href="https://github.com/jaydenmilne/godot-minesweeper/blob/main/godot-minesweeper/desktop.gd#L9">See how I did it here.</a></p>

<p>There is a “change dpi” button on the right of the screen, helpful for when you
are playing comically large games.</p>

<h2 id="custom-splash-screen">Custom Splash Screen</h2>

<p><img src="/assets/posts/2026-02-14-godot-minesweeper/splash.png" /></p>

<p>One thing I think is really important for a web exported project is to make a 
custom splash screen. I threw this one together, complete with gradients and
animations, and I think it really elevates the experience to see that. It’s just
a little thing to show that the creator cared and went the extra mile.</p>

<h2 id="cheats">Cheats</h2>

<p>I implemented the original <kbd>XYZZY</kbd> + <kbd>Shift</kbd> + <kbd>Enter</kbd>
cheat.</p>

<p>One thing I remember thinking about and being frustrated by as a kid were the 
limits in the Custom Size dialog. Why did they have to hold me back??</p>

<p>So in my version, when you press the <code class="language-plaintext highlighter-rouge">[?]</code> button in the corner of the custom 
size dialog, it turns off all the bounds checks, and you can do stupid things
like this:</p>

<p><img src="/assets/posts/2026-02-14-godot-minesweeper/stupid.png" /></p>

<p>Note that this completely disables <em>all bounds checking</em>, so you can break your
game easily with this. Since it tries to save and load your game too, it may lock
up if you do something dumb and then lock up again every time you reload the page.
Clear your cookies and site data if this happens to you.</p>

<p>The only other change is that I made it so it saves your game to localstorage, so
if you reload the page your game resumes. You could probably cheat with this,
but I think its a huge quality of life feature.</p>

<h2 id="the-part-where-i-gave-up-right-before-shipping-it-for-a-year-because-im-a-perfectionist">The part where I gave up right before shipping it for a year because I’m a perfectionist</h2>

<p>I thought I had done every last feature, and was about to triumphantly ship and 
make this blog post, when I learned about <a href="https://minesweeper.fandom.com/wiki/Chording">chording</a>, which allows you to use Left + Right Control Click to reveal more cells at once.</p>

<p>The ship train derailed and was a smoldering wreck from <a href="https://github.com/jaydenmilne/godot-minesweeper/commit/71ba74ba096d7eda107a5ef3890904bdb06bcc5a">December 2023</a>
until <a href="https://github.com/jaydenmilne/godot-minesweeper/commit/18a4271592e426cdeb294462df3863749bc9fd76">March 2025</a>, 
when I finally decided to finish it and added chording. I’m continually amazed
by my ability to procrastinate. Then I procrastinated this blog post until Feb
2026!</p>

<h2 id="overall">Overall</h2>

<p>Using Godot was quite pleasant, I’m proud of how this project turned out. Maybe
I’ll actually play Minesweeper now!</p>]]></content><author><name>Jayden Milne</name><email>blog@jayd.ml</email></author><summary type="html"><![CDATA[TL;DR Play the game at minesweeper.jayd.ml! See the AGPL source code here! Why?? I decided to recreate Windows 2000 minesweeper in Godot 4.1 as accurately as I reasonably could. I wanted to get more familiar with Godot, and wanted a project where I didn’t have to worry about what to do, only how to do it. In the end, I ended up going down the rabbit hole and spending 30% of my time on the actual game and the other 70% on menus, dialogs, and other triviality. It was fun working on stuff that I’d never get past a PM, like black and white mode, and recreating the ding/blinking window animation when you click on a window while a dialog is open. The overall experience with Godot was very pleasant - working with Godot has dispelled any desire I had to make my own game engine. Godot is lightweight and well thought out. Overall Approach I wanted to recreate Minesweeper as pixel-perfect as I could. Depite my best efforts (see Fonts below), I couldn’t get Godot to render the Windows 2000/9x bitmapped fonts in a pixel perfect way, so the approach was to take screenshots in a VM and only render text with Godot where absolutely needed (highscores). Font Rendering Purgatory I spent way, way too much time fiddling with fonts trying to get them to work. In the end I got something that was close enough and try not to think about it too much. Minesweeper in Windows 95 uses the bitmapped “MS Shell Dlg” font. At first I tried to be clever and pull bitmapped fonts out of the WINE project, but those ended up not being an exact match (I guess whoever made them for WINE wanted them to be different?). They also only worked at certain pixel sizes. Eventually I settled on a recreation called “W95FA” by Alle Sava. Sadly, the font’s website has been taken down since I started this project. For some reason Godot won’t render this font right, and I tried about every option in Godot I could, and its just still not quite right. I rabbit holed on this for way too long, it almost killed the project. Looking back it was a silly thing to get hung up on. DPI Scaling I ended up rolling my own crazy DPI scaling and not using Godot’s built in stuff. I wanted a combination of Integer/pixel scaling, no fuzzy up or downscaling No fixed aspect ratios - should use the entire canvas Matching the browser window’s DPI automatically Automatically changing the DPI when the DPI of the document changes. This was surprisingly annoying to do. I ended up doing this by injecting some Javascript to read the CSS DPI, and then it calls a callback to update the Godot scaling. See how I did it here. There is a “change dpi” button on the right of the screen, helpful for when you are playing comically large games. Custom Splash Screen One thing I think is really important for a web exported project is to make a custom splash screen. I threw this one together, complete with gradients and animations, and I think it really elevates the experience to see that. It’s just a little thing to show that the creator cared and went the extra mile. Cheats I implemented the original XYZZY + Shift + Enter cheat. One thing I remember thinking about and being frustrated by as a kid were the limits in the Custom Size dialog. Why did they have to hold me back?? So in my version, when you press the [?] button in the corner of the custom size dialog, it turns off all the bounds checks, and you can do stupid things like this: Note that this completely disables all bounds checking, so you can break your game easily with this. Since it tries to save and load your game too, it may lock up if you do something dumb and then lock up again every time you reload the page. Clear your cookies and site data if this happens to you. The only other change is that I made it so it saves your game to localstorage, so if you reload the page your game resumes. You could probably cheat with this, but I think its a huge quality of life feature. The part where I gave up right before shipping it for a year because I’m a perfectionist I thought I had done every last feature, and was about to triumphantly ship and make this blog post, when I learned about chording, which allows you to use Left + Right Control Click to reveal more cells at once. The ship train derailed and was a smoldering wreck from December 2023 until March 2025, when I finally decided to finish it and added chording. I’m continually amazed by my ability to procrastinate. Then I procrastinated this blog post until Feb 2026! Overall Using Godot was quite pleasant, I’m proud of how this project turned out. Maybe I’ll actually play Minesweeper now!]]></summary></entry></feed>