International Language Environments Guide

Changing Between Keyboards on SPARC Systems

You can change keyboard layouts on a Oracle Solaris system by using the DIP switch settings under most Sun Type 4, 5 and 5c keyboards. A list of keyboard type, names and corresponding layout IDs that can be used for the DIP switch settings is in the /usr/openwin/share/etc/keytables/keytable.map file.


Note –

You cannot change the layout of Type 6 keyboards because the back of the keyboard has no DIP switch. Some Type 5 and 5c keyboards, for example, U.S.A., U.S.A./UNIX, and Japanese keyboards have jumpers instead of DIP switches. Other than the xmodmap utility or the kbd -s command, the SPARC platform does not offer utilities or tools that you can use to switch keyboards.


The following is a table of the layout ID values for Type 4, 5, and 5c keyboards (1 = switch up, 0 = switch down).

Table 3–16 Layouts for Type 4, 5, and 5c Keyboards

DIP Switch 

Keyboard (Keytable File) 

Setting in Binary 

U.S.A. (US4.kt)

000000 

U.S.A. (US4.kt)

000001 

Belgium (FranceBelg4.kt)

000010 

Canada (Canada4.kt)

000011 

Denmark (Denmark4.kt)

000100 

Germany (Germany4.kt)

000101 

Italy (Italy4.kt)

000110 

The Netherlands (Netherland4.kt)

000111 

Norway (Norway4.kt)

001000 

Portugal (Portugal4.kt)

001001 

10 (0x0a) 

Latin America/Spanish (SpainLatAm4.kt)

001010 

11 (ox0b) 

Sweden (SwedenFin4.kt)

001011 

12 (0x0c) 

Switzerland/French (Switzer_Fr4.kt)

001100 

13 (0x0d) 

Switzerland/German (Switzer_Ge4.kt)

001101 

14 (0x0e) 

Great Britain (UK4.kt)

001110 

16 (0x10) 

Korea (Korea4.kt)

010000 

17 (0x11) 

Taiwan (Taiwan4.kt)

010001 

23 

Russian 

100001 

33 (0x21) 

U.S.A. (US5.kt)

100111 

34 (0x22) 

U.S.A./UNIX (US_UNIX5.kt)

100010 

35 (0x23) 

France (France5.kt)

100011 

36 (0x24) 

Denmark (Denmark5.kt)

100100 

37 (0x25) 

Germany (Germany5.kt)

100101 

38 (0x26) 

Italy (Italy5.kt)

100110 

39 (0x27) 

The Netherlands (Netherland5.kt)

100111 

40 (0x28) 

Norway (Norway5.kt)

101000 

41 (0x29) 

Portugal (Portugal5.kt)

101001 

42 (0x2a) 

Spain (Spain5.kt)

101010 

43 (0x2b) 

Sweden (Sweden5.kt)

101011 

44 (0x2c) 

Switzerland/French (Switzer_Fr5.kt)

101101 

45 (0x2d) 

Switzerland/German (Switzer_Ge5.kt)

101110 

46 (0x2e) 

Great Britain (UK5.kt)

101111 

47 (0x2f) 

Korea (Korea5.kt)

101111 

48 (0x30) 

Taiwan (Taiwan5.kt)

110000 

49 (0x31) 

Japan (Japan5.kt)

110001 

50 (0x32), see also 63 (0x3f) 

Canada/French (Canada_Fr5.kt)

110010 

51 0(x33) 

Hungary (Hungary5.kt)

110011 

52 (0x34 

Poland (Poland5.kt)

110100 

53 (0x35) 

Czech (Czech5.kt)

110101 

54 (0x36) 

Russia (Russia5.kt)

110110 

55 (0x37) 

Latvia (Latvia5.kt)

110111 

56 (0x38) see also 62 (0x3e) 

Turkey-Q5 (TurkeyQ5.kt)

111000 

57 (0x39) 

Greece (Greece5.kt)

111001 

58 (0x3a) 

Arabic (Arabic5.kt)

111011 

59 (0x3b) 

Lithuania (Lithuania5.kt)

111010 

60 (0x3c) 

Belgium (Belgian5.kt)

111100 

62 (0x3e) 

Canada/French (Canada_Fr5_TBITS5.kt)

111111 

 

French Canadian 

 

 

Polish Programmer 

 

 

Estonian 

 

Keytable file names with 4 are for a Type 4 keyboard. Keytable file names with 5 are for a Type 5 keyboard.

ProcedureHow to Change the Keyboard Layout to the Czech Layout in the Xsun Server

  1. Determine the correct DIP switch ID (or layout ID) either from the table or from the /usr/openwin/share/etc/keytables/keytable.mp file. The layout ID value in the keytable.mp file is a decimal value.

    For Czech, the layout ID is 53 in decimal (0x35 in hexadecimal).

  2. Convert the layout ID to binary, or use a proper Setting in Binary value from the column in the above table. For base conversion, calculator utilities such as dtcalc(1) may be used.

    For example, the correct binary value for the Czech keyboard is 110101.

  3. Shut down and power off the system.

  4. Change the DIP switch settings at the back of the keyboard by using the binary value in step 2.

    The first DIP switch is on your left. Move the switch up for 1 and down for 0.

    The Czech keyboard binary value 110101, corresponds to: Up Up Down Up Down Up

  5. Power on and boot the system for use.


    Note –

    Unlike Type 4 keyboards, Type 5 and 5c keyboards have only five DIP switches. For the Type 5 and 5c keyboards, disregard the first binary digit. For the Czech Type 5c keyboard, for example, the correct DIP switch settings are Up Down Up Down Up, using only the last five digits from 10101.