Oneplus 5 OTG + Charging at the same time possible? - OnePlus 5 Questions & Answers

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.

Related

Energy Supply by Usb hosting and Micro-Usb to HDMI Cable

Hi! I know there are several kernels that enables usb hosting on our Galaxy S, [I'm using last Semaphore right now], my question here is: Does exist any way to supply energy directly to the usb device from our terminal? I have the proper cable to connect them [atm I don't remember the name of it], so I thought "There is an exchange of energy trought the usb entrance in our phone, so why we couldn't use it not just as input, but as output too?" Let me know it, and thanks in advance
Because you can either have power or data transfer, not both, due too pin arrangement, external power is needed unfortunately
Thanks for answering! But let me understand, when usb mass storage is connected, is there not both transferring of data and power supply? Why would be different with usb hosting?
Up!
Alex-Absolute said:
Up!
Click to expand...
Click to collapse
my bad actually, was thinking of situation when you have fast charge enabled....fact remains you need external power supply..Google it, plenty of info out there
slaphead20 said:
my bad actually, was thinking of situation when you have fast charge enabled....fact remains you need external power supply..Google it, plenty of info out there
Click to expand...
Click to collapse
I understand.. Well I googled it, but just couldn't find the reason. I guess it's like you said, just a hardware matter. Thank you!
Just a last thing, as we're here. What about the micro-usb to hdmi adapter? Is there the same problem or it will work?
Alex-Absolute said:
I understand.. Well I googled it, but just couldn't find the reason. I guess it's like you said, just a hardware matter. Thank you!
Just a last thing, as we're here. What about the micro-usb to hdmi adapter? Is there the same problem or it will work?
Click to expand...
Click to collapse
for tv out? Should work
slaphead20 said:
for tv out? Should work
Click to expand...
Click to collapse
Yes! Very thanks, let's hope so. At least I've given 5 free euros and not 15 to Amazon xD
When I'll test it, I'll post the result :good:
UPDATE: Apparently, neither the hdmi output cable works on i9000. I looked around, and I discovered the reason why it doesn't work is about mhl drivers. They need to be compile inside the kernel, and no one seems to have done it yet. Ufortunately, 2 on 2 failed. Damn and thanks either :good:
Up! Anyone could implement those drivers in a kernel? I can donate for that too! Come on!

Notification Panel/USB OTG

Does anyone have an idea what Amazon calls their status/notification panel? Like is it an APK? Is it tied into something else? I'm trying some things, but I haven't been able to track down it's source. I may have completely missed this one, but until I'm accused of being blind as a bat, I'm stumped!
I changed the title of the thread because I wanted to add another question to this when I posted it, but had forgotten what I wanted to post.
I have downloaded a few apps for both my phone and my Fire HD 8 that tell you if your device is USB OTG (On The Go) capable and if it's turned on. Both my phone and the tablet have USB OTG both are supposedly working. Question is: Does a USB OTG adapter work on the tablets? If so, what kind do I need? I see several types on Amazon and some have every connection under the moon. I don't want to waste the 5 dollars or less if it doesn't work.
I want to be able to use my phone to talk to my tablet and unless you jerry rig a standard USB cable (I tried and the biggest problem is getting the rubber and plastic off the micro USB plug), USB OTG cable is the only other way I know of.
Delete
The HD 8 works with these https://www.amazon.com/Eversame-Ada...498949476&sr=8-5&keywords=otg+cable+blue+pink
Reuben Talbott said:
The HD 8 works with these https://www.amazon.com/Eversame-Ada...498949476&sr=8-5&keywords=otg+cable+blue+pink
Click to expand...
Click to collapse
Awesome. Thanks

Xbox One Controller - Bluetooth Connection Possible?

