  The energy fed by active galactic nuclei to the surrounding diffuse baryons
changes their amount, temperature, and distribution; so in groups and in member
galaxies it affects the X-ray luminosity and also the Sunyaev-Zel'dovich
effect. Here we compute how the latter is enhanced by the transient blastwave
driven by an active quasar, and is depressed when the equilibrium is recovered
with a depleted density. We constrain such depressions and enhancements with
the masses of relic black holes in galaxies and the X-ray luminosities in
groups. We discuss how all these linked observables can tell the quasar
contribution to the thermal history of the baryons pervading galaxies and
groups.
