Ubuntu 17.10 keeps locking up and freezing. Mouse and Keyboard input doesn't work as image on screen is frozen. Help!

I got an Ultrabook 2 weeks ago, cleared out Windows 10 and installed Ubuntu 17.10. UI and system are great, but it keeps freezing on me, and I was forced to hold the power button to shut it down. I have tried the following fixes:

  1. Run:

    sudo nano /etc/default/grub
    
  2. There is a line in that file that says:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    

    I replaced it with:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_idle.max_cstate=1"
    
  3. Saved the file using CTRL+O.

  4. Updated GRUB:

    sudo update-grub
    
  5. Restarted PC:

    sudo reboot
    

I got this fix from another StackOverflow question: Ubuntu 15.10 and 16.04 keep freezing randomly

However it only worked for the first few days and then it started the freezing craze all over again.

Then, I tried to upgrade the kernel to the latest stable kernel, 4.13.10.

But the problem still persists. It locks up every so often and I am forced to shut it down. I have a Dell XPS 13 9360, and the day I got it, I removed Windows and installed Ubuntu 17.10.

Is there a certain fix for this?


I've had a similar issue to this where random freezing would occur with my mouse, this was after and upgrade from 16.04.

A lot of probing and research later, I found out it was linked to a problem with my display manager (gdm3) not being able to start Wayland. Using lightDM has fixed this issue for me.

Hope this helps

sudo dpkg-reconfigure lightdm