[Q] Charging in USB-C OTG-host mode - OnePlus 5 Questions & Answers

Hi guys,
I am using a pass through-powered USB-C hub through which I am using external USB devices (keyboard and mouse), as well as a larger monitor for screen mirroring. This works reasonably well. However, the USB-C hub, while powering the external devices, does not charge the phone while it is in OTG host mode (which is needs to be in order for the external devices to work). This leads to the problem that the phone is slowly draining when external devices are used to play games, work on spreadsheets, or whatever. So, I was wondering why this is and found that OTG host mode charging seems to be restricted by the kernel. Very annoying!
Looking around I found that there are custom kernels for other phones that tackle this problem (examples here (OnePlus One) or here (for Xperia Z5 compact)). Which leads me tot he question: is there any known solution for this problem for the OnePlus5? Is there a custom kernel supporting charging in OTG host mode? Is there any other work-around that would allow me to power my device while using OTG?
Thanks!
PS: My device is rooted but is otherwise running on stock kernel and ROM.

Froschface said:
Hi guys,
I am using a pass through-powered USB-C hub through which I am using external USB devices (keyboard and mouse), as well as a larger monitor for screen mirroring. This works reasonably well. However, the USB-C hub, while powering the external devices, does not charge the phone while it is in OTG host mode (which is needs to be in order for the external devices to work). This leads to the problem that the phone is slowly draining when external devices are used to play games, work on spreadsheets, or whatever. So, I was wondering why this is and found that OTG host mode charging seems to be restricted by the kernel. Very annoying!
Looking around I found that there are custom kernels for other phones that tackle this problem (examples here (OnePlus One) or here (for Xperia Z5 compact)). Which leads me tot he question: is there any known solution for this problem for the OnePlus5? Is there a custom kernel supporting charging in OTG host mode? Is there any other work-around that would allow me to power my device while using OTG?
Thanks!
PS: My device is rooted but is otherwise running on stock kernel and ROM.
Click to expand...
Click to collapse
Nope and it won't, I have a thread in the themes and apps section about targus display docks as after much research I found that it is the only way to reliably mirror your screen in real time with no latency issues, with that being said there is no charging whilst this is in use, I wish there was but there isn't.
It's possible I suppose that power could flow both ways but after all the time that I've spent looking, I'm yet to find it.
I've tried over 10 docks, splitters, dual output cables. Devices with power input, none have charged the device.
I think the nature of the way display link works it just doesn't allow it.

