无法在16.04上使nVidia驱动程序正常工作,登录后立即退出。

我在4月18日星期一安装了Ubuntu 16.04 beta 2。当我尝试安装nvidia-current、nvidia-361或者jockey安装的版本时,要么lightdm完全无法启动,要么我无法通过登录窗口。当我登录后,lightdm.log报告我成功登录,并显示我设置的音量,然后又返回到登录界面。
我的笔记本电脑配备了混合nVidia/Intel图形和Optimus技术(我并不需要GPU切换,但我希望nVidia能正常运行),具体的nVidia型号是GT630M。
这是Xorg.0.log文件:
[    41.529] 
X.Org X Server 1.18.3
Release Date: 2016-04-04
[    41.529] X Protocol Version 11, Revision 0
[    41.529] Build Operating System: Linux 3.13.0-85-generic x86_64 Ubuntu
[    41.529] Current Operating System: Linux dugi 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64
[    41.529] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-21-generic root=UUID=77b76089-cd8b-4d0c-b074-1ec581c0a8a9 ro quiet splash
[    41.529] Build Date: 07 April 2016  09:18:50AM
[    41.529] xorg-server 2:1.18.3-1ubuntu2 (For technical support please see http://www.ubuntu.com/support) 
[    41.529] Current version of pixman: 0.33.6
[    41.529]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    41.529] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    41.529] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Apr 22 00:40:13 2016
[    41.530] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    41.530] (==) No Layout section.  Using the first Screen section.
[    41.530] (==) No screen section available. Using defaults.
[    41.530] (**) |-->Screen "Default Screen Section" (0)
[    41.530] (**) |   |-->Monitor "<default monitor>"
[    41.530] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[    41.530] (==) Automatically adding devices
[    41.530] (==) Automatically enabling devices
[    41.530] (==) Automatically adding GPU devices
[    41.530] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    41.530] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    41.530]    Entry deleted from font path.
[    41.530] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    41.530]    Entry deleted from font path.
[    41.530] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    41.530]    Entry deleted from font path.
[    41.530] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    41.530]    Entry deleted from font path.
[    41.530] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    41.530]    Entry deleted from font path.
[    41.530] (==) FontPath set to:
    /usr/share/fonts/X11/misc,
    /usr/share/fonts/X11/Type1,
    built-ins
[    41.530] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[    41.530] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[    41.530] (II) Loader magic: 0x55a83676cda0
[    41.530] (II) Module ABI versions:
[    41.530]    X.Org ANSI C Emulation: 0.4
[    41.530]    X.Org Video Driver: 20.0
[    41.530]    X.Org XInput driver : 22.1
[    41.530]    X.Org Server Extension : 9.0
[    41.530] (++) using VT number 7

