When it comes to efficiency in the IT sector I'm not that optimistic. Or at least not any more. The following is gonna be a weird statement: Hardware becoming more efficient got us in this mess in the first place. It's Jevons paradox/the rebound effect in practice.
Of course I agree with you that running all that on renewable energy would definitely be better than whatever we are doing right now, but even better would be if we didn't use that energy at all. (In the case of oil and gas exploration I'd even say it's kind of hypocritical when running them with renewables in order to green-wash the whole thing)