Automatic method for controlling the power and the switching of the PHY mode with adaptive PHY mode systems