[    41.530] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    41.531] (II) xfree86: Adding drm device (/dev/dri/card0)
[    41.532] (--) PCI:*(0:0:2:0) 8086:0166:1028:0590 rev 9, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[    41.532] (WW) "glamoregl" will not be loaded unless you've specified it to be loaded elsewhere.
[    41.532] (II) "glx" will be loaded by default.
[    41.532] (II) LoadModule: "glx"
[    41.532] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/libglx.so
[    41.537] (II) Module glx: vendor="NVIDIA Corporation"
[    41.537]    compiled for 4.0.2, module version = 1.0.0
[    41.537]    Module class: X.Org Server Extension
[    41.537] (II) NVIDIA GLX Module  304.131  Sun Nov  8 22:03:20 PST 2015
[    41.537] (==) Matched intel as autoconfigured driver 0
[    41.537] (==) Matched intel as autoconfigured driver 1
[    41.537] (==) Matched modesetting as autoconfigured driver 2
[    41.537] (==) Matched fbdev as autoconfigured driver 3
[    41.537] (==) Matched vesa as autoconfigured driver 4
[    41.537] (==) Assigned the driver to the xf86ConfigLayout
[    41.537] (II) LoadModule: "intel"
[    41.537] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[    41.537] (II) Module intel: vendor="X.Org Foundation"
[    41.537]    compiled for 1.18.1, module version = 2.99.917
[    41.537]    Module class: X.Org Video Driver
[    41.537]    ABI class: X.Org Video Driver, version 20.0
[    41.537] (II) LoadModule: "modesetting"
[    41.537] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    41.537] (II) Module modesetting: vendor="X.Org Foundation"
[    41.537]    compiled for 1.18.3, module version = 1.18.3
[    41.537]    Module class: X.Org Video Driver
[    41.537]    ABI class: X.Org Video Driver, version 20.0
[    41.537] (II) LoadModule: "fbdev"
[    41.538] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    41.538] (II) Module fbdev: vendor="X.Org Foundation"
[    41.538]    compiled for 1.18.1, module version = 0.4.4
[    41.538]    Module class: X.Org Video Driver
[    41.538]    ABI class: X.Org Video Driver, version 20.0
[    41.538] (II) LoadModule: "vesa"
[    41.538] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[    41.538] (II) Module vesa: vendor="X.Org Foundation"
[    41.538]    compiled for 1.18.1, module version = 2.3.4
[    41.538]    Module class: X.Org Video Driver
[    41.538]    ABI class: X.Org Video Driver, version 20.0
[    41.538] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
    i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
    915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
    Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
    GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[    41.538] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[    41.538] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[    41.538] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[    41.538] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    41.538] (II) FBDEV: driver for framebuffer: fbdev
