I have a dual boot Ubuntu 16.04 and Windows. In the past, it always worked fine. Now, when booting up Ubuntu as usual from the GRUB menu, the screen flickers between a line saying
/dev/sda5/ clean, .../... files, .../... blocks
and a loading screen of Ubuntu. I have waited ten minutes at occasions, but it still didn't load.
If I boot up Ubuntu but add
nomodeset after the
quiet splash, it just shows the line
/dev/sda5 clean ... and nothing happens.
I tried starting from recovery mode, and then resumed. This gives
[FAILED] Failed to start Clean up any mess left by 0dns-up
If I press
Ctrl + Alt + F1, I can log in, and proceed as usual in a non-graphic environment.
This made me suspect there was something wrong with the driver. Indeed, the output from
lshw -c video is rather odd: the configuration line says
as if there's no driver. Furthermore,
lspci -kvnn, in the VGA compatible controller has no line
Kernel driver in use:. It does have a line
Kernel modules: i915.
Things I've tried:
sudo add-apt-repository ppa:ubuntu-x-swat/updates # x-updates has been replaced by updates
sudo apt-get install xserver-xorg-video-intel
sudo vim /etc/X11/xorg.conf
with the following text being put in the file:
Option "AccelMethod" "sna"
However, this didn't work: when rebooting normally, it would exhibit the same problems, and strangely, the xorg.conf file disappears.
So my question is: how can I get the Intel driver installed correctly?