Hi,
I note this is a common problem on the S5. I have the problem on my S5 mini where the phone screen is black or on and unresponsive on phone wake up. Here are a couple of scenarios:-
1) sometimes when the phone is woken by an alarm the screen will be on but the alarm cannot be dismissed...