[    41.538] (II) VESA: driver for VESA chipsets: vesa
[    41.538] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20151010
[    41.538] (II) intel(0): SNA compiled: xserver-xorg-video-intel 2:2.99.917+git20160325-1ubuntu1 (Timo Aaltonen <tjaalton@debian.org>)
[    41.538] (II) intel(0): SNA compiled for use with valgrind
[    41.538] (WW) Falling back to old probe method for modesetting
[    41.538] (WW) Falling back to old probe method for fbdev
[    41.538] (II) Loading sub module "fbdevhw"
[    41.538] (II) LoadModule: "fbdevhw"
[    41.538] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    41.538] (II) Module fbdevhw: vendor="X.Org Foundation"
[    41.538]    compiled for 1.18.3, module version = 0.0.2
[    41.538]    ABI class: X.Org Video Driver, version 20.0
[    41.538] (WW) Falling back to old probe method for vesa
[    41.539] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4000
[    41.539] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx; using a maximum of 2 threads
[    41.539] (II) intel(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[    41.539] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[    41.539] (==) intel(0): RGB weight 888
[    41.539] (==) intel(0): Default visual is TrueColor
[    41.539] (II) intel(0): Output LVDS1 has no monitor section
[    41.552] (--) intel(0): Found backlight control interface intel_backlight (type 'raw') for output LVDS1
[    41.552] (II) intel(0): Enabled output LVDS1
[    41.552] (II) intel(0): Output VGA1 has no monitor section
[    41.552] (II) intel(0): Enabled output VGA1
[    41.552] (II) intel(0): Output HDMI1 has no monitor section
[    41.552] (II) intel(0): Enabled output HDMI1
[    41.552] (II) intel(0): Output DP1 has no monitor section
[    41.552] (II) intel(0): Enabled output DP1
[    41.552] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[    41.552] (II) intel(0): Output VIRTUAL1 has no monitor section
[    41.552] (II) intel(0): Enabled output VIRTUAL1
[    41.552] (--) intel(0): Output LVDS1 using initial mode 1366x768 on pipe 0
[    41.552] (==) intel(0): TearFree disabled
[    41.552] (==) intel(0): DPI set to (96, 96)
[    41.552] (II) Loading sub module "dri2"
[    41.552] (II) LoadModule: "dri2"
[    41.552] (II) Module "dri2" already built-in
[    41.552] (II) Loading sub module "present"
[    41.552] (II) LoadModule: "present"
[    41.552] (II) Module "present" already built-in
[    41.552] (II) UnloadModule: "modesetting"
[    41.552] (II) Unloading modesetting
[    41.552] (II) UnloadModule: "fbdev"
[    41.552] (II) Unloading fbdev
[    41.553] (II) UnloadSubModule: "fbdevhw"
[    41.553] (II) Unloading fbdevhw
[    41.553] (II) UnloadModule: "vesa"
[    41.553] (II) Unloading vesa
[    41.553] (==) Depth 24 pixmap format is 32 bpp
[    41.553] (II) intel(0): SNA initialized with Ivybridge (gen7, gt2) backend
[    41.553] (==) intel(0): Backing store enabled
[    41.553] (==) intel(0): Silken mouse enabled
[    41.553] (II) intel(0): HW Cursor enabled
[    41.553] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[    41.553] (==) intel(0): DPMS enabled
[    41.553] (==) intel(0): Display hotplug detection enabled
[    41.553] (II) intel(0): [DRI2] Setup complete
[    41.553] (II) intel(0): [DRI2]   DRI driver: i965
[    41.553] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[    41.553] (II) intel(0): direct rendering: DRI2 enabled
[    41.553] (II) intel(0): hardware support for Present enabled
[    41.553] (--) RandR disabled
[    41.556] (II) SELinux: Disabled on system
[    41.557] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
[    41.558] (II) intel(0): switch to mode 1366x768@60.0 on LVDS1 using pipe 0, position (0, 0), rotation normal, reflection none
[    41.558] (II) intel(0): Setting screen physical size to 361 x 203
[    41.582] (II) config/udev: Adding input device Power Button (/dev/input/event3)
[    41.582] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    41.582] (II) LoadModule: "evdev"
[    41.582] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[    41.582] (II) Module evdev: vendor="X.Org Foundation"
[    41.582]    compiled for 1.18.1, module version = 2.10.1
[    41.582]    Module class: X.Org XInput Driver
[    41.582]    ABI class: X.Org XInput driver, version 22.1
[    41.582] (II) Using input driver 'evdev' for 'Power Button'
[    41.582] (**) Power Button: always reports core events
[    41.582] (**) evdev: Power Button: Device: "/dev/input/event3"
[    41.582] (--) evdev: Power Button: Vendor 0 Product 0x1
[    41.583] (--) evdev: Power Button: Found keys
[    41.583] (II) evdev: Power Button: Configuring as keyboard
[    41.583] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input3/event3"
[    41.583] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[    41.583] (**) Option "xkb_rules" "evdev"
[    41.583] (**) Option "xkb_model" "pc105"
[    41.583] (**) Option "xkb_layout" "sk"
[    41.583] (**) Option "xkb_variant" "qwerty"
[    41.596] (II) config/udev: Adding input device Video Bus (/dev/input/event6)
[    41.596] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[    41.596] (II) Using input driver 'evdev' for 'Video Bus'
[    41.596] (**) Video Bus: always reports core events
[    41.596] (**) evdev: Video Bus: Device: "/dev/input/event6"
[    41.596] (--) evdev: Video Bus: Vendor 0 Product 0x6
[    41.596] (--) evdev: Video Bus: Found keys
[    41.596] (II) evdev: Video Bus: Configuring as keyboard
[    41.596] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input8/event6"
[    41.596] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[    41.596] (**) Option "xkb_rules" "evdev"
[    41.596] (**) Option "xkb_model" "pc105"
[    41.596] (**) Option "xkb_layout" "sk"
[    41.596] (**) Option "xkb_variant" "qwerty"
[    41.596] (II) config/udev: Adding input device Video Bus (/dev/input/event5)
[    41.596] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[    41.596] (II) Using input driver 'evdev' for 'Video Bus'
[    41.596] (**) Video Bus: always reports core events
[    41.596] (**) evdev: Video Bus: Device: "/dev/input/event5"
[    41.596] (--) evdev: Video Bus: Vendor 0 Product 0x6
[    41.596] (--) evdev: Video Bus: Found keys
[    41.596] (II) evdev: Video Bus: Configuring as keyboard
[    41.596] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:19/LNXVIDEO:00/input/input7/event5"
[    41.596] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[    41.596] (**) Option "xkb_rules" "evdev"
[    41.596] (**) Option "xkb_model" "pc105"
[    41.596] (**) Option "xkb_layout" "sk"
[    41.596] (**) Option "xkb_variant" "qwerty"
[    41.597] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[    41.597] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[    41.597] (II) Using input driver 'evdev' for 'Power Button'
[    41.597] (**) Power Button: always reports core events
[    41.597] (**) evdev: Power Button: Device: "/dev/input/event1"
[    41.597] (--) evdev: Power Button: Vendor 0 Product 0x1
[    41.597] (--) evdev: Power Button: Found keys
[    41.597] (II) evdev: Power Button: Configuring as keyboard
[    41.597] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1/event1"
[    41.597] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[    41.597] (**) Option "xkb_rules" "evdev"
[    41.597] (**) Option "xkb_model" "pc105"
[    41.597] (**) Option "xkb_layout" "sk"
[    41.597] (**) Option "xkb_variant" "qwerty"
[    41.597] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[    41.597] (II) No input driver specified, ignoring this device.
[    41.597] (II) This device may have been added with another device file.
[    41.598] (II) config/udev: Adding input device Sleep Button (/dev/input/event2)
[    41.598] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[    41.598] (II) Using input driver 'evdev' for 'Sleep Button'
[    41.598] (**) Sleep Button: always reports core events
[    41.598] (**) evdev: Sleep Button: Device: "/dev/input/event2"
[    41.598] (--) evdev: Sleep Button: Vendor 0 Product 0x3
[    41.598] (--) evdev: Sleep Button: Found keys
[    41.598] (II) evdev: Sleep Button: Configuring as keyboard
[    41.598] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input2/event2"
[    41.598] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 10)
[    41.598] (**) Option "xkb_rules" "evdev"
[    41.598] (**) Option "xkb_model" "pc105"
[    41.598] (**) Option "xkb_layout" "sk"
[    41.598] (**) Option "xkb_variant" "qwerty"
[    41.598] (II) config/udev: Adding input device HID 04d9:1133 (/dev/input/event7)
[    41.598] (**) HID 04d9:1133: Applying InputClass "evdev pointer catchall"
[    41.598] (II) Using input driver 'evdev' for 'HID 04d9:1133'
[    41.598] (**) HID 04d9:1133: always reports core events
[    41.598] (**) evdev: HID 04d9:1133: Device: "/dev/input/event7"
[    41.652] (--) evdev: HID 04d9:1133: Vendor 0x4d9 Product 0x1133
[    41.652] (--) evdev: HID 04d9:1133: Found 3 mouse buttons
[    41.652] (--) evdev: HID 04d9:1133: Found scroll wheel(s)
[    41.652] (--) evdev: HID 04d9:1133: Found relative axes
[    41.652] (--) evdev: HID 04d9:1133: Found x and y relative axes
[    41.652] (II) evdev: HID 04d9:1133: Configuring as mouse
[    41.652] (II) evdev: HID 04d9:1133: Adding scrollwheel support
[    41.652] (**) evdev: HID 04d9:1133: YAxisMapping: buttons 4 and 5
[    41.652] (**) evdev: HID 04d9:1133: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    41.652] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/0003:04D9:1133.0001/input/input9/event7"
[    41.652] (II) XINPUT: Adding extended input device "HID 04d9:1133" (type: MOUSE, id 11)
[    41.652] (II) evdev: HID 04d9:1133: initialized for relative axes.
[    41.652] (**) HID 04d9:1133: (accel) keeping acceleration scheme 1
[    41.652] (**) HID 04d9:1133: (accel) acceleration profile 0
[    41.652] (**) HID 04d9:1133: (accel) acceleration factor: 2.000
[    41.652] (**) HID 04d9:1133: (accel) acceleration threshold: 4
[    41.653] (II) config/udev: Adding input device HID 04d9:1133 (/dev/input/mouse0)
[    41.653] (II) No input driver specified, ignoring this device.
[    41.653] (II) This device may have been added with another device file.
[    41.653] (II) config/udev: Adding input device Laptop_Integrated_Webcam_HD (/dev/input/event10)
[    41.653] (**) Laptop_Integrated_Webcam_HD: Applying InputClass "evdev keyboard catchall"
[    41.653] (II) Using input driver 'evdev' for 'Laptop_Integrated_Webcam_HD'
[    41.653] (**) Laptop_Integrated_Webcam_HD: always reports core events
[    41.653] (**) evdev: Laptop_Integrated_Webcam_HD: Device: "/dev/input/event10"
[    41.653] (--) evdev: Laptop_Integrated_Webcam_HD: Vendor 0x1bcf Product 0x2982
[    41.653] (--) evdev: Laptop_Integrated_Webcam_HD: Found keys
[    41.653] (II) evdev: Laptop_Integrated_Webcam_HD: Configuring as keyboard
[    41.653] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5/1-1.5:1.0/input/input12/event10"
[    41.653] (II) XINPUT: Adding extended input device "Laptop_Integrated_Webcam_HD" (type: KEYBOARD, id 12)
[    41.653] (**) Option "xkb_rules" "evdev"
[    41.653] (**) Option "xkb_model" "pc105"
[    41.653] (**) Option "xkb_layout" "sk"
[    41.653] (**) Option "xkb_variant" "qwerty"
[    41.653] (II) config/udev: Adding input device HDA Intel PCH Mic (/dev/input/event12)
[    41.653] (II) No input driver specified, ignoring this device.
[    41.653] (II) This device may have been added with another device file.
[    41.654] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event13)
[    41.654] (II) No input driver specified, ignoring this device.
[    41.654] (II) This device may have been added with another device file.
[    41.654] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event14)
[    41.654] (II) No input driver specified, ignoring this device.
[    41.654] (II) This device may have been added with another device file.
[    41.654] (II) config/udev: Adding input device Atmel Atmel maXTouch Digitizer (/dev/input/event9)
[    41.654] (**) Atmel Atmel maXTouch Digitizer: Applying InputClass "evdev touchscreen catchall"
[    41.654] (II) Using input driver 'evdev' for 'Atmel Atmel maXTouch Digitizer'
[    41.654] (**) Atmel Atmel maXTouch Digitizer: always reports core events
[    41.654] (**) evdev: Atmel Atmel maXTouch Digitizer: Device: "/dev/input/event9"
[    41.709] (--) evdev: Atmel Atmel maXTouch Digitizer: Vendor 0x3eb Product 0x8803
[    41.709] (--) evdev: Atmel Atmel maXTouch Digitizer: Found absolute axes
[    41.709] (--) evdev: Atmel Atmel maXTouch Digitizer: Found absolute multitouch axes
[    41.709] (II) evdev: Atmel Atmel maXTouch Digitizer: No buttons found, faking one.
[    41.709] (--) evdev: Atmel Atmel maXTouch Digitizer: Found x and y absolute axes
[    41.709] (--) evdev: Atmel Atmel maXTouch Digitizer: Found absolute touchscreen
[    41.709] (II) evdev: Atmel Atmel maXTouch Digitizer: Configuring as touchscreen
[    41.709] (**) evdev: Atmel Atmel maXTouch Digitizer: YAxisMapping: buttons 4 and 5
[    41.709] (**) evdev: Atmel Atmel maXTouch Digitizer: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    41.709] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/0003:03EB:8803.0002/input/input10/event9"
[    41.709] (II) XINPUT: Adding extended input device "Atmel Atmel maXTouch Digitizer" (type: TOUCHSCREEN, id 13)
[    41.709] (II) evdev: Atmel Atmel maXTouch Digitizer: initialized for absolute axes.
[    41.709] (**) Atmel Atmel maXTouch Digitizer: (accel) keeping acceleration scheme 1
[    41.709] (**) Atmel Atmel maXTouch Digitizer: (accel) acceleration profile 0
[    41.709] (**) Atmel Atmel maXTouch Digitizer: (accel) acceleration factor: 2.000
[    41.709] (**) Atmel Atmel maXTouch Digitizer: (accel) acceleration threshold: 4
[    41.710] (II) config/udev: Adding input device Atmel Atmel maXTouch Digitizer (/dev/input/mouse2)
[    41.710] (II) No input driver specified, ignoring this device.
[    41.710] (II) This device may have been added with another device file.
[    41.710] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event4)
[    41.710] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[    41.710] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[    41.710] (**) AT Translated Set 2 keyboard: always reports core events
[    41.710] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event4"
[    41.710] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[    41.710] (--) evdev: AT Translated Set 2 keyboard: Found keys
[    41.710] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[    41.710] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input4/event4"
[    41.710] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 14)
[    41.710] (**) Option "xkb_rules" "evdev"
[    41.710] (**) Option "xkb_model" "pc105"
[    41.710] (**) Option "xkb_layout" "sk"
[    41.710] (**) Option "xkb_variant" "qwerty"
[    41.710] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event8)
###/// A load of unrelated stuff about touchpad ///###
[    41.794] (**) Option "config_info" "udev:/sys/devices/virtual/input/input13/event11"
[    41.794] (II) XINPUT: Adding extended input device "Dell WMI hotkeys" (type: KEYBOARD, id 16)
[    41.794] (**) Option "xkb_rules" "evdev"
[    41.794] (**) Option "xkb_model" "pc105"
[    41.794] (**) Option "xkb_layout" "sk"
[    41.794] (**) Option "xkb_variant" "qwerty"
[    42.345] (II) intel(0): EDID vendor "CMN", prod id 5558
[    42.345] (II) intel(0): Printing DDC gathered Modelines:
[    42.345] (II) intel(0): Modeline "1366x768"x0.0   76.66  1366 1397 1462 1592  768 772 784 802 +hsync -vsync (48.2 kHz eP)
[    42.345] (II) intel(0): Modeline "1366x768"x0.0   51.01  1366 1380 1409 1592  768 770 777 800 +hsync -vsync (32.0 kHz e)

