My Ubuntu 12.04 system hung. I had to force power it off. It now boots only into console mode.
On booting, I catch a glimpse of "cannot write bytes", but there is nothing in the boot log.
I have tried booting recovery mode from grub, and when I run graphics in failsafe mode, I'm getting a Screen(s) found, but none have a usable configuration.
I have read this post, and applied the instructions, but I still don't boot into the desktop. I have looked in syslog and cannot find an obvious culprit.
unity --reset fails indicating a bunch of errors, including D-BUS not running and "did I just try to reset in a tty".
I like to think I can diagnose a lot of Linux problems, so I am asking more for things to check than necessarily an answer to fix this, but an answer would also be helpful.
Here is the log requested in the comment:
[ 17.224] (II) Loading /usr/lib/i386-linux-gnu/xorg/extra-modules/nvidia_drv.so [ 17.224] (II) Loading /usr/lib/xorg/modules/libwfb.so [ 17.224] (II) Loading /usr/lib/xorg/modules/libfb.so [ 17.224] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32 [ 17.224] (==) NVIDIA(0): RGB weight 888 [ 17.224] (==) NVIDIA(0): Default visual is TrueColor [ 17.224] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0) [ 17.224] (**) NVIDIA(0): Option "TwinViewXineramaInfoOrder" "CRT-0" [ 17.224] (**) NVIDIA(0): Option "MetaModes" "1280x1024 +0+0; 1280x960 +0+0" [ 17.224] (**) NVIDIA(0): Enabling 2D acceleration [ 17.225] (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module. Please see the [ 17.225] (EE) NVIDIA(0): system's kernel log for additional error messages and [ 17.225] (EE) NVIDIA(0): consult the NVIDIA README for details. [ 17.225] (EE) NVIDIA(0): *** Aborting *** [ 17.225] (EE) NVIDIA(0): Failing initialization of X screen 0 [ 17.225] (II) UnloadModule: "nvidia" [ 17.225] (II) Unloading nvidia [ 17.225] (II) UnloadModule: "wfb" [ 17.225] (II) Unloading wfb [ 17.225] (II) UnloadModule: "fb" [ 17.225] (II) Unloading fb [ 17.225] (EE) Screen(s) found, but none have a usable configuration. [ 17.225] Fatal server error: [ 17.225] no screens found [ 17.225] Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 17.226] Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 17.226] [ 17.226] ddxSigGiveUp: Closing log [ 17.226] Server terminated with error (1). Closing log file.
After resetting the X11 config file, rebooting, and running gksudo nvidia-settings, I get an error
(gksudo:1993): Gtk-WARNING **: cannot open display: