Ubuntu: How can I stop Ubuntu from freezing up?



Question:

I upgraded to Ubuntu 16.04 2 or 3 months ago. Everything was running fine -- there were no issues. For the last few weeks I've been having these problems: (While using a browser) first Ubuntu will lag e.g. I will type something into an edit box and it will take several moments for the characters to appear. Immediately following this the tabs on the browser would turn gray, the mouse couldn't be moved and I had to shut the machine down with the power button. (It froze up.)

I say 'would' now because there has been some improvement. I took WinEunuuchs2Unix advice and installed the new Kernel 4.7.2. The whole issue of lagging and freezing seems to happening a bit less frequently now and the browser tabs aren't turning gray.

I installed Grub now (didn't even realize it wasn't installed.) I know I have to pick the last kernel before 16.04 upgrade. How do I do that?


Solution:1

How to Install Kernel 4.8.4


NOTE: As of December 25, 2016 the most recent Ubuntu 16.04 kernel 4.4.0-53 performs extremely well and better than 4.8.4 in most circumstances. Furthermore mainline kernel 4.9.0 is now out with ehanced support for AMDGPU and Intel Skylake amongst other issues. That said 4.4.0-53 on my 3rd Generation Intel CPU performs just as well.


As of October 24, 2016, Kernel 4.8.4 is the latest stable Kernel. It's not officially supported by Ubuntu but if your hardware requires the latest kernel to operate properly you have little choice but to install it.

Go to the Ubuntu Mainline Kernel page: Ubuntu Kernel Mainline.

Scroll down near the bottom and click on 4.8.4.

Notice the files under AMD64 and how those files names and the main web link is used to build the following commands (which you need type or copy and paste into your terminal):

cd /tmp  wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.4/linux-headers-4.8.4-040804_4.8.4-040804.201610220733_all.deb  wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.4/linux-headers-4.8.4-040804-generic_4.8.4-040804.201610220733_amd64.deb  wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8.4/linux-image-4.8.4-040804-generic_4.8.4-040804.201610220733_amd64.deb  sudo dpkg -i *.deb  sudo reboot  

Using the Website address and adding in the file name, you complete the entire wget command. Study this technique so you can repeat it with any kernel version. We want amd64 for 64-bit versions of Ubuntu running on Intel and AMD chips. We want generic which is the mainstream version of the kernel. low-latency on the other hand is difficult to setup and maintain but necessary for those in the sound recording industry and similar industries.


Solution:2

Check your RAM. If you have less than 4 gb. Ubuntu is not your best choice and it is an easy reason for locking up.
Lubuntu, Xubuntu or Mate will run much better on 2gb.

Doing a fresh install instead of an upgrade is always the recommended action. It does not take long to reinstall all of your applications. In the end, it will be better and take less time.

You might want to see if you have virtual memory. If not, you should look up how to do so. If you are going to do a fresh install, make sure you have 1 or 2 gb available as a partition ready for swap. The install program should pick it automatically, if not, you should do the advanced install and select that drive for virtual memory.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »