apt-get upgrade 后,我的系统总是启动到低图形模式

apt-get upgrade 后,我的系统总是启动到低图形模式

前段时间我安装了xorg edgers适用于我的 Nvidia 420M 和 Ubuntu 13.10 的 nvidia 331 驱动程序。

今天我像往常一样跑步

sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y

从那时起,我的笔记本电脑总是在启动时low-graphics mode提示询问是否要解决问题、检查日志等,但即使在标记启动到低图形模式后,它也从未这样做过(它挂在 x 但我仍然可以CtrlAltF1-6。之后我卸载了我的图形驱动程序,重新安装了它们(同样的效果)。删除了 xorg edgers PPA,安装了nvidia-319驱动程序(相同)。

始终处于低图形模式。

我在安装 3.12 内核时也遇到了问题(手动从内核网站但在我完全删除它们并升级 GRUB 之后,驱动程序现在出现了问题。)

我附上Xorg.0.log

[     9.912] 
X.Org X Server 1.14.5
Release Date: 2013-12-12
[     9.912] X Protocol Version 11, Revision 0
[     9.912] Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu
[     9.912] Current Operating System: Linux icanseeyou 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64
[     9.912] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.11.0-15-generic root=UUID=cd852128-b5f9-4c66-82c0-08ffd489da5d ro persistent quiet splash
[     9.912] Build Date: 17 December 2013  10:06:15AM
[     9.912] xorg-server 2:1.14.5-1ubuntu2~saucy1 (For technical support please see http://www.ubuntu.com/support) 
[     9.912] Current version of pixman: 0.30.2
[     9.913]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[     9.913] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     9.913] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan  2 22:53:36 2014
[     9.913] (==) Using config file: "/etc/X11/xorg.conf"
[     9.913] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[     9.913] (==) ServerLayout "Layout0"
[     9.913] (**) |-->Screen "Screen0" (0)
[     9.913] (**) |   |-->Monitor "Monitor0"
[     9.913] (**) |   |-->Device "Device0"
[     9.913] (**) |-->Input Device "Keyboard0"
[     9.913] (**) |-->Input Device "Mouse0"
[     9.913] (==) Automatically adding devices
[     9.913] (==) Automatically enabling devices
[     9.913] (==) Automatically adding GPU devices
[     9.913] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[     9.913]    Entry deleted from font path.
[     9.913] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[     9.913]    Entry deleted from font path.
[     9.913] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[     9.913]    Entry deleted from font path.
[     9.913] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[     9.913]    Entry deleted from font path.
[     9.913] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[     9.913]    Entry deleted from font path.
[     9.913] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/Type1,
    built-ins
[     9.913] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[     9.913] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[     9.913] (WW) Disabling Keyboard0
[     9.913] (WW) Disabling Mouse0
[     9.913] (II) Loader magic: 0x7fd9888bfd20
[     9.913] (II) Module ABI versions:
[     9.913]    X.Org ANSI C Emulation: 0.4
[     9.913]    X.Org Video Driver: 14.1
[     9.913]    X.Org XInput driver : 19.1
[     9.913]    X.Org Server Extension : 7.0
[     9.914] (--) PCI:*(0:1:0:0) 10de:0df1:1025:0487 rev 161, Mem @ 0xb2000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x????????/524288
[     9.915] (II) Open ACPI successful (/var/run/acpid.socket)
[     9.915] Initializing built-in extension Generic Event Extension
[     9.915] Initializing built-in extension SHAPE
[     9.915] Initializing built-in extension MIT-SHM
[     9.915] Initializing built-in extension XInputExtension
[     9.915] Initializing built-in extension XTEST
[     9.915] Initializing built-in extension BIG-REQUESTS
[     9.915] Initializing built-in extension SYNC
[     9.915] Initializing built-in extension XKEYBOARD
[     9.915] Initializing built-in extension XC-MISC
[     9.915] Initializing built-in extension SECURITY
[     9.915] Initializing built-in extension XINERAMA
[     9.915] Initializing built-in extension XFIXES
[     9.915] Initializing built-in extension RENDER
[     9.915] Initializing built-in extension RANDR
[     9.915] Initializing built-in extension COMPOSITE
[     9.915] Initializing built-in extension DAMAGE
[     9.915] Initializing built-in extension MIT-SCREEN-SAVER
[     9.915] Initializing built-in extension DOUBLE-BUFFER
[     9.915] Initializing built-in extension RECORD
[     9.915] Initializing built-in extension DPMS
[     9.915] Initializing built-in extension X-Resource
[     9.915] Initializing built-in extension XVideo
[     9.915] Initializing built-in extension XVideo-MotionCompensation
[     9.915] Initializing built-in extension SELinux
[     9.915] Initializing built-in extension XFree86-VidModeExtension
[     9.915] Initializing built-in extension XFree86-DGA
[     9.915] Initializing built-in extension XFree86-DRI
[     9.915] Initializing built-in extension DRI2
[     9.915] (II) "glx" will be loaded by default.
[     9.915] (WW) "xmir" is not to be loaded by default. Skipping.
[     9.915] (II) LoadModule: "dri2"
[     9.915] (II) Module "dri2" already built-in
[     9.915] (II) LoadModule: "glamoregl"
[     9.916] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[    10.024] (II) Module glamoregl: vendor="X.Org Foundation"
[    10.024]    compiled for 1.14.3, module version = 0.5.1
[    10.024]    ABI class: X.Org ANSI C Emulation, version 0.4
[    10.024] (II) LoadModule: "glx"
[    10.024] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/libglx.so
[    10.071] (II) Module glx: vendor="NVIDIA Corporation"
[    10.071]    compiled for 4.0.2, module version = 1.0.0
[    10.071]    Module class: X.Org Server Extension
[    10.071] (II) NVIDIA GLX Module  319.60  Wed Sep 25 14:24:11 PDT 2013
[    10.071] Loading extension GLX
[    10.071] (II) LoadModule: "nvidia"
[    10.071] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/nvidia_drv.so
[    10.085] (II) Module nvidia: vendor="NVIDIA Corporation"
[    10.085]    compiled for 4.0.2, module version = 1.0.0
[    10.085]    Module class: X.Org Video Driver
[    10.091] (II) NVIDIA dlloader X Driver  319.60  Wed Sep 25 14:04:14 PDT 2013
[    10.091] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    10.092] (++) using VT number 7

