Checking the Layout configuration: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: ==Check the manufacturing Data== (information that comes with the laptop, and should state what language it should be in) *Boot into the ok prompt *type: .mfg-data *next to LA should be th...)
 
m (remove Category:i18n (this ws only member))
 
(27 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{OLPC}}
==Check the Internationalization File==
{{Merge|Customizing NAND images}}

*In a terminal, type: cat /home/olpc/.i18n
*The i18n file will look something like:
LANG="en_US.UTF-8"
*Usually, LANG="{two letter ISO language code}_{two letter ISO country code}.UTF-8". The country code is only used if there are multiple countries with that language. Use <tt>locale -a</tt> for a complete list of legal values [http://www.bcpl.net/~j1m5path/isocodes.html country codes]

See [[Olpc-utils]] for implementation details.

== Check the keyboard mappings ==
{{Merge|Customizing NAND images}}

*In a terminal, type: cat /etc/sysconfig/keyboard
*The keyboard file will look something like:
KEYTABLE="us"
XKB_MODEL="olpc"
XKB_LAYOUT="us"
XKB_VARIANT="olpc"
*The <tt>XKB_LAYOUT="{two letter ISO country code}</tt> is the two letter country code of the laptop. [http://www.bcpl.net/~j1m5path/isocodes.html country codes]
*Changing this will change the keyboard mapping that the laptop uses.
*The <tt>KEYTABLE</tt> is the keymap for the Linux text console. It supports fewer keyboards than X11. The complete list is in <tt>/lib/kbd/keymaps</tt>.
*You can create a file /home/olpc/.kbd with per-user overrides of the system defaults.

See [[Olpc-utils]] for implementation details.



{{Developers}}
The following procedures are only applicable to laptops that have developer keys (Please see [[Activation and Developer Keys]]).

==Check the manufacturing Data==
==Check the manufacturing Data==
(information that comes with the laptop, and should state what language it should be in)
(information that comes with the laptop, and should state what language it should be in)
Line 5: Line 37:
*next to LA should be the code for the three letter country code of the laptop
*next to LA should be the code for the three letter country code of the laptop


==Changing mfg data (with q2c27a only)==
==Check the Internationalization File==

*In a terminal, type: cat /etc/sysconfig/i18n
You can't easily do this with the firmware we make available to the public, though the ''[[tag editing]]'' page does explain how.
*The i18n file will look something like:

LANG="en_US.UTF-8"
# Install special firmware
SYSFONG="sun12x22"
# Reboot holding the X game button and then hit escape to get to the OK prompt
*LANG="{two letter language code}_{two letter country code}.UTF-8" (the country code us only used if there are multiple countries with that language)
# Type 'change-tag TN <value string>' where TN is the two letter tag and value string is the new value

Example: change-tag LA RUS
(changes the laptop to russian)


[[Category:XO localization]]
==Check the xorg.conf File==
[[Category:Keyboard]]
(This is what decides what keyboard mapping will be used by the laptop)
*In a terminal, type: less /etc/X11/xorg.conf
*Look at the section labeled "InputDevice" (it will have lines something close to the following)
**Option "XkbLayout" "us"
**Option "XkbVariant" "olpc"

Latest revision as of 04:56, 17 November 2008

  This page is monitored by the OLPC team.

Check the Internationalization File

Merge-arrows.gif
It has been suggested that this article or section be merged with Customizing NAND images. (Discuss)


  • In a terminal, type: cat /home/olpc/.i18n
  • The i18n file will look something like:
    LANG="en_US.UTF-8"
  • Usually, LANG="{two letter ISO language code}_{two letter ISO country code}.UTF-8". The country code is only used if there are multiple countries with that language. Use locale -a for a complete list of legal values country codes

See Olpc-utils for implementation details.

Check the keyboard mappings

Merge-arrows.gif
It has been suggested that this article or section be merged with Customizing NAND images. (Discuss)


  • In a terminal, type: cat /etc/sysconfig/keyboard
  • The keyboard file will look something like:
    KEYTABLE="us"
    XKB_MODEL="olpc"
    XKB_LAYOUT="us"
    XKB_VARIANT="olpc"
  • The XKB_LAYOUT="{two letter ISO country code} is the two letter country code of the laptop. country codes
  • Changing this will change the keyboard mapping that the laptop uses.
  • The KEYTABLE is the keymap for the Linux text console. It supports fewer keyboards than X11. The complete list is in /lib/kbd/keymaps.
  • You can create a file /home/olpc/.kbd with per-user overrides of the system defaults.

See Olpc-utils for implementation details.



The following procedures are only applicable to laptops that have developer keys (Please see Activation and Developer Keys).

Check the manufacturing Data

(information that comes with the laptop, and should state what language it should be in)

  • Boot into the ok prompt
  • type: .mfg-data
  • next to LA should be the code for the three letter country code of the laptop

Changing mfg data (with q2c27a only)

You can't easily do this with the firmware we make available to the public, though the tag editing page does explain how.

  1. Install special firmware
  2. Reboot holding the X game button and then hit escape to get to the OK prompt
  3. Type 'change-tag TN <value string>' where TN is the two letter tag and value string is the new value
 Example: change-tag LA RUS
  (changes the laptop to russian)