The only times I'm motivated (rarely

) to stay up all night is with good company or at star parties, especially if there will be a few days to sleep in for recovery. Caffeine, snacks (and err alcohol) generally required.
If I'm imaging all night I'll rarely stay up past 2am - leave the gear to its own thing if conditions are ok.