I recently installed ubuntu 16.04.1 on my Dell Inspiron 5577. It was working fine till I installed GNOME 3.18 on it. Now it keeps freezing randomly and a forced shut down is the only thing I can do in such a case (no keyboard or mouse input is registered).
I thought that my nvidia (GTX 1050) graphics card is causing this problem, since the card caused me a lot of inconvenience when trying to install later versions of ubuntu, but I found out that my laptop is using Intel HD graphics and not nvidia. Also, I only faced the problem after installing GNOME.