USB OTG X Input - Xiaomi Mi 9 Questions & Answers

I've been having issues connecting an Xbox Series controller to my mi 9 via OTG.
Extra Fluff: -----------
After looking through some reddit threads, there's no X-Input support via USB OTG, only Direct Input; though X-Input and Direct Input both work over bluetooth. I've also tried 3 diff type-c to c cables as well as a standard USB to C which works for direct input. When connecting the xbox controller, the gamepad rumbles and continues to blink.
End Fluff -------------
I'm looking for some sort of driver that will allow X-Input support via USB, I'm having some trouble choosing the right kernel or ROM that has this support; other devices like pocophone f1 had this driver support through the franco kernel, and someone mentioned a magisk module but not sure what that was referring to.

Related

Has anybody had luck with OTG controllers?

Specifically, has anyone had luck with the Xbox One controller? I heard it worked, so of course I went out and bought a controller mount and a couple OTG cables. But of course, it doesn't even begin to work. I'm wondering if there's something I'm doing wrong -- I'm connecting the OTG cable to my phone, plugging a micro USB cable into the USB 2.0 female end of the OTG cable and plugging that into my controller.
I know it works with PS3 controllers -- I don't want a PS3 controller, though. Nor do I want to buy a new controller, especially a wired Xbox 360 controller. Any ideas?
ninjames said:
Specifically, has anyone had luck with the Xbox One controller? I heard it worked, so of course I went out and bought a controller mount and a couple OTG cables. But of course, it doesn't even begin to work. I'm wondering if there's something I'm doing wrong -- I'm connecting the OTG cable to my phone, plugging a micro USB cable into the USB 2.0 female end of the OTG cable and plugging that into my controller.
I know it works with PS3 controllers -- I don't want a PS3 controller, though. Nor do I want to buy a new controller, especially a wired Xbox 360 controller. Any ideas?
Click to expand...
Click to collapse
In order for a device to "work via otg", that device needs to be supported by other software running on the device, including a kernel driver (probably not present), and sometimes a userspace driver (definitely not present).
In a brief google search, it seems that the driver you are looking for may be called something like "xpad" or "xboxdrv". The latter has a kernel AND userspace component, both of which are NOT installed on your phone.
If you want to make it work, you will need to recompile the kernel with the necessary driver built in, AND build the userspace driver (may not even be trivial to compile this).
no idea about the xbox one controller but a wired 360 controller works with my nexus 6 and 10, i can navigate through android and i can map keys with drastic ds emulator which is what i use it for, dont know about other game

XBOX One Controller Support for Nexus 6

Hello,
I am on a look out for tutorial that would explain in detail how one can connect an XBOX One controller to a Nexus 6 phone via OTG USB cable.
The questions that I have trouble finding answers to include:
Does the controller need to be with batteries installed when connected via USB to work?
Do I need to press any specific button to initiate detection of a controller by phone?
Do I need any software, a rooted device or maybe even more advanced alterations to my phone like custom rom, kernel patches etc.
As the controller supports wireless, can it be used to with wireless adapter or directly with the phone? (and again what software one would need)

OnePlus 3T out video to monitor via hdmi

