Having problems with your iPhone's battery? Full charge not lasting as long as usual? iPhone shutting down randomly? Check the 'Battery Health' tab.
This guide explains how to find out information about the state of a Mac's battery from the command line.
Has your iPhone screen stopped (or started) rotating when you physically turn the device on its side?