这是当前正在使用的xorg.conf.XXXXXXXX文件:
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
    Option "AccelMethod" "None"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:2@0:0:0"
    Option "ConstrainCursor" "off"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration" "on"
    Option "IgnoreDisplayDevices" "CRT"
EndSection

现在,我只能使用nouveau/intel,有时候相当受限制。你有什么想法是怎么回事吗?也许缺少/etc/X11/xorg.conf文件可能是问题所在,但我不知道为什么它不在那里。
注意: 从16.04的主要发布版本开始,错误已经从“未检测到设备”和“未找到屏幕”变成了“无法初始化GLX扩展(找不到兼容的NVIDIA X驱动程序)”。现在,lightdm启动更容易了,但我仍然无法通过登录界面。
进一步编辑: 我一直都禁用了安全启动。我安装了bumblebee,它添加了nvidia驱动程序(尝试了304和340),但无法启动使用nVidia显卡的程序。进一步调查显示,由于类似以下原因,nvidia的modprobe失败:
could not insert 'nvidia': Unknown symbol in module, or unknown parameter (see dmesg)

我尝试了一个较新的驱动程序版本(361),但它一直无法正常工作。我在某个地方读到i915驱动程序引起了这个问题,但我没有安装它们。
更多信息: 这似乎是根本原因。当nVidia驱动程序与其DKMS模块一起安装时,我无法将其插入内核(使用modprobe命令)。报告的错误是找不到特定的PCI端口(根据lspci命令应该在那里)。很抱歉,我没有保存下确切的措辞。

