User avatar
johnbeetem
Posts: 945
Joined: Mon Oct 17, 2011 11:18 pm
Location: The Mountains
Contact: Website

Re: I made a Raspberry PI Laptop

Mon Feb 25, 2013 7:52 pm

Fox0 wrote:The Lapdock Keyboad/Touchpad works now all the time with my PC (running Win8 atm) but still doesn't work with the Pi (tried raspbian and raspbmc today). The Pi works with every other USB Device i have, i'll even tried another Pi... i have absolutely no clue what the problem is.
Are you still using the same USB A male to USB A male cable that you suspected of having troubles earlier? If so, one of the pins might be making poor contact at the RasPi A port. Try both RasPi A ports -- sometimes one is out of spec while the other isn't.

Have you tried having your RasPi talk to a USB device (say a keyboard or mouse) through the same cable+adapter you use between the Atrix Micro USB plug and RasPi's port A? This is to make sure the cable+adapter works when plugged into a RasPi A port. You'll need an additional Micro USB male to USB A female cable+adapter.

Fox0
Posts: 9
Joined: Sat Feb 23, 2013 9:26 pm

Re: I made a Raspberry PI Laptop

Mon Feb 25, 2013 8:21 pm

Got 2 Pi's one rev 2.0 with 512 mb ram and one with with rev 1.0+ tried every USB Device(Keyboard/Mouse/External Hard Drive) i have with both of them and every USB port everything runs fine no problems there. Which implies for me that the problem is not one of the USB Ports on the Pi.

Tried the USB Female to Micro USB Female adapter with every USB Device possible works fine as well.

My PC Connected to the Lapdock with the exact same cable/adapters i would use for the Pi gives me a working Keyboard/Touchpad. Connected to the Pi it doesn't work again.

Couldn't try the USB Male to USB Male Cable with anything else. But if that cable would be faulty it shouldn't work with the Windows PC right?

User avatar
johnbeetem
Posts: 945
Joined: Mon Oct 17, 2011 11:18 pm
Location: The Mountains
Contact: Website

Re: I made a Raspberry PI Laptop

Mon Feb 25, 2013 9:45 pm

Fox0 wrote:Couldn't try the USB Male to USB Male Cable with anything else. But if that cable would be faulty it shouldn't work with the Windows PC right?
Depends on the failure mode. I have heard of cables that worked fine in one USB A port, but not the other, even though other USB devices worked in both. The most likely cause of that IMO is that one of the contacts is slightly out of spec, so the cable makes good contact in some USB ports but not others.

Another possibility is that there's an intermittent break in one of the wires in the cable. If you twist the cable a certain way the wire opens, but if you twist it a different way the wire re-makes the connection. In a case like this, it depends on how the cable is routed to the PC versus RasPi.

I use a small USB A male-to-male adapter (double plug) with no cable. This minimizes resistance and avoids wire failure.

Steve Drain
Posts: 105
Joined: Tue Oct 30, 2012 2:08 pm
Location: Exeter UK

Re: I made a Raspberry PI Laptop

Tue Feb 26, 2013 5:22 pm

If anyone is interested in a minimalist answer to linking a Pi to a Lapdock you might have a look at some pictures on my site at:

http://www.kappa.me.uk/raspberry_pip.htm

FlipBumWalla
Posts: 10
Joined: Mon Oct 24, 2011 7:40 pm

Re: I made a Raspberry PI Laptop

Tue Feb 26, 2013 5:34 pm

Steve Drain wrote:If anyone is interested in a minimalist answer to linking a Pi to a Lapdock you might have a look at some pictures on my site at:

http://www.kappa.me.uk/raspberry_pip.htm
Holy Cats, Steve!
I love what you did. That looks GREAT! Nice work. I would like to see more details. My son is a big fan of Minecraft and I have a lapdock running for him now, but it's a mess. Your solution is almost exactly what I have in mind for a Minecraft station for him.

Again, NICE WORK!

Fox0
Posts: 9
Joined: Sat Feb 23, 2013 9:26 pm

Re: I made a Raspberry PI Laptop

Fri Mar 01, 2013 10:31 pm

