I have a MacBook Pro (10.7.3) and an iPhone 4 (5.1). When I'm trying to conserve outlets, I charge my iPhone at night by plugging it directly into my computer.
If my computer is asleep with the lid closed, when I plug in the iPhone, the computer briefly wakes up, and it takes a few moments before it starts charging. (If the computer is already awake, the charging is instantaneous.) But my computer takes a while to go back to sleep because it saves the contents of RAM (safe sleep).
How can I plug the iPhone it in to charge, without waking up the computer? (And why does this happen in the first place?)
(I've already set up my computer so that iTunes and iPhoto don't launch when I plug in my phone — but this doesn't seem to be enough.)