IBM Model F (83-key) DIN Plug Repair

The IBM Model F (83-key) keyboard of the IBM PC and XT has a permanently attached, shielded, coiled five-wire cable that ends in a DIN plug for the socket at the rear of the system unit.[1] Michael Brutman found that the solder connections inside this plug are prone to fail after 20 or 30 years, leaving the keyboard apparently dead, and had the fault on two keyboards.[2] The original IBM plug is a moulded body around a metal pin housing, with the solder joints encased inside, and looks beyond repair. Brutman's method takes it apart, solders the cable to the internal parts of a new DIN plug, and puts them back inside the original IBM body.[2]
Check the system board's socket first, then meter every wire of the cable from the plug to the keyboard's internal connector. That also finds a break elsewhere in the cable, which the plug repair will not cure.[3][4]
Symptoms
[edit | edit source]- The keyboard works only while you press on the plug, or not at all. Brutman gives this as the sign of failed connections in the plug.[2]
- A 301 error on its own at power-on. Minuszerodegrees lists its causes as no keyboard attached, the keyboard plugged into the cassette socket, an AT keyboard, a broken wire in the keyboard cable, a wire loose in its connector, a failed chip in the keyboard, a bad solder joint on the system board's keyboard socket, and faulty keyboard circuitry on the system board.[5]
- Random phantom key presses. Inxie traced these on his XT keyboard to a badly soldered, non-original DIN plug whose shield ground wire had been left unsoldered.[6]
A byte in front of the 301 (for example 23 301) means that the keyboard's self test reports a key stuck down, and the byte identifies the key.[5] The 84-key keyboard of the IBM PC AT (5170) does not work on a 5150 at all.[7] For other keyboard faults see the 5150 troubleshooting guide and IBM Model F (83-key) Foam Replacement.
Tools and parts
[edit | edit source]- A multimeter, for the voltage check at the system unit and for continuity.[3][2]
- Small screwdrivers, needle-nose pliers and a hair dryer, for taking the plug apart.[2]
- A rotary tool such as a Dremel, for easing the inside of the old plug body.[2]
- A soldering iron, solder and flux, and a little copper braid.[2][6]
- A new 5-pin DIN plug with its pins in a 180-degree arc. Brutman tried several and found the best fit in a Kobiconn plug, Mouser part number 17DN101-EX.[2] Inxie fitted a Neutrik Rean NYS322G, a metal-bodied plug with gold contacts, in place of a non-original plug.[6]
- A replacement cable, if a wire is broken elsewhere: IBM's part was cable assembly 8529168.[8]
Procedure
[edit | edit source]Checking the system unit socket
[edit | edit source]
- Switch the system unit off and unplug the keyboard.[3]
- Switch the system unit on. With the meter's common lead on pin 4 (ground) of the keyboard socket, measure pins 1, 2, 3 and 5. IBM expects 2.0 to 5.5 V dc on each.[3]
- If any reading is wrong, the fault is on the system board, not in the keyboard. IBM's chart replaces the system board at this point; minuszerodegrees adds a bad solder joint on the socket itself and faults in the system board's keyboard circuitry as causes.[3][5]
- If the readings are right, IBM's next step is to check the keyboard cable connectors for damage.[3] Switch the system unit off before plugging the keyboard in again: these keyboards are not hot-pluggable.[2]
IBM's Technical Reference gives the socket's pins as 1 keyboard clock, 2 keyboard data, 3 keyboard reset, 4 ground and 5 +5 V.[9]
Checking the cable
[edit | edit source]
- Turn the keyboard upside down and remove the two screws on its underside. Rotate the base up and out of its front retaining slots.[10][2]
- Unplug the cable's internal connector from its header on the controller board by opening the header's latching legs.[11][12]
- Check continuity from each pin of the DIN plug to its position in the internal connector, using the table below.[4][2] Brutman's sign of a failed plug is a keyboard that works only while pressure is applied to the plug.[2]
- If a wire is open somewhere other than in the plug, the plug repair will not cure it. IBM supplied the whole cable as a separate part, cable assembly 8529168.[8]

| Signal | DIN plug pin | Internal connector position | Wire colour on minuszerodegrees' cable |
|---|---|---|---|
| Clock | 1 | 9 | Black |
| Data | 2 | 7 | White |
| Reset | 3 | 3 | Green |
| Ground | 4 | 5 | Red |
| +5 V | 5 | 1 | Brown |
The pin and position numbers are from minuszerodegrees' diagram, which agrees with the order Brutman gives for the internal connector (clock, data, ground, reset, +5 V).[4][2] IBM's keyboard logic diagram numbers the same positions on the keyboard's connector A01 (+5 V), A05 (ground), A07 (data) and A09 (clock).[13] Brutman warns that his mapping holds for the original IBM PC keyboard, possibly only for some serial numbers, and that you should verify your own.[2] Model F XT and AT cables are wired differently and are not interchangeable as they stand.[14]
Looking at the pins of the plug with its key notch at the top, pin 1 (clock) is on the left, pin 3 (reset) on the right, pin 4 (ground) at the lower left, pin 5 (+5 V) at the lower right and pin 2 (data) at the bottom.[2][4] The solder cups at the back of a plug are a mirror image of this.[2]

