Troubleshooting
Every trap in this chapter was met by this guide's own lab, in the order written, unless it says otherwise. Each gets its cause and its check, not just its symptom.
"My settings changes keep disappearing"
You changed a theme or a layout, and the
next launch forgot all of it. Cause:
the config file is written only when
btop quits cleanly (chapter 8), and
the sitting that made the change ended
some other way — the terminal was
closed, the program was killed, or, as
in the lab's case, btop itself crashed:
the lab ran its first sessions on a
nearly-full machine, lost the copy of
btop mid-sitting, and found neither a
config file nor the theme change
afterwards. Check: make one small
change, quit with q, and read the
value back out of
~/.config/btop/btop.conf. If it is
there, your changes were dying with
their sittings, and the habit to build
is quitting on purpose.
"The keys do nothing / change the wrong screen"
You press a key and the monitor ignores it — or the menu answers a key meant for the list. Two causes, both met by the lab. First: Esc closes screens one layer at a time, and Help and Options return to the menu, not to the monitor, so the first key or two after "escaping out" are spoken to the menu. Press Esc until the menu is gone (the block letters vanish), then key again. Second: keys pressed in a burst while the machine is heavily loaded can be missed entirely — the lab lost whole key sequences that way before learning to press once and watch. A single key, on a quiet moment, that still does nothing is a real fault; a six-key combo that half-landed is traffic.
"The terminate popup names a process I did not pick"
Not a malfunction: the list re-sorts
between your selection and your t,
and the row moved. This is the most
important entry in the chapter, and
chapter 5 is built on the lab's own
near-miss — the popup named a compiler
at PID 68654, not the test process it
intended. The popup is the safeguard;
read the PID line every time, and when
a stop matters, filter first so only
one row exists to mean.
"Whole boxes are missing when btop opens"
The config file's shown_boxes is
missing them — most often because the
previous sitting quit while a preset
was active, and the preset's box set is
what got saved (chapter 7; the lab's
file read shown_boxes = "cpu net" and
the next launch opened with no memory
or process box). Press the number keys
of the missing boxes (2, 4), quit
cleanly to re-save, or edit
shown_boxes to "cpu mem net proc"
by hand.
"The disks panel is empty"
On a physical machine with ordinary
mounts, that would be a fault. In a
container or some virtual machines it
is the environment telling the truth:
the lab's machine offered only an
overlay filesystem and temporary mounts,
and the panel stayed empty through
every session, with show_disks = true
and no filter set in the config.
Check the environment first
(cat /proc/mounts) before blaming
the tool.
"Only two themes: Default and TTY"
The themes btop ships live as files in
a themes folder, and a copy of btop
running away from its installed home —
an unpacked tarball run in place, as
the lab ran it — finds only the two
themes built into the binary. Install
btop properly, or copy .theme files
into ~/.config/btop/themes, and the
Options list (Color theme n/m) grows
to match.
"A process shows more than 100% (or half what I expect)"
Neither, once the reference is named: btop can count a process's processor use against all cores or against one. With the per-core switch on (chapter 3), a process using one whole core of four reads about 25% done one way and 100% the other. If a figure looks impossible, find the switch's state before suspecting the process. The related confusion — two tools disagreeing about the same process — is usually this switch, or the lazy versus direct sort readings of chapter 4, not an error in either tool.
"The screen is garbled or refuses to fit"
Braille graphs need a font that has the
glyphs, and four boxes need a terminal
with room. Remedies in order: widen the
window; hide boxes with the number keys
or choose a preset; switch the graph
symbol set (Options, or preset 3's
block style); or go all the way to
btop --tty, the 16-colour ANSI mode
built for exactly these conditions.