1我之前也遇到了同样的问题,直到我从Nvidia图形驱动PPA安装了nvidia-364才解决。然而,当我安装了prime-indicator后,登录错误又出现了,所以我不得不再次将其移除。但是,对于我来说,nvidia-364和禁用安全启动是有效的。我使用的是Nvidia 940M显卡。 - Lars Nyström
我会试一试。 - Dugi
太棒了!安装nvidia-364并重新启动解决了问题。我不得不删除~/.config/dconf/user才能进入Unity界面。 - Dugi
我有一个类似的问题 - 我想。你可以在你的问题中补充一下你实际使用的显示适配器是英特尔还是NVIDIA吗? - einpoklum
6个回答

感谢社区的集体努力,我已经成功让它工作了。
首先,进入终端(如果您无法登录,请按ctrl-alt-f1,或通过恢复模式)。安装nVidia 364版驱动程序(包名为nvidia-364)。
sudo apt-get install nvidia-364

如果找不到该软件包,请添加包含它的ppa源:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update

重启你的电脑。
sudo reboot -i NOW

如果你没有被扔回登录界面,但只能看到你的背景图像,强制重新创建用户设置(保存备份)。
sudo mv ~/.config/dconf/user ~/.config/dconf/user.old

然后,重新启动lightdm:
sudo service lightdm restart

