This issue i had it with 15.10 and it's still here after the 16.04 upgrade. The whole system freezes, no keyboard/mouse input works anymore. I tried a variety of keyboard combinations (found on the internet, like Alt+SysRq+REISUB and others), but none actually worked. The system is completely unresponsive, only a force shutdown works at this point. Interestingly, i can't correlate this freeze with any specific program or application, as the system hangs sometimes even while doing the simplest operations like opening the Terminal, or the Unity search.
I would be interested if there is any log saved that could contain useful information on these hangs.
Thank you.
I was facing a similar problem on my Ubuntu 16.04. It used to freeze randomly a lot and I had to perform a forced shutdown each time.
Upgrading the kernel to 4.7-rc3 did not work for me!
I found out that there was no swap memory area allocated(
sudo swapon --show
returned nothing andfree -h
showed there was 0B space allocated for swap memory) for my Ubuntu OS(I have a dual-boot system: Windows 7 & Ubuntu 16.04). I allocated swap space for Ubuntu and guess what,the problem is gone! Hope this helps. :)Edit: I was wrong! This problem was not solved and it has nothing to do with swap memory, though allocating swap memory apparently fixed another type of freeze where continuous hard disk access occurs during the freeze and where it is possible to kill the latest process forcefully (by typing
alt+sysrq+F
from keyboard) to recover from the freeze.However, this problem(where nothing but forced shutdown works to recover from the freeze) may be related to the kernel and if kernel upgrading cannot solve the problem, then a workaround could be to add the statement
intel_idle.max_cstate=1
in the grub configuration file:STEPS
sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
(like this), replace with:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"
sudo update-grub
sudo reboot
I will try this if I face the problem again(since in my case this problem is very rare now, occurred only once within a week after swap allocation, which led to the confusion), but there are people who have solved this kind of problem by this workaround.
Late update: Actually, I tried the above-mentioned workaround a couple of weeks after posting the Edit (most probably because the problem reappeared again, but it was not frequent for sure). After modifying the grub file, the problem was resolved completely and I have not come across any type of freezing after that, so this workaround seems to be a good one! :) Sorry for the late update.
Go to "synaptic-settings-repositories-additional drivers." See if you have a "Unknown Unknown" radio button If you have, then select it as I have in picture. Two weeks I have not had one freeze.
Updating the kernel worked for me. I suspect the issue was graphics related because I noticed a warning during the upgrade. I followed the steps at http://sourcedigit.com/19889-how-to-update-install-linux-kernel-4-7-rc3-on-ubuntu-16-04/ to upgrade the kernel then downloaded the missing firmware. Full steps detailed below.
Download the necessary files:
Once the files have downloaded, install them with
dpkg
:Look out for warnings in the output. I came across the warning:
W: Possible missing firmware /lib/firmware/i915/skl_guc_ver6.bin for module i915
Download this missing module and copy it to the stated folder:
It might not be necessary, but I reinstalled the v4.7 Kernel after copying the module, this time the warning did not come up:
Once reinstalled, update GRUB and reboot:
After this my Ubuntu 16.04 install has been running smoothly on the 4.7RC3 kernel.
Try updating your kernel, I had installed Ubuntu 16.04 and it had that problem.
I thought it was my laptop and I removed Ubuntu and installed Lubuntu. After a while it freezed too.
I updated my kernel and it solved my issue imediately. Just tell me if you need help updating your kernel.
My answer is not a permanent fix, but it should resolve the issue when it presents its self. Before I go on let me say that this question has been asked and answered for multiple releases. The answers provided here are things I have myself attempted yet did not prove to be permanent.
After updates etc. these changes were undone and out of annoyance i elected to stop making them. Also some of the answers here and in the various other threads on this topic didn't help me at all.
So if you continu to experience an issue please try
Ctrl + Alt + F1
Ctrl + Alt + F7
This should temporarily resolve the problem. Before people down vote this and I accept that they will. Take into consideration how old this issue is and that it continues to crop up. I say again that I've experienced this for quite a long time and so far this is the only way I've been able to immediately resolve it.
Re: freezing screen with Ubuntu 16.04
This only started recently with me. After watching in the monitor I noticed the process Web Content was taking almost all the CPU time and a lot of memory until I ran out of my 6 GB.
I solved it by using these following procedures, after removing a Cookie editor extension:
Under Firefox preferences: Accept third-party cookies only from visited websites!
Change this in GRUB (Ubuntu 15.10 and 16.04 keep freezing randomly).
There is a line in that:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
(like this), replace with:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"
My swap was not being used at all! I doubled my swap space to that of my memory (12 GB) - https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04
It would still freeze or run very slowly. I finally solved with this. I installed noscript (noscript.net/forums) from Firefox/Tools/Extensions and only allowed a select few sites to run JavaScript.