![插入 VGA 显示器后,登录 Cinnamon 后出现黑屏并带有光标](https://linux22.com/image/995907/%E6%8F%92%E5%85%A5%20VGA%20%E6%98%BE%E7%A4%BA%E5%99%A8%E5%90%8E%EF%BC%8C%E7%99%BB%E5%BD%95%20Cinnamon%20%E5%90%8E%E5%87%BA%E7%8E%B0%E9%BB%91%E5%B1%8F%E5%B9%B6%E5%B8%A6%E6%9C%89%E5%85%89%E6%A0%87.png)
我在安装 Ubuntu 16.04.1 LTS + Cinnamon 和 Linux Mint 18.1 + Cinnamon 时遇到问题:插入外部 VGA 显示器后登录时出现黑屏。以下是事实:
- 有时我打开电脑,用密码登录,然后屏幕变黑。
- 当发生这种情况时,光标始终是可见的。
- 在这些情况下,我仍然可以按 Ctrl+Alt+F1(尽管大约需要 30 秒),终止 lightdm 或 mdm,然后重试 - 此步骤后我可能会成功,也可能不会成功。
- 当这种情况发生时,Ctrl-Alt-Backspace 会重新启动 X(尽管大约需要 30 秒),短暂显示壁纸并将我带到登录屏幕。
- 当我从运行级别 3 启动时,仍然会出现黑屏并且没有机会登录。
- 发生这种情况时,Ctrl-Alt-Del 会重新启动系统并显示启动画面。
- 当以软件渲染模式登录时,我可以毫无问题地登录。
- 在恢复模式启动然后正常启动时,我可以毫无问题地登录,但 a) 处于软件渲染模式且 b) 没有外部 VGA 显示器。
- 始终有效的一种方法是对计算机执行硬关机(按住电源按钮),然后我通常能够正常登录。
- 在 Ubuntu 上使用 Unity 时不会发生这些问题。
- 在没有 VGA 屏幕的情况下启动时,一切正常。
- 登录后插入 VGA 屏幕时,屏幕冻结。
- 使用商业英特尔驱动程序无法解决该问题。
- 使用“镜子”不起作用。
- 根据建议更改布局在此错误报告中没有用。
- 根据建议禁用桌面图标在此主题中没有用。
是否有系统的方法来调试和诊断此问题?有人能指出我需要关注哪些重要信息来调试此问题吗?X 日志、禁用屏幕保护程序,或许还有其他事情?
jlcano@jlcano ~ $ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.1 Serena
Release: 18.1
Codename: serena
jlcano@jlcano ~ $ uname -a
Linux jlcano 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
jlcano@jlcano ~ $ inxi -Fx
System: Host: jlcano Kernel: 4.4.0-57-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.2.7 (Gtk 3.18.9-1ubuntu3.1)
Distro: Linux Mint 18.1 Serena
Machine: System: TOSHIBA product: Satellite Pro A50-C v: PS56AE-07S013CE
Mobo: TOSHIBA model: Satellite Pro A50-C v: Version A0
Bios: TOSHIBA v: Version 6.10 date: 07/15/2015
CPU: Dual core Intel Core i7-5500U (-HT-MCP-) cache: 4096 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9577
clock speeds: max: 3000 MHz 1: 2899 MHz 2: 2899 MHz 3: 2899 MHz
4: 2899 MHz
Graphics: Card: Intel Broadwell-U Integrated Graphics bus-ID: 00:02.0
Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
Resolution: [email protected], [email protected]
GLX Renderer: Gallium 0.4 on llvmpipe (LLVM 3.8, 256 bits)
GLX Version: 3.0 Mesa 11.2.0 Direct Rendering: Yes
Audio: Card-1 Intel Wildcat Point-LP High Definition Audio Controller
driver: snd_hda_intel bus-ID: 00:1b.0
Card-2 Intel Broadwell-U Audio Controller
driver: snd_hda_intel bus-ID: 00:03.0
Sound: Advanced Linux Sound Architecture v: k4.4.0-57-generic
Network: Card-1: Intel Ethernet Connection (3) I218-V
driver: e1000e v: 3.2.6-k port: 3080 bus-ID: 00:19.0
IF: enp0s25 state: up speed: 1000 Mbps duplex: full
mac: b8:6b:23:10:be:c6
Card-2: Intel Wireless 7265 driver: iwlwifi bus-ID: 02:00.0
IF: wlp2s0 state: down mac: 10:02:b5:1c:dc:2a
Drives: HDD Total Size: 1000.2GB (2.2% used)
ID-1: /dev/sda model: TOSHIBA_MQ01ABD1 size: 1000.2GB
Partition: ID-1: / size: 622G used: 14G (3%) fs: ext4 dev: /dev/sda5
ID-2: swap-1 size: 8.50GB used: 0.00GB (0%) fs: swap dev: /dev/sda6
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 75.0C mobo: N/A
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 188 Uptime: 26 min Memory: 1103.9/7892.8MB
Init: systemd runlevel: 5 Gcc sys: 5.4.0
Client: Shell (bash 4.3.461) inxi: 2.2.35
jlcano@jlcano ~ $ lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation Broadwell-U Host Bridge -OPI [8086:1604] (rev 09)
00:02.0 VGA compatible controller [0300]: Intel Corporation Broadwell-U Integrated Graphics [8086:1616] (rev 09)
00:03.0 Audio device [0403]: Intel Corporation Broadwell-U Audio Controller [8086:160c] (rev 09)
00:14.0 USB controller [0c03]: Intel Corporation Wildcat Point-LP USB xHCI Controller [8086:9cb1] (rev 03)
00:16.0 Communication controller [0780]: Intel Corporation Wildcat Point-LP MEI Controller #1 [8086:9cba] (rev 03)
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection (3) I218-V [8086:15a3] (rev 03)
00:1b.0 Audio device [0403]: Intel Corporation Wildcat Point-LP High Definition Audio Controller [8086:9ca0] (rev 03)
00:1c.0 PCI bridge [0604]: Intel Corporation Wildcat Point-LP PCI Express Root Port #6 [8086:9c9a] (rev e3)
00:1c.2 PCI bridge [0604]: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 [8086:9c94] (rev e3)
00:1d.0 USB controller [0c03]: Intel Corporation Wildcat Point-LP USB EHCI Controller [8086:9ca6] (rev 03)
00:1f.0 ISA bridge [0601]: Intel Corporation Wildcat Point-LP LPC Controller [8086:9cc3] (rev 03)
00:1f.2 SATA controller [0106]: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] [8086:9c83] (rev 03)
02:00.0 Network controller [0280]: Intel Corporation Wireless 7265 [8086:095a] (rev 61)
jlcano@jlcano ~ $ cat .xsession-errors
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
/etc/mdm/Xsession: Beginning session setup...
localuser:jlcano being added to access control list
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
Window manager warning: Software rendering detected: Gallium 0.4 on llvmpipe (LLVM 3.8, 256 bits)
Unhandled exception in thread started by
sys.excepthook is missing
lost sys.stderr
Cjs-Message: JS LOG: About to start Cinnamon
Cjs-Message: JS LOG: ACTIVATING SOFTWARE RENDERING
St-Message: cogl npot texture sizes SUPPORTED
Cjs-Message: JS LOG: Cinnamon started at Tue Jan 10 2017 09:46:23 GMT+0100 (CET)
Cjs-Message: JS LOG: network applet: Cannot find connection for active (or connection cannot be read)
openGL version 3.3 detected (GL3 Cogl Driver)
MetaSyncRing disabled: couldn't find required GL extensions, or the minimum safe openGL version was not met
Cjs-Message: JS LOG: Invalid network device type, is 14
Cjs-Message: JS LOG: network applet: Found connection for active
Cjs-Message: JS LOG: Removing an access point that was never added
mintUpdate: no process found
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Window manager warning: Log level 8: meta_window_move_resize: assertion '!window->override_redirect' failed
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
jlcano@jlcano ~ $ sudo lshw -c video
[sudo] password for jlcano:
*-display
description: VGA compatible controller
product: Broadwell-U Integrated Graphics
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:45 memory:f0000000-f0ffffff memory:e0000000-efffffff ioport:3000(size=64)
编辑sensors
经过一整天的使用后的输出:
jlcano@jlcano ~ $ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +85.0°C (crit = +107.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +49.0°C (high = +105.0°C, crit = +105.0°C)
Core 0: +49.0°C (high = +105.0°C, crit = +105.0°C)
Core 1: +49.0°C (high = +105.0°C, crit = +105.0°C)
编辑来自 OP 删除的答案“仅设置外接显示器并禁用笔记本电脑屏幕确实有效。”
答案1
根据您的传感器输出:
Sensors: System Temperatures: cpu: 75.0C mobo: N/A
Fan Speeds (in rpm): cpu: N/A
如果这些信息准确的话,我会说你的 CPU 过热并且降频以试图保护自己,从而导致你在进入终端和重新启动 X 时遇到延迟。据我所知Broadwell-U 系列并非设计用于在这些温度下运行并可能因过热而损坏。根本原因可能是风扇旋转不足导致冷却不足。
如果没有相关硬件,我无法确定您提供的传感器输出是否准确。但是,如果准确,则令人担忧的原因和应立即解决。
由于 Broadwell-U 系列具有集成显卡,过热导致的故障可能是您遇到的图形问题的原因。