Adjusting mechanical ventilation settings