A differential quadrature technique is used to investigate the vibration control response of bidirectional functionally graded imperfect aluminium-Terfenol-D and aluminium-Galfenol-D. In both transverse and axial orientations, the Terfenol-D and Galfenol-D materials are functionally graded. The bidirectional FG imperfect aluminium-Terfenol-D and aluminium-Galfenol-D governing equation is based on generalised beam theory. With consideration of uniform and uneven porosity distribution, the influence of porosity and an externally applied magnetic field on free vibration suppression behaviour is recorded. In terms of damping performance, Galfenol-D exceeds Terfenol-D. The effect of Lorentz force on the fundamental frequencies is discussed. It's worth noting that the overdamping response of the aluminium-Galfenol-D beam takes less than 0.1 s, but the exponential decay of the aluminium-Terfenol-D beam takes just 0.9 s.