Hi everyone,
Was wondering if anyone was using their axon 7 with a wireless xbox one S controller over bluetooth, have you had issues connecting? Since apparently, the controller won't work when connected through an USB OTG cable...
Thanks,
TimoVerbrugghe said:
Hi everyone,
Was wondering if anyone was using their axon 7 with a wireless xbox one S controller over bluetooth, have you had issues connecting? Since apparently, the controller won't work when connected through an USB OTG cable...
Thanks,
Click to expand...
Click to collapse
I tested a PS4 controller via bluetooth and it worked, so maybe the xbone controller will? Can't you try?
​
Choose an username... said:
I tested a PS4 controller via bluetooth and it worked, so maybe the xbone controller will? Can't you try?
Click to expand...
Click to collapse
I'm asking because I want to buy, so cannot try myself. But have already heard from other source that bluetooth connection is not possible on the phone due to microsoft firmware upgrade...
get a gamesir g4s
Flaîm said:
get a gamesir g4s
Click to expand...
Click to collapse
I know that exists, but I'd rather not buy something else, if I already have enough controllers at home.
Non Xone controller is not bluetooth. You need a specific adapter.
Znuf said:
Non Xone controller is not bluetooth. You need a specific adapter.
Click to expand...
Click to collapse
The Xbox One S Controller does support bluetooth, but apparently only for select android devices.
I'm now looking into the possibility of connecting it through an OTG adapter, see my other thread.
Works Axon 2017 China, Stock Axon Rom
TimoVerbrugghe said:
Hi everyone,
Was wondering if anyone was using their axon 7 with a wireless xbox one S controller over bluetooth, have you had issues connecting? Since apparently, the controller won't work when connected through an USB OTG cable...
Thanks,
Click to expand...
Click to collapse
Yeah Xbox One S works via Bluetooth.
On connecting via otg, my phone crashes and reboots.
Ravi2078 said:
Yeah Xbox One S works via Bluetooth.
On connecting via otg, my phone crashes and reboots.
Click to expand...
Click to collapse
It might reboot because the controller attempts to charge from the phone. You should try with a powered OTG.
Choose an username... said:
It might reboot because the controller attempts to charge from the phone. You should try with a powered OTG.
Click to expand...
Click to collapse
Hi,
Otg works fine with external HDD.
I will check kernel logs and verify.
Thanks
Ravi2078 said:
Hi,
Otg works fine with external HDD.
I will check kernel logs and verify.
Thanks
Click to expand...
Click to collapse
I'm curious, how much current does the HDD draw? Most full-size HDDs draw 5V 1A, don't know about 3.5 inchers but I've seen some with only one USB2.0 connector (500mA)
Choose an username... said:
I'm curious, how much current does the HDD draw? Most full-size HDDs draw 5V 1A, don't know about 3.5 inchers but I've seen some with only one USB2.0 connector (500mA)
Click to expand...
Click to collapse
And yes, you would be correct ~1A, 5V.
But I can't seem to find powered USB C otg, in my country (cheaply )
Also I have put non chargeable Alkaline batteries in my controller.
Strange.
Additional Query -
Does USB C multi port adapter ala MacBook work with Axon 7?
Ravi2078 said:
Yeah Xbox One S works via Bluetooth.
On connecting via otg, my phone crashes and reboots.
Click to expand...
Click to collapse
Woah seriously? Because you're the first one I've found across XDA, Discord & Reddit that says that Xbox One S Bluetooth connection works... Are you running the latest Xbox One S Controller firmware? Also, which android version & rom are you working with?
Ravi2078 said:
And yes, you would be correct ~1A, 5V.
But I can't seem to find powered USB C otg, in my country (cheaply )
Also I have put non chargeable Alkaline batteries in my controller.
Strange.
Click to expand...
Click to collapse
Also, it's already confirmed that the Xbox One S controller only draws 500 mAh max from a usb port (see aida64 screenshot), so I've always found it to be pretty weird that the Axon 7 reboots on connect due to power draw...
TimoVerbrugghe said:
Woah seriously? Because you're the first one I've found across XDA, Discord & Reddit that says that Xbox One S Bluetooth connection works... Are you running the latest Xbox One S Controller firmware? Also, which android version & rom are you working with?
Also, it's already confirmed that the Xbox One S controller only draws 500 mAh max from a usb port (see aida64 screenshot), so I've always found it to be pretty weird that the Axon 7 reboots on connect due to power draw...
Click to expand...
Click to collapse
Xbox one S updated with windows 10 anniversary edition. Maybe the latest version.
I have 3 different android devices on android Nougat 7.1, working with all of them.
1. Axon 7 2017 Chinese, 4gb 128gb - stock zte rom - ZTE_A2017V1.1.0B16
2. Xiaomi mi pad - LineageOS 14.1
3. Nvidia Shield TV - Shield Experience Upgrade 5.2
And buttons are mapped correctly too. I have played some games and ppsspp with it.
Ravi2078 said:
Xbox one S updated with windows 10 anniversary edition. Maybe the latest version.
Click to expand...
Click to collapse
Do you remember updating your controller's firmware either through the Xbox accessories app or on the actual Xbox One Console?
Thanks in advance for responding btw .
TimoVerbrugghe said:
Do you remember updating your controller's firmware either through the Xbox accessories app or on the actual Xbox One Console?
Thanks in advance for responding btw .
Click to expand...
Click to collapse
Yes I have updated using Xbox app on windows 10 anniversary edition.
Ravi2078 said:
Yes I have updated using Xbox app on windows 10 anniversary edition.
Click to expand...
Click to collapse
Well, I'll be damned... Allright! I'm still waiting on confirmation using an otg cable in my other thread, but this already sounds hopeful! Thanks for your quick responses!
Choose an username... said:
It might reboot because the controller attempts to charge from the phone. You should try with a powered OTG.
Click to expand...
Click to collapse
Hi,
I tried taking kmsg(kernel log) when connecting xbox one s controller to Axon 7.
But I was unable to.
There is no /proc/last_kmsg
And bugreport is not being collected for reboot.
And I cant access /data/tombstones
Additionally dmesg in non blocking on android. So cant take kernel logs when the system reboots.
Any suggestions?
Ravi2078 said:
Hi,
I tried taking kmsg(kernel log) when connecting xbox one s controller to Axon 7.
But I was unable to.
There is no /proc/last_kmsg
And bugreport is not being collected for reboot.
And I cant access /data/tombstones
Additionally dmesg in non blocking on android. So cant take kernel logs when the system reboots.
Any suggestions?
Click to expand...
Click to collapse
Normally, the phone does not reboot anymore if you have a nougat rom installed, when you connect the controller. Or at least, that's what's mentioned in this thread.
I don't know if you're on a nougat rom or not...
TimoVerbrugghe said:
Normally, the phone does not reboot anymore if you have a nougat rom installed, when you connect the controller. Or at least, that's what's mentioned in this thread.
I don't know if you're on a nougat rom or not...
Click to expand...
Click to collapse
Hi,
I am on Nougat Rom, as mentioned previously.
Initial support for wired xbox one (S) controller was added to xpad kernel driver in linux kernel 3.17.
Chinese Axon 7 Nougat B16 has kernel version 3.18.31 (dunno about USA or Euro versions),
So I theorize that restarts are being caused by kernel panic due to driver problems, but I am unable to check.
I any case xbox one S controller wired OTG is not possible without custom kernel(maybe?) on last years devices, as most of them are on 3.10.
Maybe wait for Google Pixel ).
Regards,
Ravi

