Try switching the power button connector. It is located under the long piece on the back of the S5 in the upper left corner.
open