Originally posted by chromo It does sound like the camera has gained a fault.
Try doing a factory reset in the hope it will return to normality.
Yes, this is a known problem with the K5. Not terribly common but has been reported here before
https://www.pentaxforums.com/forums/pentax-k-5/212510-scary-issue-k-5-a.html
The normal explanation is a failing mirror motor. I recently had mine replaced under warranty.
Rather than flicking the mirror, a gentle tap on the bottom of the camera normally fixes it. Some have reccomended pulling the battery out and then re-inserting, but I think all that does is nudge the mirror when you turn the camera upside down or when you physically remove the battery.