Timur's ROM USB OTG + Charging, allows USB devices to be connected while charging the tablet at the same time. Basically, his rom is meant for Nexus 7 in-car installation. It manages USB devices, deep sleep, etc.
http://mehrvarz.github.io/nexus-7-usbrom/
Timur has started an Indiegogo campaign to raise funds to start working on his rom for Nexus 7 2013 model
If anyone would like to pledge their support to create the ROM please use the following link:
http://www.indiegogo.com/projects/usb-rom-nexus-7-2013
I'll hold off buying the new Nexus 7 till I see USB OTG + Charging done. If not I may just go ahead and get 2012.
You can do OTG + charging with version 1.6 of ElementalX kernel: http://forum.xda-developers.com/showthread.php?t=2389022
Good news! But the ROM can keep connections to USB devices after the tablet goes to deep sleep so when the tablet comes back from deep sleep there are no problem with USB devices plugged-in. Do you happen to know if that's supported?
That app doesn't really fix the problem. It just acquires a wakelock (PARTIAL_WAKE_LOCK) and prevents deep sleep.I saw this app posted, I haven't tried it myself
http://forum.xda-developers.com/showthread.php?t=2461267
Good news! But the ROM can keep connections to USB devices after the tablet goes to deep sleep so when the tablet comes back from deep sleep there are no problem with USB devices plugged-in. Do you happen to know if that's supported?
You can do OTG + charging with version 1.6 of ElementalX kernel: http://forum.xda-developers.com/showthread.php?t=2389022
So I take it the problem is that power is removed from the usb peripheral when it goes to sleep and the state is lost when it wakes up?
I tested with stock and that's what happens.
When it's in usb host charge mode, the usb peripheral will resume normally as long as power is maintained. So, if I connect a power source and a usb stick to a y-cable, then plug it into the tablet with the OTG adapter, charging starts and the usb stick is automatically mounted by Stickmount. I start a movie that's on the usb stick, then I press power to put the tablet to sleep. Wait for a minute. It's still charging, so not in deep sleep. Turn it back on and the movie starts back up no problem. But like with stock, if power is removed, the usb stick no longer works.
I'll have to take a look at this with debugging turned on.
From what I remember, the shorted 4-5 pin on the OTG cable triggers host mode, then the otg driver uses vbus to sense when another usb device is connected. As soon as it senses 5V, it tries to connect with the peripheral device. I'm guessing when the 5V is taken away, it disconnects the device immediately and it loses state.
I might be able to do something about this.
Does your Kernel support a USB DAC/AUdio?
If so, It means this weekend I can finally put my N7 2013 into my car.
I've been holding off as I've been waiting for USB DAC + OTG Charging so it can be permanently mounted in the car.
Cheers
Mat
Does your Kernel support a USB DAC/AUdio?
If so, It means this weekend I can finally put my N7 2013 into my car.
I've been holding off as I've been waiting for USB DAC + OTG Charging so it can be permanently mounted in the car.
Cheers
Mat
That is great news. I'm a guy who would use that feature. Just tried to install ElementalX on top of CM10.2 latest nightly and it doesn't work but I can confirm this works on top of AOKP ROM
In his directions it must be manually enabled though. But it works like a champ!
Note: as of October 2, ROMs based on Cyanogenmod nightlies are broken and no longer work with this kernel.
Does your Kernel support a USB DAC/AUdio?
If so, It means this weekend I can finally put my N7 2013 into my car.
I've been holding off as I've been waiting for USB DAC + OTG Charging so it can be permanently mounted in the car.
Cheers
Mat
flar2 (another ottawan! hi!) has stated in his thread that with the latest CM nightlies, his kernel no longer works
Using his kernel with carbon rom and it rocks. I haven't acquired a USB OTG + charging cable but now i'm on the hunt!
Actually, it might be enabled on 1.6. I check my config and I think everything necessary is enabled.
Please let me know if it works, I don't have any usb audio stuff to test with.
.
Actually, it might be enabled on 1.6. I check my config and I think everything necessary is enabled.
Please let me know if it works, I don't have any usb audio stuff to test with.
Good luck finding any of that stuff in OttawaI had to order my otg adapter and y cable on ebay
@TabletNoob
I will try to get most of this stuff working on the kernel side, thanks for the PM.