Clues on black hole feedback from simulated and observed X-ray properties of elliptical galaxies