How to turn off usb light from command prompt - Xiaomi Redmi Note 3 Questions & Answers

Hey friends i have connect usb light http://img.banggood.com/images/2014/outingting/03/SKU209457/SKU209457-4.jpg to Xiaomi Redmi Note 3 (snapdragon Version), it went ON successfully, But i don't know as how to disable it's power supply or turn it off using command prompt,
here are USB files inside system (sys/class/power_supply)
Can some one please help me with command ?
or is there any apk which have on off switch for it, ?

Related

Adb device not listed after flashing TWRP and installing SuperSU

Hi,
I have a new Xiaomi Redmi Note 4X. When i bought it a week ago, i was able to connect it to my MacBook Pro and also was able to install one of my apps using Android Studio.
After requesting unlock code and waiting 72 hours, I have been able to unlock de bootloader with the Xiaomi utility on a Windows 7 computer, flash TWRP (twrp-3.1.1-0-santoni.img from twrp.me) using fastboot from my Mac OSX and install SuperSU 2.82 via TWRP.
The problem is that after rebooting the phone, it is impossible to connect to it via adb. It never appears in adb devices list. Things that i have tried:
Add to adb_usb.ini with these vendor Ids (0x8087,0x2080,0x2717)
Enable / disable developer options
Enable / disable USB debugging
Clear list of USB debug authorizations
Try to modify USB settings to MTP/PTP mode (it always connect as "charge only" mode, if i try to switch it it doesn't change).
Update platform tools to version 0.26 via Android Studio
Connect it to different USB ports
When i connect it to my USB, the phone didn't asks me permissions to allow USB debugging for the RSA key of the computer. It just shows the message about USB charging only mode. If I connect one of my other two phones (Huawei P8 Lite 2017 and Vernee Apollo Lite) they appear without problems on the adb devices list.
Do you have any ideas of what can be the problem? Thanks in advance for your help!

Redmi Note 3 Pro ist not recognized

Hello Guys,
I would like to flash a Redmi Note 3 pro with twrp.
The problem is it is not recognized by PC. It's not even showing anything in device Manager.
I installed usb drivers from Xiaomi, I booted to Fastboot Mode and connected the Phone to the PC. Nothing is happening. No device ist showing in device Manager.
I tried 3 different USB cables and also to connect it to a notebook instead using my PC. No Chance.
Then I tried to connect a Redmi Note 4X in Fastboot mode and the same happened. IT IS Not recognized and the device manager don't show a new device.
Both phones are officialy unlocked.
Anyone who faced the same problem and can help
Joe886 said:
Hello Guys,
I would like to flash a Redmi Note 3 pro with twrp. The problem is it is not recognized by PC. It's not even showing anything in device Manager. I installed usb drivers from Xiaomi, I booted to Fastboot Mode and connected the Phone to the PC. Nothing is happening. No device ist showing in device Manager. I tried 3 different USB cables and also to connect it to a notebook instead using my PC. No Chance. Then I tried to connect a Redmi Note 4X in Fastboot mode and the same happened. IT IS Not recognized and the device manager don't show a new device. Both phones are officialy unlocked. Anyone who faced the same problem and can help
Click to expand...
Click to collapse
Hi, so you have tried 2 PCs, 2 phones and 3 cables. I think you missed it in the Device Manager. Please connect your RN3P phone in fastboot mode and run http://www.uwe-sieber.de/usbtreeview_e.html then do File/Save full report, and post it here. Alternatively, run any live Linux and post lsusb output.
Thank you for your reply.
As it seems I can´t post links because i`m new and when I try to post the report here it says I can`t because it has more than 30000 caracters
But as I said it won´t be recognized. Both of them won`t.
When I connect them in working mode I can´t even access the data like pictures etc.
One of the 3 usb-cables were originaly packaged as I at first suspected the usb cables were faulty.
But now a friend of mine come by and I tested to connect his Redmi note 4x and it is working. The only difference is that he has miui 8 and I have miui 9 from xiaomi.eu.
So I am out of ideas now. The only I can imagine is that both usb ports on the smartphone are ****ed and therfore it won´t connect properly.
Charging is no problem by the way
Bro you have to setup adb drivers perfectly a single error in setting up leads error but no worry it would not harm your device....
So first of all setup adb driver from the given link it will show you how to setup adb driver
Then go your processor of setting up twrp.
If you need any help on setting up twrp just reply on it....

Broken and black screen, touch not working help needed to recover data Redmi note 5

Hi,
I have a Redmi note 5, just 5 months old. Recently it fell down and the screen is completely broken. Unable to see the screen and touch is not working. I want to recover data from the phone. I was trying without any luck for past couple of days. Tried following things and none helped.
1. Connected phone to PC via USB cable, but since by default MTP is not enabled internal storage is not displayed.
2. Tried to use MI PC suit but seems like it's not supporting the Android version or MiUi version. I have Android N and MiUi 10. Tried with multiple versions of PC suit and no luck.
3. Reboot to fastboot mode : I don't have debugger option enabled, so only fastboot commands work, adb commands not working. Tried to unlock OEM, flash custom recovery etc: and nothing works! (Next time first thing I'll do with a new phone is enabling debug mode!!)
4. Tried to use Mi account to unlock bootloader but since device is not added into my acount, that also not possible.
5. Tried a bunch of softwares to cast screen to pc or control from pc , but nothing works as debugging not enabled.
I need help if anyone having any other ideas.
One way in my mind is to enable usb debugging just by using an otg keyboard. But this requires help from some one really kind.; to upload a video showing how to open settings and enable debugging only using a keyboard connected via OTG cable ( My phone is running on MiUi 10). I know it's too much to ask..but.. still..
Thank You

Poco Press any key to shutdown in fastboot

Hlo guys this problem start when i buy a new laptop which 3.0 usb ports. Then whenever i connect phone without fastboot it show press any key to shutdown and phone disconnected automatically.
I search a little and find that this bug is related to 3.0 usb ports.
But i got a fix for that. RIP my anglish.
This is also working for whyred violet etc
Read this also for better understanding:
https://forum.xda-developers.com/poco-f1/help/fastboot-problem-usb-3-0-ports-t3859995
Run this as administrator in pc:
https://drive.google.com/file/d/179poqE77RxswNGvefG_JA77dSk9EmRF9/view?usp=drivesdk
Take an usb2 hub?
ConradB said:
Take an usb2 hub?
Click to expand...
Click to collapse
It's working without using any usb hub
Can't believe modifying some registry values solved this! I almost went to buy a usb 2.0 cable. Many thanks
This worked for me and I hope the same goes for you all as well (
without using USB HUB and USB 2 port
).
I found the solution here .
Scenario:
1) Phone not detected with fastboot devices command
2) Phone goes into "Press any key to shutdown"
3) Just download this .bat file and run it as administrator
4) Remove your phone, get it back into fastboot mode (Power + Volume Down), connect it again
5) Open CMD and try to run any fastboot command & they'll run successfully.
P.S.: I too got my POCO F1 unlocked by using this with the modded MI Unlock app. Was tired of trying usb hub and extension thing though my PC is intel and not amd. It'll be happy to know how and what made it worked from technical aspect. Thank You.
Thank youuuuuuuuuu!!! for years now i couldnt do fastboot from my laptop only from my pc
Aadiiiiii said:
Hlo guys this problem start when i buy a new laptop which 3.0 usb ports. Then whenever i connect phone without fastboot it show press any key to shutdown and phone disconnected automatically.
I search a little and find that this bug is related to 3.0 usb ports.
But i got a fix for that. RIP my anglish.
This is also working for whyred violet etc
Read this also for better understanding:
https://forum.xda-developers.com/poco-f1/help/fastboot-problem-usb-3-0-ports-t3859995
Run this as administrator in pc:
https://drive.google.com/file/d/179poqE77RxswNGvefG_JA77dSk9EmRF9/view?usp=drivesdk
Click to expand...
Click to collapse
Thanks, it really helped me out.
machikaa said:
This worked for me and I hope the same goes for you all as well (
without using USB HUB and USB 2 port
).
I found the solution here .
Scenario:
1) Phone not detected with fastboot devices command
2) Phone goes into "Press any key to shutdown"
3) Just download this .bat file and run it as administrator
4) Remove your phone, get it back into fastboot mode (Power + Volume Down), connect it again
5) Open CMD and try to run any fastboot command & they'll run successfully.
P.S.: I too got my POCO F1 unlocked by using this with the modded MI Unlock app. Was tired of trying usb hub and extension thing though my PC is intel and not amd. It'll be happy to know how and what made it worked from technical aspect. Thank You.
Click to expand...
Click to collapse
Thank you. it helped.

Alcatel Pixi 4 5.0 power on when USB cable plugged in

Hello,
I have one old phone Alcatel Pixi 4 5.0 5045A (roooted) and Resurrection Remix is installed. I want to use this phone to show some info from my PC.
I have mount phone and i have use Macrodroid to control screen when i power on or off my PC. But i want more, i need to power off and power on phone when USB in phone detect power from my PC or when is USB plugged in.
I can setup power off with MacroDroid but i can't find any solution to power on phone when USB cable plugged in. SO this should be work in simple way, phone is off, USB cable plugged in and phone instead of charging should automatically power on.
I can't access fastboot options on this phone not sure why, is locked or something else is problem. I have install TWRP and than i flashed supersu to root device, after than i have custom rom installed.
Anyone have idea how to make it to automatically Power on when USB Charger is plugged in? I have found some tutorials for samsung phone but noting for tihs one.
Ok i found solution, edit init.rc and added lines
Code:
setprop ro.bootmode "normal"
setprop sys.powerctl "reboot"
After
Code:
on charger
class_start charger

Categories

Resources