Fox0 wrote:Got 2 Pi's one rev 2.0 with 512 mb ram and one with with rev 1.0+ tried every USB Device(Keyboard/Mouse/External Hard Drive) i have with both of them and every USB port everything runs fine no problems there. Which implies for me that the problem is not one of the USB Ports on the Pi.

Tried the USB Female to Micro USB Female adapter with every USB Device possible works fine as well.

My PC Connected to the Lapdock with the exact same cable/adapters i would use for the Pi gives me a working Keyboard/Touchpad. Connected to the Pi it doesn't work again.

Couldn't try the USB Male to USB Male Cable with anything else. But if that cable would be faulty it shouldn't work with the Windows PC right?
Got the Keyboard/Touchpad working with a new USB Male/Male Cable, thanks for the help!

User avatar
Jim Manley
Posts: 1600
Joined: Thu Feb 23, 2012 8:41 pm
Location: SillyCon Valley, California, and Powell, Wyoming, USA, plus The Universe
Contact: Website

Re: I made a Raspberry PI Laptop

Sat Mar 02, 2013 3:35 am

Steve Drain wrote:If anyone is interested in a minimalist answer to linking a Pi to a Lapdock you might have a look at some pictures on my site at: http://www.kappa.me.uk/raspberry_pip.htm
NIIIIIICE!!! Thanks for sharing this project and showing what you did. It would be really nice if you could upload maximum-resolution original photos so we can virtually poke around and see all of the details ... in detail :)

Edit: Is that one of the typical external SATA/USB drive enclosures? How high is it inside? I believe 11 mm is the thinnest 2.5-inch diameter platter laptop drive available nowadays, but I haven't looked recently.

Keep up the great work and keep us "posted" :lol:
The best things in life aren't things ... but, a Pi comes pretty darned close! :D
"Education is not the filling of a pail, but the lighting of a fire." -- W.B. Yeats
In theory, theory & practice are the same - in practice, they aren't!!!

timb
Posts: 47
Joined: Mon Mar 04, 2013 8:09 pm

Re: I made a Raspberry PI Laptop

Mon Mar 04, 2013 8:13 pm

I picked up a Lapdock pretty cheap from Amazon. Instead of waiting for adapters to get here on the slow boat from China, I'm going to remove the pins from the built in micro-HDMI connector and solder them directly to an HDMI cable that I've cut one end off of. Has anyone done this yet? If so, any tips?

I plan on heat shrinking each new connection and then using a large heat shrink to protect the whole bundle. I was thinking of wrapping the whole bundle with tin foil first for shielding, but I'm not sure if that's necessary.

I'll be tackling it tomorrow night when my new Aouya 937+ soldering station gets here. I'll post lots of pics as well.

User avatar
johnbeetem
Posts: 945
Joined: Mon Oct 17, 2011 11:18 pm
Location: The Mountains
Contact: Website

Re: I made a Raspberry PI Laptop

Tue Mar 05, 2013 12:05 am

timb wrote:I picked up a Lapdock pretty cheap from Amazon. Instead of waiting for adapters to get here on the slow boat from China, I'm going to remove the pins from the built in micro-HDMI connector and solder them directly to an HDMI cable that I've cut one end off of. Has anyone done this yet? If so, any tips?

I plan on heat shrinking each new connection and then using a large heat shrink to protect the whole bundle. I was thinking of wrapping the whole bundle with tin foil first for shielding, but I'm not sure if that's necessary.

I'll be tackling it tomorrow night when my new Aouya 937+ soldering station gets here. I'll post lots of pics as well.
It's very difficult because the wires are tiny and fragile. But it's been done, e.g, http://andreiprojects.blogspot.ro/2012/ ... pdock.html

There's a section on Atrix Lapdock with links to other resources (such as photos) at the RasPi Hardware Wiki: http://elinux.org/RPi_Screens#Motorola_Atrix_Lapdock You might want to take a look there to see what you're getting into. Lots of 0.5 mm pitch connectors in there :shock:

Mobius
Posts: 238
Joined: Thu Aug 30, 2012 1:07 am
Location: San Angelo, Texas USA

Re: I made a Raspberry PI Laptop

Tue Mar 05, 2013 1:37 am

