This message was posted on behalf of Intel Corporation
In regards to the issue with the random black screen. We will need to narrow down the issue. Your pc has hybrid graphics, it means Intel graphics works together with NVIDIA GeForce 940M.
Make sure you are using the latest drivers and BIOS provided with Hewlett Packard website then, run Windows10 update.
If problem continues, run Intel® System Support Utility and send to me the results.
Intel® System Support Utility
How to attach a file:
-Click on reply
-Click Use advanced editor (upper right side)
-Click Attach (lower right hand)