我遇到了一个问题,我的笔记本电脑会随机关闭屏幕或将我注销。从 /var/log/auth.log 看来,系统认为盖子已关闭:
Sep 15 09:36:44 michael-Latitude-7280 systemd-logind[648]: Power key pressed.
Sep 15 09:36:46 michael-Latitude-7280 systemd-logind[648]: System is rebooting.
Sep 15 09:38:42 michael-Latitude-7280 systemd-logind[649]: New seat seat0.
Sep 15 09:38:42 michael-Latitude-7280 systemd-logind[649]: Watching system buttons on /dev/input/event3 (Power Button)
Sep 15 09:38:42 michael-Latitude-7280 systemd-logind[649]: Watching system buttons on /dev/input/event1 (Power Button)
Sep 15 09:38:42 michael-Latitude-7280 systemd-logind[649]: Watching system buttons on /dev/input/event0 (Lid Switch)
Sep 15 09:38:42 michael-Latitude-7280 systemd-logind[649]: Watching system buttons on /dev/input/event2 (Sleep Button)
Sep 15 09:38:42 michael-Latitude-7280 systemd-logind[649]: Watching system buttons on /dev/input/event7 (Intel HID events)
Sep 15 09:38:42 michael-Latitude-7280 systemd-logind[649]: Watching system buttons on /dev/input/event8 (Intel HID 5 button array)
Sep 15 09:38:42 michael-Latitude-7280 systemd-logind[649]: Watching system buttons on /dev/input/event4 (AT Translated Set 2 keyboard)
Sep 15 09:38:42 michael-Latitude-7280 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session opened for user gdm by (uid=0)
Sep 15 09:38:42 michael-Latitude-7280 systemd-logind[649]: New session c1 of user gdm.
Sep 15 09:38:42 michael-Latitude-7280 systemd: pam_unix(systemd-user:session): session opened for user gdm by (uid=0)
Sep 15 09:38:45 michael-Latitude-7280 polkitd(authority=local): Registered Authentication Agent for unix-session:c1 (system bus name :1.33 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Sep 15 09:38:51 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:38:54 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:38:54 michael-Latitude-7280 gdm-password]: gkr-pam: unable to locate daemon control file
Sep 15 09:38:54 michael-Latitude-7280 gdm-password]: gkr-pam: stashed password to try later in open session
Sep 15 09:38:54 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:session): session opened for user michael by (uid=0)
Sep 15 09:38:54 michael-Latitude-7280 systemd-logind[649]: New session 2 of user michael.
Sep 15 09:38:54 michael-Latitude-7280 systemd: pam_unix(systemd-user:session): session opened for user michael by (uid=0)
Sep 15 09:38:54 michael-Latitude-7280 gdm-password]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring
Sep 15 09:38:55 michael-Latitude-7280 gnome-keyring-daemon[1866]: The Secret Service was already initialized
Sep 15 09:38:55 michael-Latitude-7280 gnome-keyring-daemon[1866]: The PKCS#11 component was already initialized
Sep 15 09:38:57 michael-Latitude-7280 polkitd(authority=local): Registered Authentication Agent for unix-session:2 (system bus name :1.82 [/usr/bin/gnome-shell], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Sep 15 09:39:00 michael-Latitude-7280 gdm-launch-environment]: pam_unix(gdm-launch-environment:session): session closed for user gdm
Sep 15 09:39:00 michael-Latitude-7280 systemd-logind[649]: Session c1 logged out. Waiting for processes to exit.
Sep 15 09:39:00 michael-Latitude-7280 systemd-logind[649]: Removed session c1.
Sep 15 09:39:00 michael-Latitude-7280 polkitd(authority=local): Unregistered Authentication Agent for unix-session:c1 (system bus name :1.33, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Sep 15 09:39:03 michael-Latitude-7280 PackageKit: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
Sep 15 09:39:03 michael-Latitude-7280 PackageKit: uid 1000 obtained auth for org.freedesktop.packagekit.system-sources-refresh
Sep 15 09:39:59 michael-Latitude-7280 pkexec: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Sep 15 09:39:59 michael-Latitude-7280 pkexec[3600]: michael: Executing command [USER=root] [TTY=unknown] [CWD=/home/michael] [COMMAND=/usr/lib/update-notifier/package-system-locked]
Sep 15 09:40:15 michael-Latitude-7280 systemd-logind[649]: Lid closed.
Sep 15 09:40:15 michael-Latitude-7280 systemd-logind[649]: Suspending...
Sep 15 09:40:16 michael-Latitude-7280 systemd-logind[649]: Lid opened.
Sep 15 09:40:17 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:40:20 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): conversation failed
Sep 15 09:40:20 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): auth could not identify password for [michael]
Sep 15 09:40:25 michael-Latitude-7280 systemd-logind[649]: Operation 'sleep' finished.
Sep 15 09:40:27 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:40:29 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:40:29 michael-Latitude-7280 gdm-password]: gkr-pam: unlocked login keyring
Sep 15 09:40:38 michael-Latitude-7280 gnome-keyring-daemon[1866]: couldn't allocate secure memory to keep passwords and or keys from being written to the disk
Sep 15 09:40:38 michael-Latitude-7280 gnome-keyring-daemon[1866]: asked to register item /org/freedesktop/secrets/collection/login/11, but it's already registered
Sep 15 09:40:39 michael-Latitude-7280 gnome-keyring-daemon[1866]: asked to register item /org/freedesktop/secrets/collection/login/11, but it's already registered
Sep 15 09:41:04 michael-Latitude-7280 systemd-logind[649]: Lid closed.
Sep 15 09:41:04 michael-Latitude-7280 systemd-logind[649]: Suspending...
Sep 15 09:41:06 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:41:06 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): conversation failed
Sep 15 09:41:06 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): auth could not identify password for [michael]
Sep 15 09:41:12 michael-Latitude-7280 systemd-logind[649]: Lid opened.
Sep 15 09:41:13 michael-Latitude-7280 systemd-logind[649]: Operation 'sleep' finished.
Sep 15 09:41:15 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:41:17 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:41:17 michael-Latitude-7280 gdm-password]: gkr-pam: unlocked login keyring
Sep 15 09:41:20 michael-Latitude-7280 systemd-logind[649]: Lid closed.
Sep 15 09:41:21 michael-Latitude-7280 systemd-logind[649]: Lid opened.
Sep 15 09:43:49 michael-Latitude-7280 su: (to nobody) root on none
Sep 15 09:43:49 michael-Latitude-7280 su: pam_unix(su:session): session opened for user nobody by (uid=0)
Sep 15 09:43:49 michael-Latitude-7280 systemd: pam_unix(systemd-user:session): session opened for user nobody by (uid=0)
Sep 15 09:43:49 michael-Latitude-7280 su: pam_unix(su:session): session closed for user nobody
Sep 15 09:43:49 michael-Latitude-7280 su: (to nobody) root on none
Sep 15 09:43:49 michael-Latitude-7280 su: pam_unix(su:session): session opened for user nobody by (uid=0)
Sep 15 09:43:49 michael-Latitude-7280 su: pam_unix(su:session): session closed for user nobody
Sep 15 09:43:49 michael-Latitude-7280 su: (to nobody) root on none
Sep 15 09:43:49 michael-Latitude-7280 su: pam_unix(su:session): session opened for user nobody by (uid=0)
Sep 15 09:44:38 michael-Latitude-7280 su: pam_unix(su:session): session closed for user nobody
Sep 15 09:45:51 michael-Latitude-7280 systemd-logind[649]: Lid closed.
Sep 15 09:45:51 michael-Latitude-7280 systemd-logind[649]: Suspending...
Sep 15 09:45:52 michael-Latitude-7280 systemd-logind[649]: Lid opened.
Sep 15 09:45:53 michael-Latitude-7280 systemd-logind[649]: Lid closed.
Sep 15 09:45:53 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:45:53 michael-Latitude-7280 systemd-logind[649]: Lid opened.
Sep 15 09:45:56 michael-Latitude-7280 systemd-logind[649]: Lid closed.
Sep 15 09:45:56 michael-Latitude-7280 systemd-logind[649]: Lid opened.
Sep 15 09:45:57 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:45:57 michael-Latitude-7280 gdm-password]: gkr-pam: unlocked login keyring
Sep 15 09:46:08 michael-Latitude-7280 systemd-logind[649]: Operation 'sleep' finished.
Sep 15 09:47:21 michael-Latitude-7280 systemd-logind[649]: Lid closed.
Sep 15 09:47:21 michael-Latitude-7280 systemd-logind[649]: Suspending...
Sep 15 09:47:21 michael-Latitude-7280 systemd-logind[649]: Lid opened.
Sep 15 09:47:22 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:47:23 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): conversation failed
Sep 15 09:47:23 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): auth could not identify password for [michael]
Sep 15 09:47:33 michael-Latitude-7280 systemd-logind[649]: Operation 'sleep' finished.
Sep 15 09:47:34 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:47:35 michael-Latitude-7280 systemd-logind[649]: Lid closed.
Sep 15 09:47:35 michael-Latitude-7280 systemd-logind[649]: Lid opened.
Sep 15 09:47:37 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:47:37 michael-Latitude-7280 gdm-password]: gkr-pam: unlocked login keyring
Sep 15 09:47:41 michael-Latitude-7280 systemd-logind[649]: Lid closed.
Sep 15 09:47:42 michael-Latitude-7280 systemd-logind[649]: Lid opened.
Sep 15 09:48:19 michael-Latitude-7280 systemd-logind[649]: Lid closed.
Sep 15 09:48:19 michael-Latitude-7280 systemd-logind[649]: Suspending...
Sep 15 09:48:19 michael-Latitude-7280 systemd-logind[649]: Lid opened.
Sep 15 09:48:20 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:48:28 michael-Latitude-7280 systemd-logind[649]: Operation 'sleep' finished.
Sep 15 09:48:41 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:48:45 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:48:45 michael-Latitude-7280 gdm-password]: gkr-pam: unlocked login keyring
Sep 15 09:48:49 michael-Latitude-7280 sudo: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:48:53 michael-Latitude-7280 sudo: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:48:53 michael-Latitude-7280 sudo: pam_unix(sudo:auth): authentication failure; logname= uid=1000 euid=0 tty=/dev/pts/0 ruser=michael rhost= user=michael
Sep 15 09:48:55 michael-Latitude-7280 sudo: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:48:58 michael-Latitude-7280 sudo: pam_unix(sudo:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 09:48:58 michael-Latitude-7280 sudo: michael : TTY=pts/0 ; PWD=/var/log ; USER=root ; COMMAND=/usr/bin/gedit auth.log
Sep 15 09:48:58 michael-Latitude-7280 sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Sep 15 10:02:12 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
Sep 15 10:02:13 michael-Latitude-7280 gdm-password]: pam_unix(gdm-password:auth): Couldn't open /etc/securetty: No such file or directory
事件时间表:
-09:36:44 我手动重启了系统
-09:40:15 第一次笔记本电脑屏幕变黑和/或将我注销的事件
-09:40-09:45 一系列“崩溃”,我被注销,系统日志似乎认为笔记本电脑盖子已关闭。在此期间,我并没有实际移动盖子。
有人能从这个日志中找出可能导致问题的原因吗?或者我可以做些什么来进一步调查?
系统:
-Ubuntu 20.04.3 LTS,5.11.0-34-generic(至少在 5.11.0-27 的内核中也出现过这种情况)
-戴尔 Latitude 7280
其他观察:无论是否充电都会发生。打字时发生的频率似乎比使用鼠标时更高。
答案1
合盖传感器是掌托区域的磁性开关和屏幕边框顶部的磁铁。您的手腕上是否佩戴了某种磁铁或磁性元件?尝试在掌托区域周围移动一块小磁铁,看看问题是否已解决。此外,您可能想尝试静电放电(关闭电源,拔下交流电源,取出电池,按住电源按钮 30 秒,然后放回电池并再次插入交流电源并打开电源以测试是否有效)。