停机冻结

停机冻结

我的笔记本电脑无法关机,它显示已达到关机目标,但一直卡在那里。我不确定我做了什么改变。目前我必须使用电源按钮强制关机。

插电和拔电时都会发生这种情况。也许 5 个里面有 4 个总是冻结。不知道问题出在哪里

这是我的规格
我的笔记本电脑是联想 Yoga370

  • Gnome Ubuntu 16.04.5
  • 内核 4.15.0-39-通用 #42~16.04.1-Ubuntu SMP 2018 年 10 月 24 日星期三 17:09:54 UTC x86_64 x86_64 x86_64 GNU/Linux

我不知道如何调试,因为在冻结期间我无法做任何事情。我尝试在 systemd 中启用 debug-shell,但冻结时我无法访问 tty9,所以它毫无用处。

这是我在关机时从 syslog 获得的唯一日志,kern.log 也没有显示任何内容

Nov 15 18:45:02 firefox.desktop[4393]: [Parent 4393, Gecko_IOThread] WARNING: pipe error (47): Connection reset by peer: file /build/firefox-j7tNrI/firefox-63.0+build2/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 356
Nov 15 18:45:02 firefox.desktop[4393]: [Parent 4393, Gecko_IOThread] WARNING: pipe error (95): Connection reset by peer: file /build/firefox-j7tNrI/firefox-63.0+build2/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 356
Nov 15 18:45:02 firefox.desktop[4393]: [Parent 4393, Gecko_IOThread] WARNING: pipe error (143): Connection reset by peer: file /build/firefox-j7tNrI/firefox-63.0+build2/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 356
Nov 15 18:45:02 firefox.desktop[4393]: [Parent 4393, Gecko_IOThread] WARNING: pipe error (175): Connection reset by peer: file /build/firefox-j7tNrI/firefox-63.0+build2/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 356
Nov 15 18:45:11 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:45:11 gnome-session[2451]: This incident has been reported.
Nov 15 18:45:12 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:45:12 gnome-session[2451]: This incident has been reported.
Nov 15 18:45:31 bluetoothd[1105]: Terminating
Nov 15 18:45:31 systemd[1]: Stopping Bluetooth service...
Nov 15 18:45:31 systemd[1]: Stopped target Sound Card.
Nov 15 18:45:31 systemd[1]: Stopping Manage, Install and Generate Color Profiles...
Nov 15 18:45:31 systemd[1]: Stopping RealtimeKit Scheduling Policy Service...
Nov 15 18:45:31 systemd[1]: Stopping ACPI event daemon...
Nov 15 18:45:31 /usr/lib/gdm3/gdm-x-session[2859]: Resource temporarily unavailable: Resource temporarily unavailable
Nov 15 18:45:31 /usr/lib/gdm3/gdm-x-session[2859]: message repeated 12 times: [ Resource temporarily unavailable: Resource temporarily unavailable]
Nov 15 18:45:31 /usr/lib/gdm3/gdm-x-session[2859]: Permission denied: Permission denied
Nov 15 18:45:31 /usr/lib/gdm3/gdm-x-session[2859]: message repeated 35 times: [ Permission denied: Permission denied]
Nov 15 18:45:31 bluetoothd[1105]: Stopping SDP server
Nov 15 18:45:31 dockerd[1629]: time="2018-11-15T18:45:31.305453477+07:00" level=info msg="Processing signal 'terminated'"
Nov 15 18:45:31 gnome-session[2874]: gnome-session-binary[2874]: WARNING: Lost name on bus: org.gnome.SessionManager
Nov 15 18:45:31 gnome-session[2874]: gnome-session-binary[2874]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Nov 15 18:45:31 systemd[1]: Stopping Session 1 of user wiryono.
Nov 15 18:45:31 rsyslogd: [origin software="rsyslogd" swVersion="8.16.0" x-pid="1131" x-info="http://www.rsyslog.com"] exiting on signal 15.

我在启动时启用了 powertop --auto-tune,它已经运行了 1 年,然后突然发生这种情况。尝试禁用它,但问题仍然存在

我也在系统日志中看到很多红色消息,我不确定这是否相关

Nov 15 18:41:08 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:41:08 gnome-session[2451]: This incident has been reported.
Nov 15 18:41:16 firefox.desktop[4393]: [Parent 4393, Gecko_IOThread] WARNING: pipe error: Broken pipe: file /build/firefox-j7tNrI/firefox-63.0+build2/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 729
Nov 15 18:41:16 firefox.desktop[4393]: message repeated 6 times: [ [Parent 4393, Gecko_IOThread] WARNING: pipe error: Broken pipe: file /build/firefox-j7tNrI/firefox-63.0+build2/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 729]
Nov 15 18:41:28 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:41:28 gnome-session[2451]: This incident has been reported.
Nov 15 18:41:40 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:41:40 gnome-session[2451]: This incident has been reported.
Nov 15 18:41:41 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:41:41 gnome-session[2451]: This incident has been reported.
Nov 15 18:43:34 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:43:34 gnome-session[2451]: This incident has been reported.
Nov 15 18:43:35 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:43:35 gnome-session[2451]: This incident has been reported.
Nov 15 18:43:37 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:43:37 gnome-session[2451]: This incident has been reported.
Nov 15 18:43:37 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:43:37 gnome-session[2451]: This incident has been reported.
Nov 15 18:43:44 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:43:44 gnome-session[2451]: This incident has been reported.
Nov 15 18:43:45 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:43:45 gnome-session[2451]: This incident has been reported.
Nov 15 18:44:14 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:44:14 gnome-session[2451]: This incident has been reported.
Nov 15 18:44:15 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:44:15 gnome-session[2451]: This incident has been reported.
Nov 15 18:44:16 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:44:16 gnome-session[2451]: This incident has been reported.
Nov 15 18:44:16 gnome-session[2451]: Error executing command as another user: Not authorized
Nov 15 18:44:16 gnome-session[2451]: This incident has been reported.

有时我的 gnome 在登录时会冻结(键盘死机),不知道为什么……我最近也遇到了 USB 插入/拔出冻结的问题。论坛说尝试禁用此 gnome 扩展。

因此,目前我从 /usr/share/gnome-shell/extensions 和 .local/share/gnome-shell/extensions 中删除了所有扩展,这样就没有任何扩展在运行,似乎适用于 usb。但关机仍然是一个问题。

我记得在 14.04 或类似版本中我也遇到过这个问题,我相信强制关机会随着时间的推移损坏我的笔记本电脑电池

答案1

我检查了日志,可能是 snapd 导致的。目前禁用了所有 snapd 服务。关闭似乎没问题。

列出所有 snap 服务

systemctl list-unit-files | grep snap

尝试删除未使用的 snap 包,其中一个可能是原因,或者禁用并停止它。最后停止 snapd.socket。不要忘记尝试 daemon-reload

我这周会测试一下,回来报告

相关内容