![拔掉充电器后 Ubuntu 16.04 突然断电](https://linux22.com/image/894786/%E6%8B%94%E6%8E%89%E5%85%85%E7%94%B5%E5%99%A8%E5%90%8E%20Ubuntu%2016.04%20%E7%AA%81%E7%84%B6%E6%96%AD%E7%94%B5.png)
我有一台最近刚买的戴尔 Inspiron 7560。我在其上安装了 Windows 和 Ubuntu Mate 16.04 双启动系统。
拔掉充电器几秒钟后,Ubuntu 突然关机(其他时候不会发生这种情况)。笔记本电脑是新的,电池也是新的,所以我看不出发生这种情况的任何原因。
grep -i temp /var/log/syslog*
以下是寻求帮助的输出。
/var/log/syslog:Jul 12 02:59:14 ubuntu systemd[1]: Starting Cleanup of Temporary Directories...
/var/log/syslog:Jul 12 02:59:15 ubuntu systemd[1]: Started Cleanup of Temporary Directories.
/var/log/syslog:Jul 13 00:38:51 ubuntu systemd[1]: Started Daily Cleanup of Temporary Directories.
/var/log/syslog:Jul 13 00:38:53 ubuntu sensors[971]: coretemp-isa-0000
/var/log/syslog:Jul 13 00:38:53 ubuntu sensors[971]: temp1: +25.0°C (crit = +107.0°C)
/var/log/syslog:Jul 13 00:38:53 ubuntu sensors[971]: temp1: +36.5°C
/var/log/syslog:Jul 13 00:39:08 ubuntu systemd[1]: Starting LSB: disk temperature monitoring daemon...
/var/log/syslog:Jul 13 00:39:08 ubuntu systemd[1]: Started LSB: disk temperature monitoring daemon.
/var/log/syslog.1:Jul 10 00:56:47 ubuntu systemd[1]: Starting Cleanup of Temporary Directories...
/var/log/syslog.1:Jul 10 00:56:47 ubuntu systemd[1]: Started Cleanup of Temporary Directories.
/var/log/syslog.1:Jul 10 01:08:01 ubuntu systemd[1]: Started Daily Cleanup of Temporary Directories.
/var/log/syslog.1:Jul 10 01:08:10 ubuntu systemd[1]: Starting LSB: disk temperature monitoring daemon...
/var/log/syslog.1:Jul 10 01:08:11 ubuntu systemd[1]: Started LSB: disk temperature monitoring daemon.
/var/log/syslog.1:Jul 10 01:08:14 ubuntu ntpd[1060]: error resolving pool 0.ubuntu.pool.ntp.org: Temporary failure in name resolution (-3)
/var/log/syslog.1:Jul 10 01:08:15 ubuntu ntpd[1060]: error resolving pool 1.ubuntu.pool.ntp.org: Temporary failure in name resolution (-3)
/var/log/syslog.1:Jul 10 01:08:16 ubuntu ntpd[1060]: error resolving pool 2.ubuntu.pool.ntp.org: Temporary failure in name resolution (-3)
/var/log/syslog.1:Jul 10 01:08:17 ubuntu ntpd[1060]: error resolving pool 3.ubuntu.pool.ntp.org: Temporary failure in name resolution (-3)
/var/log/syslog.1:Jul 10 01:08:18 ubuntu ntpd[1060]: error resolving pool ntp.ubuntu.com: Temporary failure in name resolution (-3)
/var/log/syslog.1:Jul 10 01:16:40 ubuntu systemd[1]: Stopped Daily Cleanup of Temporary Directories.
/var/log/syslog.1:Jul 10 01:17:45 ubuntu systemd[1]: Started Daily Cleanup of Temporary Directories.
/var/log/syslog.1:Jul 10 01:18:00 ubuntu systemd[1]: Starting LSB: disk temperature monitoring daemon...
/var/log/syslog.1:Jul 10 01:18:00 ubuntu systemd[1]: Started LSB: disk temperature monitoring daemon.
/var/log/syslog.1:Jul 10 01:28:40 ubuntu systemd[1]: Stopped Daily Cleanup of Temporary Directories.
/var/log/syslog.1:Jul 10 01:29:34 ubuntu systemd[1]: Started Daily Cleanup of Temporary Directories.
/var/log/syslog.1:Jul 10 01:29:34 ubuntu sensors[929]: coretemp-isa-0000
/var/log/syslog.1:Jul 10 01:29:34 ubuntu sensors[929]: temp1: +25.0°C (crit = +107.0°C)
/var/log/syslog.1:Jul 10 01:29:34 ubuntu sensors[929]: temp1: +45.0°C
/var/log/syslog.1:Jul 10 01:29:45 ubuntu systemd[1]: Starting LSB: disk temperature monitoring daemon...
/var/log/syslog.1:Jul 10 01:29:46 ubuntu systemd[1]: Started LSB: disk temperature monitoring daemon.
/var/log/syslog.1:Jul 10 01:43:03 ubuntu systemd[1]: Stopped Daily Cleanup of Temporary Directories.
/var/log/syslog.1:Jul 10 09:57:58 ubuntu systemd[1]: Started Daily Cleanup of Temporary Directories.
/var/log/syslog.1:Jul 10 09:57:58 ubuntu sensors[934]: coretemp-isa-0000
/var/log/syslog.1:Jul 10 09:57:58 ubuntu sensors[934]: temp1: +25.0°C (crit = +107.0°C)
/var/log/syslog.1:Jul 10 09:57:58 ubuntu sensors[934]: temp1: +35.0°C
/var/log/syslog.1:Jul 10 09:58:12 ubuntu systemd[1]: Starting LSB: disk temperature monitoring daemon...
/var/log/syslog.1:Jul 10 09:58:12 ubuntu systemd[1]: Started LSB: disk temperature monitoring daemon.
/var/log/syslog.1:Jul 10 10:12:34 ubuntu systemd[1]: Starting Cleanup of Temporary Directories...
/var/log/syslog.1:Jul 10 10:12:34 ubuntu systemd[1]: Started Cleanup of Temporary Directories.
/var/log/syslog.1:Jul 12 08:14:16 ubuntu systemd[1]: Started Daily Cleanup of Temporary Directories.
/var/log/syslog.1:Jul 12 08:14:18 ubuntu sensors[985]: coretemp-isa-0000
/var/log/syslog.1:Jul 12 08:14:18 ubuntu sensors[985]: temp1: +25.0°C (crit = +107.0°C)
/var/log/syslog.1:Jul 12 08:14:18 ubuntu sensors[985]: temp1: +34.5°C
/var/log/syslog.1:Jul 12 08:14:32 ubuntu systemd[1]: Starting LSB: disk temperature monitoring daemon...
/var/log/syslog.1:Jul 12 08:14:33 ubuntu systemd[1]: Started LSB: disk temperature monitoring daemon.
答案1
我已经(至少现在)设法解决了这个问题。
据我所知,问题是由于 Ubuntu 使用集成英特尔 GPU 而不是 Nvidia GPU 造成的。
清除硬盘并重新安装 Ubuntu 后,我安装了 Nvidia 专有驱动程序,然后Nvidia X Settings/PRIME Profiles
切换到 Nvidia GPU。问题不再出现(切换到 Intel GPU 后又会出现)。
更新:显然,问题没有解决。它仍然会断电,即使我没有插拔任何东西,它也会断电。