Add in that if it's the sun, the entire atmosphere will warm, since there's just simply more energy put in to the system,
whereas if it is CO2 or other blanketing method, there's no extra energy put in, therefore the ground will warm and the
upper air cool (since the
upper air isn't getting the warming from the lower
layers it used to get and the lower
layers aren't losing the heat they used to).