8

So, I am making a program to reboot iDevices (if there power buttons are broken), is there any way to induce the iDevice to reboot via the Mac shell?

3 Answers 3

11

idevicediagnostics is a Linux tool which can help here. It is also available for macOS according to these instructions.

Once installed you can use

idevicediagnostics restart

to restart your device.

To restart a specific device connected to a macbook that has more than one device connected to, use:

idevicediagnostics -u udidnumber restart
3
  • Why does this have 2 upvotes and the other one about the SAME command 2 downvotes?! Commented Nov 24, 2016 at 8:15
  • Probably because the other answer doesn't indicate how to get the tool mentioned also on macOS.
    – nohillside
    Commented Nov 24, 2016 at 9:14
  • This oddly shut my iPhone 5 on iOS 10.1 down and I had to manually turn it back on
    – Allison
    Commented Jan 15, 2017 at 5:46
7

To install this third-party program, on the Terminal:

brew install libimobiledevice

Use:

idevicediagnostics restart
1
  • Thank you. This allowed me force a restart on an iOS 16 iPhone that was completely unresponsive and would not respond to any hardware button presses. Never seen this issue before but the OS was completely locked up on the Lock Screen, despite time and some minor animations still rendering. Forcing a restart with idevicediagnostics resolved the issue.
    – Johannes
    Commented Aug 15, 2023 at 23:32
0

idevicediagnostics restart

you can substitute shutdown for restart.

on Ubuntu 14.04

1
  • 1
    This site is about Apple hardware -- the OP is asking how you can do this from the command line of an OS X-equipped machine, not an machine running Ubuntu.
    – Ian C.
    Commented Mar 18, 2015 at 5:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .