有时当我关闭时,它会挂在消息 处[failed] failed to start daemon for power management
。我查看了这个问题是否在 20.04 或更高版本中发生过。但我没有找到它。我有一个额外的内置 SSD,它被视为/share
。我有 2 个 SSD 2TB/dev/sda
和/dev/sdb
。
我已尝试过sudo apt install systemd:amd64 systemd-timesyncd:amd64
但它们已经是最新的了。
我不知道该如何预防这种情况。我应该怎么做?
答案1
我在华硕 Aspire 5332 笔记本电脑上使用 20.10 时可能遇到同样的问题。开机自检一两秒后,磁盘活动停止。我找到了几个解决方案:
- 如果我取出电池并使用主电源运行笔记本电脑,笔记本电脑可以正常启动 - 这违背了拥有移动设备的意义!
- 盯着空白的屏幕 5 分钟后,我按下了 Ctrl-C,这(巧合吗?)重新启动了。
我猜想发生的事情比眼前看到的要多得多,但这远远超出了我的工资等级 :-/
“重要”日志显示 org.bluez 已超时,但如果我查看 9:43:12 发生的情况……
9:48:39 AM dbus-update-act: dbus-update-activation-environment: setting XAUTHORITY=/run/user/1000/gdm/Xauthority
9:48:39 AM systemd: Started Daemon for power management.
9:48:39 AM dbus-daemon: [system] Successfully activated service 'org.freedesktop.UPower'
9:48:39 AM xhost: localuser:sash being added to access control list
9:48:38 AM systemd: Started Tracker metadata extractor.
9:48:38 AM Xsession: /etc/gdm3/Xsession: Beginning session setup...
9:48:38 AM Xorg: (II) This device may have been added with another device file.
9:48:38 AM systemd-timesyn: Initial synchronization to time server 91.189.91.157:123 (ntp.ubuntu.com).
9:43:12 AM systemd: Starting Daemon for power management...
9:43:12 AM dbus-daemon: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service' requested by ':1.38' (uid=1000 pid=847 comm="/usr/libexec/tracker-miner-fs " label="unconfined")
9:43:12 AM systemd: Started Virtual filesystem service - Media Transfer Protocol monitor.
9:43:12 AM dbus-daemon: [session uid=1000 pid=881] Successfully activated service 'org.gtk.vfs.MTPVolumeMonitor'
9:43:12 AM systemd: Starting Virtual filesystem service - Media Transfer Protocol monitor...
9:43:12 AM dbus-daemon: [session uid=1000 pid=881] Activating via systemd: service name='org.gtk.vfs.MTPVolumeMonitor'
和
$ systemctl status upower.service
● upower.service - Daemon for power management
Loaded: loaded (/lib/systemd/system/upower.service; disabled; vendor prese>
Active: active (running) since Sat 2021-10-16 09:48:39 BST; 51min ago
Docs: man:upowerd(8)
Main PID: 962 (upowerd)
Tasks: 3 (limit: 3430)
Memory: 2.4M
CGroup: /system.slice/upower.service
└─962 /usr/libexec/upowerd
Oct 16 09:43:12 SASH-Laptop systemd[1]: Starting Daemon for power management...
Oct 16 09:48:39 SASH-Laptop systemd[1]: Started Daemon for power management.
lines 1-12/12 (END)