GizletAccount

Gizlet OS

Linux for the handheld in your pocket

Gizlet OS boots from a microSD card and turns a retro handheld into a small Linux computer: a read-only Debian base, a shared runtime for apps, and a launcher you drive with the gamepad.

How it is built

Three layers, each updated on its own: the base system stays put while the runtime and the launcher move faster, and your apps and saves stay out of all three.

  1. LauncherWhat you hold

    The home screen, Store and Settings, plus the gizlet command. Written in Rust with raylib, it lays out one design for the R36S's 640×480 panel, a laptop window or a 4K monitor.

    • Apps, background services and the Store
    • The gizlet command over SSH
    • Signed updates over the air
  2. RuntimeWhat apps run against

    A versioned set of libraries that the launcher and every app use: glibc, Mesa 25.0 with Panfrost for the GPU and llvmpipe as a fallback, libdrm and raylib 6.0, drawing with OpenGL ES 3.0. Updating the base system does not change what apps see.

    • Runtime 1 serves every arm64 Gizlet OS device
    • One read-only SquashFS image shared by every profile
    • Updated together with the launcher
  3. RootfsThe read-only base

    Debian trixie for arm64 with systemd, built from locked packages and mounted read-only from the card in TF1. It brings the kernel, drivers, Wi-Fi, SSH, Bluetooth, audio and sleep.

    • Nothing writes to it, so a crash or a flat battery can't damage it
    • Bun is included at /usr/bin/bun
    • Updated with the card writer, keeping your data

On the cards

TF1 · boot
A FAT partition you can open on a computer: the kernel and boot files, plus setup.ini, authorized_keys and the boot logs.
TF1 · system
The read-only rootfs.
TF1 · data
Mounted at /data: installed apps and services, the runtime, launcher releases, device settings and every profile.
TF2
Your own card, such as one with games, mounted at /media/tf2. Gizlet OS never formats it or keeps anything on it.

Launcher guide

The launcher is the first thing you see after boot. Everything in it works with the gamepad; the screenshots are at the R36S's 4:3 size.

First steps

Connect to Wi-Fi
Open Settings → Network, pick your network and type the password with the on-screen keyboard. The handheld reconnects at every boot.
Check the date and time
The clock sets itself once Wi-Fi is up. Under Settings → Date & Time choose Automatic (Public IP), or pick your time zone. See Date & time.
Install a gizlet
Open the Store from Home and install a game. Got a link from a friend? Press X in the Store and type it, such as rocket.
Star your favourites
Press X on an app or service in Apps or Services to put it on Home.

Controls

A confirms and B goes back. Prefer them the other way round? Swap them in Settings → Controls.

D-pad
Move the focus
A
Open, select or launch
B
Go back
LorR
Change page, or change the list in the Store
X
Star or unstar on Home; in the Store, install by link
Y
Search the Store
Volume
Change the volume; a short tone plays at the new level
Hold FN 1 sorSelect + Start 2 s
Leave any app and return to the launcher. The app is asked to quit first, so it can save.
Power
Sleep, and wake again

Home, Apps and Services

Home shows what you starred. The row of icons below it opens Apps, Services, Store, Button Test, Settings and Power. Stars are kept per profile.

Store

Browse and search
Featured cards and lists from gizlet.io, no account needed. Left and Right move through the cards, L and R change the list, and Y searches.
Install by link
Press X and type a short link such as rocket or gizlet.io/rocket, or a GitHub repository. Unlisted gizlets install this way too. A service asks first, since it runs as root and may start at boot.
Updates
Gizlets with an update come first, after Update All. Nothing is updated until you ask.
Downloads
Downloads go on while you play and resume after a dropped connection. Settings → Store shows the queue; select a task to cancel it.
Mirrors
The Store picks a nearby mirror from your public IP. Settings → Store shows which one it uses and lets you enter your own.

Settings

Categories are on the left; their options open on the right.

Network
Turn Wi-Fi on, join or forget a network and see the IP address.
SSH
Turn on remote login, set root's password and see the login command, such as ssh root@gizlet-a1b2.local. More
Display
Brightness, and the dark or light theme.
Sound
Volume, and the interface sounds.
Battery
Charge, power draw, time left, the percentage in the status bar and the sleep timers. More
Controls
Swap A and B, see the connected controllers and open Button Test.
Language
English or Simplified Chinese, or follow the system.
Date & Time
Network time, the 24-hour clock and the time zone. More
Storage
Used and free space on TF1's data partition and the TF2 card. More
System
About this handheld, its hostname, and system updates. More
Store
The download queue, your public IP and the Store's mirror. More
Profiles
Create, rename, switch and delete profiles. More