I went searching around trying to find answers before getting a lapdock and it seems that there is some confusion on a couple of issues. One, almost all of the references I found specify the Motorola Atrix lapdock but the Droid Razr one works and seems to be more readily available. Second the lapdock will turn on with just the HDMI connected to the Pi. Many folks seem to think that it won't without the lapdock micro USB connected. I discovered this because my China cable order got messed up and the micro USB adapter did not come in the package it should have. I hooked up the HDMI anyway just to try it out and it worked fine. Last, the USB cable mod is not needed for early boards if you are willing to short across the polyfuses in the Pi USB outputs. That is a simpler mod than the cable to allow back powering of the Pi via the USB.

User avatar
Jim Manley
Posts: 1600
Joined: Thu Feb 23, 2012 8:41 pm
Location: SillyCon Valley, California, and Powell, Wyoming, USA, plus The Universe
Contact: Website

Re: I made a Raspberry PI Laptop

Tue Mar 05, 2013 5:34 am

There have been multiple posts (some by me) about the Droid Bionic lapdock being identical to the Atrix lapdock, except that the micro-HDMI and micro-USB connectors on the dock cradle are rotated 180 degrees around their longitudinal axis from those on the Atrix model. The Bionic is the follow-on to the Atrix, which it has replaced, and so the Bionic lapdock has replaced the Atrix lapdock. Unfortunately, Motorola has discontinued manufacturing of all of the lapdock models, so get 'em while they're hot.

Connecting HDMI only to the lapdock only gets you the video and digital audio on the lapdock. The lapdock keyboard, trackpad, USB hub, and batteries can't be used without a connection between a Pi USB port and the lapdock micro-USB port. It's kind of a waste to not take advantage of all of the lapdock's capabilities you're paying for (albeit at a bargain-basement price).

The cable mod is "simpler" than the polyfuse shorting method for some people for the straightforward reason that it doesn't void the board's warranty or risk irreversible damage should something besides an intended polyfuse be desoldered/shorted. Neither is for the faint of heart or a first-time soldering project, but they pose vastly different risks.
The best things in life aren't things ... but, a Pi comes pretty darned close! :D
"Education is not the filling of a pail, but the lighting of a fire." -- W.B. Yeats
In theory, theory & practice are the same - in practice, they aren't!!!

timb
Posts: 47
Joined: Mon Mar 04, 2013 8:09 pm

Re: I made a Raspberry PI Laptop

Tue Mar 05, 2013 8:13 pm

johnbeetem wrote: It's very difficult because the wires are tiny and fragile. But it's been done, e.g, http://andreiprojects.blogspot.ro/2012/ ... pdock.html

There's a section on Atrix Lapdock with links to other resources (such as photos) at the RasPi Hardware Wiki: http://elinux.org/RPi_Screens#Motorola_Atrix_Lapdock You might want to take a look there to see what you're getting into. Lots of 0.5 mm pitch connectors in there :shock:
Yeah, I've seen the first link. I know the wires are tiny, which isn't a big deal, just clamp and solder away. I'll physically tie the cable inside somehow, most likely with Epoxy and a strain relief made out of Sugru.

campsec
Posts: 25
Joined: Wed Nov 02, 2011 11:01 am

Re: I made a Raspberry PI Laptop

Thu Mar 07, 2013 5:49 pm

I have a Motorola Droid Bionic Lapdock, with similar issues. I have carefully tested all my cables and made sure power on the pi was up to spec. Using the 'Y' cable I built I see 4.87 volts at the GPIO pins.

The problem I was having was that my Pi did not see the Lapdock keyboard and trackpad. After trying a ton of things I finally got everything working by running the Lapdock hub connection through an old USB 1.0 hub and then into the Pi. Looks to me like the Pi can't communicate correctly with the hub in the lapdock unless you slow it down. Modifying cmdline.txt and adding dwc_otg.speed=1 did not help my issue. I believe both my Kernel and GPU firmware are the latest:
uname -a
Linux raspberrypi 3.6.11+ #389 PREEMPT Wed Mar 6 12:43:30 GMT 2013 armv6l GNU/Linux

/opt/vc/bin/vcgencmd version
Mar 4 2013 22:02:46
Copyright (c) 2012 Broadcom
version 374489 (release)

Any suggestions for something else I can try? I would love to get rid of that old hub.

