# The small things, measured 📏

- Link: https://gexis.net/2026/10/29/the-small-things/
- Published: 2026-10-29T18:00:00+01:00
- Author: George

Before a phase of work on Gexis Player is closed, it runs on a test player in a 
living room and gets used like any other player. What comes back is rarely dramatic.
It is a row that moves when it should not, a screen that looks unfinished for a 
minute, two switches that should have been one. This is one such round, and how 
each fix was checked.

## 🎚️ The music server’s switch, where the music is

The player can run its own **Lyrion server**, the music server that holds your library.
Its switch used to live only on the _Plugins_ page, while everything else about 
the library lives in **Settings → Library**. Now the Library page has the switch
too, right under the server’s heading: the same switch, shown in two places.

Switched off, the server stops, but its library, folders and network shares are 
kept for when it comes back. Removing it altogether stays on the Plugins page, and
so do its download line and version.

## 📏 The row that jumped

The first version of that switch had a flaw: toggling it made the row grow and shrink
under your finger. To find out why, the switch was toggled from a phone-sized browser
while a script measured the row every 150 milliseconds.

  |   |  Row height while toggling off and on |  
   |  Before |  183 → 217 → 174 → 140 → 159 pixels |  
 |  After |  116 pixels, throughout |

The cause was a line of text. The Library’s copy of the switch also carried the 
plugin’s download status, and that status changes while a server stops and starts:
_could not…_, _Installed…_, _Downloaded and installed…_. Each change rewrapped the
text. A _Remove_ button also appeared whenever the switch was off.

Fixing that showed three smaller movements, each found the same way:

 * while the server was starting, the switch’s note was swapped for _Starting: Lyrion
   is starting…_, which pushed the rows below;
 * the heading moved by 3 pixels when its little _Ready_ badge came and went;
 * switched off, the heading still said _Ready_.

Now the Library’s copy is only the switch, with a note that never changes. The heading
has room for its badge whether it shows or not, and a service that is off says nothing
about how it is doing. Measured again: the row stays at 116 pixels and the heading
at 50, through off and back on.

## 🧭 One choice instead of two switches

How you move around your library on the player’s screen used to be two switches:
_Library on the screen_ and _Extended navigation_. They depended on each other, 
and reading them together took a moment’s thought. They are now one choice, **Settings
→ Sources → Lyrion Client → Navigation**:

⌊The Navigation choice⌉⌊The Navigation choice⌉
 _Three answers, one question._

 * **Simple**: the home tiles, albums, artists, playlists and radio;
 * **Extended**: Lyrion’s own menus as well, such as My Music, Favourites and Apps;
 * **Off**: only what is playing. Lyrion’s apps on a phone still play to the player.

Backups and restores are not affected: the two old settings are still stored and
read as before, and the new choice writes them.

## 🔀 Another server, without typing an address

The second part of first use asks where your music is. If a Lyrion server was already
saved, the player used to skip that question and keep the saved one. Switching to
another server meant typing its address.

Now the question is always asked, and every server the player finds on the network
is listed, with the saved one ticked. Installing Lyrion on the player itself, or
entering an address by hand, are the last two options.

⌊Which Lyrion server?⌉⌊Which Lyrion server?⌉
 _Every server found is listed. The
addresses here are examples._

## 🌅 Never a plain grey screen

The waiting screen shows a picture behind the clock. When no picture could be had,
for example while the player’s core was restarting after an update, or without internet,
the screen stayed a flat grey until the next try, 15 minutes later by default.

Now a picture from the player’s own **Calm** set (public domain, CC0) shows straight
away, and a new picture is asked for every 30 seconds until one arrives. If the 
background is set to black, it stays black.

⌊The waiting screen with the Calm picture⌉⌊The waiting screen with the Calm picture⌉

_The picture used when no other one can be had._

## 🗂️ Settings in a new order

Settings now starts with the music and ends with the machine: **Library, Sources,
Handoff, Audio, Display, Enrichment, Plugins, System**. On the panel, Settings opens
on Library.

⌊Settings on the panel, Library first⌉⌊Settings on the panel, Library first⌉
 _Settings
on the 10.1-inch panel, with the demo library’s numbers._

## 🔇 Measured, then set aside

Not everything tested gets built. This phase started as something else: **MPD**,
a second music player that can send more than two channels, 5.1 and 7.1 surround,
over HDMI to an AV receiver. Gexis Player’s usual playback carries two.

It was measured on a test player connected to a 5.1 speaker system, with someone
listening to each speaker in turn. Surround did reach the receiver, but only with
extra settings, and the centre and subwoofer channels arrived swapped. MPD also 
folded 5.1 down to mono for a stereo output, and the music server’s idea of where
a song was ran about two seconds behind the sound, a risk for playing in several
rooms at once.

Weighed against how few people play multichannel files, the idea was parked, with
every measurement kept for the day it comes back. The phase became the API instead.