如果你想安装bumblebee,请注意它的配置可能会设置不正确,即使没有安装nvidia-current,它也会寻找nvidia-current。我已经编辑过它,将其指向nvidia-364(因为安装文件在/usr/lib/nvidia-364),这样我就能够使用optirun启动程序了。

2我的情况和你的差不多,但是PPA驱动比nvidia.com上的驱动还要糟糕。在我的机器上,.run版本的驱动会导致登录循环问题,而我则遇到了黑屏。你运气好,我猜。这就是Linux的本质:有些人会失败,而另一些人会成功,而且两者都无法理解为什么。 - J Quigley
你尝试过这个帖子中提到的其他选项或其组合吗? - Dugi
是的。我尝试了许多在不同帖子中提到的方法。最终我放弃了,决定重新安装Linux,并选择了一个不同的发行版,以增加成功的可能性。如果这次还是失败的话,我可能会购买一张新的显卡,最好是没有那个可恶的Optimus技术的。 - J Quigley
为什么选择v364而不是其他版本? - einpoklum
之前的版本无法运行,v367当时还没有发布,而且我还没有测试过。 - Dugi
1和J Quigley一样,我也遇到了黑屏的问题。不过,这种方法对我来说很有效: https://devtalk.nvidia.com/default/topic/878117/-solved-titan-x-for-cuda-7-5-login-loop-error-ubuntu-14-04/ 基本上,当你通过.run文件安装Nvidia驱动时,不要安装opengl文件。例如 NVIDIA-Linux-x86_64-367.44.run --no-opengl-files 希望对你也有用。 - willSapgreen
我能够使用这种方法安装nvidia-384。 nvidia-364不再在存储库中。 这解决了我的登录问题。 - psyklopz