User avatar
johnbeetem
Posts: 945
Joined: Mon Oct 17, 2011 11:18 pm
Location: The Mountains
Contact: Website

Re: I made a Raspberry PI Laptop

Thu Mar 07, 2013 11:19 pm

campsec wrote:I have a Motorola Droid Bionic Lapdock, with similar issues. I have carefully tested all my cables and made sure power on the pi was up to spec. Using the 'Y' cable I built I see 4.87 volts at the GPIO pins.

The problem I was having was that my Pi did not see the Lapdock keyboard and trackpad. After trying a ton of things I finally got everything working by running the Lapdock hub connection through an old USB 1.0 hub and then into the Pi...

Any suggestions for something else I can try? I would love to get rid of that old hub.
Sounds like an out-of-spec contact on your USB cable's male USB A plug, the one that plugs into a RasPi USB A port or your hub's downstream A port. One way this can happen is that RasPi's USB A jack has a contact that is slightly flattened so it doesn't make good contact with some plugs. If you're using a double-male USB A adapter or cable, try replacing or reversing it. Also try both RasPi USB ports -- one may make better contact than the other. You could also try replacing your hub with a USB extension cable with USB A male on one end and USB A female on the other.

campsec
Posts: 25
Joined: Wed Nov 02, 2011 11:01 am

Re: I made a Raspberry PI Laptop

Fri Mar 08, 2013 4:08 am

The problem I'm experiencing is related to the Raspberry Pi being unable to process the USB transactions from the Lapdock. I have used a number of USB devices on both of the USB ports on the Raspberry Pi. All the cables have had very few insertions and are not defective. This is a failure of the Pi to process USB 2.0 events properly. Not a cable issue. The failure has been observed on both of the Pi USB ports. As soon as I pass the USB events through the USB 1.0 hub into the Pi everything is fine. When the Pi errors I see the following message in dmesg:
New full-speed USB device unmber 70 using dwc_otg
device descriptor read/64, error -32
etc. This is observed for all the ports in the Lapdock. I'm hoping some firmware related option allows the Pi to operate with the Lapdock correctly or a later revision of firmware resolves this issue. I switched in a new Pi and it errors exactly the same way. Works if I run the Lapdock USB through a USB 1.0 Hub and fails if I connect the lapdock USB data cable directly to the Pi.
Thanks for your suggestions.

User avatar
johnbeetem
Posts: 945
Joined: Mon Oct 17, 2011 11:18 pm
Location: The Mountains
Contact: Website

Re: I made a Raspberry PI Laptop

Fri Mar 08, 2013 8:11 pm

campsec wrote:..When the Pi errors I see the following message in dmesg:
New full-speed USB device unmber 70 using dwc_otg
device descriptor read/64, error -32
etc. This is observed for all the ports in the Lapdock. I'm hoping some firmware related option allows the Pi to operate with the Lapdock correctly or a later revision of firmware resolves this issue. I switched in a new Pi and it errors exactly the same way. Works if I run the Lapdock USB through a USB 1.0 Hub and fails if I connect the lapdock USB data cable directly to the Pi.
Hmm, maybe something is broken in the release you're using. I'm still on Debian Squeeze 6-19-04-2012. There's been a lot of USB performance tuning since then.

User avatar
Jim Manley
Posts: 1600
Joined: Thu Feb 23, 2012 8:41 pm
Location: SillyCon Valley, California, and Powell, Wyoming, USA, plus The Universe
Contact: Website

Re: I made a Raspberry PI Laptop

Fri Mar 08, 2013 10:29 pm

Make sure you're using the latest Raspbian Wheezy distro of February 9, 2013 and even after installing that do an apt-get update && apt-get upgrade to update the distro database, firmware, and base packages. IIRC, there were a number of firmware improvements that addressed at least some of the USB issues in the distro releases toward the end of 2012.
The best things in life aren't things ... but, a Pi comes pretty darned close! :D
"Education is not the filling of a pail, but the lighting of a fire." -- W.B. Yeats
In theory, theory & practice are the same - in practice, they aren't!!!

Mr Floppy
Posts: 26
Joined: Fri Nov 02, 2012 5:21 am

Re: I made a Raspberry PI Laptop

Thu Mar 14, 2013 11:39 pm

