yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] highvista:
Cool stuff going on here! :). I may not have time until the weekend, but I'll put together some notes on how I got my build environment going. And I'll also look into the github repository, too.

So far, so good with battery charging while in USB OTG mode. The only quirk I'm going to try to fix is that whenever I plug an OTG cable into the phone, it goes into charge mode--the battery icon shows that it's charging and the screen stays on as if power is being provided, even if no power cable is attached to the OTG cable. The battery stats page still shows that the phone is on battery power, though. It's not a show-stopper but is annoying.

But it sure is neat to finally be able to leave my flash drive plugged into the phone, the screen on, and still have it charge. I've been looking for a hardware or software solution to allow this for months now... :)
[Samsung Galaxy Nexus] caioketo:
Nice to hear about that, if there is not problem I could create the github repo, and another thing I want to discuss with you, is that you based on the boot.img from stock, and I think it would be good if we could have a choice here, like one img from stock and other based on cyanogenmod, afterall most of people prefers cm over stock.

I think until tonight I can create the repo, download both boots (stock + cm) and try to start something.

It will be good if we have a name for the project, so the repo and irc channel be good.

Since you started it, I think is fair you choose a name for it. So, ill be waiting till you name it to create both repo and irc chanel.

Thanks for now.

=D
[Samsung Galaxy Nexus] Rotary Heart:
Well if you guys need any help I can help. My laptop have ubuntu already, I haven't build any kernel but I can help and I'm a quick learner.
[Samsung Galaxy Nexus] caioketo:
Any help is welcome, wait until we got the irc channel, and we will unite all helps....
[Samsung Galaxy Nexus] latinmaxima:
You mentioned that could build this if we provided you the info from your signature?

Phone: Galaxy Nexus (USA GSM)

Cell Network: T-Mobile

ROM: Stock Android 4.1.1 JRO03C (takju)

Kernel: Stock 3.0.31

Root: Yes, via Unlocked Bootloader

Radio: Stock I9250XXLF1

Recovery: ClockworkMod 5.5.0.2

If that is correct you would just need

Phone: Galaxy Nexus (USA CDMA)

Cell Network: Sprint

ROM: Paranoid Android 2.17 CM10 RC0 Base

Kernel: 3.0.43-cyanogenmod-gc935f45

Root: Yes, via Unlocked Bootloader

Radio: JRO03R FD02

Recovery: TWRP 2.21

as well as the attached boot.img?

I am ordering a otg y cable also. So in testing are you able to use the pogo pins as well to charge or only the y cable?
[Samsung Galaxy Nexus] Rotary Heart:
Well just contact, I will be waiting
[Samsung Galaxy Nexus] caioketo:
I was looking on "Initializing a Build Environment" and it says that for gingerbread and newers need a 64-bit system, is that so?

Can't I compile the kernel in a 32-bit system? (I only got 32-bit system for now)
[Samsung Galaxy Nexus] highvista:
I've added two more ZIP files to my original post. These contain the boot images for the kernel I'm now running, which charges the phone battery, as well as providing USB OTG power. The only caveat is that the phone thinks it's charging any time a USB OTG cable is plugged into it. This doesn't seem to hurt anything, but if you have your phone set to stay on while charging, you could end up running down your battery. I left the original ZIP files in place in case anyone would rather not risk this.

I'm still trying to figure out if there's a way to tell the phone to go into charge mode only if power is detected. No joy, so far. Which leads me to say thanks for the folks who'd like to participate in kernel building and looking at the code! Responses to posts below:

Great idea! Thanks, Rotary Heart, for doing this.

For a name, how does The OtgPowerMod Kernel sound? Or for something more general, we could go with the JourneymanMod Kernel. That's another one of my aliases that I like. Either's fine, or we can go another way.

Also, very good idea to get a CM-based kernel out. If you get set up to build kernels, maybe you could keep that one up-to-date. Or Rotary Heart, who mentioned he has a laptop with Ubuntu installed. I'd be glad to, as well, but it'll be a bit before I can set up the code tree for compiling.

Hi, latinmaxima! I will indeed build you a boot image, hopefully tomorrow or Thursday. It's getting near my bedtime tonight and I'm fading fast!

I haven't tried out anything with the pogo pins yet, though there are plenty of references to them in the source code file I'm tweaking. Definitely something to look into.

Yeah, that's the same info I've found in the documentation. I'm doing the builds under VMware, which is running on a PC using Windows 7 64-bit. The VMware virtual machine is running the 64-bit version of Ubuntu Desktop 12.04.

One idea for you is setting up a virtual machine with one of the cloud computing providers. I use Amazon's EC2 both at home and at work and, for servers that you don't keep up full-time, it's pretty cost-effective.