Date & time

Two settings decide what the clock shows: network time sets the clock, and the time zone sets how it reads.

Date & Time settings with network time synchronized, the 24-hour clock on and the time zone set to Automatic (Public IP), currently UTC+08:00 Beijing, Shanghai
Network time
Once Wi-Fi is connected the handheld sets its clock from time.apple.com, then ntp.aliyun.com, and shows Synchronized. The clock chip keeps the time across restarts.
Automatic time zone
Choose Automatic (Public IP) and the launcher looks up the time zone of your public IP, then checks again now and then while it runs. Current Time Zone shows what it found. Offline, it keeps the last one.
Pick a zone
Select a zone in the list, such as UTC+08:00 Beijing, Shanghai, to set it yourself; that turns automatic detection off. Until you choose, the handheld uses UTC.
What is kept
The time zone belongs to the handheld: every profile shares it and it is kept across restarts and updates. The 24-hour clock is a setting of each profile. The clock redraws in a new zone at once.
Before first boot
To set the zone without the launcher, put setup.ini on the card's boot partition with a line such as timezone=Asia/Shanghai.

Off by a few minutes?

Network time has not run yet. Connect to Wi-Fi and wait for Network Time to show Synchronized.

Off by whole hours?

The time zone is wrong. Choose Automatic (Public IP), or pick your zone yourself when you use a VPN or proxy, since the lookup sees its address.

Storage

Storage settings showing the TF1 data partition at 36% used and the TF2 expansion card at 94% used in red
TF1 data partition
Where installed apps, services, saves and settings live. The writer grows it to fill the card.
TF2 card
Your own files, such as games, at /media/tf2. Without a card it shows Not mounted.
Running low
Each card shows the percentage used, used and total size, and free space, refreshed while the launcher runs. Under 10% free, the bar turns red.

Profiles

Everyone who plays on the handheld can have a profile. There is no account or sign-in; the first profile is called Default until you rename it.

Each profile keeps its own

  • Launcher settings: theme, language, A/B swap, the 24-hour clock and sounds
  • Starred apps and the recently played order
  • Every app's saves and settings
  • Every service's state, and which services start at boot
  • A home folder at /home

The handheld shares

  • Installed apps, services and the runtime
  • Wi-Fi, Bluetooth and SSH
  • Brightness, volume and sleep timers
  • The time zone and the hostname

Manage them in Settings → Profiles. Switching stops the current profile's services, then restarts the handheld into the new profile. The profile in use can't be deleted.

Power and sleep

Power menu with Sleep, Restart, and Power Off
Power menu
Sleep, Restart and Power Off. Quit the Launcher is for development: it hands the handheld to the recovery shell.
Sleep
Press the power key to sleep and again to wake. On its own the handheld sleeps after 5 minutes without input on battery, and never while charging; change both in Settings → Battery. The screen dims 15 seconds before.
After waking
Wi-Fi reconnects within about a second. SSH sessions open across a sleep are dropped.

Updates and recovery

System updates
Settings → System → System updates checks gizlet.io, downloads the next runtime and launcher together and asks you to restart. If the new launcher can't draw its first frame, the handheld goes back to the previous pair and says so in Settings.
Updating the card
The kernel, boot files and the read-only base are updated by the card writer: run the install command again and choose Update. Apps, saves, Wi-Fi and settings stay.
If it won't start
Without a serial cable, uboot.log and gizlet.log on the card's boot partition show how far the last boot got. Keep the stock card as a backup.

For developers

A gizlet is one native Linux program packed as a .gzl, described by gizlet.toml in its GitHub repository. Turn on SSH in Settings and log in as root.

gizlet install FILE.gzl
Install or update an app or a service
gizlet list
List installed apps
gizlet start ID
Ask the launcher to run an app, then come back
gizlet store install LINK
Install from a short link or a GitHub repository
gizlet service status ID
Show a service's state; logs, start, stop, enable and disable work the same way
gizlet profile list
List profiles; create, rename, switch and delete work the same way
gizlet system ota status
Show the running runtime and launcher releases; check and install work the same way
Linking
Link against the runtime's raylib with -l:libraylib.so.600. Dynamically linked programs run through the runtime's gizlet-run, with its glibc and Mesa; static programs and scripts, such as #!/usr/bin/bun, run as they are.
Environment
Apps get GIZLET_SAVE_DIR for their saves in the current profile, GIZLET_LANG and GIZLET_SWAP_AB. Save progress on SIGTERM: leaving an app sends it, then SIGKILL three seconds later.
Services
A background program packaged with "kind": "service" runs under systemd as root, keeps its state in GIZLET_STATE_DIR and logs to the journal.