[Q] Charging in USB-C OTG-host mode

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.

Does OTG webcam work on the Oneplus 8 pro?

Hi guys, long time Android enthusiast.
I would like to enquire if anyone knows if the Oneplus 8 pro has the required v4l2 drivers to support OTG webcams. Software support is finicky between manufacturers (some just didn't implement it)
Could someone help me test? You can try out with a otg type c and this app:
https://play.google.com/store/apps/details?id=com.shenyaocn.android.usbcamera&hl=en_US
melvinfoo said:
Hi guys, long time Android enthusiast.
I would like to enquire if anyone knows if the Oneplus 8 pro has the required v4l2 drivers to support OTG webcams. Software support is finicky between manufacturers (some just didn't implement it)
Could someone help me test? You can try out with a otg type c and this app:
https://play.google.com/store/apps/details?id=com.shenyaocn.android.usbcamera
Click to expand...
Click to collapse
Bump! can anyone help me test! I really need to know this information.
Does any one know this information or any links to OTG testing?
melvinfoo said:
Does any one know this information or any links to OTG testing?
Click to expand...
Click to collapse
Only thing that I know is that otg usb memory stick works just fine.
Edit. Ask some of the kernel devs via priv message. They know more
pyry666 said:
Only thing that I know is that otg usb memory stick works just fine.
Edit. Ask some of the kernel devs via priv message. They know more
Click to expand...
Click to collapse
Thanks for the tip, however, I think its abit overkill. haha. Just need someone with and OTG hub to test with a webcam.
Tried my USB-borescope (camera with a flexible tube and led lights) with OTG cable and it works just fine
Edit.. no idea about the sound tho, since that camera doesn't have any mic.
Aarrgghh. I need an adapter to make my old device connect to the new phone...

Categories

Resources