我的电脑在最近一段时间出现了挂起后无法唤醒的问题,无论是空闲时自动挂起还是手动挂起都会这样。
日志在挂起后就停止记录了,尝试唤醒(点击鼠标和键盘、合盖后开盖)的过程中没有产生任何日志,最后只能强制重启。
suspend.log (6.5 KB)
我看了论坛中的一些相似的帖子,但它们大多都没有答案。另外wiki上说可能是 nvidiafb 的问题,但是 mkinitcpio -M 显示我并没有安装这个模块。请问我该如何继续排查下去?谢谢。
我的电脑在最近一段时间出现了挂起后无法唤醒的问题,无论是空闲时自动挂起还是手动挂起都会这样。
日志在挂起后就停止记录了,尝试唤醒(点击鼠标和键盘、合盖后开盖)的过程中没有产生任何日志,最后只能强制重启。
suspend.log (6.5 KB)
我看了论坛中的一些相似的帖子,但它们大多都没有答案。另外wiki上说可能是 nvidiafb 的问题,但是 mkinitcpio -M 显示我并没有安装这个模块。请问我该如何继续排查下去?谢谢。
Jul 13 17:08:37 triplecamera systemd-sleep[5469]: User sessions remain unfrozen on explicit request ($SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=0).
是没见过的日志呢。
搜了一下,看起来是你自己设置的。那你不设置这个环境变量会有什么问题吗?
我并没有设置这个环境变量。
但是改为 true 以后问题就解决了,非常奇怪。
### Editing /etc/systemd/system/systemd-suspend.service.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file
[Service]
Environment=SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=true
### Edits below this comment will be discarded
### /usr/lib/systemd/system/systemd-suspend.service
# # SPDX-License-Identifier: LGPL-2.1-or-later
# #
# # This file is part of systemd.
# #
# # systemd is free software; you can redistribute it and/or modify it
# # under the terms of the GNU Lesser General Public License as published by
# # the Free Software Foundation; either version 2.1 of the License, or
# # (at your option) any later version.
#
# [Unit]
# Description=System Suspend
# Documentation=man:systemd-suspend.service(8)
# DefaultDependencies=no
# Requires=sleep.target
# After=sleep.target
#
# [Service]
# Type=oneshot
# ExecStart=/usr/lib/systemd/systemd-sleep suspend
### /usr/lib/systemd/system/systemd-suspend.service.d/10-nvidia-no-freeze-session.conf
# [Service]
# Environment="SYSTEMD_SLEEP_FREEZE_USER_SESSIONS=false"
另外修改环境变量的时候有提示是 /usr/lib/systemd/system/systemd-suspend.service.d/10-nvidia-no-freeze-session.conf 这个文件设置的 false,而这个文件是 nvidia-utils 提供的。
不管怎样,问题算是解决了,感谢依云大佬。
好奇怪,怎么还有不冻结 user session 反而不能唤醒的事情,之前听说的都是反过来的,比如 FUSE 进程被冻结导致卡死之类的