I always thought you couldn't charge an iPhone from a closed macbook without opening it first, and then closing it after plugging the iPhone in. However today my phone was completely dead and I was on a train unable to take my laptop out and open it even a little bit.
the phone charged while it was dead, and when it turned on it was on 2%, however it didn't stay charging, instead 5 minutes later it died again, and starting charging while dead again.
Is there a way to keep the phone charging after it turns on from dead? (without opening the macbook, it seems like it's the phones fault it stops charging as that's the only thing that doesn't change, and it's jailbroken so I can install tweaks)