Thanks again for all the feedback, ideas, and collaboration! Very cool!
[Samsung Galaxy Nexus] caioketo:
Hi there,

I registered the channel in irc as ##JourneymanMod and created the github repository (https://github.com/caioketo/journeymanmod).

Now I'll try to set the build envoriment, and see what can I get working here.

I'll start with the CM-kernel since you got the stock kernel working.

Also, in the TODO-list, I think is good if there is someway to switch it via software, like "Enable/Disable OTG Power" so when you got no power source the external devices can work with phone power.

I'll be in the irc channel 24/7, but not always on the keyboard, think it's good to create a thread in the "android development" forum, so we post there the news and changes.

So anyone who wants to help or follow the progress, can enter on the irc channel. (##JourneymanMod)
[Samsung Galaxy Nexus] Rotary Heart:
+1 for the android development thread. I will add the link to the OP so that anyone can see it.
[Samsung Galaxy Nexus] caioketo:
I already created the android development thread.

http://xdaforums.com/showthread.php?p=32618626#post32618626

And now on I'll update it when we get anything new working out.
[Samsung Galaxy Nexus] caioketo:
Good news folks, my Y cable just arrived, and I'm almost done setting the build envoriment.

So, soon I'll start to make changes and trying that changes out, with OTG + Charge (Power HUB would be better) + MHL.
[Samsung Galaxy Nexus] highvista:
Good to hear! Onward... :)
[Samsung Galaxy Nexus] caioketo:
Can you connect to the irc channel? I have some questions, just to not polute here.
[Samsung Galaxy Nexus] highvista:
I'm not at a place where I can get on IRC currently. I'll have a bit of time tonight after 9pm PDT, if you're available.
[Samsung Galaxy Nexus] caioketo:
the problem is that im in Brazil so 9pm PDT here will be 1am and I wont be awake =/

maybe wekend we will see each other in the irc channel.

Until there, why you think the OTG wont work with MHL? is there anything I can see to make it work?

I never coded kernels, so I dont know very muhc, but I learn fast.
[Samsung Galaxy Nexus] highvista:
Ah! I'll get on the channel Saturday morning PDT and see if we can connect.

As to MHL, it looks like the code for MHL is implemented independently from what's being done for OTG, which leads me to believe that tweaks to the OTG code won't necessarily apply to MHL. I'll do some more research on this when I get a chance and see if I can add a little more hard data to my speculations.
[Samsung Galaxy Nexus] caioketo:
Good, when I got my build envoriment working, I'll try to compile the kernel from cm10 and install it on my gnex, if it works, I'll than make the changes you did, so the cm10 kernel will enable chargin with OTG, and than research on the MHL part.
[Samsung Galaxy Nexus] caioketo:
So i was looking at the web, and I found this patch for Meego-kernel, that seems to enable OTG + MHL