Taking the old plug apart
[edit | edit source]
- Warm the moulded body with a hair dryer to make it more pliable.[2]
- Prise, twist and gently pull the plug apart with small screwdrivers and needle-nose pliers, including the hidden part inside where the solder joints are encased. Take care not to mark the moulded body, which is reused.[2]
- Set the old pins and the encased block aside. Brutman did not reuse them.[2]
Fitting new internals in the old body
[edit | edit source]- Dry-fit the internal parts of the new plug in the old body. The original body is thicker than the new plug's, because the part that held the solder joints has a smaller diameter. If the body has to be heated to take the new parts, the fit is too tight and the body will bulge.[2]
- Clean out the residual adhesive and remove a little material from inside the body with the rotary tool, checking the fit often, until the new parts go in snugly. Do not wear the body too thin.[2]
- Slide the original body back onto the cable before you solder anything.[2]
- Strip the thick outer insulation of the cable. Expose enough of the signal wires to solder, but keep enough insulation for the new plug's strain relief to clamp onto.[2]
- Keep enough of the thin shield around the wires to make contact with the outer pin housing. Brutman added copper braid to improve that contact.[2] The plug that gave Inxie phantom key presses had its shield ground wire left unsoldered and its metal clamps uncrimped.[6]
- Solder each wire to its pin according to the table, remembering that the solder cups are reversed left to right compared with the pin face.[2] The wires are small and break easily.[2] Inxie's failed plug had been soldered with too much heat, without pre-tinning and without flux.[6]
- Check continuity from every pin back to the internal connector again.[2]
- With the system unit switched off, plug the keyboard in and test it in the machine before closing the plug.[2]
- If it works, slide the new internals into the original body.[2]