dladz said:
Nope and it won't, I have a thread in the themes and apps section about targus display docks as after much research I found that it is the only way to reliably mirror your screen in real time with no latency issues, with that being said there is no charging whilst this is in use, I wish there was but there isn't.
Click to expand...
Click to collapse
Yeah, I saw your thread. In fact, I was just about to post in there another - much cheaper - device I'm using for reliable mirroring.
Edit: actually I posted it in the 'usb-c to HDMI adapter'-thread, in which you were also quite active.
dladz said:
It's possible I suppose that power could flow both ways but after all the time that I've spent looking, I'm yet to find it.
I've tried over 10 docks, splitters, dual output cables. Devices with power input, none have charged the device.
I think the nature of the way display link works it just doesn't allow it.
Click to expand...
Click to collapse
Yeah, it is definitely possible (see the threads I've linked). But it depends the kernel allowing it, from what I understand. Anyways, if nobody has come up with a kernel allowing for it, then it won't happen I guess.

Froschface said:
Yeah, I saw your thread. In fact, I was just about to post in there another - much cheaper - device I'm using for reliable mirroring.
Edit: actually I posted it in the 'usb-c to HDMI adapter'-thread, in which you were also quite active.
Yeah, it is definitely possible (see the threads I've linked). But it depends the kernel allowing it, from what I understand. Anyways, if nobody has come up with a kernel allowing for it, then it won't happen I guess.
Click to expand...
Click to collapse
With displaylink technology it's not possible.. with previous hardware ie the HTC 10 it was but only with standard usb to hdmi converters, displaylink doesn't allow it.
In regards to usb OTG cables, I've never tried.

dladz said:
With displaylink technology it's not possible.. with previous hardware ie the HTC 10 it was but only with standard usb to hdmi converters, displaylink doesn't allow it.
In regards to usb OTG cables, I've never tried.
Click to expand...
Click to collapse
Oh.. so then there is a second limitation based on DisplayLink. Aside of the kernel.
Well. Luckily the OP5 has great battery life. A few hours of activity is no problem. Especially since I run everything through a USB-hub with its own power source anyway.

Froschface said:
Oh.. so then there is a second limitation based on DisplayLink. Aside of the kernel.
Well. Luckily the OP5 has great battery life. A few hours of activity is no problem. Especially since I run everything through a USB-hub with its own power source anyway.
Click to expand...
Click to collapse
From my tests I've found the hub being powered makes no difference to the drain of the battery on the phone..
The OnePlus has got amazing battery life, definitely something I need in my life for my next device..
In regards to charging whilst using a displaylink honestly my comment is based on the testing of around 20 different devices and none of them allow charging, if it exists I personally haven't come across it.
A shame but not the end of the world..

Lava - Simulcharge
For what it's worth, I had a difficult time finding a device which supports simultaneous host charging as well. As it turns out, there is a device called the Simulcharge from Lava Computer that works quite well on Samsung tablets. I'm not sure if it will work with other Android devices: (unable to post link - search amazon).
It's a bit expensive but it works great!

Is there a cheap displaylink that works with the OP5 that also has a USB port for peripherals?

Sorry to revive this thread from the dead, but I'm also looking for a way to connect both charger + USB-OTG at the same time. I have a USB C hub that's capable of that, it works perfectly fine on my Oneplus 7. However on the OP5 it's either OTG or charging.
Did you ever found a way?

XlAfbk said:
Sorry to revive this thread from the dead, but I'm also looking for a way to connect both charger + USB-OTG at the same time. I have a USB C hub that's capable of that, it works perfectly fine on my Oneplus 7. However on the OP5 it's either OTG or charging.
Did you ever found a way?
Click to expand...
Click to collapse
Hi ! I have a custom app specifically developped for OP6 and have the issue you have on OP5 : otg OR charching. I have seen Krieg Kernel enables it on OP5. Have you tried it ?
I'm looking for some Kernel for OP6 but nothing seems to answer my need....

romanarteefact said:
Hi ! I have a custom app specifically developped for OP6 and have the issue you have on OP5 : otg OR charching. I have seen Krieg Kernel enables it on OP5. Have you tried it ?
I'm looking for some Kernel for OP6 but nothing seems to answer my need....
Click to expand...
Click to collapse
Hi! I am looking for exactly the same thing for OP6. Hope there's something now

Froschface said:
Hi guys,
I am using a pass through-powered USB-C hub through which I am using external USB devices (keyboard and mouse), as well as a larger monitor for screen mirroring. This works reasonably well. However, the USB-C hub, while powering the external devices, does not charge the phone while it is in OTG host mode (which is needs to be in order for the external devices to work). This leads to the problem that the phone is slowly draining when external devices are used to play games, work on spreadsheets, or whatever. So, I was wondering why this is and found that OTG host mode charging seems to be restricted by the kernel. Very annoying!
Looking around I found that there are custom kernels for other phones that tackle this problem (examples here (OnePlus One) or here (for Xperia Z5 compact)). Which leads me tot he question: is there any known solution for this problem for the OnePlus5? Is there a custom kernel supporting charging in OTG host mode? Is there any other work-around that would allow me to power my device while using OTG?
Thanks!
PS: My device is rooted but is otherwise running on stock kernel and ROM.
Click to expand...
Click to collapse
Did you ever find a solution to OTG plus charge, perhaps via a different ROM? Thanks.

Related

[GUIDE] USB Gaming on Nexus S

Greetings,
The purpose of this post/thread is to describe how to use a USB gaming controller on the Nexus S, which is now possible thanks to the work of fellow XDA member sztupy. Before proceeding, I highly recommend that you read his Galaxy S thread, especially the first few posts (http://forum.xda-developers.com/showthread.php?t=1450298).
First, some demonstrations:
Using USB Host Controller app and Super Mario 64
Batman: Arkham City
Metro 2033
Dirt 3
DISCLAIMER: I take no responsibility for any damage you do to your phone.
1.) FLASH KERNEL AND DOWNLOAD APP
First things first, you will need ICS and to flash a kernel that has USB OTG support in it. At the time of this posting, some kernels with USB OTG are:
-steve.garon’s kernel (http://forum.xda-developers.com/showthread.php?t=1427352)
-mathkid95’s Matr1x kernel (http://forum.xda-developers.com/showthread.php?t=1361477)
-Ezekeel's GLaDoS kernel (http://forum.xda-developers.com/showthread.php?t=1336529)
If you do not know how to flash a kernel, please Google it. You will also need to download sztupy’s app “USB Host Controller” (https://market.android.com/details?id=hu.sztupy.android.usbhostcontroller).
2.) ACQUIRE USB CONTROLLER
Next, you will need a supported USB controller. The following should work:
-wired Xbox 360 controller
-Logitech DualAction controller
-Logitech WingMan RumblePad
-wireless Xbox 360 controller WITH wireless receiver
-wired Sony Playstation 3 controller (not yet tested)
...probably many others
3.) OTG SET UP
Thirdly, you’ll need a working USB OTG set up. Sztupy’s thread shows you a few ways of accomplishing this. Below is a (crappy) diagram of MY current working set up.
http://dl.dropbox.com/u/15806590/diagram2.png
I think this is the best set up because you don't have to buy any fancy OTG cables or USB hubs. But that's just my opinion.
In terms of the order for connecting things, I find it works best if you connect the phone LAST.
4.) FINAL STEPS
Once everything is connected, open up the “USB Host Controller” app, select the “Settings” pane, and set the Operation Mode to “Auto-host” (if you are using a set up that involves an OTG connector/cable, then you'll likely need to select OTG mode instead). If everything went right, the app will close automatically and you should be able to navigate your phone with the controller. You are now ready to game!
Just a note with the 360 controller. The middle button will always flash on and off, and will not stay lit on one quarter of the circle as on an actual Xbox. AFAIK there's no way to fix this (unless you use tape heh).
Games/Apps TESTED & WORKING: (This list is not meant to be comprehensive, and will be occasionally updated)
Note: Pretty much any app/game that supports button remapping (such as emulators) should work
Emulators
-nes.emu
-SNES 9X EX
-N64oid (the right analog stick is not functional)
-Mame4droid
-FrodoC64USB
-Mupen64Plus AE
-FPse
Native/Regular Android Games
-Shadowgun
-Grand Theft Auto 3
-Samurai II: Vengeance
-Riptide GP
-Meganoid
-Reckless Getaway
-Cordy
-EVAC HD
-Radiant HD
-Muffin Knight
Some (not all) of the Xperia Play compatible games will work too. See here for a comprehensive list of Xperia Play titles: http://forum.xda-developers.com/showthread.php?t=1217060
Other
-OnLive (!!! This means you can play the majority of onlive games that are game pad compatible)
thanks man i was thinking of a way to do this.
This is amazing !
I tested the Logitech Dual Action controller yesterday, it works also fine.
Hi! May I use your first diagram in my post too?
Sure! Be my guest.
Cool! 10 chars
3 new gameplay videos added.
nice. any idea if this works with the controllers for the original Xbox? I have a modded Duke I use on the computer, just replaced the Xbox!usb male with a regular usb male, and would love to be able to use it on my Cappy. I know it works perfectly on the mainline Linux kernel, but I'm having no luck finding how the drivers were implemented in ICS. I can't test myself just yet, still waiting for the otg cable and download mode jig to come in.
neoman4426 said:
nice. any idea if this works with the controllers for the original Xbox? I have a modded Duke I use on the computer, just replaced the Xbox!usb male with a regular usb male, and would love to be able to use it on my Cappy. I know it works perfectly on the mainline Linux kernel, but I'm having no luck finding how the drivers were implemented in ICS. I can't test myself just yet, still waiting for the otg cable and download mode jig to come in.
Click to expand...
Click to collapse
I can't say for certain, but I think it should work. I found another thread here: http://www.acertabletforum.com/forum/acer-iconia-tab-accessories/1014-what-game-controllers-work.html for the Acer Iconia tablet, and one user claims their original xbox controller works.
I suppose the only way to know for sure is to try it out yourself. Once you get your OTG set up and running, let us know how that works out for you.
Nice thread, very useful for me, I sold my wired 360 controller, and i thought i will buy a new one when i asked at sztupy's thread if the 360 controller would work with this method, he mentioned me about this thread, and i saw on the 1st page that a wireless controller would work with the receiver...luckily i have one of those but on the op says only it was not tested...so could anyone give me some info about that?
Szighy said:
Nice thread, very useful for me, I sold my wired 360 controller, and i thought i will buy a new one when i asked at sztupy's thread if the 360 controller would work with this method, he mentioned me about this thread, and i saw on the 1st page that a wireless controller would work with the receiver...luckily i have one of those but on the op says only it was not tested...so could anyone give me some info about that?
Click to expand...
Click to collapse
Well the reason I suspect that it will work is because I saw this video www.youtube.com/watch?v=TrTmsZIb0a8&feature=related. Since we now have OTG it is reasonable to assume this would work for us as well.
I tried looking around for a wireless receiver to test but unfortunately all stores near my area only seem to sell it with the controller.
Sent from my Nexus S using XDA App
developersdevelopers said:
Well the reason I suspect that it will work is because I saw this video www.youtube.com/watch?v=TrTmsZIb0a8&feature=related. Since we now have OTG it is reasonable to assume this would work for us as well.
I tried looking around for a wireless receiver to test but unfortunately all stores near my area only seem to sell it with the controller.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
hm...i'm gonna try it, so, i didn't understand the diagram show in the OP (from the dropbox link, i'm not too good in this), but would it work, if i use a USB Hub, connect the hub to the phone, a usb charger to the hub, and also the receiver?
Szighy said:
hm...i'm gonna try it, so, i didn't understand the diagram show in the OP (from the dropbox link, i'm not too good in this), but would it work, if i use a USB Hub, connect the hub to the phone, a usb charger to the hub, and also the receiver?
Click to expand...
Click to collapse
Read sztupy's post here for some ways you can connect a hub: http://forum.xda-developers.com/showpost.php?p=21503413&postcount=2. As you can see, it is indeed possible to power the controller/receiver from the hub if you have things connected properly.
When you're setting up USB OTG/host for the first time, use a simple device like a USB flash/thumb drive to verify that your connections and everything else are working properly. Then you can try hooking up other peripherals like the 360 wireless receiver.
To be honest, I haven't had much luck getting USB OTG/host to work with a hub, which is why I went and created my own 'Y' cable. It really isn't that difficult to make, and it's cheaper than using a hub, provided that you have soldering equipment already.
developersdevelopers said:
To be honest, I haven't had much luck getting USB OTG/host to work with a hub, which is why I went and created my own 'Y' cable. It really isn't that difficult to make, and it's cheaper than using a hub, provided that you have soldering equipment already.
Click to expand...
Click to collapse
you don't even need soldering equipment. I twisted and taped the wires and it worked fine.
Epic_VS said:
you don't even need soldering equipment. I twisted and taped the wires and it worked fine.
Click to expand...
Click to collapse
Nice lol.
Sent from my Nexus S using XDA App
Word of caution, the 360 controller wireless adapter draws a lot of power, i recall there being high incidences of it dropping out when plugged into PCs, so be sure to power it adequately.
tiuk said:
Word of caution, the 360 controller wireless adapter draws a lot of power, i recall there being high incidences of it dropping out when plugged into PCs, so be sure to power it adequately.
Click to expand...
Click to collapse
woah...i really don't know anything about this electronic thing how should i do?
Just look at your charger and check the output rating. It should say something like: 5.0 V, 0.75 A. Ideally you'll want the second number to be higher (like 1 A for example).
As a point of reference, my wired 360 controller works fine on 0.7 A. But as tiuk pointed out, the wireless receiver may be more demanding.
But really I think you should be okay if you stick with the standard Samsung Nexus S charger. If you need more current for your peripheral, you can simply disable the current draw of your phone with the USB Host Controller app. This way, all of the current from the charger will be directed to the device instead of being split between the device and your phone.

OTG Support

While i was thinking is it possible to make OTG work on Touch Pro 2?
Any Software or ROM or Kernel updates will do?
You mean like USB Host Mode?
I don't think anyone looked into it. Android or WinMo...
arrrghhh said:
You mean like USB Host Mode?
I don't think anyone looked into it. Android or WinMo...
Click to expand...
Click to collapse
Yeah , that is whats making me ask it, it would be awesome if that Hapenned., by the way is it Possible?
nikhil.pgm said:
Yeah , that is whats making me ask it, it would be awesome if that Hapenned., by the way is it Possible?
Click to expand...
Click to collapse
(Almost) anything is possible with enough time and determination...
Has it been done already? Not to my knowledge.
'Theoretically' you should be able to get this working. Like Arrrghhh said, anything is possible. I did get a usb otg cable for the rhodium (well, not FOR the rhodium, but 'theoretically' it should work) and found that this function is supported in the specs for our processor chip.
There are drivers and a pretty good source of information here: http://forum.xda-developers.com/showthread.php?t=480899
I never advanced past the point of realizing that while our phone 'probably' has the hardware to receive input from usb devices it cannot provide them with power to function. You seem to need to use an externally powered usb hub for those drivers to do you any good, and there really isn't anything On-The-Go about carrying around a usb hub and its power adapter! So it was at that point that I gave up. But, there is probably all the information you need in the thread I posted above to get you started.
Please post your findings if you have success/failure
Caldair said:
'Theoretically' you should be able to get this working. Like Arrrghhh said, anything is possible. I did get a usb otg cable for the rhodium (well, not FOR the rhodium, but 'theoretically' it should work) and found that this function is supported in the specs for our processor chip.
There are drivers and a pretty good source of information here: http://forum.xda-developers.com/showthread.php?t=480899
I never advanced past the point of realizing that while our phone 'probably' has the hardware to receive input from usb devices it cannot provide them with power to function. You seem to need to use an externally powered usb hub for those drivers to do you any good, and there really isn't anything On-The-Go about carrying around a usb hub and its power adapter! So it was at that point that I gave up. But, there is probably all the information you need in the thread I posted above to get you started.
Please post your findings if you have success/failure
Click to expand...
Click to collapse
Surely i would, leme work on that!
does the Froyo Build support OTG?
nikhil.pgm said:
Surely i would, leme work on that!
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1250199&highlight=7
its said that OTG isnt working in the Build
So does Android generally support OTG without any software support?
Can i get OTG support by just running in Android? ICS or CM or GB or Froyo?
[i m working on the Win6.5 OTG, ordered Host cable, waiting for it to arrive..]
nikhil.pgm said:
http://forum.xda-developers.com/showthread.php?t=1250199&highlight=7
its said that OTG isnt working in the Build
So does Android generally support OTG without any software support?
Can i get OTG support by just running in Android? ICS or CM or GB or Froyo?
[i m working on the Win6.5 OTG, ordered Host cable, waiting for it to arrive..]
Click to expand...
Click to collapse
That thread isn't talking about host mode, that thread is talking about transferring files via USB mass storage mode....
At any rate, I'm pretty sure the software simply supports it. Getting the hardware to talk properly is the hard part (again, as far as I understand it...)
arrrghhh said:
That thread isn't talking about host mode, that thread is talking about transferring files via USB mass storage mode....
At any rate, I'm pretty sure the software simply supports it. Getting the hardware to talk properly is the hard part (again, as far as I understand it...)
Click to expand...
Click to collapse
i got the Female cable, but it never took the flash drive, dont know why? Tried Zeno's Drivers and Also Leo's too but its not working out, does it require an external power supply?
any one got it working ever?
nikhil.pgm said:
i got the Female cable, but it never took the flash drive, dont know why? Tried Zeno's Drivers and Also Leo's too but its not working out, does it require an external power supply?
any one got it working ever?
Click to expand...
Click to collapse
No one ever got it working, I thought I made that perfectly clear...
I'm not sure what you need, again there's probably quite a bit of legwork that you'll need to do in order for it to talk on our devices. I don't think you can just "use" the LEO drivers in this case - however, adapting them might be a good place to start.
nikhil.pgm said:
i got the Female cable, but it never took the flash drive, dont know why? Tried Zeno's Drivers and Also Leo's too but its not working out, does it require an external power supply?
any one got it working ever?
Click to expand...
Click to collapse
I thought I read somewhere that the TP2 can not provide power. You had to use a powered usb hub + device to have a chance at getting it working.
The downside being that you had all this stuff to haul around if you wanted to use an OTG cable.

[INFO] OTG / USB Host

Oppo says that the hardware doesn't support OTG/USB host at all
the platform (APQ8064 SoC) does. don't remember/know what USB chipset this device uses
device hardware documentation
Last time I traced the kernel, it looks like the USB device tree isn't loaded at all in the kernel, so no OTG support... wonder if other people have had time to look at it
paperWastage said:
Oppo says that the hardware doesn't support OTG/USB host at all
the platform (APQ8064 SoC) does. don't remember/know what USB chipset this device uses
device hardware documentation
Last time I traced the kernel, it looks like the USB device tree isn't loaded at all in the kernel, so no OTG support... wonder if other people have had time to look at it
Click to expand...
Click to collapse
Tried it on my CyanogenMod build, no reaction. It is possible that it acts like Nexus 4, aka. the phone doesn't power the USB upstream (even if I saw some references to that in the kernel...), so if you enable USB OTG support, you'd need to power your USB device externally.
XpLoDWilD said:
Tried it on my CyanogenMod build, no reaction. It is possible that it acts like Nexus 4, aka. the phone doesn't power the USB upstream (even if I saw some references to that in the kernel...), so if you enable USB OTG support, you'd need to power your USB device externally.
Click to expand...
Click to collapse
That seems to be a common issue for a lot of devices - The host SoC supports it, but they didn't bother to wire up the PMIC's boost converter.
There's a lot of code related to OTG in the kernel source, but I think it's all upstream CAF stuff. All of Oppo's changes to the USB drivers seem related to charging. (It's a little confusing, as there are a lot of functions with "otg" in the name that are doing lots of non-OTG-related stuff.)
I'm thinking of looking into adding/enabling ACA support for Nexus 4 (and maybe other devices too). There is an official standard for externally powered OTG adapters - they can even charge the phone! However 90% of the adapters on the market aren't compliant with this standard.
Entropy512 said:
That seems to be a common issue for a lot of devices - The host SoC supports it, but they didn't bother to wire up the PMIC's boost converter.
There's a lot of code related to OTG in the kernel source, but I think it's all upstream CAF stuff. All of Oppo's changes to the USB drivers seem related to charging. (It's a little confusing, as there are a lot of functions with "otg" in the name that are doing lots of non-OTG-related stuff.)
I'm thinking of looking into adding/enabling ACA support for Nexus 4 (and maybe other devices too). There is an official standard for externally powered OTG adapters - they can even charge the phone! However 90% of the adapters on the market aren't compliant with this standard.
Click to expand...
Click to collapse
Do basically we have no otg no matter what
Sent from my Oppo Find 5
osmosizzz said:
Do basically we have no otg no matter what
Sent from my Oppo Find 5
Click to expand...
Click to collapse
We don't know yet, but it looks like it'll only be possible for externally powered devices.
Ahh man...
So what you're saying is that dock thing with a usb port on it from Sony Ericsson might work but that's it?
Oppo product manager said they do not want to take the risk by adding OTG Find 5, I saw that post on Sina Weibo in China
has anyone tried stick mount from play store .....is it working? it requires root but
The device has basicly the same issue (missing 5V output) like the Nexus 4. With some modifications its at least possible to get a properly function with external powered usb devices.
Kernel is based on the work from Ziddey and Cyanogenmod Team:
http://www.oppoforums.com/threads/usb-otg-externally-powered-usb-otg.2083/
Does that mean that in order to get USB host to work you must power the device externally AND use a modified kernel?

[Q] Audio over USB with Android 5.0

I know there have been threads in the past about the Nexus 4 not being able to support outputting audio over USB, but now that stock Android 5.0 supports it, can the Nexus 4 do it?
I'm using the factory 5.0 images and I have an external DAC/amp that I want to use (Fiio e18) that's made for Android, but nothing seems to happen when I hook it up. I've read posts that the Nexus 4 physically can't output power over it's USB, which is fine because the DAC has it's own battery source... but can it at least output the audio?
I started with the stock kernel, but also tried the latest Franco kernel (r214) with no luck. Also, I verified the DAC itself works by using it with my laptop. I'm hoping there's just some hidden setting or patch I need to apply to get it to work... Has anyone else tried this yet?
kerb12 said:
I know there have been threads in the past about the Nexus 4 not being able to support outputting audio over USB, but now that stock Android 5.0 supports it, can the Nexus 4 do it?
I'm using the factory 5.0 images and I have an external DAC/amp that I want to use (Fiio e18) that's made for Android, but nothing seems to happen when I hook it up. I've read posts that the Nexus 4 physically can't output power over it's USB, which is fine because the DAC has it's own battery source... but can it at least output the audio?
I started with the stock kernel, but also tried the latest Franco kernel (r214) with no luck. Also, I verified the DAC itself works by using it with my laptop. I'm hoping there's just some hidden setting or patch I need to apply to get it to work... Has anyone else tried this yet?
Click to expand...
Click to collapse
pls report your findings if you can make it happened!!
i can not help you with your problem but it is something that interest me too. i only can suggest to use a more feature enabled kernel like unleashed or hells core
pls report your findings if you make it work mate!
That's a good idea... unfortunately no dice with the latest unleashed kernel either (98u). It claims it supports USB OTG, so I was hoping that would be enough, but maybe there's more that needs to be done.
kerb12 said:
That's a good idea... unfortunately no dice with the latest unleashed kernel either (98u). It claims it supports USB OTG, so I was hoping that would be enough, but maybe there's more that needs to be done.
Click to expand...
Click to collapse
one thing that you might not know. nexus 4 does support usb otg BUT cannot provide electricity via usb. you must use a y cable and provide external power so you it might not be possible to use your DAC!
Thanks, I did know that, but I figured that since my DAC is self-powered (it has its own battery) that I wouldn't need to do the y-cable trick.
Worth a try though, I'm going to order one and see if I can at least get regular USB OTG to work. Maybe once that's working it'll be easier to troubleshoot the audio.
Just wanted to update, I got the Y OTG cable so I could have external power at the same time... but still doesn't work. This is with stock 5.0.1 and unleashed 98u kernel. I went into Synapse and enabled the OTG setting as well. DAC doesn't get recognized, and I tried a few free apps that are supposed to do OTG checks, but they all came back that nothing is attached.
Usb otg is one thing and uab audio out is another. USB otg means that you can connect an USB stick or external hdd to your phone ( with or without external power) USB AUDIO OUT need special circuits from your internal Dac to the USB. If those are not implemented you will never have USB audio out. This is something witch depends on the manufacturer ( S4 mini with snapdragon 400 don't work with USB otg or USB audio out, htc mini 2 M8 works perfectly with fiio E18 as a audio surce for external DAC). So if you really need USB audio out please next time do your homework and read before buying a phone. P.S. Htc mini 2 M8 has the best audio ever and really you don't need an external dac. If you need more power just use your fiio as an amplifier with your phone.
Maybe you could find for your phone a apecial kernel modified for better audio experience. Flash that and use your headphones.
Good luck!
Thanks, yeah I don't need usb audio out... I've had the phone for over 2 years and I still really like it, so no plans on getting a new one just for this.
I believe it's physically possible to do audio out on the N4... I've seen random posts about people getting it to work, but they've all been on custom ROM's based on 4.4.x stuff. I'd really rather not try to reproduce that since 5.0 is running so much better on my phone, and I was just hoping with the new native Android support it might work out of the box. But alas, it looks like google locked down 5.0 on the N4 - even USB OTG storage doesn't work unless you put a custom kernel like unleashed on.
In the meantime, I've just been using it as a headphone amp like you suggest and it's a big improvement.

Oneplus 5 OTG + Charging at the same time possible?

Hi,
I would want to turn my old OnePlus 5 phone into an octoprint/home assistant server. I only have one issue with it. It doesn't seem to support OTG and charging at the same time. I think is a stock kernel-related limitation. Is there anyone who knows how to overcome this issue?
Thanks a lot in advance!
juuhisx said:
Hi,
I would want to turn my old OnePlus 5 phone into an octoprint/home assistant server. I only have one issue with it. It doesn't seem to support OTG and charging at the same time. I think is a stock kernel-related limitation. Is there anyone who knows how to overcome this issue?
Thanks a lot in advance!
Click to expand...
Click to collapse
Hello, there are cables available on Amazon for this purpose. You have such a cable?
strongst said:
Hello, there are cables available on Amazon for this purpose. You have such a cable?
Click to expand...
Click to collapse
Well I've tried this USB dongle from Macally: https://macally-europe.com/uc3hub3gbc
No luck so far. So if I plug the charger into a dongle it charges but as soon as I plugin for example my 3D printer Oneplus 5 cuts the charging off. I read from Oneplus forums that kernel might not support it but there's might be some custom kernels out there to support this way of use.
I have the same challenge - however I have tried this OTG - https://smile.amazon.com/MOSWAG-Adapter-Splitter-Compatible-Chromecast/dp/B08Y6VQN99 and if power is connected, it will never find whatever is attached to the USB A connector. I have been able to load Octaprint, but it will chew threw the battery in about 2 hours if it is not charging.
juuhisx said:
Hi,
I would want to turn my old OnePlus 5 phone into an octoprint/home assistant server. I only have one issue with it. It doesn't seem to support OTG and charging at the same time. I think is a stock kernel-related limitation. Is there anyone who knows how to overcome this issue?
Thanks a lot in advance!
Click to expand...
Click to collapse
I had the same question around 4 years ago. See this thread here.
Unfortunately, it does not seem to be possible. There are two limitations:
Kernel limitations
DisplayLink - which only works 'one way' (it won't permit charging while sending video data over the cable)
juuhisx said:
Hi,
I would want to turn my old OnePlus 5 phone into an octoprint/home assistant server. I only have one issue with it. It doesn't seem to support OTG and charging at the same time. I think is a stock kernel-related limitation. Is there anyone who knows how to overcome this issue?
Thanks a lot in advance!
Click to expand...
Click to collapse
Did you ever find a solution, perhaps a custom kernel that enables OTG plus charge? Thanks.

Categories

Resources