Well, I was waiting for a Model A but it still hasn't made it here yet but here is my Pi Dock.
The process started last year around october and I got my connectors around mid January.

I got a Jewish keyboard version of the lapdock. The only issue is that I have to remap the | key to be actually | rather than the #. Fixed by selecting the right keyboard layout (US will suffice) in the config but remapping works better for me as I'm used to have certain keys in certain positions. As Bens Outlet didn't ship overseas, I had to wait until Christmas for Santa to bring it .. well a relative anyway.

The connectors, well they took a long time to get here. As I mentioned earlier in this thread, I expected to receive some cables with the lapdock, but there were no cables. So instead I ordered some parts from from DX.
SKU: 176849 - CY HD-089 Male D Type Micro HDMI to Female Micro HDMI Cable for Motorola Cell Phones - Black (60cm). The cable is not 60 cm.
SKU: 172524 - Micro USB Female to USB Male Adapter - Black
I had to shave these down like so:
Image

SKU: 66079 - HDMI Male to Micro HDMI Female Adapter, goes on the end of the HDMI cable
Image
Image

Then connected to the dock like so:
Image
Image
Image
Image
I tried using a short USB extension cable but I was getting quite a voltage drop from the cable that did all sorts of things such as failing to boot, repeating keys, no track pad.

Ta Da:
Image

timb
Posts: 47
Joined: Mon Mar 04, 2013 8:09 pm

Re: I made a Raspberry PI Laptop

Sun Mar 17, 2013 8:58 pm