(http://lists.meego.com/pipermail/meego-kernel/2010-December/001607.html)

didn't read the whole code, but I'll as soon as my build envoriment get ready.
[Samsung Galaxy Nexus] latinmaxima:
This will be fanatastic. Maybe you can get it merged for future builds. I would love to see this added into all the major ROM's/kernels if it does work!
[Samsung Galaxy Nexus] caioketo:
All of us would love it. But not sure if they will add, but I'm pretty sure we will make it work, even if it requires a lot of time/code. =D

I always think that it should already be done, and when I tried that out, I discover that no ones implemented that yet, so, here we go.

Wish lucky for us =D

And other problem to merge with future builds is that it's kinda of device specific (or kernel specific).
[Samsung Galaxy Nexus] caioketo:
@highvista, I got the envoriment working, but I couldn't compile the kernel couse of the lacking of .config, now I'm trying to get this somewhere, but I still couldnt find out, if you could help me, I'll be thanked a lot.
[Samsung Galaxy Nexus] highvista:
I'm available to get on the irc channel. Could you tell me what network/server you set up the channel on? Thanks!
[Samsung Galaxy Nexus] highvista:
I've created a boot image based off of the one you attached. Note that you are using a cyanogenmod-baed kernel and the one I compiled is based off of the stock 4.1.1 kernel. I believe this won't be a problem, since I know people mix-and-match ROMs and kernels, but I"m not sure. So before trying this boot image, be sure to make a full backup of your phone. If you have any problems, you should be able to just re-flash the original boot image and be good to go, but it's best to be ready to do a full restore before trying this out.

Good luck!
[Samsung Galaxy Nexus] caioketo:
Freenode channel: ##JourneymanMod
[Samsung Galaxy Nexus] markj_2222:
GUUUUHHHHHH, thats the sound when you successfully use a usb hub and charge a phone at the same time.

Using latest paranoid build, kernel is irrelevant cause this one replaces it.

This is unreal, my phone just became a laptop :D
[Samsung Galaxy Nexus] caioketo:
Not yet, since you cant acess it and plug it in some monitor, we need this to works with MHL then it will be awsome
[Samsung Galaxy Nexus] highvista:
Good to hear it's working out. Did you use the boot image I posted for latinmaxima that's for Sprint CDMA? I'm curious to hear if that image works.
[Samsung Galaxy Nexus] latinmaxima:
Thank you. Sorry for not responding. Been out of town for my daughter's soccer tournament. Will back up and flash tomorrow. I can't find the y cable. Can anyone refer me via a link?

So says Latinmaxima, so it shall be done!
[Samsung Galaxy Nexus] highvista:
Not a problem at all. Hope it works out for you! And here's a link to the y-cable that I'm using:

Y-cable on eBay
[Samsung Galaxy Nexus] caioketo:
I'm using this Y-cable (http://www.ebay.com/itm/190710044655?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649)

It works as well.
[Samsung Galaxy Nexus] caioketo:
@highvista: this should sounds a little wierd, but, since we are limited to the 5-pin (and MHL uses them all), I was looking around, and OTG basically uses only 2 pins (data+, data-) and the ground. Could be possible to change in kernel so we can connect these 3 pins from the OTG microUSB to the POGO-PINS, and in the kernel, it threats it like a normal OTG?

Just an idea, since we dont have a lot of other ways to make it work with MHL.

Or is it possible to have some kind of micro-usb hub? and connect MHL and OTG in this, and it into the phone? Im a lot lost here.
[Samsung Galaxy Nexus] latinmaxima:
Thanks for the links. I may get both since they have both size ends.

As for the last post that makes a good point. I should also order a desk dock and splice a usb port into the pogo pins to be prepared for that if it is the path you guys decide to take.
[Samsung Galaxy Nexus] caioketo:
I'm just thinking about the possibilities.

I could try that out, but, as I live in Brazil, here all this things are too expansives, and I cant afford them, if I got the desk dock, or simple the microusb connectors (males and females) I could build something and try, but I need to be sure it will work to buy these things.

Just for you know, here some simple microusb connector is about R$20,00 what its something like $10,00 for 1 connector.
[Samsung Galaxy Nexus] markj_2222:
Yes sir it was the CDMA Sprint one, Didn't seam to interfere with my model version UGLC1 either.

Im loving running ARMv7 Ubuntu full bore/external hard drive + all other sorts of usb hardware, without the battery going dead.

True, it would be super crazy but i don't think its possible. I'm hoping in next year they will have that Mali T658 + Intel Atom (X86 instruction set), with otg + mhl.

To me that means Valve's source engine ports over. Hard core gaming from my phone (Counter strike :D).

I dont think MHL + OTG is possible due to it having 4 pins (2 communication pins), Samsung addressed this problem in the s3 by adding a special 11 pin micro usb.

I briefly looked into modding the GNEX to the 11 pin but it would take a custom board and alot of magic and luck.

I believe the Galaxy S3 which does have the hardware support still doesn't have a working kernel for OTG + MHL
[Samsung Galaxy Nexus] caioketo:
I believe it is possible, its just hard to find out a way to make it.

But we will make it =D
[Samsung Galaxy Nexus] highvista:
It's an interesting idea and would take time to investigate. I can't really say off the top of my head. As someone else mentioned, even the Galaxy S3 can't handle OTG+MHL, so I'm not too hopeful. :(

I spent a lot of time yesterday investigating the TWL6030 power controller and FSA9480 USB controller, trying to figure out how to auto-detect a charger such that a straight-through USB OTG cable without power could still be used, with the phone powering the external device, if a charger isn't detected.

I think I've got it working. After a bit more testing, I'll update the ZIP archives with the new boot images. I'll include the new source in the archives, so you can grab it and rev the git repository. I'd also like to go with a naming scheme of the format

JourneymanMod-Kernel-V<n>

with <n> being the sequential release number. Right now, we're at V3. :)

Also, these will still be for JRO03C / 4.1.1. If you're ready to build and post images/kernels based on JZO54K / 4.1.2, go for it. Thanks!
[Samsung Galaxy Nexus] caioketo:
Sounds great, I think its possible, but with a lot of work.

about the mod, if you can put it in the github would be nicer, but if you cant, upload somewhere and I grab it.

and then I can put in the github both sources (4.1.1 and 4.1.2) with the news modifications.
[Samsung Galaxy Nexus] highvista:
I can definitely put it into the repository. Sad to say, I'm pretty rough with git. Can you give me a few pointers on uploading it? Thanks. :)
[Samsung Galaxy Nexus] caioketo:
You need to clone, then you create a folder inside it with the 4.1.1 source (without the .git folder from googlesource) and then "git add *" and "git commit -m 'message to commit'" and finally "git push", im not sure how it will work with github (maybe ytou need an account so I can give permissions for you to push into it.
[Samsung Galaxy Nexus] highvista:
I've uploaded new ZIP archives with a kernel version that auto-detects if a USB OTG y-cable with power is attached. If a standard USB OTG cable without power is attached, it will behave just as in the stock kernel. See more details in the original post with the archives at

http://xdaforums.com/showpost.php?p=32474150&postcount=70

Rotary Heart, if you could modify the OP with the new info and archives, that would be great. Thanks. :)
[Samsung Galaxy Nexus] Rotary Heart:
Sure thing. :good:
[Samsung Galaxy Nexus] highvista:
Actually, could you pull down the old ZIP files and include the added info from the original post page, like you did last time? I'd like to make sure there aren't too many versions running around out there. :)
[Samsung Galaxy Nexus] Rotary Heart:
Like now?
[Samsung Galaxy Nexus] vennstrom:
Installation aborted...did I miss something here? (I have re-downloaded the file twice), this is with takju version.

Update

I got it work, I flash it manually using fastboot, I thought it's a flashable zip. Working well now, tons of thanks
[Samsung Galaxy Nexus] caioketo:
Have you got an account in github? so I can give you access?

I'll like to have both of sources there.

---------- Post added at 11:22 AM ---------- Previous post was at 10:49 AM ----------

I hate give bad news, but, with the new kernel it wont charge via usb hub, only if connect the charger.

---------- Post added at 12:21 PM ---------- Previous post was at 11:22 AM ----------

Anyone knows a good site (that accepts googlecheckout) to buy cheap micro-usb female connector ??
[Samsung Galaxy Nexus] highvista:
Looks great! Thanks again. :)