我在Nvidia和16.04上遇到了一些问题,最终解决了。我的电脑是搭载Nvidia GTX980M显卡的华硕G752游戏笔记本。我建议您尝试通过命令行安装,而不仅仅是从图形界面启用专有驱动程序。(继续阅读)
我没有遇到描述中的引导循环问题,但是分辨率很低(800x600),而且根本无法正常工作,但是nouveau驱动则没有问题。(都是通过驱动程序图形界面安装的)
最后,我切换到命令行,并通过“sudo apt-get install nvidia-xxx”(在我的情况下是361,也尝试了352)安装了相同的软件包。
然后它以正常方式安装,但终端中弹出一个菜单,显示“UEFI”安全启动已启用,您需要在重新启动时输入一次性密码来禁用它以进入不安全模式。所以我这样做了。
一旦完成这个步骤,重新启动后,确实弹出了一个UEFI窗口菜单,我选择了改变引导模式为不安全模式。然后它要求我按位置输入几个字符(例如...输入第6个字符,然后输入第4个字符等),每次按回车键确认。最终,在输入3-4个字符后,我成功关闭了安全启动。然后机器再次重启,并显示“正在以不安全模式启动”,此时驱动程序开始正常工作。
另外,我还发现通过synaptic安装virtualbox时也遇到了类似的问题,但至少通过这种方法解决了并弹出了一个菜单...
希望这对你有所帮助...