Here's a good image taken under magnification (original shot in TIFF on my iPhone 5 under a magnified ring lamp) of the JHDMI connector and cable fully exposed. There's multiple smaller bundles wrapped in a larger bundle. It looks like all the ground lines (sans DDC/CEC) are tied together, so if you're making your own cable that should save you some time as you can just bundle all the grounds. Take note of the DDC/CEC ground which has a clear plastic coating over it. You'll want to hook this into a small toggle switch connected to ground for power on / power off. (I'll be hooking mine into a small array of transistors and embedding a small touch switch under the top cover with an LED for power functions.)

Full Sized 800x800 Lossless JPEG
Image

More pics of the full cable assembly coming soon!

User avatar
johnbeetem
Posts: 945
Joined: Mon Oct 17, 2011 11:18 pm
Location: The Mountains
Contact: Website

Re: I made a Raspberry PI Laptop

Mon Mar 18, 2013 5:35 pm

timb wrote:Here's a good image taken under magnification (original shot in TIFF on my iPhone 5 under a magnified ring lamp) of the JHDMI connector and cable fully exposed. There's multiple smaller bundles wrapped in a larger bundle. It looks like all the ground lines (sans DDC/CEC) are tied together, so if you're making your own cable that should save you some time as you can just bundle all the grounds. Take note of the DDC/CEC ground which has a clear plastic coating over it. You'll want to hook this into a small toggle switch connected to ground for power on / power off. (I'll be hooking mine into a small array of transistors and embedding a small touch switch under the top cover with an LED for power functions.)
Very nice picture. Thank you for posting.

You should only need a small transistor to pull down the DDC/CEC ground line. I only measured 64 uA (yes, micro as in 160K Ohm pull-up) when I was investigating DDC/CEC ground. Your Atrix may be different, so do check it yourself. When the switch is open, DDC/CEC ground goes up to approximately 10V, so be sure your transistor can handle high voltages -- say 20V or more. My 'blog post: http://www.element14.com/community/grou ... ork-around

timb
Posts: 47
Joined: Mon Mar 04, 2013 8:09 pm

Re: I made a Raspberry PI Laptop

Mon Mar 18, 2013 5:50 pm

Thanks man. I got it up and running last night! :!:

Image

Image

Now to bundle and heat shrink all the wires together and tackle the USB side. By the way, I couldn't have done it without your blog. I went through and made a pinout of my particular HDMI cable and having a list of all the JHDMI pinouts was invaluable.

User avatar
Jim Manley
Posts: 1600
Joined: Thu Feb 23, 2012 8:41 pm
Location: SillyCon Valley, California, and Powell, Wyoming, USA, plus The Universe
Contact: Website

Re: I made a Raspberry PI Laptop

Mon Mar 18, 2013 8:35 pm

Eben happened to stop by (unannounced) at the Raspberry Jam Silicon Valley at the Computer History Museum for its last hour on Saturday, March 16th, since he was seven miles away at the annual PyCon (Python programming language Conference) where he gave the keynote Friday morning (which Liz has posted in the home page blog). We wound up blabbing for six hours (!) Saturday evening and one of the topics we touched on was that, since the lapdocks were made by Googorola/Motoroogle (Google now owns Motorola), perhaps they could adapt the lapdock design to provide enough room to incorporate a Pi board (a Model B without connectors installed would make that easier, but Eben did NOT say that, it's just an obvious fact).

If Googorola/Motoroogle can be convinced to produce a PiTop/LapPi, I believe (my personal option only) that Eben would strongly support that. If even 10% of all Pi boards eventually wound up in such a device, it could be a larger number (possibly hundreds of thousands?) than many individual laptop/netbook models have shipped. Googorola/Motoroogle folks who I know read the forum, perhaps the Pi Foundation could anoint someone as a local enthusiast who could represent typical Pi users' needs and desires (not always the same thing). I'm local and am willing to help in any way necessary.

AGAIN, THIS IS NOT A PRODUCT ANNOUNCEMENT OR AN OFFICIAL/UNOFFICIAL FOUNDATION STATEMENT AS THERE'S NO WAY THEY WOULD ALLOW ME TO REPRESENT THEM. THIS IS JUST A BRAIN-FART AMONG GEEKS WITH A COMMON VISION FOR NOW. Did I make it clear enough that I am in no way speaking for Eben, the Foundation, Googorola/Motoroogle, or anyone or anything else? That being said, feel free to write your Congresscritter/Parlia-mental-arian/Googorola/Motoroogle representative that you demand your PiTop/LapPi ... and your MTV! :D
The best things in life aren't things ... but, a Pi comes pretty darned close! :D
"Education is not the filling of a pail, but the lighting of a fire." -- W.B. Yeats
In theory, theory & practice are the same - in practice, they aren't!!!

FlipBumWalla
Posts: 10
Joined: Mon Oct 24, 2011 7:40 pm

Re: I made a Raspberry PI Laptop

Mon Mar 18, 2013 8:41 pm

Jim Manley wrote:... Did I make it clear enough that I am in no way speaking for Eben, the Foundation, Googorola/Motoroogle, or anyone or anything else? That being said, feel free to write your Congresscritter/Parlia-mental-arian/Googorola/Motoroogle representative that you demand your PiTop/LapPi ... and your MTV! :D
Nicely put, Jim. I agree completely. It would be a great evolution!

timb
Posts: 47
Joined: Mon Mar 04, 2013 8:09 pm

Re: I made a Raspberry PI Laptop

Mon Mar 18, 2013 8:43 pm

These things originally sold for what, $500? The only reason they're popular now is because South Coast Boutique was having a fire sale and letting these things go at $50 each. I'm sure that was at a loss.

How much do you think they would realistically charge for this if they resurrected it for the RPi? $250 minimum I bet. Who's going to pay that to stick a $35 computer in?

timb
Posts: 47
Joined: Mon Mar 04, 2013 8:09 pm

Re: I made a Raspberry PI Laptop

Tue Mar 19, 2013 4:54 am

Well, I got my conversion finished tonight!

Image

Image

Image

There's a hardwired one meter HDMI cord coming out of the rear, along with a one inch micro-USB that's been connected to a short micro-USB female to USB A female adapter. From here you can use any size USB A male-male cable to connect to your RPi. Currently I've also got a small wire pair running out the back with a crimp on style coupler connected to each lead. Connecting this together turns the unit on. (This is a temporary solution until I get the transistor switch in place.)

As you can see in the last picture all the wires coming out are very secure, including internal and external standoffs. I've taken the dock unit off completely and replaced it with a small steel bar that runs across, which is what the wires are attached to. Everything is very stable, screen is crystal clear, it all just sort of works!

I was really surprised, to be honest. After spending around 6 hours last night meticulously taking apart an HDMI cable and figuring out the wiring arrangement, I soldered everything in place using johnbeetem's JHDMI cable pinout and it worked on the first go, no mistakes.

Return to “General discussion”