The post-global-warmjng sci fi novel The Windup Girl by Paolo Bacigalupi deals with this scenario: all energy is measured in calories and workers prepare clockwork springs that store energy to power devices. It's a great novel, too.
The repeated "lets rape the sex bot again" scenes didn't help either. Funny how when she gets her revenge, that’s not described at all, just the aftermath. But we get page after page of lascivious detail on her abuse. Frankly, it left a really bad taste & I didn’t want to read anything by the author in question ever again.