1我已经禁用了安全启动,即使没有它,我在安装Linux时也遇到了困难。 - Dugi
你可以在BIOS设置中重新启动并禁用安全启动,而无需任何愚蠢的密码。 - Barafu Albino
安全启动刚刚花费了我一个小时。非常感谢你的建议! - Peheje
在HP台式电脑上,通过从BIOS禁用安全启动并启用传统引导方式,我成功解决了登录问题。 - jparimaa

如何恢复我的桌面?
从登录界面按下ctrl-alt-f1,您可以进入命令行界面。使用您的用户名和密码登录。在命令行界面中,通过运行以下命令来卸载NVIDIA驱动程序:
sudo apt remove nvidia-361
sudo apt autoremove

请注意,nvidia的具体版本可能会有所不同。您可以通过运行apt search nvidia | grep installed | grep nvidia来查找已安装的nvidia驱动程序的版本。 或者如果您只想切换到英特尔显卡而不删除nvidia驱动程序,请运行以下命令:
prime-select intel

但是我想使用我的NVIDIA显卡!
有几个选项你可以尝试:
禁用安全启动
正如@biff所说,安全启动可能会阻止NVIDIA驱动程序加载。要禁用安全启动,请使用命令行安装NVIDIA驱动程序。在安装过程中,Ubuntu会要求你禁用安全启动。
安装旧版NVIDIA驱动程序
通过安装旧版NVIDIA驱动程序,一些问题可能会得到解决。

我不知道你指的是多老的nVidia驱动程序,因为nvidia-304也不起作用。 - Dugi
在Ubuntu中处理安全启动是不可容忍的。 - Brent Bradburn
我必须为开发安装Nvidia库,但没有Nvidia显卡。然后我安装了Intel OpenCL驱动程序(带有内核补丁),这导致了重启并出现了登录循环。使用"prime-select intel"命令解决了这个特定的(奇怪的)问题。谢谢! - smckee
我通过在虚拟机中使用控制台(Ctrl-Alt-F1)运行prime-select intel命令,然后重新启动虚拟机来解决了在VirtualBox中运行时登录循环的问题(如果不重新启动虚拟机,界面将启动,但udev会不断尝试重新启动nvidia-persistenced.service)。在本地引导Ubuntu 16.04和使用VirtualBox原始分区功能时,我使用相同的分区。当本地引导时,我需要专有的nVidia驱动程序(nvidia-384)来获得高分辨率,但是在使用VirtualBox时,出现了登录循环问题(syslog:NVRM:未找到任何NVIDIA图形适配器!)。 - Chris Good
...重新启动后,prime-select query 显示 prime 已自动返回到 'nvidia' 并且一切正常。每次从原生模式转换到虚拟机之前都必须将模式设置回 intel 是有点繁琐,但我可以接受。 - Chris Good

我有一台GTX980显卡,在升级到16.04(从15.10)后无法登录。请移除nvidia驱动。
sudo apt-get purge nvidia*

登录成功。但是分辨率被限制在800x600。

以下步骤解决了我的问题:

  1. 重新安装Nvidia驱动:sudo apt-get install nvidia-361
  2. 重启电脑,进入BIOS并禁用安全启动

感谢biff提供的禁用安全启动的提示:-)


我有同样的问题。运行Ubuntu 16.04。Intel HD4600和Nvidia 765M。尝试了以上所有建议。 使用终端安装时可以工作,但如果使用多个显示器,会出现错误并导致启动循环。
我看到有人建议使用beta驱动程序364xx。

Windows运作得很好,毫无疑问。 :( - J Quigley

在我的情况下,只需安装nvidia-364就解决了问题。我的配置是NVidia GTX 750Ti配合ASUS H170 + Intel i7 6700 + 32Gb DDR4,在Ubuntu 16.04上运行。