Multi mode system with a dispersion x-ray detector