Help: press any key to shutdown in fastboot

deadmachine096

New member
Jul 16, 2020
1
0
0
Solution for " press any key to shutdown in fastboot mode "

As i know that many redmi devices with windows 10 PCs have this problem..im realy messed up with it.
the one and only solution is that, you have to purchase a usb hub and connect it to the usb 2.0 slot in your computer. then it will work
i tried everything and findout this fix
i tried the followings
1)downloading adb & fastboot each and every versions :-didnt work
2)install qualcomm , google , xiaomi drivers :-didnt work
3)reset windows :- didnt work
4)reset phone :- didnt work
5)change usb slots and cables (every combination,including usb3.0 and 2.0) :- didnt work
6)change pc :- works
7)using usb hub :- works

NB:- Dont waste your time on googling alternate fixes.. buy a usb hub :cool:Fix
 

kotsk

New member
Feb 18, 2013
4
0
31
Bontang
kotsk.wordpress.com
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
thx! it's work for me --- lenov win10 pc + mi9se :good:
otherwise, i have no issue on rog laptop using usb3 port + win10x64.
 
Last edited:

renemadeira

New member
Nov 24, 2016
3
0
0
This solution worked for me with a RN7 (lavender), although I didn't use the .bat file, just created the binary values in regedit.
I had similar issue with a rockchip device, it seems that Windows 10 uses some advanced usb features that are not supported by some devices, specially with Android in fastboot mode.
If it doesn't work for you, maybe your hardware ID is not the same.
For my case it is, the same as mentioned 18D1D00D0100, where 18D1 = Vendor ID, D00D = Product ID, 0100 = Rev ID.
You can find the correct ID for your device in Windows "Device Manager". Connect your phone in fastboot mode, right click it on Device Manager, Properties, Details tab, select Hardware IDs.
Afterwards go to regedit and find the folder of your device under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\VVVVPPPPRRRR, and create the two binary values with value of "01" - "SkipContainerIdQuery", "SkipBOSDescriptorQuery". For me it was enough.
Where:
VVVV = Vendor ID
PPPP = Product ID
RRRR = Rev ID

Thank you JerryLF!

Find more information here: https://docs.microsoft.com/en-us/windows-hardware/drivers/usbcon/usb-device-specific-registry-settings

nope, not working
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
 

maxgesell

New member
Dec 4, 2019
4
0
0
This solution worked for me with a RN7 (lavender), although I didn't use the .bat file, just created the binary values in regedit.
I had similar issue with a rockchip device, it seems that Windows 10 uses some advanced usb features that are not supported by some devices, specially with Android in fastboot mode.
If it doesn't work for you, maybe your hardware ID is not the same.
For my case it is, the same as mentioned 18D1D00D0100, where 18D1 = Vendor ID, D00D = Product ID, 0100 = Rev ID.
You can find the correct ID for your device in Windows "Device Manager". Connect your phone in fastboot mode, right click it on Device Manager, Properties, Details tab, select Hardware IDs.
Afterwards go to regedit and find the folder of your device under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\VVVVPPPPRRRR, and create the two binary values with value of "01" - "SkipContainerIdQuery", "SkipBOSDescriptorQuery". For me it was enough.
Where:
VVVV = Vendor ID
PPPP = Product ID
RRRR = Rev ID

Thank you JerryLF!

Find more information here: https://docs.microsoft.com/en-us/wi.../usbcon/usb-device-specific-registry-settings




In windows 10 disable driver signature and reinstall drivers from mi flash tool
 

chriselanko

Senior Member
Nov 15, 2013
82
39
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
this worked for me , but actually what it is doing? is it disable driver signature?
 

demonvack

Member
Jun 3, 2013
9
2
0
man this works perfect! you are the best thank you very much

try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
 
Jan 16, 2014
22
1
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
you are a hero, thank you!
 

rhlsngh97

New member
Jul 30, 2018
3
0
0
bro you are a lifesaver!!

try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
bro you are a lifesaver!! I was literally trying it for months and this 3 lines of code worked like a charm...WTFFFFF!!! THANKS A LOTTTTT!!!
 

SwimmingTiger

New member
Sep 2, 2016
3
0
0
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
It also works for me. I found these registry entries from other sources and wrote a guide about them.

https://forum.xda-developers.com/xi...ide-fix-press-key-to-shutdown-unlock-t4180389
 

isaac27Y

New member
Dec 9, 2020
1
0
1
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
[/CITAR]

Tanks You, it worked for me
 

marceriscs

Member
Apr 10, 2016
9
4
3
try this solution:
use a USB 2 port
create a new txt file,write code in the { } below
{
@Echo off
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f


pause
}
then save this file and rename it as a .bat file
right click and run as administrator.
after that the issue can be fixed
this worked for me on lenovo win10 to my mi 9 lite/cc9.
question tho.
what does this do and how do i revert this?
i might be paranoid but i dont want to cause issues with this as using this is just a one-time thing