笔记本电脑突然关机

笔记本电脑突然关机

我正在使用 ubuntu 20.04,最近当我暂时不使用笔记本电脑时,我遇到了突然关机的问题。经过搜索,我在 var/log 文件中找到了这个问题

/var/log/syslog:Sep 15 14:03:14 vasi kernel: [28139.722294] amdgpu: [powerplay] can't get the mac of 5
/var/log/syslog:Sep 15 14:03:15 vasi systemd[1446]: Reached target Shutdown running GNOME Session.
/var/log/syslog:Sep 15 14:03:15 vasi systemd[1446]: Stopped target Shutdown running GNOME Session.
/var/log/syslog:Sep 15 14:03:15 vasi systemd[1446]: Started Restart DBus after GNOME Session shutdown.
/var/log/syslog:Sep 15 14:03:21 vasi kernel: [28145.962890] amdgpu: [powerplay] VI should always have 2 performance levels
/var/log/syslog:Sep 15 14:03:24 vasi systemd[1446]: Reached target Shutdown.
/var/log/syslog:Sep 15 14:04:04 vasi boltd[8632]: power: state located at: /run/boltd/power
/var/log/syslog:Sep 15 14:04:04 vasi boltd[8632]: power: force power support: yes
/var/log/syslog:Sep 15 14:04:04 vasi boltd[8632]: power: setting force_power to ON
/var/log/syslog:Sep 15 14:04:04 vasi boltd[8632]: power: state changed: supported/on
/var/log/syslog:Sep 15 14:04:04 vasi boltd[8632]: power: guard '1' for 'boltd' active
/var/log/syslog:Sep 15 14:04:07 vasi geoclue[7870]: Service not used for 60 seconds. Shutting down..
/var/log/syslog:Sep 15 14:04:09 vasi boltd[8632]: manager: acquired power guard '1'
/var/log/syslog:Sep 15 14:04:09 vasi boltd[8632]: power: guard '1' for 'boltd' deactivated
/var/log/syslog:Sep 15 14:04:09 vasi boltd[8632]: power: shutdown scheduled (T-20.00s)
/var/log/syslog:Sep 15 14:04:09 vasi boltd[8632]: power: state changed: supported/wait
/var/log/syslog:Sep 15 14:04:09 vasi boltd[8632]: power: state changed: supported/on
/var/log/syslog:Sep 15 14:04:09 vasi boltd[8632]: power: guard '2' for 'fwupd' active
/var/log/syslog:Sep 15 14:04:29 vasi boltd[8632]: power: got event for guard '2' (10)
/var/log/syslog:Sep 15 14:04:29 vasi boltd[8632]: power: guard '2' for 'fwupd' deactivated
/var/log/syslog:Sep 15 14:04:29 vasi boltd[8632]: power: shutdown scheduled (T-20.00s)
/var/log/syslog:Sep 15 14:04:29 vasi boltd[8632]: power: state changed: supported/wait
/var/log/syslog:Sep 15 14:04:49 vasi boltd[8632]: power: setting force_power to OFF
/var/log/syslog:Sep 15 14:04:49 vasi boltd[8632]: power: state changed: supported/off

某处显示已安排关机。这正常吗?或者任何应用程序出现故障或类似情况。指导我。

Sep 16 10:35:09 vasi systemd[1276]: at-spi-dbus-bus.service: Succeeded.
Sep 16 10:35:09 vasi systemd[1276]: [email protected]: Succeeded.
Sep 16 10:35:09 vasi systemd[1276]: Stopped GNOME Session Manager (session: gnome-login).
Sep 16 10:35:09 vasi systemd[1276]: Stopped target Tasks to be run before GNOME Session starts.
Sep 16 10:35:09 vasi systemd[1276]: Stopped target Session services which should run early before the graphical session is brought up.
Sep 16 10:35:09 vasi systemd[1276]: Reached target Shutdown running GNOME Session.
Sep 16 10:35:09 vasi systemd[1276]: Stopping Start gnome-keyring as SSH agent...
Sep 16 10:35:09 vasi systemd[1276]: Starting Restart DBus after GNOME Session shutdown...
Sep 16 10:35:09 vasi systemd[1276]: Stopped target Shutdown running GNOME Session.
Sep 16 10:35:09 vasi systemd[1276]: Started Restart DBus after GNOME Session shutdown.
Sep 16 10:34:53 vasi systemd[2286]: gnome-session-failed.target: Requested dependency OnFailure=gnome-session-shutdown.target ignored (target units cannot fail).

编辑无输出ls -al ~/.local/share/gnome-shell/extensions

ls -al /usr/share/gnome-shell/extensions/
total 20
drwxr-xr-x 5 root root 4096 Apr 23 13:05 .
drwxr-xr-x 7 root root 4096 Aug 20 06:36 ..
drwxr-xr-x 2 root root 4096 Aug 15 11:42 desktop-icons@csoriano
drwxr-xr-x 3 root root 4096 Apr 23 13:05 [email protected]
drwxr-xr-x 3 root root 4096 Aug 28 20:09 [email protected]

在此处输入图片描述

free -h
              total        used        free      shared  buff/cache   available
Mem:           31Gi       1.4Gi        27Gi       251Mi       2.0Gi        29Gi
Swap:         2.0Gi        59Mi       1.9Gi

答案1

来自评论和聊天...

我们确定笔记本电脑电池有问题。使用交流电,一切正常。

答案2

经过大量软件测试后,最终得出结论,电池是根本原因。应该先进行硬件测试 :(

相关内容