问题描述
我刚刚安装了一个新的 ubuntu 16.04 ,\nfresh install clean ,登录的第一件事也是我做的唯一一件事就是为 nvidia 选择专有驱动程序 361 ,重新启动机器。\n在重新启动后我可以登录但没有显示统一,我仍然可以右键单击并打开终端,尝试了很多答案:\n link1 \n link2
没有帮助,我很沮丧,启动到 USB 并重新安装它,这次我尝试了 340 个驱动程序同样的问题。\ni 的意思是看在上帝的份上这是 16.04 LTS。\ni 有双显卡 nvidia gt 740m,intel 建立在华硕笔记本电脑。
grep “EE\\|WW” /var/log/Xorg.0.log 的输出:
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 23.758] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 23.758] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 23.758] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 23.758] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 23.758] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 23.761] (WW) "glamoregl" will not be loaded unless you've specified it to be loaded elsewhere.
[ 25.323] (WW) Unresolved symbol: fbGetGCPrivateKey
[ 25.448] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[ 25.613] (WW) modeset(G0): Option "AllowEmptyInitialConfiguration" is not used
[ 25.613] (WW) modeset(G0): Option "IgnoreDisplayDevices" is not used
[ 25.902] (EE) NVIDIA(0): Failed to initiate mode change.
[ 25.902] (EE) NVIDIA(0): Failed to complete mode change
[ 26.214] (WW) evdev: SteelSeries Sensei Raw Gaming Mouse: ignoring absolute axes.
[ 26.216] (WW) evdev: SteelSeries SteelSeries Apex Raw Gaming Keyboard: ignoring absolute axes.
[ 26.272] (II) XINPUT: Adding extended input device "USBest Technology SiS HID Touch Controller" (type: TOUCHSCREEN, id 16)
完整的日志文件 LOG
xorg.conf 文件:
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:4@0:0:0"
Option "ConstrainCursor" "off"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration" "on"
Option "IgnoreDisplayDevices" "CRT"
EndSection
最佳思路
我还安装了 Ubuntu 16.04,在新的高清上全新安装,一切正常,直到我切换到 NVIDIA 驱动程序。重新启动后,我无法通过登录屏幕。对我有用的解决方案是禁用安全启动。
当卡在登录循环中时,我切换到控制台 Ctl+Alt+F1
,重新启动并禁用 UEFI
中的安全启动。现在一切正常,安装了 nvidia 驱动程序。
次佳思路
我也有这个问题。我只是在控制台中运行它(按 Ctrl
+ Alt
+ F1
,在登录页面中显示第一个虚拟 tty):
sudo apt-get purge nvidia*
在此之后,重新启动,然后我可以登录。之后,我先安装了intel驱动,然后安装了nvidia-361。
这些是我遵循的步骤:
-
sudo apt-get purge nvidia*
-
重新启动\n(现在我有 noveau 显示驱动程序工作)
-
sudo apt-get install intel-microcode
-
sudo apt-get install intel-gpu-tools
-
重启(为了测试,一切正常)
-
sudo apt-get install nvidia-361
(我认为 nvidia-current 是更好的长期选择)。 -
重启
现在我有了这些(对不起,它们是西班牙语):
第三种思路
找到了解决方案(这次是真的),\ni 决定成为一名 ubuntu 专家,所以我去谷歌并输入:
\\n
debug ubuntu
\\n
然后它给了我页面 Debug 并且我选择了统一。\在我需要做的一些部分中:
$ unity --advanced-debug
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>
...
(gdb) set logging file unity.log
(gdb) set logging on
(gdb) b _exit
Function "_exit" not defined.
Make breakpoint pending on future shared library load? (y or [n])
[Answer yes (y)]
(gdb) run
[ and when compiz/unity crash, do...]
(gdb) bt full
[ then CTRL-D or re-run compiz to continue working ]
(gdb) run
运行此之后,我注意到错误:\ncompiz (core) – 错误:插件 ‘opengl’ 未加载。
我在谷歌上搜索了这个错误,它给了我这个线程 Unity missing? Can’t see top or side panels,这里的答案有效。