[    10.096] (II) Loading sub module "fb"
[    10.096] (II) LoadModule: "fb"
[    10.096] (II) Loading /usr/lib/xorg/modules/libfb.so
[    10.097] (II) Module fb: vendor="X.Org Foundation"
[    10.097]    compiled for 1.14.5, module version = 1.0.0
[    10.097]    ABI class: X.Org ANSI C Emulation, version 0.4
[    10.097] (WW) Unresolved symbol: fbGetGCPrivateKey
[    10.097] (II) Loading sub module "wfb"
[    10.097] (II) LoadModule: "wfb"
[    10.097] (II) Loading /usr/lib/xorg/modules/libwfb.so
[    10.100] (II) Module wfb: vendor="X.Org Foundation"
[    10.100]    compiled for 1.14.5, module version = 1.0.0
[    10.100]    ABI class: X.Org ANSI C Emulation, version 0.4
[    10.100] (II) Loading sub module "shadow"
[    10.100] (II) LoadModule: "shadow"
[    10.100] (II) Loading /usr/lib/xorg/modules/libshadow.so
[    10.101] (II) Module shadow: vendor="X.Org Foundation"
[    10.101]    compiled for 1.14.5, module version = 1.1.0
[    10.101]    ABI class: X.Org ANSI C Emulation, version 0.4
[    10.101] (II) Loading sub module "ramdac"
[    10.101] (II) LoadModule: "ramdac"
[    10.101] (II) Module "ramdac" already built-in
[    10.103] (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
[    10.103] (==) NVIDIA(0): RGB weight 888
[    10.103] (==) NVIDIA(0): Default visual is TrueColor
[    10.103] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    10.103] (**) NVIDIA(0): Enabling 2D acceleration
[    10.109] (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module. Please see the
[    10.109] (EE) NVIDIA(0):     system's kernel log for additional error messages and
[    10.109] (EE) NVIDIA(0):     consult the NVIDIA README for details.
[    10.109] (EE) NVIDIA(0):  *** Aborting ***
[    10.109] (EE) NVIDIA(0): Failing initialization of X screen 0
[    10.109] (II) UnloadModule: "nvidia"
[    10.109] (II) UnloadSubModule: "shadow"
[    10.109] (II) UnloadSubModule: "wfb"
[    10.109] (II) UnloadSubModule: "fb"
[    10.109] (EE) Screen(s) found, but none have a usable configuration.
[    10.109] (EE) 
Fatal server error:
[    10.109] (EE) no screens found(EE) 
[    10.109] (EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
[    10.109] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    10.109] (EE) 
[    10.110] (EE) Server terminated with error (1). Closing log file.

我安装的 Linux 内核和头文件

ii  linux-generic                          3.11.0.15.16                                     amd64        Complete Generic Linux kernel and headers
ii  linux-headers-3.11.0-15                3.11.0-15.23                                     all          Header files related to Linux kernel version 3.11.0
ii  linux-headers-3.11.0-15-generic        3.11.0-15.23                                     amd64        Linux kernel headers for version 3.11.0 on 64 bit x86 SMP
ii  linux-headers-generic                  3.11.0.15.16                                     amd64        Generic Linux kernel headers
ii  linux-image-3.11.0-15-generic          3.11.0-15.23                                     amd64        Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii  linux-image-extra-3.11.0-15-generic    3.11.0-15.23                                     amd64        Linux kernel extra modules for version 3.11.0 on 64 bit x86 SMP
ii  linux-image-generic                    3.11.0.15.16                                     amd64        Generic Linux kernel image

已安装 nvidia 软件包

ii  nvidia-319-updates                     319.60-0ubuntu1                                  amd64        NVIDIA binary Xorg driver, kernel module and VDPAU library
ii  nvidia-settings-319-updates            319.60-0ubuntu1                                  amd64        Tool for configuring the NVIDIA graphics driver

dmesg

http://paste.ubuntu.com/6681226/

答案1

这是 Bumbleebee。Bumblebee 将 nvidia 驱动程序列入黑名单。因此 Ubuntu 试图在启动时加载驱动程序,但它们被列入了黑名单。卸载 Bumblebee 对我有帮助。

答案2

几个小时前我也遇到过同样的问题,最新的 331 坏了。降级到以前的驱动程序或任何其他驱动程序(包括开源 nouveau)都不起作用,唯一的解决方案是卸载所有 nvidia 软件包并从 .run 安装驱动程序(可从 nvidia 网站下载)。

http://www.nvidia.com/Download/index.aspx?lang=en-us

在那里,选择您的显卡、架构等,然后下载安装程序。完成后,您需要从命令行安装它,而无需运行 X。按下 Ctrl+Alt+F6 并在登录后:

sudo service lightdm stop
sudo apt-get remove nvidia-319 nvidia-331 # (change this line to match the drivers you have installed).

现在,假设您的驱动程序已下载到“下载”文件夹:

cd Downloads
chmod +x NVIDIA*
sudo ./NVIDIA*.run

我在这里使用了星号,因为我不知道您下载的驱动程序是否与我的驱动程序同名,因为这取决于您的 GPU。您可以使用 Tab 键自动完成功能来使用准确的 .run 名称。

按照屏幕上的说明进行操作。完成后,重新启动:

sudo shutdown -r now

如果重新启动后仍然遇到同样的问题,请再次登录 TTY 并尝试:

sudo nvidia-xconfig

这应该会重新生成一个新的 /etc/X11/xorg.conf

对于使用我的解决方案的任何人,我只想快速更新一下:今天,一些 gl 库的新更新再次破坏了我的系统。我不得不重新安装 NVIDIA 运行包,它抱怨它的一些库被更改,并将它们恢复到工作状态。官方存储库中的库和驱动程序中打包的库之间似乎存在兼容性问题。这就是我不喜欢安装外部打包程序的原因……要重新安装驱动程序,请使用以下命令终止 X

sudo service lightdm stop

并使用重新安装 .run

sudo ./NVIDIA....run 

答案3

我在两天前升级 nvidia-331 软件包后遇到了同样的问题(331.20-0ubuntu8~xedgers~saucy1)。

然后我尝试了一些方法,例如 ppa-purge,使用来自 ubuntu 存储库的官方 nvidia-current、nvidia-319。但是它无法自动正确启动图形界面(总是提示以低分辨率模式运行,然后如果我继续,就会挂起),我需要退出到控制台模式并输入以下内容才能恢复图形界面,

sudo modprobe nvidia-<ver>
sudo lightdm start

然后我尝试使用 x-swat 包(而不是 xedgers),因为 xedgers 网页说它应该是一个更稳定的包。

我再次安装了 nvidia-331(但次要版本不同331.20-0ubuntu1~xedgers~saucy1),然后它现在可以在启动时自动加载图形界面。

这可能是因为我在安装 x-swat nvidia-331 包时再次添加/配置了相关包,根本原因可能不在 nvidia-331 包本身,但至少我现在可以让它恢复正常启动。

也许值得一试。

答案4

请参阅以下错误https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-331/+bug/1265570

ppa-purge 或降级 nvidia 驱动程序不起作用的原因是 /etc/modprobe.d/bumblebee.conf 仍然残留。

相关内容