当我按下睡眠按钮或执行时sudo systemctl suspend
,屏幕会关闭,然后在锁定屏幕上重新打开。我尝试在 Google 上搜索此问题,但尚未找到解决方案。
以下是有关我的系统的一些详细信息
$ hostnamectl
Static hostname: testmachina403
Icon name: computer-desktop
Chassis: desktop 🖥
Machine ID: 2dabxxxxxxxxxxxxxxxxxxxxxxxxxxx
Boot ID: e22exxxxxxxxxxxxxxxxxxxxxxxxxxx
Operating System: Ubuntu 23.10
Kernel: Linux 6.5.0-35-generic
Architecture: x86-64
Hardware Vendor: Gigabyte Technology Co., Ltd.
Hardware Model: B550 GAMING X V2
Firmware Version: F14
Firmware Date: Tue 2022-01-04
$ uname -a
Linux testmachina403 6.5.0-35-generic #35-Ubuntu SMP PREEMPT_DYNAMIC Fri Apr 26 11:23:57 UTC 2024 x86_64
x86_64 x86_64 GNU/Linux
这是系统日志
$ cat -n /var/log/syslog | grep -A 10 -B 3 suspend
10965 2024-05-27T14:05:39.809052-05:00 testmachina403 systemd[1]: Reached target bluetooth.target - Bluetooth Support.
10966 2024-05-27T14:05:39.820408-05:00 testmachina403 systemd[1]: systemd-suspend.service: Deactivated successfully.
10967 2024-05-27T14:05:39.820592-05:00 testmachina403 systemd[1]: Finished systemd-suspend.service - System Suspend.
10968 2024-05-27T14:05:39.820976-05:00 testmachina403 systemd[1]: Stopped target sleep.target - Sleep.
10969 2024-05-27T14:05:39.821043-05:00 testmachina403 systemd[1]: Reached target suspend.target - Suspend.
10970 2024-05-27T14:05:39.822911-05:00 testmachina403 NetworkManager[905]: <info> [1716836739.8227] manager: sleep: wake requested (sleeping: yes enabled: yes)
10971 2024-05-27T14:05:39.822993-05:00 testmachina403 NetworkManager[905]: <info> [1716836739.8228] device (enp8s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
10972 2024-05-27T14:05:39.823191-05:00 testmachina403 ModemManager[916]: <info> [sleep-monitor-systemd] system is resuming
10973 2024-05-27T14:05:39.823247-05:00 testmachina403 systemd[1]: Starting grub-common.service - Record successful boot for GRUB...
10974 2024-05-27T14:05:39.823359-05:00 testmachina403 systemd[1]: Stopped target suspend.target - Suspend.
如果需要,我可以提供更多调试信息。
经过大量的故障排除,我找到了解决方案。我切换了
/proc/acpi/wakeup
文件中的每个实体,并确定了导致自动唤醒的组件。我编写了一个 systemd 服务以在每次启动时禁用它。该设备是 GPP0,它连接了以下设备。但我无法识别连接到此桥的是什么。
欢迎提供任何有关识别底层设备的帮助。