
P A R T I
C O N N E C T I N G T H E B O A R D
64
SOMETIMES, THINGS DON’T
go entirely smoothly. The more complex the device, the
more complex the problems that can occur—and the Pi is an extremely complex device
indeed.
Thankfully, many of the most common problems are straightforward to diagnose and fix. In
this chapter, we’ll look at some of the most common reasons for the Pi to misbehave and
how to fix them.
Keyboard and Mouse Diagnostics
Perhaps the most common problem that users experience with the Raspberry Pi is when the
keyboard repeats certain characters. For example, if the command
startx
appears onscreen
as
sttttttttttartxxxxxxxxxxxx
, it will, understandably, fail to work when the Enter
key is pressed.
There are typically two reasons why a USB keyboard fails to operate correctly when con-
nected to the Raspberry Pi: it’s drawing too much power, or its internal chipset is conflicting
with the USB circuitry on the Pi.
Check the documentation for your keyboard, or the label on its underside, to see if it has a
power rating given in
milliamps (mA)
. This is how much power the keyboard attempts to draw
from the USB port when it’s in use.
The Pi’s USB ports have a component called a
polyfuse
connected to them, which protects the
Pi in the event that a device attempts to draw too much power. When this polyfuse is tripped,
it causes the USB port to shut off, at around 150 mA. If your keyboard draws anywhere
around that much power, it may operate strangely—or not at all. This can be a problem for
keyboards that have built-in LED lighting, which require far more power to operate than a
standard keyboard.
If you find that your USB keyboard may be drawing too much power, try connecting it to a
powered USB hub instead of directly to the Pi. This will allow the keyboard to draw its power
from the hub’s power supply unit, instead of from the Pi itself. Alternatively, swap the key-
board out for a model with lower power demands. The repeating-letter problem may also be
traced to an inadequate power supply for the Pi itself, which is addressed in the next section,
“Power Diagnostics”.
Summary of Contents for A
Page 1: ......
Page 2: ......
Page 3: ...Raspberry Pi User Guide 2nd Edition...
Page 4: ......
Page 5: ...Raspberry Pi User Guide 2nd Edition Eben Upton and Gareth Halfacree...
Page 10: ......
Page 26: ...R A S P B E R R Y P I U S E R G U I D E S E C O N D E D I T I O N 10...
Page 28: ......
Page 29: ...Chapter 1 Meet the Raspberry Pi...
Page 37: ...Chapter 2 Getting Started with the Raspberry Pi...
Page 56: ......
Page 57: ...Chapter 3 Linux System Administration...
Page 79: ...Chapter 4 Troubleshooting...
Page 89: ...Chapter 5 Network Configuration...
Page 109: ...Chapter 6 The Raspberry Pi Software Configuration Tool...
Page 122: ......
Page 123: ...Chapter 7 Advanced Raspberry Pi Configuration...
Page 140: ......
Page 141: ...Chapter 8 The Pi as a Home Theatre PC...
Page 151: ...Chapter 9 The Pi as a Productivity Machine...
Page 160: ......
Page 161: ...Chapter 10 The Pi as a Web Server...
Page 172: ......
Page 173: ...Chapter 11 An Introduction to Scratch...
Page 189: ...Chapter 12 An Introduction to Python...
Page 216: ......
Page 218: ......
Page 219: ...Chapter 13 Learning to Hack Hardware...
Page 234: ......
Page 235: ...Chapter 14 The GPIO Port...
Page 249: ...Chapter 15 The Raspberry Pi Camera Module...
Page 265: ...Chapter 16 Add on Boards...
Page 280: ......
Page 281: ...Appendix A Python Recipes...
Page 287: ...Appendix B Raspberry Pi Camera Module Quick Reference...
Page 293: ...Appendix C HDMI Display Modes...