Is there a way to shutdown my Mate7 from fastboot? Long pressing the power button makes the phone restart again. I need to shut it down so I can recharge it then restore to stock.
There is no Fastboot Command that does this.
However you could try holding the power button down until the screen goes blank and then letting go off the power button before the device starts to boot (before the vibrate). This is the only viable way... The list of available Fastboot commands are:
usage: fastboot [ <option> ] <command> commands: update <filename> reflash device from update.zip flashall flash boot + recovery + system flash <partition> [ <filename> ] write a file to a flash partition erase <partition> erase a flash partition format <partition> format a flash partition getvar <variable> display a bootloader variable boot <kernel> [ <ramdisk> ] download and boot kernel flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it devices list all connected devices continue continue with autoboot reboot reboot device normally reboot-bootloader reboot device into bootloader help show this help message options: -w erase userdata and cache (and format if supported by partition type) -u do not first erase partition before formatting -s <specific device> specify device serial number or path to device port -l with "devices", lists device paths -p <product> specify product name -c <cmdline> override kernel commandline -i <vendor id> specify a custom USB vendor id -b <base_addr> specify a custom kernel base address -n <page size> specify the nand page size. default: 2048 -S <size>[K|M|G] automatically sparse files greater th an
If you are planning to charge your phone enough so that you can flash again, try this
@echo off :start fastboot getvar battery-voltage fastboot reboot-bootloader ping /n 6 localhost >nul goto start
save it as a batch file and place it in adb and run it.
This will basically make your phone to reboot the bootloader continuously until you reach a safe battery level for flashing.
You can do:
At which point you can use the bootloader menu to shut it down. I believe in pretty much all, if not all, Android bootloaders you can select to power down by either pressing volume down 3 times or volume up 1 time. Pressing the power button should then select to power down. I'm not sure this will work for Mohamed Shibo's original scenario, but it's what I had to do recently to shut down a Droid Turbo that was stuck in continual boot with a broken screen.
Had an issue with Motorola X4 where power button was not working.
Have started phone into recovery mode by pressing volume down button and plugging in the USB cable.
fastboot devices my device was listed.
fastboot reboot or
fastboot continue I've got next error:
ERROR: could not clear output pipe; result e00002ed, ignoring.... Resuming boot
fastboot continue command I've needed to disconnect USB cable, enter command, confirm it, and plug in USB cable back into the phone, and it booted.
- Boot phone into recovery mode (Press volume down button and plug in USB cable connected to charger or PC)
- Disconnect phone from PC
fastboot continuepress enter
- Connect phone to PC