Hook up your board
Install the Rasbian 20XX-XX-XX-raspbian-wheezy.img or Ubuntu Mate image Windows
Put the Image on your SD card
Using the Win32DiskImager program
Re-size file system (Wheezy)
$sudo fdisk /dev/mmcblk0
$sudo resize2fs /dev/mmcblk0p2
$ sudo parted /dev/mmcblk0p2 (parted) print
In my case using a 16GB sdcard
Model: Unknown (unknown)
Disk: /dev/mmcblk0p2: 15.9 GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Number Start End Size File systen Flags
1 0.00B 15.9GB ext4
Hardware accelerated video
Redirecting audio output
omxplayer -o hdmi video.mp4
For 3.5mm audio jack
omxplayer -o local video.mp4
sudo amixer cset numid=3 2
For 3.5mm audio jack
sudo amixer cset numid=3 1
I purchased Netis WF2120 worked out of the box!!
Microsoft Wireless All In one keyboard
Apple Wireless Keyboard and Apple Magic Mouse
I managed to get an "Apple Wireless Keyboard" and "Apple Magic Mouse" working. The is a lot of crap out there on how to do it. This is what worked here (blueman did NOT work). The advantage of doing it this way is that the keyboard and mouse are available without X. Here they work at boot.
Buy BLE USB dongle : Cirago BTA8000 worked out of the box!!
apt-get install bluetooth bluez-tools
Wait a long time....
check bluetooth status:
You may need to start bluetooth, if its not running:
You should see a line with "UP RUNNING PSCAN" probably on hci0
If its down you it may come up with:
hciconfig hci0 up
Once hci0 is up, find the address of the device you want to pair:
and copy the bluetooth address to use in the following commands
pair the keyboard (here an old apple wireless keyboard):
bluez-simple-agent hci0 68:D9:3C:ED:47:15
it will prompt you for a pin, enter a 4 digit number for the keyboard, then type in on the keyboard and press enter on it.
For the mouse try 0000 or 1234. If you need to pair
again you may get and error. If so append repair after the
pairing is deleted.
bluez-test-devicecommand.trust the device:
and connect it:
devices (eg keyboard and mouse).
add line "blacklist hci_usb" into /etc/modprobe.d/alsa-base-
and line "hci_usb reset=1" into /etc/modules. After reboot dongle should work
install dependencies first
sudo apt-get install bluez-utils bluez-compat bluez-hcidump checkinstall libusb-dev libbluetooth-dev joystick
It takes a while.
After all type "hciconfig" in console, you should see something like this.
pi@raspberrypi ~ $ hciconfig
hci0: Type: BR/EDR Bus: USB
BD Address: 00:1F:81:00:06:20 ACL MTU: 1021:4 SCO MTU: 180:1
UP RUNNING PSCAN
RX bytes:1260 acl:0 sco:0 events:46 errors:0
TX bytes:452 acl:0 sco:0 commands:45 errors:0
if not, your dongle seems not to be recognized by system.
So now, we need to pairing the dongle with the gamepad using this tool.
download and compile it.
gcc -o sixpair sixpair.c -lusb
After this you should have a executable file "sixpair".
Now connect your Dualshock via a USB cable for PS3 to Raspberry Pi and launch this file with sudo.
Current Bluetooth master: DE:AD:BE:EF:00:00
Setting master bd_addr to: 00:1F:81:00:06:20
If you see this, it was successful.
Install a Sixaxis Joystick Manager. Download a last archive and compile only important for us part.
tar xfvz QtSixA-1.5.1-src.tar.gz
sudo mkdir -p /var/lib/sixad/profiles
the last command make automatically a package for you, so you can later simple uninstall it, if you won't it or use a different system, type "sudo make install" instead of "sudo checkinstall"
Now test it, for this launch temporary a sixad daemon.
sudo sixad --start
Then press a "PS" button on Dualshock gamepad, if you feel a vibration, it works, congratulations!
After all you can make "sixad" daemon starting at boot time.
sudo update-rc.d sixad defaults
If you have any trouble with recognition, you can debug your Dualshock controller with "jstest".
sudo jstest /dev/input/js0
Finally you will need to purchase a charher for the PS3 controller if you don't have a PS3.
I got the Energizer one and I like it a lot http://www.bhphotovideo.com/c/product/1056118-REG/energizer_pl6328_ps3_energizer_charging_system.html