Lightdm 转储到 tty。从硬盘启动时无法启动 GUI 界面,但从 USB 启动时可以

Lightdm 转储到 tty。从硬盘启动时无法启动 GUI 界面,但从 USB 启动时可以

启动时,lightdm 转储到 tty。GUI 界面不起作用 - 这是在全新安装 Ubuntu 12.04 之后,当从 USB 运行时,GUI 界面可以正常工作。

我有一张 NVIDIA Corporation G98 [Quadro NVS 420] 显卡。

我从终端调用 startx 后它仍然不起作用。我在 Xorg.0.log 中收到以下内容:

[   327.718] (--) NVIDIA(0): Memory: 262144 kBytes
[   327.718] (--) NVIDIA(0): VideoBIOS: 62.98.6f.00.07
[   327.718] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[   327.718] (--) NVIDIA(0): Interlaced video modes are supported on this GPU
[   327.756] (--) NVIDIA(0): Connected display device(s) on Quadro NVS 420 at PCI:3:0:0
[   327.756] (--) NVIDIA(0):     none
[   327.756] (EE) NVIDIA(0): No display devices found for this X screen.
[   328.010] (II) UnloadModule: "nvidia"
[   328.010] (II) Unloading nvidia
[   328.010] (II) UnloadModule: "wfb"
[   328.010] (II) Unloading wfb
[   328.010] (II) UnloadModule: "fb"
[   328.010] (II) Unloading fb
[   328.011] (EE) Screen(s) found, but none have a usable configuration.
[   328.011] 
Fatal server error:
[   328.011] no screens found

/var/log/lightdm/lightdm.log

[+0.00s] DEBUG: Starting local X display
[+0.00s] DEBUG: X server :0 will replace Plymouth
[+0.02s] DEBUG: Using VT 7
[+0.02s] DEBUG: Activating VT 7
[+0.02s] DEBUG: Logging to /var/log/lightdm/x-0.log
[+0.02s] DEBUG: Writing X server authority to /var/run/lightdm/root/:0
[+0.02s] DEBUG: Launching X Server
[+0.02s] DEBUG: Launching process 1074: /usr/bin/X :0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch -background none
[+0.02s] DEBUG: Waiting for ready signal from X server :0
[+0.02s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.02s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+1.38s] DEBUG: Process 1074 exited with return value 1
[+1.38s] DEBUG: X server stopped
[+1.38s] DEBUG: Removing X server authority /var/run/lightdm/root/:0
[+1.38s] DEBUG: Releasing VT 7
[+1.38s] DEBUG: Stopping Plymouth, X server failed to start
[+1.39s] DEBUG: Display server stopped
[+1.39s] DEBUG: Stopping display
[+1.39s] DEBUG: Display stopped
[+1.39s] DEBUG: Stopping X local seat, failed to start a display
[+1.39s] DEBUG: Stopping seat
[+1.39s] DEBUG: Seat stopped
[+1.39s] DEBUG: Required seat has stopped
[+1.39s] DEBUG: Stopping display manager
[+1.39s] DEBUG: Display manager stopped
[+1.39s] DEBUG: Stopping daemon
[+1.39s] DEBUG: Exiting with return value 1

/var/log/lightdm/x-0.log

X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-31-server x86_64 Ubuntu
Current Operating System: Linux oorn 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-23-generic root=UUID=b25ab072-077d-40f1-95a4-c7fd66acd2f0 ro reboot=pci quiet splash vt.handoff=7
Build Date: 07 May 2012  11:43:21PM
xorg-server 2:1.11.4-0ubuntu10.2 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.24.4
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun 27 12:51:45 2012
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) NVIDIA(0): No display devices found for this X screen.
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found

Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

 ddxSigGiveUp: Closing log
Server terminated with error (1). Closing log file.

答案1

好的,所以我想出了一个解决方案 - 清除几乎所有 nvidia。第一步是通过终端,因为我没有可用的 GUI。我跟着http://peniwize.wordpress.com/2009/07/27/how-i-solved-my-nvidia-driver-kernel-module-api-mismatchj-problem/ 基本上可以归结为以下几点:

sudo nvidia-installer --uninstall
sudo rmmod nvidia
sudo find / -type f 2> /dev/null | grep -i nvidia | grep -i \\.ko | sudo xargs rm -f

sudo apt-get remove nvidia-current

然后重启:

sudo shutdown -r now

这会导致低分辨率、不正确的比例(拉伸) GUI 再次运行。

然后,一旦一些 GUI 恢复,获取 synaptic 包管理器并清除名称中带有 nvidia 的所有内容,除了依赖于 ubuntu-desktop 的 nvidia-common(在我的情况下有两个 nvidia-common 包)。其他一切都正常。然后再次重新启动,我的旧桌面就会恢复到正确的分辨率。

相关内容