11

My Ubuntu 16.04 system boots to X.Org failsafe mode (xinit fails). I cannot find out why. The file /var/log/Xorg.0.log contains the following:

/dev/dri/card0: No such file or directory

PS: My system was working fine until I removed 2 kernel images which were not being used (4.4.0-57 and 4.4.0-59). I use 4.4.0-53. The boot process ends with reached target graphical failsafe runlevel fallback and does not go further.

Chai T. Rex
  • 5,323

2 Answers2

9

According to the questioner, user152037, reinstalling the drivers fixed it:

sudo apt-get install --reinstall xserver-xorg-video-intel xserver-xorg-core
sudo dpkg-reconfigure xserver-xorg
Chai T. Rex
  • 5,323
0

For a better explanation as to why reinstalling the driver probably fixes it. Somehow, the dev device may not have been added, reinstalling the drivers probably fixes and trigger startx.

startx adds the /dev/device/dri0. As evident by the logs below.

startx adding /dev/dri/card

I am doing a minimal setup of environment. If you are missing /dev/dri/card.

  1. Use startx command to add drm device
  2. Reinstall the drivers