---------- Post added at 07:40 AM ---------- Previous post was at 07:34 AM ----------

I don't have a github account but will create one and let you know when it's ready.

Are you sure the new kernel doesn't charge with a USB hub? I just tried it and it works the same for me as with the previous kernel. I connect the y-cable's power line to the hub via a USB cable to provide the power to the phone.
[Samsung Galaxy Nexus] caioketo:
I tried that out again, and still dont charge, dont know what's happening, connected all like I did with the prev kernel. and it shows "Not charging".

Maybe its something about 4.1.2 kernel?

Anyway, i'm starting some tests with the pogo pins, when I got something I let you know.

And when you got your github account let me know so I put you as contributor, so you can push to it too.
[Samsung Galaxy Nexus] highvista:
Caioketo and I have been private messaging about the problem charging when using a USB hub. He figured it out. Since this kernel will set itself to standard USB OTG mode if it doesn't find a charger connected, you need to make sure that there is power provided through the cable _before_ attaching it to the phone. He was powering up his USB hub after attaching the y-cable to the phone and his hub.

This is also true when just using a y-cable. Make sure you attach the charger to the y-cable before attaching it to the phone. Otherwise, when you attach the charger, the kernel doesn't see it, since it is in standard USB OTG mode and expects the phone to provide power to the cable and any attached devices.
[Samsung Galaxy Nexus] markj_2222:
I have 2 usb hubs and one doesn't put power through to the host connecter. If im not mistaken USB rules says the slave shouldn't have power going to host side.

I got myself one of these and a power supply seperate. Charges the phone and fits in my pocket :D

http://www.tigerdirect.ca/applications/SearchTools/item-details.asp?EdpNo=1440536&CatId=392
[Samsung Galaxy Nexus] caioketo:
Yeah, the hub wont power the host connector, but in the Y cable you plug the host in one point, and the other, you put like its one of slaves, just to get powered.

It's working all great.

Now i'm researching to make pogo-otg works, so we can get OTG with MHL.

hope I can do this.
[Samsung Galaxy Nexus] vennstrom:
Any chance for the 4.1.2 version?

________________

Disregard this, it will eventually be there when it's done :)
[Samsung Galaxy Nexus] markj_2222:
Lol, clever
[Samsung Galaxy Nexus] Mgamerz:
I'm interested. Don't have a Y cable or a build environment but I would love to charge and use usb Ethernet. My school gets like 100Mbps down straight to my phone.
[Samsung Galaxy Nexus] caioketo:
http://xdaforums.com/showthread.php?p=32618626#post32618626

