Specifications.
[pintos-anon] / specs / kbd / scancodes-6.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2 <HTML>
3 <HEAD>
4  <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
5  <TITLE>Keyboard scancodes: NCD keyboards</TITLE>
6  <LINK HREF="scancodes-7.html" REL=next>
7  <LINK HREF="scancodes-5.html" REL=previous>
8  <LINK HREF="scancodes.html#toc6" REL=contents>
9 </HEAD>
10 <BODY>
11 <A HREF="scancodes-7.html">Next</A>
12 <A HREF="scancodes-5.html">Previous</A>
13 <A HREF="scancodes.html#toc6">Contents</A>
14 <HR>
15 <H2><A NAME="NCD"></A> <A NAME="s6">6. NCD keyboards</A></H2>
16
17 <P>Some keyboards natively produce 
18 <A HREF="scancodes-9.html#scancodesets">Set 3</A> scancodes.
19 When connected to a PC one will by default see translated Set 3 scancodes.
20 This means that the F9 and F10 keys have make codes <B>60</B> and <B>61</B>
21 and break codes <B>e0</B> and <B>e1</B>. Thus, these latter codes are
22 ordinary key release codes here, not protocol codes.
23 <P>The N-nnn type numbers indicate the number nnn of keys the keyboard has.
24 <P>
25 <H2><A NAME="e0_as_key"></A> <A NAME="ss6.1">6.1 A Japanese keyboard using e0 as ordinary scancode</A>
26 </H2>
27
28 <P>Benjamin Carter &lt;<CODE>bcarter@ultra5.cs.umr.edu</CODE>&gt; reports:
29 <P><I>I recently came into possession of a 97-key keyboard with Japanese
30 markings on the keys.  (The keys also have the standard
31 qwerty-characters on them, with the exception of some of the meta-keys
32 (there are 3 keys near the Alt keys on either side of the spacebar with
33 only Japanese characters on them so I don't know what they are).
34 In any case, the keyboard sends out scancodes that work for all the main
35 keys (backspace, letters and numbers, enter, shift), but the numeric
36 keypad, Alt keys, and function keys don't work.
37 I have run the board through <CODE>showkey -s</CODE>, so I know what
38 scancodes this keyboard sends out.
39 However, the F9 and F10 keys send out <B>60</B> and <B>61</B>,
40 respectively, so their key release events send out <B>e0</B>
41 and <B>e1</B>, confusing the keyboard driver.</I>
42 <P>(Compare this with the 
43 <A HREF="scancodes-9.html#correspondence">table</A>
44 giving the translated Set 3 scancodes. The reported codes are
45 almost identical.)
46 <P># These are across the top of the keyboard.
47 <P><B>58</B> (F1), <B>59</B> (F2), <B>5a</B> (F3),
48 <B>5b</B> (F4), <B>5c</B> (F5), <B>5d</B> (F6),
49 <B>5e</B> (F7), <B>5f</B> (F8), <B>60</B> (F9),
50 <B>61</B> (F10), <B>62</B> (F11), <B>63</B> (F12)
51 <P> 
52 <B>76</B> (Break), <B>77</B> (Setup).
53 <P> 
54 # top row
55 <P><B>64</B> (Esc),
56 <B>02</B> (1), <B>03</B> (2), <B>04</B> (3),
57 <B>05</B> (4), <B>06</B> (5), <B>07</B> (6),
58 <B>08</B> (7), <B>09</B> (8), <B>0a</B> (9),
59 <B>0b</B> (0), <B>0c</B> (-), <B>0d</B> (=),
60 <B>29</B> (`), <B>0e</B> (Backspace)
61 <P>
62 <P># 2nd row
63 <P><B>0f</B> (Tab),
64 <B>10</B> (Q), <B>11</B> (W), <B>12</B> (E),
65 <B>13</B> (R), <B>14</B> (T), <B>15</B> (Y),
66 <B>16</B> (U), <B>17</B> (I), <B>18</B> (O),
67 <B>19</B> (P), <B>1a</B> ([), <B>1b</B> (]),
68 <B>79</B> (Del), <B>6e</B> (Line Feed)
69 <P>
70 <P># 3rd row
71 <P><B>38</B> (Ctrl),
72 <B>1e</B> (A), <B>1f</B> (S), <B>20</B> (D),
73 <B>21</B> (F), <B>22</B> (G), <B>23</B> (H),
74 <B>24</B> (J), <B>25</B> (K), <B>26</B> (L),
75 <B>27</B> (;), <B>28</B> ('), <B>75</B> (\),
76 <B>1c</B> (Return)
77 <P>
78 <P># 4th row
79 <P><B>2a</B> (Shift_L),
80 <B>2c</B> (Z), <B>2d</B> (X), <B>2e</B> (C),
81 <B>2f</B> (V), <B>30</B> (B), <B>31</B> (N),
82 <B>32</B> (M), <B>33</B> (,), <B>34</B> (.),
83 <B>35</B> (/),
84 <B>3a</B> ((unknown)),
85 <B>36</B> (Shift_R)
86 <P>
87 <P># bottom row
88 <P><B>1d</B> (Caps Lock), <B>71</B> (Alt_L),
89 <B>01</B> ((unknown)),
90 <B>39</B> (Space),
91 <B>45</B> ((unknown)),
92 <B>72</B> (Alt_R),
93 <B>46</B> ((unknown))
94 <P>
95 <P># numeric keypad.  No "grey" section on the keyboard.
96 <P><B>47</B> (7), <B>48</B> (8), <B>49</B> (9),
97 <B>54</B> (Keypad -),
98 <B>4b</B> (4), <B>4c</B> (5), <B>4d</B> (6),
99 <B>37</B> (Keypad +),
100 <B>4f</B> (1), <B>50</B> (2), <B>51</B> (3),
101 <B>4e</B> (Keypad Enter),
102 <B>52</B> (0),
103 <B>78</B> (Up),
104 <B>53</B> (Keypad .),
105 <B>56</B> (Left),
106 <B>55</B> (Down),
107 <B>7d</B> (Right),
108 <B>7e</B> (Keypad ,).
109 <P>
110 <P>
111 <H2><A NAME="ss6.2">6.2 The NCD N-123NA keyboard</A>
112 </H2>
113
114 <P>
115 <FIGURE>
116 <EPS FILE="absent">
117 <IMG SRC="sun-type5.gif">
118 </FIGURE>
119 <P>There are more keyboards that do not use <B>e0</B> as escape code.
120 For example, Paul Schulz &lt;<CODE>pauls@caemrad.com.au</CODE>&gt;
121 reports the same for Sun Type 5 Keyboard with PS/2 connector,
122 NCD model N-123NA. The scancodes are very similar to those given above:
123 <P># Sun Keys (far left)
124 <P><B>44</B> (Help),
125 <B>42</B> (Stop),
126 <B>40</B> (Again),
127 <B>3e</B> (Props),
128 <B>65</B> (Undo),
129 <B>70</B> (Front),
130 <B>66</B> (Copy),
131 <B>67</B> (Open),
132 <B>68</B> (Paste),
133 <B>69</B> (Find),
134 <B>6a</B> (Cut),
135 <P># Top row
136 <P><B>64</B> (ESC),
137 <B>58</B> (F1),
138 <B>59</B> (F2),
139 <B>5a</B> (F3),
140 <B>5b</B> (F4),
141 <B>5c</B> (F5),
142 <B>5d</B> (F6),
143 <B>5e</B> (F7),
144 <B>5f</B> (F8),
145 <B>60</B> (F9),
146 <B>61</B> (F10),
147 <B>62</B> (F11),
148 <B>63</B> (F12),
149 <P># 1st row
150 <P><B>29</B> (~/`),
151 <B>02</B> (!/1),
152 <B>03</B> (@/2),
153 <B>04</B> (#/3),
154 <B>05</B> ($/4),
155 <B>06</B> (%/5),
156 <B>07</B> (^/6),
157 <B>08</B> (&amp;/7),
158 <B>09</B> (*/8),
159 <B>0a</B> ((/9),
160 <B>0b</B> ()/0),
161 <B>0c</B> (_/-),
162 <B>0d</B> (+/=),
163 <B>0e</B> (BS),
164 <P># 2nd row
165 <P><B>0f</B> (TAB),
166 <B>10</B> (Q),
167 <B>11</B> (W),
168 <B>12</B> (E),
169 <B>13</B> (R),
170 <B>14</B> (T),
171 <B>15</B> (Y),
172 <B>16</B> (U),
173 <B>17</B> (I),
174 <B>18</B> (O),
175 <B>19</B> (P),
176 <B>1a</B> ({/[),
177 <B>1b</B> (}/]),
178 <B>75</B> (|/\),
179 <P># 3rd row
180 <P><B>29</B> (CAPS),
181 <B>30</B> (A),
182 <B>31</B> (S),
183 <B>32</B> (D),
184 <B>33</B> (F),
185 <B>34</B> (G),
186 <B>35</B> (H),
187 <B>36</B> (J),
188 <B>37</B> (K),
189 <B>38</B> (L),
190 <B>39</B> (:/;),
191 <B>40</B> ("/'),
192 <B>28</B> (Enter),
193 <P># 4th row
194 <P><B>2a</B> (Shift),
195 <B>2c</B> (Z),
196 <B>2d</B> (X),
197 <B>2e</B> (C),
198 <B>2f</B> (V),
199 <B>30</B> (B),
200 <B>31</B> (N),
201 <B>32</B> (M),
202 <B>33</B> (&lt;/,),
203 <B>34</B> (>/.),
204 <B>35</B> (?//),
205 <B>36</B> (Shift),
206 <P># Bottom row
207 <P><B>38</B> (Ctrl),
208 <B>71</B> (Alt),
209 <B>66</B> (Meta),
210 <B>39</B> (Space),
211 <B>6c</B> (Meta),
212 <B>72</B> (Compose),
213 <B>3a</B> (Alt),
214 <P># To the right
215 <P><B>6e</B> (PrintScreen/SysRq),
216 <B>76</B> (ScrollLock),
217 <B>77</B> (Pause/Break),
218 <P><B>76</B> (Insert),
219 <B>7f</B> (Home),
220 <B>6f</B> (PageUp),
221 <P><B>79</B> (Del),
222 <B>7a</B> (End),
223 <B>7e</B> (PageDown),
224 <P><B>80</B> (.),
225 <B>81</B> (.),
226 <B>82</B> (.),
227 <P><B>d4</B> (.),
228 <B>78</B> (Up),
229 <B>41</B> (.),
230 <P><B>56</B> (Left),
231 <B>55</B> (Down),
232 <B>7d</B> (Right),
233 <P># Keypad
234 <P><B>6d</B> (Mute),
235 <B>73</B> (Brightness/Vol Down),
236 <B>74</B> (Brightness/Vol Up),
237 <B>53</B> (Setup),
238 <P><B>01</B> (NumLock),
239 <B>45</B> (/),
240 <B>46</B> (*),
241 <B>54</B> (-),
242 <P><B>47</B> (7/Home),
243 <B>48</B> (8/Up),
244 <B>4d</B> (9/PgUp),
245 <B>37</B> (+),
246 <P><B>4b</B> (4/Left),
247 <B>4c</B> (5),
248 <B>4d</B> (6/Right),
249 <P><B>4f</B> (1/End),
250 <B>50</B> (2/Down),
251 <B>51</B> (3/PgDn),
252 <B>4e</B> (Enter),
253 <P><B>52</B> (0/Ins),
254 <B>53</B> (./Del).
255 <P>
256 <H2><A NAME="ss6.3">6.3 The NCD N-123UX keyboard</A>
257 </H2>
258
259 <P>Don Christensen reports that his NCD N-123UX keyboard
260 returns scancode Set 3.
261 <P>
262 <H2><A NAME="NCD97"></A> <A NAME="ss6.4">6.4 The NCD N-97 keyboard</A>
263 </H2>
264
265 <P>David Monro reports: I have a PS/2 keyboard, an NCD N-97,
266 which shipped with some NCD X terminals and also with some Mips
267 workstations IIRC. This keyboard returns Set 3 keycodes
268 even when its told to be in Set 2. In particular, the release
269 codes for F9 and F10 are <B>e0</B> and <B>e1</B>.
270 The 
271 <A HREF="scancodes-9.html#keyboardid">keyboard ID</A> is <B>ab</B> <B>85</B>.
272 <P>
273 <P>
274 <H2><A NAME="ss6.5">6.5 NCD X terminals</A>
275 </H2>
276
277 <P>NCD keyboards are often used with NCD X terminals.
278 Here the key combinations to get into the boot monitor.
279 <P>
280 <P>
281 <CENTER><TABLE BORDER><TR><TD>
282 N-101 </TD><TD> LCtrl-LAlt-Setup </TD></TR><TR><TD>
283 N-102 or Windows compatible </TD><TD> LAlt-CapsLock-Setup </TD></TR><TR><TD>
284 VT220-compatible </TD><TD> Ctrl-Compose-F3 </TD></TR><TR><TD>
285 N-108LK </TD><TD> Ctrl-LAlt-F3 </TD></TR><TR><TD>
286 N-97 </TD><TD> LAlt-CapsLock-Setup </TD></TR><TR><TD>
287 N-97 Kana and Hitachi Kana </TD><TD> LAlt-CapsLock-Setup </TD></TR><TR><TD>
288 N-107 Sun type 4 compatible </TD><TD> Stop A (L1-A) </TD></TR><TR><TD>
289 N-123 Sun type 5 compatible </TD><TD> Stop-A (L1-A) </TD></TR><TR><TD>
290 Nokia 122 </TD><TD> </TD></TR><TR><TD>
291 3270 (122-key Lexmark) </TD><TD> LShift LAlt Setup </TD></TR><TR><TD>
292 </TD><TD> (on the left keypad) </TD></TR><TR><TD>
293
294 </TD></TR></TABLE></CENTER>
295 <P>
296 <P>
297 <P>
298 <P>
299 <HR>
300 <A HREF="scancodes-7.html">Next</A>
301 <A HREF="scancodes-5.html">Previous</A>
302 <A HREF="scancodes.html#toc6">Contents</A>
303 </BODY>
304 </HTML>