Fix linux kernel string and prevent display mode switching to current mode.