I the other thread is there the 4.1.2, but only for yakju, if your is takju, I'll need a boot.img to extract the ramdisk and then generate the boot.img again
[Samsung Galaxy Nexus] highvista:
I've posted a takju JZO54K/4.1.2 version here

http://xdaforums.com/showpost.php?p=32474150&postcount=70

caioketo and Rotary Heart, if you could grab this and put it in your OPs, that would be great. Thanks!
[Samsung Galaxy Nexus] Rotary Heart:
Done
[Samsung Galaxy Nexus] venusgun:
I'd like to appreciate the contribution made by you guys, the kernel mod works great for me. However I also found a bug: if you unplug only the power plug from the hub / y cable, it still shows charging. And even after I reconnect the power, it can't charge anymore.
[Samsung Galaxy Nexus] highvista:
Thanks much for reporting this. I'll take a look at the code and see if it's something I can fix. The work-around is to unplug and then re-insert the USB OTG cable, but it would be nice not to have to do that. :)
[Samsung Galaxy Nexus] BaMaDuDe87:
Any word on this coming to a Verizon GN?
[Samsung Galaxy Nexus] highvista:
If you post a copy of the boot.img file from a Nandroid backup of your phone, I should be able use it to build you a boot.img file with the JourneymanMod kernel. I did this for an image retrieved from a Sprint CDMA phone.
[Samsung Galaxy Nexus] BaMaDuDe87:
I will see what I can do. Thanks for all that you and Caioketo have done with this awsome mod.
[Samsung Galaxy Nexus] mthous01:
Here's mine from a 4.1.2 Liquidsmooth

http://db.tt/xLPEIXDu
[Samsung Galaxy Nexus] highvista:
This should work for anyone with a Verizon CDMA Galaxy Nexus, since the kernel is going to be replaced anyway. I'll get a copy with the JourneymanMod kernel inserted into it later today. Thanks for posting this!
[Samsung Galaxy Nexus] highvista:
I re-discovered something that I found out quite a while ago--that I can build boot images based on the factory images posted by Google. So I'm attaching a boot.img file that contains the JourneymanMod kernel compiled from Android 4.1.2 source, with the support files in the image coming from the stock mysid/toro/4.1.1/JRO03O factory image. This should work on all Verizon CDMA Galaxy Nexus phones.

BaMaDuDe87 and mthous01, if you could try this out, that would be great. If it works for you, I'll bundle it up into a ZIP archive like I have for the takju and yakju images and ask Rotary Heart to add it to the OP. And if anyone with a Sprint CDMA phone is interested, I can also do this for mysidspr/toroplus/4.1.1/FH05.
[Samsung Galaxy Nexus] Rotary Heart:
Just let me know and I will add it. :)
[Samsung Galaxy Nexus] CNLiberal:
How would this work on the current nightly of Cyanogenmod 10? What happens if I flash a new CM10 nightly? Would I reflash the same boot.img file or would a new file need to be created (assuming the kernel changed as well). I really want this on my GSM (maguro) GNex. And now that I know it works for a Nexus 7, I've already asked the fiancee for an early Christmas gift :) Thanks for all the hard work!
[Samsung Galaxy Nexus] BaMaDuDe87:
Thanks for getting that to the devs quicker than i could mthous01.

I don't have the cable to test, but will be ordering one tomorrow so I can let you know in a few days. Anyone found a manufacturer for this cable in the US so I can save a few days shipping?
[Samsung Galaxy Nexus] mthous01:
Flashed the new boot.IMG via fastboot. Won't boot.
[Samsung Galaxy Nexus] highvista:
Darn it. Tonight, I'll bundle up the kernel within the boot image that you provided from your phone rather than the stock image and post it. Thanks for trying this one out.
[Samsung Galaxy Nexus] highvista:
Attached is a boot image with the JourneymanMod kernel, based on the image you posted from your phone earlier--running 4.1.2 Liquidsmooth. Give it a shot and let me know how it goes. Just to verify--your phone is for Verizon/CDMA?

Thanks for trying this out.
[Samsung Galaxy Nexus] mthous01:
That worked! Thanks so much! Now I need to learn how to patch a kernel I want to use so I don't have to wait on DEV's to try it out (if they'll even consider it at all)

Any chance of some help there?
[Samsung Galaxy Nexus] Rotary Heart:
Then this one is good to be posted in the OP?
[Samsung Galaxy Nexus] mthous01:
I'd say so. It works just as advertized. Now to get some of the other bells and whistles in the kernel that I'd love to have, and we're in the ballgame :)