Hello,
The “macbook79” model plus the “pt” layout are correct. The other lines highlighted by my extended search are possible variants.
Perhaps the main thing is:
Where does the console get it's layout from?
Was the method i used the "best" to change the keymap to reflect the stencil?
So yes, you've used the right method.The file console-setup specifies the encoding and the font to be used by setupcon(1) in order to setup the console. It can be used also to specify the keyboard layout but it is not recommended to do so, use keyboard(5) instead.
The keyboard file describes the properties of the keyboard. It is read by setupcon(1) in order to configure the keyboard on the console. In Debian systems the default keyboard layout is described in /etc/default/keyboard and it is shared between X and the console.
The specification of the keyboard layout in the keyboard file is based on the XKB options XkbModel, XkbLayout, XkbVariant and XkbOptions. Unfortunately, there is little documentation how to use them. Description of all possible values for these options can be found in the file base.lst.
Code:
$> mawk 'tolower($0) ~ /port|pt|macbook79/ && /mac/' /usr/share/X11/xkb/rules/base.lst macbook79 MacBook/MacBook Pro (intl.) emachines eMachines m6800 laptop mac pt: Portuguese (Macintosh) mac_nodeadkeys pt: Portuguese (Macintosh, no dead keys)
Perhaps the main thing is:
In order to activate the changes on the console, run setupcon(1).
I would start by running setupcon.setupcon is a program for fast and easy setup of the font and the keyboard on the console. Most of the time you invoke setupcon without arguments. The keyboard configuration is specified in ~/.keyboard or /etc/default/keyboard. The font configuration is specified in ~/.console-setup or /etc/default/console-setup. Consult keyboard(5) and console-setup(5) for instructions how to configure these two files.
Statistics: Posted by fabien — 2024-02-04 21:12