The tabs
This guide is for the person at an appliance’s keyboard. It says what each of the twelve tabs shows and which keys work in it. dom0 has no shell, so the tabs are how you see and control the machine.
- How the tabs work
- Real keyboards and programs
- The lock
- Alerts
- F1 help · F2 top · F3 log · F4 alerts · F5 network · F6 disks · F7 usb · F8 machine · F9 iommu · F10 power · F11 backups · F12 settings
How the tabs work
Press MOD+F1 through MOD+F12 to open a tab. MOD is the Super
key. A bare F1 to F12 goes to your program.
- Another
MOD+Fnswitches tabs. The sameMOD+Fnagain redraws the tab. - Under the top line is the tab row, F1 to F12, with the open tab lit.
- Esc closes the tab. In a second view (F2’s session, F4’s alert, F5’s passphrase, F6’s disk, F7’s detail, F9’s device, F11’s point), Esc first steps back.
- The tab covers the output with the focused workspace. Other outputs keep your windows.
- The top line shows the tab, the alerts waiting, the world, and the clock. The last line lists the keys the tab takes now.
- Live numbers refresh once a second. Graphs show the last minute, newest on the right.
- While a tab is open, it takes every key and click. Only the power
key, VT switching, and
MOD+Fnstill work.
Real keyboards and programs
A program in a world can send key presses. So a tab opened from a real keyboard belongs to that keyboard: a program cannot close it, switch it, or move its selection. These actions always need a real keyboard, on a tab a real keyboard opened:
- F2: end a session;
- F5, F7, F12: every key;
- F9: approve, measure, and delete;
- F11: its actions;
- F10:
l,s,r,pand the box’sy.
A program can open a tab and look around in it. It cannot end anything, power anything off from a tab, or take a tab from you. A program can send the power key.
The lock
MOD+Shift+Delete locks the screen. Learn your world’s mark on the
lock: a lock without it is a fake. scrotwmos-dom0(7) says how the lock
works. Under the lock, only F10 opens, so you can sleep or power off.
Alerts
While an alert band is up, MOD+Fn still works: open F4 to read the
alert, or F3 for the log. scrotwmos(7) explains the band and the
codes.
F1 help
An index of sections: keys, tiling, layouts, window states, tutorial, panels, worlds, alerts, power, and about. Enter opens a section as its own page; Esc goes back to the index. The keys page lists every binding in force, with its line from scrotwmos.conf(5). About shows the version, the build date, the kernel, and the BIOS and microcode versions.
Keys: Esc close, or back on a page; Up, Down select a section, or scroll a page; Page Up, Page Down scroll a page; Enter open; h help.
F2 top
One row for each session: name, kind (vm, container, none), uid,
state, cpu % (of one CPU), gpu %, memory in MiB, tasks, and uptime,
with a CPU graph. Under them, the display GPU: on i915 a row for each
engine (rcs0, vcs0, …), and a dom0 row for the compositor.
Enter opens the selected row:
- a container: its processes, busiest first;
- a VM: its memory given, held now, and swap;
- an engine: its busy, wait, and sema %, its frequency and rc6 %, and the processes that use its class.
d stops the selected session. It asks first, in a box: Stop
session "<name>"?, its tasks and its memory. Only y stops it; any
other key cancels.
Keys: Up, Down, Page Up, Page Down, Enter, d, y, h, Esc. h
shows every key; Left and Right scroll the keys line when it does not
fit.
F3 log
This boot’s log, newest at the bottom: dom0’s lines and the sessions’. At the bottom it follows new lines. Scrolled back, it stays put.
/starts a filter: type a word, Enter keeps it, Esc clears it.bshows the boot before, up to four back. After a crash, the boot before is the one that crashed.lgoes back to this boot.- The bottom border shows the line count: the lines on screen, of how many, the boot and the filter.
Keys: Up, Down, Page Up, Page Down, /, b, l, h, Backspace,
Enter, Esc. h shows every key; Left and Right scroll the keys line
when it does not fit.
F4 alerts
The alerts waiting (at most 16), a line for any that were lost, and the last eight you continued. Each row shows its status, its count when it came more than once, its session, and what happened, after the GPU when the alert names one. Under the rows, under what happened, is what to do about the selected alert. On a byol, F4 gives the byol’s words.
Enter opens the selected alert: what happened, what to do, its session,
status, count, and the log (F3; on a byol, /var/log/swm-wl.log), then
its code taken apart. F4 only reads. Continue an alert on its band.
The selection stays on its alert when a new alert moves the rows.
Keys: Up, Down, Page Up, Page Down, Enter, h, Esc.
F5 network
The top lines: Internet, Address, Route, DNS, Wi-Fi, Uplink, Standby,
Sessions and Offline. Address, Route and DNS show only with a lease;
Standby, the link that takes over, only in the mode both; Offline,
the sessions without a network, only when there are some. When the network is down, the Internet line
says why, such as not measured or ROM not approved; F9 measures and
approves a card.
Wi-Fi. Under the header network saved security signal, each
network seen and each one saved. The last row, Other network, joins
a hidden network by its name. The last act’s result shows under the
list: Result saved: <name>, deleted: <name>.
| Key | What it does |
|---|---|
| Up, Down | select a network |
| Enter | join it: a box takes its passphrase, 8 characters or more, shown as *; Enter joins, Esc cancels. On Other network, the box takes the name first |
d |
delete a saved network and its passphrase; a box asks first, y deletes |
w |
turn Wi-Fi off or on, until the next boot |
u |
next uplink: change to the next uplink mode: wired first, Wi-Fi first, wired only, Wi-Fi only, both |
| Page Up, Page Down | scroll the network top |
h |
show every key and the uplink modes |
w and u ask first, in a box, when they stop the link that carries
the Internet now: y does it, any other key cancels.
The world keeps its saved networks and its mode. In both, wired
carries the traffic, and Wi-Fi holds a lease to take over.
Network top. A row for each network card the net VM has, and one for each session: bytes and packets a second each way, drops, and a graph.
A network card added after the install gets no network until F9 measures and approves it.
F6 disks
The first line shows the backup state of the session in focus.
- Disks: each disk, its size, reads and writes a second, and a graph.
- Mounts: dom0’s mounts,
swmdataamong them: partition, type, size, used, free. - Images: each running session’s root and home on swmdata, with its use and its I/O. A session with no image has no row.
Enter on a disk shows its I/O graphs and its partitions. Page Up and Page Down scroll the tab when it does not fit.
Keys: Up, Down, Page Up, Page Down, Enter, h, Esc.
F7 usb
- Status: the blocked USB devices; whether new devices are
blocked until scanoraccepted at once; a scan’s time left; the last error. - Inputs: each keyboard, mouse, touchpad, tablet, or switch:
in use,refused, orgone, its kind, its USB port, and its name. - USB: each USB device: port,
vendor:product, state, class. State isblocked,accepted, orremoved. - Outputs: each output’s make, model, mode, and scale, and the one with the focus.
By default, the compositor takes the input devices present at boot and blocks those plugged in later. To let a new device in:
- Press
r. A 30-second scan starts. - Plug the device in. It shows as
blocked. - Select it with Up and Down, and press
a. A box asks first; pressy.
s stops the scan. Esc closes the tab and stops the scan too. d
removes the selected accepted device, after a box that names what
stops; press y. Enter on a device shows its detail: id, firmware,
strings, speed, interfaces, power, who uses it, and whether it is
remembered.
Keys: Up, Down, PgUp, PgDn, Enter, r, a, s, d, h, Esc.
F8 machine
At the top, fixed: CPU model and threads, CPU use, a bar for each thread, the CPU temperature; memory used and swap; with a battery, its charge and time left, and its power use while it discharges; uptime since boot.
Under it, scrolled: a row for each hardware sensor (fans,
temperatures, voltages, currents, power; the CPU’s power from RAPL as
power), then each firmware that reports a version (BIOS, EC,
microcode, Intel ME or AMD PSP, GPU firmware, UEFI, Thunderbolt,
disks). Enter opens the selected sensor: each reading on its own
line, and its driver.
Keys: Up, Down, Page Up, Page Down, Enter, h, Esc. h shows every
key; Left and Right scroll the keys line when it does not fit.
F9 iommu
What keeps each device away from memory it was not given.
The fixed lines at the top:
- APPROVE: first, alone: the device that waits for approval, or
nothing waits; after a question, its answer. - cpu: VT-x, AMD-V, or none.
- iommu: VT-d or AMD-Vi and its units, or
none: devices reach all memory. - groups: how many; those not strict by type: lazy, not isolated, blocked.
- gpus: the paths a VM can get on this machine, or why none.
Below them, in one scrolling list:
- each IOMMU unit and its features;
- NOTE: the Intel ME or the AMD PSP when one is on, a line apart: a computer inside the machine that reads all memory, which no IOMMU stops;
- records: the approved ROMs and network cards on swmdata;
- the device table: a row for each PCI function: address, kind,
ids, driver, IOMMU group (
sharedwhen another function is in it), who has it, and its state.
Each record and each device row starts with >: Enter opens it.
Enter on a device shows its detail: its group, its state, its measure, and for a GPU its role, ATS, model, paths, gate result, cycle, preempt timeouts, and GPU hangs. gpu.md explains the GPU words.
Actions, from a real keyboard, each asked first in a box:
| On | Key | What it does |
|---|---|---|
| a device held for its ROM | Enter, then the password and Enter | approve its ROM |
| a network card that waits for its measure | Enter or m, then y |
measure it in a measure VM |
| a measured network card | Enter, then y |
approve it; the next net VM gets it |
| a record | d, then y |
delete it; its card is held until approved again |
For a y question any other key cancels; Esc cancels the password box.
Keys: Up, Down, Page Up, Page Down, Enter, m, d, y, h, Esc.
h shows every key; Left and Right scroll the keys line when it does
not fit.
F10 power
| Key | What it does |
|---|---|
l |
locks; the world’s password unlocks it |
s |
locks, then sleeps; it wakes to the lock |
r |
asks first; stops every session, then reboots |
p |
asks first; stops every session, then powers off |
Under the lock there is no l. The box for r and p says how many
sessions stop, when any run. Only y does it; any other key cancels.
The body has one line: last sleep and what woke the machine (USB,
the keyboard, the power button, the clock, Wi-Fi, the network), the
monitor’s line when that is not known, or none since boot. A closed
lid sleeps the machine too. The power key does nothing from the start
of a sleep until 5 seconds after the wake.
Keys: l, s, r, p, y, h, Esc.
F11 backups
The points of your home, and its backup place, for the session in focus. A point is your home as it was at that hour. The backup place is a USB disk the copies go to.
| Key | What it does |
|---|---|
| Enter | open the point: when it was taken, its size, where it is mounted |
n |
take a point now |
b |
browse the point’s files, mounting it first |
m |
mount the point read-only at /points/<hour> |
u |
unmount the point |
d |
delete points: o the old ones now, or a all of them after your password |
o |
start or stop hourly points for this session’s home |
s |
show the share’s points, /share; again for your home’s |
p |
set a USB disk as the backup place |
h |
every key and what it does; Left/Right show the keys past the line’s end |
Any number of points can be mounted at once. The hour is the point’s
UTC hour, for example /points/20261028T13Z. To restore a file, copy
it out of the mounted point in the session.
F12 settings
The pointer and keyboard of this world: speed, acceleration, natural scrolling, tap to click, left-handed, cursor size, key repeat delay and rate. A change is saved and takes effect at once.
Keys: Up, Down select; + increases, - decreases the selected
setting; h shows every key; Esc. On an on/off setting, + sets on
and - sets off. = and the keypad + and - work too.