Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Raspberry Pi Gaming - Second Edition

You're reading from   Raspberry Pi Gaming - Second Edition Design, create, and play all kinds of video games on your Raspberry Pi computer

Arrow left icon
Product type Paperback
Published in Feb 2015
Publisher
ISBN-13 9781784399337
Length 140 pages
Edition 2nd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Shea Silverman Shea Silverman
Author Profile Icon Shea Silverman
Shea Silverman
Arrow right icon
View More author details
Toc

Troubleshooting controllers


There are a few common problems that can crop up when using different types of controllers on your Pi. The most common one, is that you just can't seem to get your game to recognize any input. Your first step should be to check /dev/input and ensure that there is a jsX (where x is the joystick number) file in the directory.

If you see your jsX file, type jstest /dev/input/jsX. You should now be able to press the buttons on your controller and see the different input.

If you don't see anything in here, disconnect your controller, then plug it back in and run dmesg. You should see some text scroll by really quickly. The very last lines should show that you have plugged in your joystick.

If you don't see your controller in dmesg, try using a powered USB hub. Your controller might need extra power.

When running hciconfig, if nothing appears, it might be because your USB Bluetooth dongle isn't getting enough power. Try connecting it to a powered USB hub and see if this...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image