Sunday, May 27, 2012

Raspberry Pi and Motorola Lapdock

Here's some info for those interested in setting up a Motorola Lapdock to work with the Raspberry Pi.  This is extremely easy to set up and should work without the need for any hardware modifications.  I used the Atrix Lapdock, which can be found between $50 and $100 on various websites.  I used the Debian Squeeze image from the Raspberry Pi downloads section.  I haven't had luck with Arch Linux ARM.

Parts List

~Raspberry Pi
~Motorola Lapdock (Atrix works)
~1 USB Male to Micro USB Male cable (Standard cell phone cable)
~1 USB 2.0 A female to Micro USB B female adapter cable FF
~1 Micro HDMI Type D Female to Micro HDMI Type D ~Female Connector Adapter Gold
~1 USB Male to USB Male cable  *You will need to open this cable and cut the red 5 volt wire*
~1 MICRO HDMI to HDMI cable

*Please note, my Micro USB and Micro HDMI ports are reversed on my Lapdock due to a previous modification unrelated to the Raspberry Pi.  Yours should work out of the box, without any modifications to the Lapdock. 


Attach Micro HDMI to Micro HDMI Female

Connect the Micro HDMI to HDMI cable to the Lapdock and Raspberry Pi

Attach the Micro USB Female to USB Female cable to the Lapdock

Slice open the USB Male to USB Male cable and cut the red, 5 volt wire.  Tape closed using electrical tape.

Connect the USB Male to USB Male cable to the Lapdock

Connect the other end of the USB Male to USB Male cable the Raspberry Pi

Plug the USB to Micro USB cable into the Lapdock

Connect the Micro USB end of the USB to Micro USB cable into the Micro USB power port of the Raspberry Pi

Make sure your SD card and Ethernet cable are connected, then open your Lapdock to power on your Raspberry Pi!

Sound through HDMI
Once your logged into Debain Squeeze, you will need to edit config.txt and set hdmi_drive=2
Step 1: Enter command sudo nano /boot/config.txt
Step 2: Enter hdmi_drive=2
Step 3: Press Control-x
Step 4: Press y
Step 5: Press [enter]
Step 6: Enter: sudo modprobe snd_bcm2835
Credit veryevil from RaspberryPi forum

I used a Netgear wg111v2 adapter plugged into one of the Lapdock's USB ports.  I used this guide as a reference, but obviously my adapter is different.  The Debian Squeeze image has the drivers for the wg111v2 adapter preinstalled.

Useful Links
I made a Raspberry Pi Laptop - Raspberry Pi forum

This blog will be updated frequently, with more pictures, instructions and links to come!