This chapter is for anyone who relies on a screen reader, braille, speech or magnification, and for anyone setting up a KDOS machine for such a person. It states what accessibility support KDOS has, how to turn on each part, and what it does not reach. No earlier chapter is needed, but Getting started explains the login and the text consoles this chapter refers to, and The desktop explains the desktop’s keyboard routes.
The desktop is Plasma, so it carries Plasma’s accessibility: the whole desktop is published to screen readers, KWin magnifies and filters the keyboard and pointer, and System Settings → Accessibility holds every switch. KDOS adds a few things: the screen reader works from the first login and on the login screen, the Welcome tour asks about accessibility first, the eight accents are held to contrast floors, and the text consoles have BRLTTY for braille and speech.
The installation medium, and every system installed from it, carries the Orca screen reader, BRLTTY and the liblouis braille tables, with Speech Dispatcher and eSpeak NG as their voice. Dasher, KMouth, Kontrast and the Piper speech synthesiser are ports installed on demand:
sudo kdos update install dasher kmouth kontrast piper
| Need | What KDOS offers | Where |
|---|---|---|
| A screen reader | Orca reads the panel, menus, System Settings, KDOS’s own pages and the applications, on Meta+Alt+S; on the login screen it starts and is silent |
The screen reader |
| Braille on the desktop | Orca drives a braille display through BRLTTY | The screen reader |
| Braille or speech at a text console | BRLTTY, on tty2, the installer’s text front end and any other console |
Braille and speech at a text console |
| Magnification | KWin’s zoom, on Meta+=, and its magnifier |
The magnifier |
| Larger text | The font size, the screen’s scale, and a larger pointer | Larger text |
| Typing with limited movement | Sticky, slow and bounce keys | Keyboard aids |
| Clicking with limited movement | Dwell click: resting the pointer clicks | Dwell click |
| Pointing without a mouse | Mouse keys: the number pad moves the pointer and clicks | Pointing from the keyboard |
| Writing with a pointer or a switch | Dasher, which types letters chosen by steering, once installed | Writing with Dasher |
| Speaking typed text | KMouth, over Speech Dispatcher, once installed | Writing with Dasher |
| Typing without a keyboard | Plasma’s on-screen keyboard | The on-screen keyboard |
| Contrast and colour | Eight accents held to contrast floors, one of them light; colour-blindness correction and inverted colours | Colour and contrast |
| Less motion | One switch that stops every animation | Reducing motion |
| A boxed application read aloud | The box reaches the accessibility bus while a reader is in use | Boxed applications |
The Welcome tour opens on the first login. Its Accessibility page comes straight after the welcome page (and after the live page on the live medium), before the tour asks anything else. It holds what a person needs first:
Every switch takes effect at once, and each can be changed later in System Settings →
Accessibility. The page reads the switches again each time it is shown, and every second and a
half while it stays open, so a change made elsewhere while the tour is open, with Meta+Alt+S for example, appears there within
that time. The first Tab on every page of the tour frames the page’s description in the focus
colour, and the screen reader reads it.
A screen reader works from a tree of accessible objects that an application’s toolkit publishes,
on Linux through the AT-SPI accessibility bus. Each object describes one control: what kind it is,
what it is called and what it is set to. Plasma, System Settings, KDOS’s own settings pages,
plasmoids, Welcome pages and installer window, and every Qt, KDE and GTK application publish
theirs, and Orca reads them. Alt+Tab is announced by the window it switches to.
Two parts of the desktop publish little or nothing Orca can use (see Known gaps):
Meta+W) is silent. Orca echoes the keys you press but reads none of its
windows, desktops or search results.Moving around System Settings. Tab moves forward through a page’s controls, and Shift+Tab back:
A settings page opened on its own with kcmshell6 is read the same way, without the sidebar: Tab
and Shift+Tab move between its controls and its Help and Close buttons, and Orca names the page
once each time the focus moves into it (“KDOS Look panel”).
Meta+Alt+S starts and stops Orca, from the first login, as do the Screen Reader page of System
Settings → Accessibility and the Welcome tour’s Accessibility page. The same chord starts Orca on
the login screen, but there it has no sound to speak through (see
Known gaps). Orca speaks through Speech Dispatcher and eSpeak NG, and
drives a braille display through BRLTTY’s client interface, BrlAPI, when BRLTTY is running (see
Programs that talk to BRLTTY). Orca’s own settings, voices, key
echo and verbosity among them, are in its preferences dialog.
Whether Orca is on is your setting: the chord, the System Settings page and the Welcome switch
each write it to [ScreenReader] Enabled in your ~/.config/kaccessrc, and Orca starts at every
login while it says so.
Four packages provide braille and speech below the desktop, all four on the image. The ports catalogue lists them with the rest of the ports.
| Port | Version | What it is |
|---|---|---|
brltty |
6.9.1 | The console screen reader: drives a braille display, speaks, or both |
liblouis |
3.39.0 | Braille translation tables, including contracted (grade 2) braille |
espeak-ng |
1.52.0 | A speech synthesiser |
speech-dispatcher |
0.12.1 | The common speech interface screen readers talk to, with espeak-ng as its voice |
BRLTTY works at a text console, where the screen is a grid of characters it can read directly. In the graphical session the reader is Orca, which uses BRLTTY only to reach a braille display.
BRLTTY reads the Linux text console through /dev/vcsa, which always shows the virtual terminal
in the foreground. That covers:
tty2, a plain login prompt on every KDOS system, which you reach from the desktop with
Ctrl+Alt+F2;kinstall, when it runs on a text console of its own (see
Running the installer);kdos-dm puts on tty1 when the login screen cannot start.While the login screen or a desktop is in the foreground, /dev/vcsa holds nothing BRLTTY can use;
Orca is the reader there. Speech from BRLTTY shares the sound card with the desktop; see
Speech and the sound card.
KDOS’s BRLTTY has three screen drivers, the parts that decide which screen it reads:
| Driver | Reads |
|---|---|
lx (the default) |
The Linux text console |
em |
A terminal run under brltty-pty |
tx |
A tmux session |
To use another than lx, name it with screen-driver in /etc/brltty.conf.
BRLTTY runs as a system service, 65_brltty, because /dev/vcsa belongs to root and the tty
group. The service starts at boot only once /etc/brltty.conf exists and is not empty; until
then it reports [SKIP] brltty: no /etc/brltty.conf and does nothing. Nothing on the image
installs that file, because an attached serial or USB device is no evidence of a braille display.
Write the file, naming a braille driver, a speech driver, or both. For example, a display found
automatically on USB, with speech from espeak-ng:
braille-driver auto
braille-device usb:
speech-driver en
Driver codes are two letters: bm is Baum, ht HandyTech, fs Freedom Scientific, hw
HumanWare and so on, auto probes for a display, en is eSpeak-NG and sd is
Speech Dispatcher. Every braille driver BRLTTY registers is built, as a loadable module under
/usr/lib/brltty, and BRLTTY loads only the driver the file names, or the one auto finds.
eSpeak-NG is linked into brltty itself; the other speech drivers, sd among them, are modules
in the same directory. BRLTTY’s own manual lists every driver code and every directive the file
accepts.
Then start the service, or reboot:
sudo service start brltty
service is described under Services. On the live image the file is
lost at power-off unless the session has a persistence store (see
Getting started).
At boot no audio server is running, so the BRLTTY service sets KDOS_ALSA_DEFAULT=kdos_card and
its voice plays straight to the sound card rather than through PipeWire, the desktop’s sound
server. The card accepts one user at a time, and BRLTTY’s voice opens it for each utterance and
closes it once the utterance has played. In practice:
On a machine that runs the desktop, use Orca for speech and BRLTTY for braille.
In a terminal inside the desktop, speech plays through ALSA’s default device, which in a session
is PipeWire: espeak-ng "text" speaks a line, and spd-say "text" does the same through Speech
Dispatcher. Speech Dispatcher is built with ALSA output and espeak-ng as its only synthesiser.
Its Python module, speechd, is installed with it, and so is spd-conf, which writes a per-user
configuration and runs Speech Dispatcher’s own diagnostics. The first program that speaks in a
session, Orca or spd-say, starts the Speech Dispatcher server, and the server ends with its eSpeak
NG modules when you log out, unless another login of yours (a console or a second graphical
login) is still open; the next login starts
its own.
piper, a neural speech synthesiser that speaks through PipeWire, is not on the image; install it
with sudo kdos update install piper. It ships no voice: a voice is a model file passed with
-m, and kdos speech voice get fetches one into ~/.local/share/piper/voices (see
kdos speech). Without piper, kdos speech say and
kdos speech voice get say it is not installed and name that command, and download nothing.
Klipper’s Read Aloud action appears only while piper and a voice are both installed. Speech to
text works the same way: kdos speech get and kdos speech transcribe need whisper.cpp
(sudo kdos update install whisper.cpp, and whisper-model-base-en for a model every account
finds in /usr/share), and say so when it is missing. Speech Dispatcher and BRLTTY do not use
Piper (see Local AI, speech and translation).
BRLTTY is built with liblouis, which installs 323 translation tables (.ctb, .utb and .tbl
files) covering literary and computer braille for many languages. They are installed under
/usr/share/liblouis/tables. Name a liblouis table with a louis: prefix. For Unified English
Braille grade 2, put this line in /etc/brltty.conf:
contraction-table louis:en-ueb-g2.ctb
or pass -c louis:en-ueb-g2.ctb on BRLTTY’s command line. A table name without the prefix names
one of BRLTTY’s own, smaller set of contraction tables. A Python program reaches the same tables
through the louis module, which is installed with liblouis; Orca uses it for contracted braille
on the desktop.
A program reaches a running BRLTTY through BrlAPI, BRLTTY’s client interface. Orca is one such
client, through the brlapi Python module installed with BRLTTY; brltty-clip, which shares a
clipboard with the braille display, is another. BrlAPI admits a client through polkit, the system
service other daemons ask whether a user may perform an action. The action is
org.a11y.brlapi.write-display, and the rule installed with BRLTTY grants it to members of the
brlapi group and to nobody else. The rule tests group membership and not an active session, so it
covers a program in a console login or a background job as well as one in the desktop (see
The security model).
Installing BRLTTY creates the brlapi group and adds the desktop account, kdos, to it. That
happens only when the group is first created, so an account removed from the group stays out
across reinstalls. Any other account that needs braille, through Orca or otherwise, must be added
by hand:
sudo usermod -a -G brlapi <user>
There is no /etc/brlapi.key. A key file generated when the image is built would be the same
secret on every machine installed from it, so BrlAPI’s key-file authorisation is left without a
key and polkit is what admits clients.
KWin magnifies the screen around the pointer:
| Key | Action |
|---|---|
Meta+= |
Zoom in |
Meta+- |
Zoom out |
Meta+0 |
Back to actual size |
The zoom follows the pointer and the text cursor, so what you type stays in view: KDOS turns on following the text cursor, which works in every Wayland program that takes text through the input method or the on-screen keyboard. It does not follow the keyboard focus, which KWin leaves off on Wayland. System Settings → Accessibility, and Window Management → Desktop Effects, choose between the full-screen zoom and a magnifying inset that follows the pointer, and set how the view tracks the pointer and the text cursor.
While either is on, Phosphor mode’s CRT pass stands aside, because scanlines and glow, once magnified, make text harder to read (see Phosphor mode).
| What | Where |
|---|---|
| Every font at once | System Settings → Text & Fonts: the interface, fixed-width, toolbar, menu and window-title sizes |
| Everything, text and controls alike | System Settings → Display & Monitor: the scale of each screen, which may be a fraction |
| One Konsole tab | Ctrl++, Ctrl+- and Ctrl+0 |
| Konsole’s default | The profile’s font, under Settings → Edit Current Profile → Appearance |
| A web page | The browser’s own zoom, Ctrl++ |
| The text consoles | The console font is a fixed 16×32-pixel bitmap |
The Welcome tour’s Make Text Larger… opens the font page. A new font size reaches open windows in their text, but they keep their size, so a label can be cut short until the window is made larger. The panel, Kickoff and the Welcome tour take the new size once they are reopened, or at the next login. A boxed application takes the fonts and the scale the session hands it; one that ignores them keeps its own toolkit’s settings.
System Settings → Mouse & Touchpad → Cursors sets the pointer’s size, and KWin draws the pointer at that size over every window. The pointer theme is Breeze’s, at 24 pixels by default. KWin’s shake effect briefly enlarges the pointer when you shake it, to find it on a large screen.
Three aids change how the keys of a physical keyboard are read, all off until you turn them on in System Settings → Accessibility or on the Welcome tour’s Accessibility page:
| Aid | What it does |
|---|---|
| Sticky keys | Press and release Shift, Ctrl, Alt or Meta on its own and it applies to the next key; pressed twice, it stays on until pressed again |
| Slow keys | A key counts only once it has been held down for a moment; a key brushed and released sooner is ignored |
| Bounce keys | A second press of the same key soon after the first is ignored, so a hand that shakes does not type a letter twice |
The delays, and whether a sound or a notification marks each aid’s use, are on the same page. The aids act on the desktop’s shortcuts as well as on windows, because KWin applies them before a key reaches anything else.
Dwell click clicks wherever the pointer comes to rest, for anyone who can move a pointer but not press a button reliably. Turn it on in System Settings → Accessibility, or on the Welcome tour’s Accessibility page; the rest time is set on the Accessibility page.
Mouse keys move the pointer with the number pad: the digits around 5 move it, 5 clicks, and the
keys above the pad choose the button. Turn it on in System Settings → Accessibility (Mouse
Navigation) or on the Welcome tour’s Accessibility page; the speed and acceleration are set there.
Dasher and KMouth are not on the image; sudo kdos update install dasher kmouth installs both.
Dasher writes text without a keyboard. Letters stream towards the pointer in boxes sized by how likely each one is to come next, and steering into a box writes its letter, so a mouse, a head pointer, an eye tracker that moves the pointer or a single switch is enough. It can speak what has been written through Speech Dispatcher. Dasher runs under Xwayland, because it reads the pointer through X11, and its direct mode, which types into another application, reaches only other X11 windows; for a Wayland window, write in Dasher’s own text box and paste.
KMouth speaks what is typed into it, or a sentence picked from its phrase books, through Speech
Dispatcher, for someone who cannot speak. On its first start it offers a voice in the session’s
language, an English one under the default en_US.UTF-8; another is chosen in its first-run
dialogue or later under Settings → Configure KMouth.
Plasma’s on-screen keyboard, Plasma Keyboard, types into whichever window has the keyboard focus. KWin runs one input method (the program that turns key presses or taps into text) at a time, and the one KDOS starts is fcitx5, so the on-screen keyboard is off until you choose it:
A program running under Xwayland does not say when a text field has the focus, so the keyboard does not appear by itself over one.
Choosing Plasma Keyboard replaces fcitx5, which is what types Chinese, Japanese and Korean. Those
engines and their fonts are the lang-zh, lang-ja and lang-ko groups (see
Input methods). An engine is added on System Settings → Input
Method → Add Input Method…, after unticking Only Show Current Language (which in KDOS’s
English session hides every Chinese, Japanese and Korean engine) or after typing the engine’s name
in the list’s Search… field.
While fcitx5 is the input method, the Virtual Keyboard button on the lock screen does nothing: fcitx5 draws no keyboard, and the button is shown whenever KWin has an input method at all. Choose Plasma Keyboard first to type on the lock screen without a keyboard.
The login screen has Plasma Keyboard whatever the session’s input method is: its own KWin starts it. It appears when the password field is touched, and the Virtual Keyboard button at the bottom left shows and hides it for a mouse. With more than one keyboard layout set, the button beside it names the current layout and switches to the next.
KDOS has eight colour schemes, called accents: phosphor, amber, ice, bone (the default),
norton, borland, perfect and paper. paper is the only light one, dark text on a pale
ground. Change the accent in any of three places:
kdos theme paper
Every scheme is checked against contrast floors when the image is built, and none can ship below them:
The desktop’s icon labels are white on every accent. Under paper, whose wallpaper is near-white,
each label sits on a dark rounded backing that holds it above 4.5:1 on any wallpaper; on a dark
accent it has only a shadow. See
How the accents are kept readable. Kontrast,
installed with sudo kdos update install kontrast, checks any pair of colours against the same
guidelines.
KWin also corrects for colour blindness (protanopia, deuteranopia and tritanopia), and inverts the
colours of the whole screen or of one window; both are under System Settings → Accessibility and
Desktop Effects. Inversion is off until its effect is turned on there, and Meta+Ctrl+I (the
screen) and Meta+Ctrl+U (the window) work from then on. Night Light warms the whole screen
towards a lower colour temperature on the schedule set on its System Settings page;
Meta+Ctrl+Shift+N turns it on, warm at once and all day, or off.
One switch stops every animation: windows opening, closing and moving between desktops, the overview, popups and notifications sliding in, and, with Phosphor mode on, the CRT’s unfolding, folding, degauss and power-down. Plasma, KWin and every KDE application follow it at once.
kdos toggle reduced-motion
The same switch is on the Welcome tour’s Accessibility and Look pages, and on System Settings →
General Behavior, where the animation speed slider’s fastest end is instant. KDOS ships animations
at half KDE’s usual length. kdos toggle reduced-motion writes AnimationDurationFactor=0 into
your own ~/.config/kdeglobals, and turning it off removes that key again, so the shipped speed
applies. Phosphor mode’s still
picture stays: only its motion stops. See Animation speed
for the setting KWin’s effects follow, and Motion
for the rule every animation follows.
Inside a box, the container an application from the catalogue runs in (see the glossary), the ordinary Linux accessibility stack applies. An application’s toolkit publishes its tree of accessible objects on the accessibility bus, and Orca on the host reads it like any other window.
A box’s bus filter lets it reach the accessibility bus whenever assistive technology is in use:
the screen reader is switched on in System Settings, a reader or another assistive program is
attached to the accessibility bus, or the file ~/.config/kdos/a11y exists. Otherwise the box is
kept off the accessibility bus, and kdos-appbox puts NO_AT_BRIDGE=1 and GTK_A11Y=none in its
environment, so that a GTK application does not spend its start-up looking for it.
To turn it on for every box whatever else is running, create an empty file:
touch ~/.config/kdos/a11y
To decide one launch, set KDOS_A11Y in front of the command:
KDOS_A11Y=1 hugin # the command on your PATH
KDOS_A11Y=1 kdos-appbox -b app.hugin run hugin
KDOS_A11Y=0 turns it off for that launch whatever else is true; any other non-empty value turns
it on. A box’s filter is set when the box starts, so a screen reader switched on later reaches a
running box from its next start. What a boxed application offers is whatever its own toolkit
publishes.
~/.config/kdos/a11y filebrltty serviceorca, brltty, liblouis, espeak-ng and speech-dispatcher among the other portsPart II — Using KDOS, chapter 11. Previous: 10. Administration · Contents · Next: 12. Architecture overview