Galaxy S5's screen only turns on after multiple presses, and the screen has these weird lines show up when turning off
The first part of this screams either a broken screen or much more likely, a broken screen driver (Software being corrupted). Backup your data and factory reset the device. Do not recover using the backup and just move your contacts back and pictures. You can always reinstall apps. If that doesn't fix it, you will likely need to replace the device or flash the stock software again.