最近我的启动时间变得非常缓慢。我怀疑这跟英伟达的司机有关。它在循环中停留了45分钟,试图检测GPU:
下面是引导日志的尾部:
===========================================================
(2 of 2) A start job is running for Detect the available GPUs and deal with any system changes.
(2 of 2) A start job is running for Detect the available GPUs and deal with any system changes
(1 of 2) A start job is running for Wait for Plymouth Boot Screen to Quit (45min 13s / no limit
(1 of 2) A start job is running for Wait for Plymouth Boot Screen to Quit (45min 16s / no limit
[ OK ] Started Detect the available GPUs and deal with any system changes.
Starting Light Display Manager...
======================================================================这是gpu管理器日志:
sudo cat /var/log/gpu-manager.log
==============================================================
log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
grep dmesg status 0
dmesg status 0 == 0? Yes
grep dmesg status 256
dmesg status 256 == 0? No
Is nvidia loaded? no
Was nvidia unloaded? yes
Is nvidia blacklisted? no
Is fglrx loaded? no
Was fglrx unloaded? no
Is fglrx blacklisted? no
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no
Is nouveau loaded? yes
Is nouveau blacklisted? no
Is fglrx kernel module available? no
Is nvidia kernel module available? no
Vendor/Device Id: 8086:416
BusID "PCI:0@0:2:0"
Is boot vga? yes
Vendor/Device Id: 10de:1292
BusID "PCI:1@0:0:0"
Is boot vga? no
Skipping "/dev/dri/card1", driven by "nouveau"
Skipping "/dev/dri/card0", driven by "i915"
Found "/dev/dri/card1", driven by "nouveau"
Number of connected outputs for /dev/dri/card1: 0
Skipping "/dev/dri/card1", driven by "nouveau"
Found "/dev/dri/card0", driven by "i915"
output 0:
eDP connector
Number of connected outputs for /dev/dri/card0: 1
Does it require offloading? yes
last cards number = 2
Has amd? no
Has intel? yes
Has nvidia? yes
How many cards? 2
Has the system changed? No
main_arch_path x86_64-linux-gnu, other_arch_path i386-linux-gnu
Current alternative: /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf
Current core alternative: (null)
Is nvidia enabled? no
Is fglrx enabled? no
Is mesa enabled? yes
Is pxpress enabled? no
Is prime enabled? no
Is nvidia available? no
Is fglrx available? no
Is fglrx-core available? no
Is mesa available? yes
Is pxpress available? no
Is prime available? no
Intel IGP detected
Desktop system detected
or laptop with open drivers
Discrete NVIDIA card detected
can't access /etc/X11/xorg.conf
Driver not enabled or not in use
Nothing to do
=====================不确定是否相关,lspci显示nvidia 3D控制器(和其他东西):
3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1)再说一次,不确定是否相关。systemctl状态gpu-manager.service显示:
gpu-manager.service - Detect the available GPUs and deal with any system changes.
Loaded: loaded (/lib/systemd/system/gpu-manager.service; enabled; vendor preset: enabled)
Active: inactive (dead) since ד' 2015-11-11 00:07:08 IST; 13h ago
Main PID: 840 (code=exited, status=0/SUCCESS)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.更新:我重新启动,再次花了45分钟。这是什么意思?我知道有些进程正在寻找GPU,它不能启动桌面直到它找到它或放弃,它似乎放弃了45分钟后。是否有规定“放弃”的时间间隔的地方?
请帮助我了解发生了什么事,以及如何解决它。
发布于 2015-11-14 10:10:48
问题自己解决了。我不知道为什么或者怎么做。在上次重新启动之前,我执行的最后一个操作是rm /var/log/syslog;rm /var/log/ufw.log和rm /var/log/auth.*,因为每个操作都占用100 rm。如果有人能解释发生的事情,请发表评论。
发布于 2015-11-11 11:00:51
(更新)在你进入发行版后-
发布于 2016-10-14 00:17:57
我发现这是在插入HDMI投影仪后发生的。我用的是英特尔的驱动。演讲进行得很顺利。以前的堵塞没有引起任何问题。尽管下一次启动时,窗口管理器不会启动。发现/var/log/gpu-manager.log被砸成了不寻常的ACL和时间戳。
p--xrwsrwx 1 mail 1711 0 Jan 26 1971 gpu-manager.log删除零字节日志文件,窗口管理器启动ok。
https://askubuntu.com/questions/696625
复制相似问题