xref: /OK3568_Linux_fs/kernel/Documentation/admin-guide/braille-console.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunLinux Braille Console
2*4882a593Smuzhiyun=====================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunTo get early boot messages on a braille device (before userspace screen
5*4882a593Smuzhiyunreaders can start), you first need to compile the support for the usual serial
6*4882a593Smuzhiyunconsole (see :ref:`Documentation/admin-guide/serial-console.rst <serial_console>`), and
7*4882a593Smuzhiyunfor braille device
8*4882a593Smuzhiyun(in :menuselection:`Device Drivers --> Accessibility support --> Console on braille device`).
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunThen you need to specify a ``console=brl``, option on the kernel command line, the
11*4882a593Smuzhiyunformat is::
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun	console=brl,serial_options...
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunwhere ``serial_options...`` are the same as described in
16*4882a593Smuzhiyun:ref:`Documentation/admin-guide/serial-console.rst <serial_console>`.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunSo for instance you can use ``console=brl,ttyS0`` if the braille device is connected to the first serial port, and ``console=brl,ttyS0,115200`` to
19*4882a593Smuzhiyunoverride the baud rate to 115200, etc.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunBy default, the braille device will just show the last kernel message (console
22*4882a593Smuzhiyunmode).  To review previous messages, press the Insert key to switch to the VT
23*4882a593Smuzhiyunreview mode.  In review mode, the arrow keys permit to browse in the VT content,
24*4882a593Smuzhiyun:kbd:`PAGE-UP`/:kbd:`PAGE-DOWN` keys go at the top/bottom of the screen, and
25*4882a593Smuzhiyunthe :kbd:`HOME` key goes back
26*4882a593Smuzhiyunto the cursor, hence providing very basic screen reviewing facility.
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunSound feedback can be obtained by adding the ``braille_console.sound=1`` kernel
29*4882a593Smuzhiyunparameter.
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunFor simplicity, only one braille console can be enabled, other uses of
32*4882a593Smuzhiyun``console=brl,...`` will be discarded.  Also note that it does not interfere with
33*4882a593Smuzhiyunthe console selection mechanism described in
34*4882a593Smuzhiyun:ref:`Documentation/admin-guide/serial-console.rst <serial_console>`.
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunFor now, only the VisioBraille device is supported.
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunSamuel Thibault <samuel.thibault@ens-lyon.org>
39