I want to connect a 27 inch monitor or projector.
From the official support says (ticket #770598, from Sky) that phone 3T supports out video via HDMI
I understand that you wanted to know if OnePlus 3T supporte USB to HDMI. I can provide you with the information that you needed.
I would like to inform you that OnePlus 3T supports HDMI as long as it is connected to the OTG cable/ converter.
Click to expand...
Click to collapse
Phone have usb type c version 2.
My questions:
1. This phone is really support hdmi alt mode? I don't see the image HDMI (or DisplayPort or Thunderbolt) alternat mode on the box.
2. If (1) is true. Any cable good for me? Ex. usb type c multiport adapter from apple store or necessarily with OTG?
3. How big is the latency video of through miracast (ex. ezcast)? If connect mouse and watch on cursor movement.
I tried this yesterday with a USB C to Hdmi adapter I got off Amazon and I had no luck connecting to the monitor.
LyricalMagical said:
I tried this yesterday with a USB C to Hdmi adapter I got off Amazon and I had no luck connecting to the monitor.
Click to expand...
Click to collapse
Thans for the reply
I think they sold me a dud
Phone not supports MHL and other alt. mode
II wonder if a driver could be put into a ROM to support it via USB OTG since it doesn't support MHL?
I have an old external sound card, a Creative Xmod, that works perfectly with my roommates USB C, OTG adaptor.
stevenswall said:
it doesn't support MHL?
Click to expand...
Click to collapse
I think because it is not implemented in hardware in the phone
If I'm correct Display Port alternate output requires USB Type-C 3.1 since the phone supports only 2.0 it shouldn't work. However not many phones utilise this feature even Google Pixel doesn't use this mode
Video out works fine on the 3T but only with Displaylink adapters. (So far anyway)
I have one and can confirm it definitely works either via HDMI or HDMI to DVI (I've tried both)
I used this one: https://www.amazon.com/gp/product/B01N40RQV4/ref=oh_aui_detailpage_o06_s00?ie=UTF8&psc=1
but any displaylink adapter or dock will work. (Make sure it very specifically says dispaylink, check the displaylink website if you aren't sure)
The only note is that displaylink says the Ethernet ports on the docks do not work with android.
(I suspect they might work on devices that support a regular Ethernet adapter though, I haven't been able to get a normal Ethernet adapter working on my oneplus 3t though for what that's worth.)
you will also need the displaylink app from the playstore though it does not have to be running.
if any of you have experience using an external Audio DAC with USB Audioplayer pro the process is very similar.
Once you plug the monitor in, a pop up will ask if you want to let the displaylink app control the adapter and if you hit "ok" it does the rest automatically.
Does the phone charge while connected to the DisplayLink adapter?
Just try with Chromecast or anything else with Mirascreen option
Does it work with Anker Premium USB-C Mini-Dock
Hi there everybody:
Have anyone tried to connect a dock like the Anker Premium USB-C Mini-Dock, Does OP3T work for charge and to view the USB ports of the dock? May be HDMI and Ethernet doesn't work but for me the matter is the chargue and the USB ports to connect an external DAC, a microsd and a pendrive. Regards.

How can I use USB ethernet adapter?

Hello,
I am using China Stable MIUI 9.
Is there any way to use a USB Ethernet Adapter with the Mi Max 2?
Is there any ROM that would support it?
To use the plugable adapter, I think it requires driver support for ASIX AX88179 chipset -- nobody in the Xiaomi forum could tell me whether it did, so I'd like to know. too. I'm also trying to find out whether the displaylink software enables connection to a displaylink equipped monitor, since it lacks MHL. There's definitely a software solution, or I wouldn't be able to get display out with usb screencasting apps (unfortunately, the only ones that work properly require a log in and monthly subscription -- I'd be glad to buy an app, not one I can't use without being online).
Yes, the kernel must definitely have the driver included for the USB ethernet adapter chipset.
Is there any ROM/kernel that supports it?
did you manage?
binser said:
Hello,
I am using China Stable MIUI 9.
Is there any way to use a USB Ethernet Adapter with the Mi Max 2?
Is there any ROM that would support it?
Click to expand...
Click to collapse
Hi, one and a half year after you, I'm facing the same problem. Did you find the solution?
No. My conclusion is that AFAIK there are none.
I'm not a Linux expert, but I think the kernel should have drivers for whatever Adapter (chipset) you use. I use TP-LINK USB to gigabit adapter with USB C OTG adapter and it works in MI Max 2. But my USB C to gigabit ethernet Belkin adapter doesn't work with MI Max 2. In the hw diagnostics menu the Belkin adapter gets detected as OTG, but looks like the chipset drivers are not there in the kernel.
Could you please help us by giving us links to the adapters that work with your Mi Max 2?
And please also give us the exact MIUI or alternate ROM version, Android version, and kernel version you got them running on?
You're right ~ the drivers are mainly in the kernel, but to keep the kernel lean, the manufacturers remove drivers they think are not needed.
I'm very frustrated with that, too.
Did you find the solution? Im also interested in ethernet connectivity on my Mi max 2
I haven't actually tried it yet, but from my research it could be the TP-Link UE300 adapter that is working. Even in its description it claims compatibility with Android (but you also need an adapter USB - A female to USB - C male).
Please let us know if you succeed.
I have found that all USB Ethernet GB adapters that are compatible with the Nintendo switch (f. e. several ugreen or baseus models) are working with Smartphones that contain a relatively modern Qualcomm SoC (at least 2 years, maybe even 3+ years old).
Reason is that these adapters are powered by an Asix chip, whereas the Realtek chips in many USB to Ethernet adapters do not have the driver in the Android / Linux kernel present by default.
Adapters with Asix chip are just plug and go. Do it in airplane mode and then after a minute you will have internet connectivity. You won't get an icon in the status bar like the Wi-Fi icon, it will just work unannounced. Much faster and more reliable internet connection than Wi-Fi and no radiation - just the same speed as if you plug an ethernet cable into a computer. Play store works like that too. Tested with Xiaomi Mi Max 2 & 3, RN9s, R5+ on standard global Roms and other models from different manufacturers.
Disadvantage: They use a good amount of battery juice, around 120-200mA. You also cannot extend the USB cable too much, maybe 30-40 cm is okay, otherwise the adapter will stop working.
please have a link of those adapters?
€ 12,68 36%OFF | Baseus USB Type C Ethernet Adapter USB-C to RJ45 Lan Adapter Network Card USB A 3.0 Converter for Windows 10 Macbook Pro Switch
https://a.aliexpress.com/_BOZKXN

Ethernet and hubs?

I'm looking to buy an Ethernet adapter for my s5e. Obviously it has to be USB-C.
I bought a BL10V hub with Ethernet, audio, video, SD, PD, and USB2&3 ports.
Everything works except the Ethernet! I am using LineageOS, but same on stock ROM. I have no other USB-C hosts to test it on. I've ordered a C to A adapter so I can try it on my laptop, but is that going to give reliable results, how backward compatable is it!?
Any idea how canI identify the ethernet chipset? Nothing in logcat (strange no even a mention of net) and "permission denied" for `lsusb`!! need root!? There was an App "USB Device Info" that I used to use on older OS but no updates and crashes now. I am using LineageOS, no Google.
For testing and to keep it simple I'd like to own a known working Ethernet only adapter, but cant find any known to be explicitly compatible with s5e or even really tablets, most is for Mac. Any suggestions?
I've got a RTL81?? USB micro Ethernet that I never managed to get working on another tablet. Why so difficult? :/ But that's another story!
That said, does it have to be USB-C? Might I be better off plugging a simple USB2.0 A Ethernet into the hub? I do need audio and video and PD etc at same time so I need some sort of hub. There doesnt seem to be many hubs with USB C inputs, am I better off keeping all my adapters as separate USB A devices and get a big C to A hub?
This is my first USB-C device and also no headphone audio jack! How do you lot manage all your inputs?
So which USB A devices would work? Is there a list of supported chipstes?
Thanks y'all
So my adapters arrived as well as another USB->Ethernet dongle. I've managed to find the USB device ID's but still none of them work on my tablets.
I have tablets:
* Samsung s5e (Official LineageOS - gts4lvwifi)
* Google Nexus 7 (Unofficial LineageOS - https://forum.xda-developers.com/t/rom-flo-deb-unofficial-lineageos-19-0-2022-01-07.3569067/)
And these are the adapters:
* ID 0fe6:9702 ICS Advent USB 2.0 10/100M Ethernet Adaptor
* ID 0fe6:9700 ICS Advent DM9601 Fast Ethernet Adapter
* ID 0bda:8152 Realtek Semiconductor Corp. RTL8152 Fast Ethernet Adapter

Categories

Resources