Closing the keyboard
[edit | edit source]- Plug the cable's internal connector back into its header on the controller board.[11]
- Put the tabs on the front of the base into the retaining slots, rotate the base closed and refit the two screws.[10]
Fitting a complete new plug instead
[edit | edit source]Where the original body is not worth keeping, or the plug has already been replaced, a complete new plug can be soldered on. Inxie replaced a badly soldered non-original plug on his XT keyboard with a Neutrik Rean NYS322G metal plug, which he chose because early type 1 keyboards had metal plugs of a similar look. After the repair, no amount of shaking the cable produced any errors.[6] The wiring, shield and soldering points above apply in the same way.
Testing
[edit | edit source]- With the system unit off, plug the keyboard in, then switch on. There should be no 301 error.[5]
- Run the keyboard test (option 3) of IBM's Advanced Diagnostics, pressing each key and holding it for the typematic test.[15]
- Shake the cable and the plug while the keyboard is in use, as Inxie did after his repair. There should be no errors and no phantom key presses.[6]
Revision notes
[edit | edit source]
- Type 1 keyboards are reset by the system board at power-on through the reset wire; type 2 keyboards reset themselves. Some type 2 keyboards still have the reset wire connected.[7] IBM's April 1984 Technical Reference marks pin 3 "not used by keyboard".[9] Brutman treats the reset wire as optional, depending on the keyboard's revision.[2] The keyboard in his connector photograph has four wires and an empty position.[2]
- The Deskthority wiki says type 1 keyboards appear always to have a metal plug, but that a metal plug does not prove a type 1; opening the keyboard and finding the longer internal board is the only sure test.[16] Inxie's type 2 keyboard had a type 1 cable fitted, five wires and no strain relief grommet.[6]
Related pages
[edit | edit source]- IBM Model F (83-key)
- IBM Model F (83-key) Foam Replacement
- IBM PC (5150)
- IBM PC XT (5160)
- IBM PC (5150) Troubleshooting Guide
- IBM PC XT Troubleshooting Guide
- Continuity Testing and Signal Tracing
- Through-Hole Soldering
References
[edit | edit source]- ↑ IBM, Technical Reference, Revised Edition (April 1984), Section 4, "Keyboard", p. 4-3: a permanently attached, shielded 5-wire coiled cable of about 6 ft, carrying +5 V, ground, two bidirectional signal lines and a reset wire, to a DIN connector at the rear of the system unit. Hosted as File:IBM PC 5150 Technical Reference.pdf, described at IBM PC 5150 Technical Reference.
- ↑ 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.07 2.08 2.09 2.10 2.11 2.12 2.13 2.14 2.15 2.16 2.17 2.18 2.19 2.20 2.21 2.22 2.23 2.24 2.25 2.26 2.27 2.28 2.29 2.30 Michael B. Brutman, "IBM PC Keyboard Plug Repair", brutman.com, created 3 March 2013, updated 10 November 2019: failing solder connections in the DIN plug after 20 or 30 years; a keyboard that works only with pressure on the plug; dismantling the plug with small screwdrivers, needle-nose pliers and a hair dryer; the Kobiconn 17DN101-EX replacement (5 pins, 180 degrees); easing the old body with a Dremel; the wire-to-pin mapping and the reset wire; stripping, keeping the shield in contact with the pin housing, copper braid; reversed solder cups; continuity back to the Berg connector; testing before closing; keyboards not hot-pluggable. Accessed 2026-12-06.
- ↑ 3.0 3.1 3.2 3.3 3.4 3.5 IBM, Hardware Maintenance and Service (August 1981), Section 2, keyboard chart, p. 300-2: with the keyboard unplugged and the power on, pins 1, 2, 3 and 5 of the keyboard connector at 2.0 to 5.5 V dc and pin 4 ground; if not, replace the system board; if so, check the keyboard cable connectors for damage. Hosted as File:IBM PC 5150 Hardware Maintenance and Service (August 1981).pdf.
- ↑ 4.0 4.1 4.2 4.3 Minuszerodegrees.net, "IBM 5150 keyboard reset" diagram, linked from the 5150 keyboards page as the aid for metering out the cable: internal connector positions 9 clock (black), 7 data (white), 5 ground (red), 3 reset (green) and 1 +5 V (brown), the DIN plug pins 1 clock, 2 data, 3 reset, 4 ground and 5 +5 V, and IBM's circuits for the type 1 keyboard and the 16KB-64KB motherboard socket. Accessed 2026-12-06.
- ↑ 5.0 5.1 5.2 5.3 Minuszerodegrees.net, "IBM 5150 – POST – Some errors", section on 301: a byte before the 301 identifies a key reported stuck; 301 on its own is a general keyboard error, with the causes listed. Accessed 2026-12-06.
- ↑ 6.0 6.1 6.2 6.3 6.4 6.5 6.6 6.7 Inxie, "Model F DIN Repair (Pic heavy)", Deskthority forum, 28 August 2020: phantom key presses on a Model F XT traced to a non-original DIN plug soldered with too much heat, no pre-tinning and no flux, with the RF shield ground wire unsoldered and the metal clamps uncrimped; replaced with a Neutrik Rean NYS322G plug; a type 2 keyboard fitted with a five-wire type 1 cable without strain relief grommet; no errors when shaking the cable afterwards. Accessed 2026-12-06.
- ↑ 7.0 7.1 Minuszerodegrees.net, "IBM 5150 – Keyboards": type 1 and type 2 keyboards and their reset, the reset wire connected in some type 2 keyboards, the cable metering diagram, and the 84-key AT keyboard not working on a 5150. Accessed 2026-12-06.
- ↑ 8.0 8.1 IBM, Hardware Maintenance and Service (August 1981), Section 4, Figure 3 "Keyboard", p. 4-10: cover assembly 8529170, base assembly 8529169, cable assembly 8529168, keyboard assembly 8529166.
- ↑ 9.0 9.1 IBM, Technical Reference, Revised Edition (April 1984), "Keyboard Interface Connector Specifications", p. 4-12: pin 1 +keyboard clock, pin 2 +keyboard data, pin 3 −keyboard reset (not used by keyboard), pin 4 ground, pin 5 +5 V.
- ↑ 10.0 10.1 IBM, Hardware Maintenance and Service (August 1981), Section 3, "Keyboard Base Removal" and "Keyboard Base Replacement", p. 3-93: the two mounting screws and the base's front retaining slots.
- ↑ 11.0 11.1 IBM, Hardware Maintenance and Service (August 1981), Section 3, "Keyboard Assembly Removal", p. 3-94: disconnect the cable from the keyboard assembly.
- ↑ JBert, "Model F improvement: (dis)assembly tips and Space bar mod", Deskthority forum, 3 December 2013: on the XT keyboard, open the connector legs and pull the blue connector out. Accessed 2026-12-06.
- ↑ IBM, Technical Reference, Revised Edition (April 1984), "Keyboard Logic Diagram", p. 4-13: keyboard connector CD1, A01 +5 V dc, A05 ground, A07 serial data, A09 request/clock.
- ↑ xueyao and ibmapc, "Model F XT and AT cables swappable?", Deskthority forum, June 2018: the XT and AT cables are not compatible because of their pinouts, although both use a 5-pin DIN plug. Accessed 2026-12-06.
- ↑ IBM, Hardware Maintenance and Service (August 1981), Section 2, keyboard chart, p. 300-1: the Advanced Diagnostics Keyboard Test (3).
- ↑ Deskthority wiki, "IBM Personal Computer keyboard": type 1 keyboards appear always to have a metal connector, not every keyboard with a metal connector is a type 1, and only the longer internal PCB identifies a type 1. Accessed 2026-12-06.