B 站上也看到了的讨论:https://www.bilibili.com/video/BV1NA4m1j7gD/?vd_source=101a1f0fe5f77afff56091ff5e4836b9#reply207463423520
Win 下看触控板是走的 HID over I2C,微软自家的驱动。Linux 下(不论 XOrg 还是 Wayland),都直接识别不到触控板。
此外我的机器上 KDE on Wayland 合盖会关机。KDE on XOrg 没有这个问题。
==============
默认安装还有声卡找不到的问题,添加 /etc/modprobe.d/disable_dmic.conf:
options snd_hda_intel dmic_detect=0
ref. https://bbs.archlinux.org/viewtopic.php … 5#p1887925
后系统界面可以显示出声音相关选项,但仍然没有声音
=============
声卡问题已解决:安装 sof-firmware
=============
24/6/9 感谢 @ty2 触控板已解决
https://aur.archlinux.org/packages/goodix-gt7868q-dkms
最近编辑记录 xfzfflm (2024-06-09 18:45:35)
离线
Win 的设备管理器下可以查到设备的硬件 ID 是 GXTP5100。udevadm 可以在设备树中查到这个设备,但并没有正确识别为触控板。Ubuntu 的认证页可以查到这个设备 ID 用于 ThinkPad X13 Yoga https://ubuntu.com/certified/202305-31640/22.04%20LTS
离线
neofetch 中相关项目:
OS: Arch Linux x86_64
Host: 21LD ThinkBook 14 G6+ IMH
Kernel: 6.7.4-arch1-1
DE: Plasma 5.27.10
WM: KWin
CPU: Intel Ultra 7 155H (22) @ 4.400GHz
GPU: Intel Arc Graphics]
Memory: 4149MiB / 31700MiB
udevadm info -t 相关
│ ├─hid-multitouch
│ │ ┆ P: /bus/hid/drivers/hid-multitouch
│ │ ┆ M: hid-multitouch
│ │ ┆ U: drivers
│ │ ┆ E: DEVPATH=/bus/hid/drivers/hid-multitouch
│ │ ┆ E: SUBSYSTEM=drivers\
...
│ │ │ │ ├─GXTP5100:00
│ │ │ │ │ ┆ P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:32/GXTP5100:00
│ │ │ │ │ ┆ M: GXTP5100:00
│ │ │ │ │ ┆ R: 00
│ │ │ │ │ ┆ U: acpi
│ │ │ │ │ ┆ E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:32/GXTP5100:00
│ │ │ │ │ ┆ E: SUBSYSTEM=acpi
│ │ │ │ │ ┆ E: MODALIAS=acpi:GXTP5100:PNP0C50:
│ │ │ │ │ ┆ E: USEC_INITIALIZED=5338565
│ │ │ │ │ ┆ E: ID_VENDOR_FROM_DATABASE=The Linux Foundation
journalctl 中相关
Feb 15 16:47:33 Laptop kernel: hid-multitouch: probe of 0018:27C6:01E9.0007 failed with error -22
Feb 15 16:47:33 Laptop kernel: hid-multitouch 0018:27C6:01E9.0007: item 0 1 0 11 parsing failed
...
Feb 15 16:47:33 Laptop kernel: i2c i2c-13: Memory type 0x23 not supported yet, not instantiating SPD
Feb 15 16:47:33 Laptop kernel: i2c i2c-13: 2/2 memory slots populated (from DMI)
最近编辑记录 xfzfflm (2024-02-15 17:08:19)
离线
有后续吗
离线
合盖关机有可能是bios里面设置了合盖开机关机的选项
离线
合盖关机有可能是bios里面设置了合盖开机关机的选项
楼主倒是强调了只有 wayland 有这个问题,我觉得如果 systemctl suspend 能正常工作的话,就设置 logind.conf 中的行为为 ignore,然后使用 acpid 来管理合盖行为就可以了。。
离线
有后续吗
目前没有。。我等一等下一个版本的 kernel 更新再去试试
3/8 目前 linux 6.7.8 和 linux-lts 6.6.21 都还没解决驱动问题
最近编辑记录 xfzfflm (2024-03-08 23:51:33)
离线
ZX1209 说:合盖关机有可能是bios里面设置了合盖开机关机的选项
楼主倒是强调了只有 wayland 有这个问题,我觉得如果 systemctl suspend 能正常工作的话,就设置 logind.conf 中的行为为 ignore,然后使用 acpid 来管理合盖行为就可以了。。
试了下 wayland 下 systemctl suspend 确实正常,不过 Xorg 下 systemctl suspend 唤醒的时候会只有鼠标其他黑屏,来回切一下 tty 会正常。考虑到 fcitx 搜狗拼音现在在 wayland 下行为还不对,我还是保留 xorg 原状吧
离线
https://bbs.archlinux.org/viewtopic.php?id=273008
声音的部分部分解决了。。需要安装 sof-firmware
可以识别到声卡了,但每次都要到设置里来回切换一下声音输出
==========
https://bbs.archlinux.org/viewtopic.php?id=286811
清理掉所有 pulseaudio 相关包之后解决问题了
最近编辑记录 xfzfflm (2024-03-09 00:52:13)
离线
我的是thinkbook2024 锐龙版。安装的Ubuntu,内核更新到了6.8-rc7。其他一切正常,但是一合盖子就关机,修改了配置也没用
离线
ZX1209 说:合盖关机有可能是bios里面设置了合盖开机关机的选项
楼主倒是强调了只有 wayland 有这个问题,我觉得如果 systemctl suspend 能正常工作的话,就设置 logind.conf 中的行为为 ignore,然后使用 acpid 来管理合盖行为就可以了。。
我按你说的之后也没啥用,systemctl suspend是正常工作的。无论是wayland还是x11都还是会关机。我的系统是Ubuntu22.04,更新了6.8.rc7内核
离线
BRS5672023 说:ZX1209 说:合盖关机有可能是bios里面设置了合盖开机关机的选项
楼主倒是强调了只有 wayland 有这个问题,我觉得如果 systemctl suspend 能正常工作的话,就设置 logind.conf 中的行为为 ignore,然后使用 acpid 来管理合盖行为就可以了。。
我按你说的之后也没啥用,systemctl suspend是正常工作的。无论是wayland还是x11都还是会关机。我的系统是Ubuntu22.04,更新了6.8.rc7内核
你具体怎么操作的?看看合盖之后的 journal 输出是啥(比如运行下面的 code 然后合盖,重启之后检查 log)
journalctl -f &>>~/journal.log
还有就是,看看 mem_sleep 是啥
cat /sys/power/mem_sleep
最近编辑记录 BRS5672023 (2024-03-09 18:18:27)
离线
Knignt912 说:BRS5672023 说:ZX1209 说:合盖关机有可能是bios里面设置了合盖开机关机的选项
楼主倒是强调了只有 wayland 有这个问题,我觉得如果 systemctl suspend 能正常工作的话,就设置 logind.conf 中的行为为 ignore,然后使用 acpid 来管理合盖行为就可以了。。
我按你说的之后也没啥用,systemctl suspend是正常工作的。无论是wayland还是x11都还是会关机。我的系统是Ubuntu22.04,更新了6.8.rc7内核
你具体怎么操作的?看看合盖之后的 journal 输出是啥(比如运行下面的 code 然后合盖,重启之后检查 log)
journalctl -f &>>~/journal.log
还有就是,看看 mem_sleep 是啥
cat /sys/power/mem_sleep
你好,我的日志如下
3月 09 22:21:51 yyq systemd[1]: user@128.service: Deactivated successfully.
3月 09 22:21:51 yyq systemd[1]: Stopped User Manager for UID 128.
3月 09 22:21:51 yyq systemd[1]: Stopping User Runtime Directory /run/user/128...
3月 09 22:21:51 yyq systemd[1]: run-user-128.mount: Deactivated successfully.
3月 09 22:21:51 yyq systemd[1]: user-runtime-dir@128.service: Deactivated successfully.
3月 09 22:21:51 yyq systemd[1]: Stopped User Runtime Directory /run/user/128.
3月 09 22:21:51 yyq systemd[1]: Removed slice User Slice of UID 128.
3月 09 22:21:51 yyq systemd[1]: user-128.slice: Consumed 9.439s CPU time.
3月 09 22:21:52 yyq systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
3月 09 22:21:53 yyq systemd-timesyncd[602]: Timed out waiting for reply from 185.125.190.56:123 (ntp.ubuntu.com).
3月 09 22:21:56 yyq dbus-daemon[4133]: [session uid=1000 pid=4133] Activating via systemd: service name='org.freedesktop.Tracker3.Miner.Extract' unit='tracker-extract-3.service' requested by ':1.88' (uid=1000 pid=4851 comm="/usr/libexec/tracker-miner-fs-3 ")
3月 09 22:21:56 yyq systemd[4088]: Starting Tracker metadata extractor...
3月 09 22:21:56 yyq dbus-daemon[4133]: [session uid=1000 pid=4133] Successfully activated service 'org.freedesktop.Tracker3.Miner.Extract'
3月 09 22:21:56 yyq systemd[4088]: Started Tracker metadata extractor.
3月 09 22:21:56 yyq systemd-logind[826]: Lid closed.
3月 09 22:21:56 yyq systemd-logind[826]: Suspending...
3月 09 22:21:56 yyq ModemManager[868]: <info> [sleep-monitor-systemd] system is about to suspend
3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.6943] manager: sleep: sleep requested (sleeping: no enabled: yes)
3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.6945] device (enp2s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.7027] device (p2p-dev-wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.7028] manager: NetworkManager state is now ASLEEP
3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.7030] device (wlp4s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
3月 09 22:21:56 yyq dbus-daemon[719]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=720 comm="/usr/sbin/NetworkManager --no-daemon ")
3月 09 22:21:56 yyq systemd[1]: Starting Network Manager Script Dispatcher Service...
3月 09 22:21:56 yyq dbus-daemon[719]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
3月 09 22:21:56 yyq systemd[1]: Started Network Manager Script Dispatcher Service.
3月 09 22:21:56 yyq kernel: wlp4s0: deauthenticating from 52:33:f0:bd:67:ce by local choice (Reason: 3=DEAUTH_LEAVING)
3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DISCONNECTED bssid=52:33:f0:bd:67:ce reason=3 locally_generated=1
3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.0711] device (wlp4s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
3月 09 22:21:57 yyq avahi-daemon[714]: Withdrawing address record for fe80::b37c:d033:cc87:692a on wlp4s0.
3月 09 22:21:57 yyq avahi-daemon[714]: Leaving mDNS multicast group on interface wlp4s0.IPv6 with address fe80::b37c:d033:cc87:692a.
3月 09 22:21:57 yyq avahi-daemon[714]: Interface wlp4s0.IPv6 no longer relevant for mDNS.
3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1217] dhcp4 (wlp4s0): canceled DHCP transaction
3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1218] dhcp4 (wlp4s0): activation: beginning transaction (timeout in 45 seconds)
3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1218] dhcp4 (wlp4s0): state changed no lease
3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1222] dhcp6 (wlp4s0): canceled DHCP transaction
3月 09 22:21:57 yyq avahi-daemon[714]: Withdrawing address record for 192.168.2.61 on wlp4s0.
3月 09 22:21:57 yyq avahi-daemon[714]: Leaving mDNS multicast group on interface wlp4s0.IPv4 with address 192.168.2.61.
3月 09 22:21:57 yyq avahi-daemon[714]: Interface wlp4s0.IPv4 no longer relevant for mDNS.
3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1247] device (wlp4s0): supplicant interface state: completed -> disconnected
3月 09 22:21:57 yyq systemd-resolved[601]: wlp4s0: Bus client reset search domain list.
3月 09 22:21:57 yyq gnome-shell[4366]: An active wireless connection, in infrastructure mode, involves no access point?
3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1249] device (wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
3月 09 22:21:57 yyq systemd-resolved[601]: wlp4s0: Bus client set default route setting: no
3月 09 22:21:57 yyq systemd-resolved[601]: wlp4s0: Bus client reset DNS server list.
3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
3月 09 22:21:57 yyq wpa_supplicant[829]: nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0
然后第二条命令的输出是[s2idle],我在网上查询得知这个是s0睡眠,应该是没有问题的。
上面的日至是我在logind文件中设置合盖为suspend的,下面的日至是设置为ignore,并用acpid控制睡眠的日至
3月 09 22:32:20 yyq NetworkManager[699]: <info> [1709994740.0441] device (utun): state change: secondaries -> activated (reason 'none', sys-iface-state: 'external')
3月 09 22:32:20 yyq NetworkManager[699]: <info> [1709994740.0444] device (utun): Activation: successful, device activated.
3月 09 22:32:20 yyq systemd[1577]: Started Application launched by gsd-media-keys.
3月 09 22:32:21 yyq dbus-daemon[4238]: [session uid=1000 pid=4238] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.105' (uid=1000 pid=5316 comm="/usr/bin/gnome-terminal.real --wait ")
3月 09 22:32:21 yyq systemd[1577]: Created slice Slice /app/org.gnome.Terminal.
3月 09 22:32:21 yyq systemd[1577]: Starting GNOME Terminal Server...
3月 09 22:32:21 yyq dbus-daemon[4238]: [session uid=1000 pid=4238] Successfully activated service 'org.gnome.Terminal'
3月 09 22:32:21 yyq systemd[1577]: Started GNOME Terminal Server.
3月 09 22:32:22 yyq systemd[1577]: Started VTE child process 5381 launched by gnome-terminal-server process 5321.
3月 09 22:32:24 yyq gnome-keyring-daemon[4453]: asked to register item /org/freedesktop/secrets/collection/login/4, but it's already registered
3月 09 22:32:28 yyq nautilus[4707]: Could not delete '.meta.isrunning': 没有那个文件或目录
3月 09 22:32:28 yyq systemd-timesyncd[627]: Timed out waiting for reply from 185.125.190.57:123 (ntp.ubuntu.com).
3月 09 22:32:28 yyq systemd[1]: Stopping User Manager for UID 128...
3月 09 22:32:28 yyq systemd[3728]: Stopped target Main User Target.
3月 09 22:32:28 yyq systemd[3728]: Stopping D-Bus User Message Bus...
3月 09 22:32:28 yyq systemd[3728]: Stopping PipeWire Media Session Manager...
3月 09 22:32:28 yyq systemd[3728]: Stopping flatpak document portal service...
3月 09 22:32:28 yyq systemd[3728]: Stopping sandboxed app permission store...
3月 09 22:32:28 yyq systemd[3728]: Stopped D-Bus User Message Bus.
3月 09 22:32:28 yyq systemd[3728]: xdg-permission-store.service: Main process exited, code=exited, status=1/FAILURE
3月 09 22:32:28 yyq systemd[3728]: xdg-permission-store.service: Failed with result 'exit-code'.
3月 09 22:32:28 yyq systemd[3728]: Stopped sandboxed app permission store.
3月 09 22:32:28 yyq systemd[3728]: Stopped PipeWire Media Session Manager.
3月 09 22:32:28 yyq systemd[3728]: Stopping PipeWire Multimedia Service...
3月 09 22:32:28 yyq systemd[1]: run-user-128-doc.mount: Deactivated successfully.
3月 09 22:32:28 yyq systemd[3728]: Stopped PipeWire Multimedia Service.
3月 09 22:32:28 yyq systemd[3728]: xdg-document-portal.service: Main process exited, code=exited, status=20/n/a
3月 09 22:32:28 yyq systemd[3728]: xdg-document-portal.service: Failed with result 'exit-code'.
3月 09 22:32:28 yyq systemd[3728]: Stopped flatpak document portal service.
3月 09 22:32:28 yyq systemd[3728]: Removed slice User Core Session Slice.
3月 09 22:32:28 yyq systemd[3728]: Stopped target Basic System.
3月 09 22:32:28 yyq systemd[3728]: Stopped target Paths.
3月 09 22:32:28 yyq systemd[3728]: Stopped Pending report trigger for Ubuntu Report.
3月 09 22:32:28 yyq systemd[3728]: Stopped target Sockets.
3月 09 22:32:28 yyq systemd[3728]: Stopped target Timers.
3月 09 22:32:28 yyq systemd[3728]: Closed D-Bus User Message Bus Socket.
3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG network certificate management daemon.
3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent (ssh-agent emulation).
3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent and passphrase cache.
3月 09 22:32:28 yyq systemd[3728]: Closed PipeWire Multimedia System Socket.
3月 09 22:32:28 yyq systemd[3728]: Closed debconf communication socket.
3月 09 22:32:28 yyq systemd[3728]: Closed Sound System.
3月 09 22:32:28 yyq systemd[3728]: Closed REST API socket for snapd user session agent.
3月 09 22:32:28 yyq systemd[3728]: Closed Speech Dispatcher Socket.
3月 09 22:32:28 yyq systemd[3728]: Removed slice User Application Slice.
3月 09 22:32:28 yyq systemd[3728]: Reached target Shutdown.
3月 09 22:32:28 yyq systemd[3728]: Finished Exit the Session.
3月 09 22:32:28 yyq systemd[3728]: Reached target Exit the Session.
3月 09 22:32:28 yyq systemd[1]: user@128.service: Deactivated successfully.
3月 09 22:32:28 yyq systemd[1]: Stopped User Manager for UID 128.
3月 09 22:32:28 yyq systemd[1]: Stopping User Runtime Directory /run/user/128...
3月 09 22:32:28 yyq systemd[1]: run-user-128.mount: Deactivated successfully.
3月 09 22:32:28 yyq systemd[1]: user-runtime-dir@128.service: Deactivated successfully.
3月 09 22:32:28 yyq systemd[1]: Stopped User Runtime Directory /run/user/128.
3月 09 22:32:28 yyq systemd[1]: Removed slice User Slice of UID 128.
3月 09 22:32:28 yyq systemd[1]: user-128.slice: Consumed 3.539s CPU time.
3月 09 22:32:29 yyq systemd-logind[727]: Lid closed.
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0849] manager: sleep: sleep requested (sleeping: no enabled: yes)
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0850] device (enp2s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
3月 09 22:32:29 yyq ModemManager[772]: <info> [sleep-monitor-systemd] system is about to suspend
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0944] device (p2p-dev-wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0946] manager: NetworkManager state is now ASLEEP
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0947] device (wlp4s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
3月 09 22:32:29 yyq kernel: wlp4s0: deauthenticating from 52:33:f0:bd:67:ce by local choice (Reason: 3=DEAUTH_LEAVING)
3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DISCONNECTED bssid=52:33:f0:bd:67:ce reason=3 locally_generated=1
3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4107] device (wlp4s0): supplicant interface state: completed -> disconnected
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4108] device (wlp4s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
3月 09 22:32:29 yyq gnome-shell[4522]: An active wireless connection, in infrastructure mode, involves no access point?
3月 09 22:32:29 yyq avahi-daemon[693]: Withdrawing address record for fe80::b37c:d033:cc87:692a on wlp4s0.
3月 09 22:32:29 yyq avahi-daemon[693]: Leaving mDNS multicast group on interface wlp4s0.IPv6 with address fe80::b37c:d033:cc87:692a.
3月 09 22:32:29 yyq avahi-daemon[693]: Interface wlp4s0.IPv6 no longer relevant for mDNS.
3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4419] dhcp4 (wlp4s0): canceled DHCP transaction
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4419] dhcp4 (wlp4s0): activation: beginning transaction (timeout in 45 seconds)
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4420] dhcp4 (wlp4s0): state changed no lease
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4422] dhcp6 (wlp4s0): canceled DHCP transaction
3月 09 22:32:29 yyq avahi-daemon[693]: Withdrawing address record for 192.168.2.61 on wlp4s0.
3月 09 22:32:29 yyq avahi-daemon[693]: Leaving mDNS multicast group on interface wlp4s0.IPv4 with address 192.168.2.61.
3月 09 22:32:29 yyq avahi-daemon[693]: Interface wlp4s0.IPv4 no longer relevant for mDNS.
3月 09 22:32:29 yyq systemd-resolved[626]: wlp4s0: Bus client reset search domain list.
3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4437] device (wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
3月 09 22:32:29 yyq systemd-resolved[626]: wlp4s0: Bus client set default route setting: no
3月 09 22:32:29 yyq systemd-resolved[626]: wlp4s0: Bus client reset DNS server list.
3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all
3月 09 22:32:29 yyq wpa_supplicant[730]: nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0
通过查询chatgpt,说这两个日志都显示系统进入了睡眠,然后实际上电脑关机了
最近编辑记录 Knignt912 (2024-03-09 22:37:11)
离线
BRS5672023 说:Knignt912 说:BRS5672023 说:ZX1209 说:合盖关机有可能是bios里面设置了合盖开机关机的选项
楼主倒是强调了只有 wayland 有这个问题,我觉得如果 systemctl suspend 能正常工作的话,就设置 logind.conf 中的行为为 ignore,然后使用 acpid 来管理合盖行为就可以了。。
我按你说的之后也没啥用,systemctl suspend是正常工作的。无论是wayland还是x11都还是会关机。我的系统是Ubuntu22.04,更新了6.8.rc7内核
你具体怎么操作的?看看合盖之后的 journal 输出是啥(比如运行下面的 code 然后合盖,重启之后检查 log)
journalctl -f &>>~/journal.log
还有就是,看看 mem_sleep 是啥
cat /sys/power/mem_sleep
你好,我的日志如下
3月 09 22:21:51 yyq systemd[1]: user@128.service: Deactivated successfully. 3月 09 22:21:51 yyq systemd[1]: Stopped User Manager for UID 128. 3月 09 22:21:51 yyq systemd[1]: Stopping User Runtime Directory /run/user/128... 3月 09 22:21:51 yyq systemd[1]: run-user-128.mount: Deactivated successfully. 3月 09 22:21:51 yyq systemd[1]: user-runtime-dir@128.service: Deactivated successfully. 3月 09 22:21:51 yyq systemd[1]: Stopped User Runtime Directory /run/user/128. 3月 09 22:21:51 yyq systemd[1]: Removed slice User Slice of UID 128. 3月 09 22:21:51 yyq systemd[1]: user-128.slice: Consumed 9.439s CPU time. 3月 09 22:21:52 yyq systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully. 3月 09 22:21:53 yyq systemd-timesyncd[602]: Timed out waiting for reply from 185.125.190.56:123 (ntp.ubuntu.com). 3月 09 22:21:56 yyq dbus-daemon[4133]: [session uid=1000 pid=4133] Activating via systemd: service name='org.freedesktop.Tracker3.Miner.Extract' unit='tracker-extract-3.service' requested by ':1.88' (uid=1000 pid=4851 comm="/usr/libexec/tracker-miner-fs-3 ") 3月 09 22:21:56 yyq systemd[4088]: Starting Tracker metadata extractor... 3月 09 22:21:56 yyq dbus-daemon[4133]: [session uid=1000 pid=4133] Successfully activated service 'org.freedesktop.Tracker3.Miner.Extract' 3月 09 22:21:56 yyq systemd[4088]: Started Tracker metadata extractor. 3月 09 22:21:56 yyq systemd-logind[826]: Lid closed. 3月 09 22:21:56 yyq systemd-logind[826]: Suspending... 3月 09 22:21:56 yyq ModemManager[868]: <info> [sleep-monitor-systemd] system is about to suspend 3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.6943] manager: sleep: sleep requested (sleeping: no enabled: yes) 3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.6945] device (enp2s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.7027] device (p2p-dev-wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.7028] manager: NetworkManager state is now ASLEEP 3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.7030] device (wlp4s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:21:56 yyq dbus-daemon[719]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=720 comm="/usr/sbin/NetworkManager --no-daemon ") 3月 09 22:21:56 yyq systemd[1]: Starting Network Manager Script Dispatcher Service... 3月 09 22:21:56 yyq dbus-daemon[719]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' 3月 09 22:21:56 yyq systemd[1]: Started Network Manager Script Dispatcher Service. 3月 09 22:21:56 yyq kernel: wlp4s0: deauthenticating from 52:33:f0:bd:67:ce by local choice (Reason: 3=DEAUTH_LEAVING) 3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DISCONNECTED bssid=52:33:f0:bd:67:ce reason=3 locally_generated=1 3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.0711] device (wlp4s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:21:57 yyq avahi-daemon[714]: Withdrawing address record for fe80::b37c:d033:cc87:692a on wlp4s0. 3月 09 22:21:57 yyq avahi-daemon[714]: Leaving mDNS multicast group on interface wlp4s0.IPv6 with address fe80::b37c:d033:cc87:692a. 3月 09 22:21:57 yyq avahi-daemon[714]: Interface wlp4s0.IPv6 no longer relevant for mDNS. 3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1217] dhcp4 (wlp4s0): canceled DHCP transaction 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1218] dhcp4 (wlp4s0): activation: beginning transaction (timeout in 45 seconds) 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1218] dhcp4 (wlp4s0): state changed no lease 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1222] dhcp6 (wlp4s0): canceled DHCP transaction 3月 09 22:21:57 yyq avahi-daemon[714]: Withdrawing address record for 192.168.2.61 on wlp4s0. 3月 09 22:21:57 yyq avahi-daemon[714]: Leaving mDNS multicast group on interface wlp4s0.IPv4 with address 192.168.2.61. 3月 09 22:21:57 yyq avahi-daemon[714]: Interface wlp4s0.IPv4 no longer relevant for mDNS. 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1247] device (wlp4s0): supplicant interface state: completed -> disconnected 3月 09 22:21:57 yyq systemd-resolved[601]: wlp4s0: Bus client reset search domain list. 3月 09 22:21:57 yyq gnome-shell[4366]: An active wireless connection, in infrastructure mode, involves no access point? 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1249] device (wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:21:57 yyq systemd-resolved[601]: wlp4s0: Bus client set default route setting: no 3月 09 22:21:57 yyq systemd-resolved[601]: wlp4s0: Bus client reset DNS server list. 3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:21:57 yyq wpa_supplicant[829]: nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0
然后第二条命令的输出是[s2idle],我在网上查询得知这个是s0睡眠,应该是没有问题的。
上面的日至是我在logind文件中设置合盖为suspend的,下面的日至是设置为ignore,并用acpid控制睡眠的日至3月 09 22:32:20 yyq NetworkManager[699]: <info> [1709994740.0441] device (utun): state change: secondaries -> activated (reason 'none', sys-iface-state: 'external') 3月 09 22:32:20 yyq NetworkManager[699]: <info> [1709994740.0444] device (utun): Activation: successful, device activated. 3月 09 22:32:20 yyq systemd[1577]: Started Application launched by gsd-media-keys. 3月 09 22:32:21 yyq dbus-daemon[4238]: [session uid=1000 pid=4238] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.105' (uid=1000 pid=5316 comm="/usr/bin/gnome-terminal.real --wait ") 3月 09 22:32:21 yyq systemd[1577]: Created slice Slice /app/org.gnome.Terminal. 3月 09 22:32:21 yyq systemd[1577]: Starting GNOME Terminal Server... 3月 09 22:32:21 yyq dbus-daemon[4238]: [session uid=1000 pid=4238] Successfully activated service 'org.gnome.Terminal' 3月 09 22:32:21 yyq systemd[1577]: Started GNOME Terminal Server. 3月 09 22:32:22 yyq systemd[1577]: Started VTE child process 5381 launched by gnome-terminal-server process 5321. 3月 09 22:32:24 yyq gnome-keyring-daemon[4453]: asked to register item /org/freedesktop/secrets/collection/login/4, but it's already registered 3月 09 22:32:28 yyq nautilus[4707]: Could not delete '.meta.isrunning': 没有那个文件或目录 3月 09 22:32:28 yyq systemd-timesyncd[627]: Timed out waiting for reply from 185.125.190.57:123 (ntp.ubuntu.com). 3月 09 22:32:28 yyq systemd[1]: Stopping User Manager for UID 128... 3月 09 22:32:28 yyq systemd[3728]: Stopped target Main User Target. 3月 09 22:32:28 yyq systemd[3728]: Stopping D-Bus User Message Bus... 3月 09 22:32:28 yyq systemd[3728]: Stopping PipeWire Media Session Manager... 3月 09 22:32:28 yyq systemd[3728]: Stopping flatpak document portal service... 3月 09 22:32:28 yyq systemd[3728]: Stopping sandboxed app permission store... 3月 09 22:32:28 yyq systemd[3728]: Stopped D-Bus User Message Bus. 3月 09 22:32:28 yyq systemd[3728]: xdg-permission-store.service: Main process exited, code=exited, status=1/FAILURE 3月 09 22:32:28 yyq systemd[3728]: xdg-permission-store.service: Failed with result 'exit-code'. 3月 09 22:32:28 yyq systemd[3728]: Stopped sandboxed app permission store. 3月 09 22:32:28 yyq systemd[3728]: Stopped PipeWire Media Session Manager. 3月 09 22:32:28 yyq systemd[3728]: Stopping PipeWire Multimedia Service... 3月 09 22:32:28 yyq systemd[1]: run-user-128-doc.mount: Deactivated successfully. 3月 09 22:32:28 yyq systemd[3728]: Stopped PipeWire Multimedia Service. 3月 09 22:32:28 yyq systemd[3728]: xdg-document-portal.service: Main process exited, code=exited, status=20/n/a 3月 09 22:32:28 yyq systemd[3728]: xdg-document-portal.service: Failed with result 'exit-code'. 3月 09 22:32:28 yyq systemd[3728]: Stopped flatpak document portal service. 3月 09 22:32:28 yyq systemd[3728]: Removed slice User Core Session Slice. 3月 09 22:32:28 yyq systemd[3728]: Stopped target Basic System. 3月 09 22:32:28 yyq systemd[3728]: Stopped target Paths. 3月 09 22:32:28 yyq systemd[3728]: Stopped Pending report trigger for Ubuntu Report. 3月 09 22:32:28 yyq systemd[3728]: Stopped target Sockets. 3月 09 22:32:28 yyq systemd[3728]: Stopped target Timers. 3月 09 22:32:28 yyq systemd[3728]: Closed D-Bus User Message Bus Socket. 3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG network certificate management daemon. 3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers). 3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent and passphrase cache (restricted). 3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent (ssh-agent emulation). 3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent and passphrase cache. 3月 09 22:32:28 yyq systemd[3728]: Closed PipeWire Multimedia System Socket. 3月 09 22:32:28 yyq systemd[3728]: Closed debconf communication socket. 3月 09 22:32:28 yyq systemd[3728]: Closed Sound System. 3月 09 22:32:28 yyq systemd[3728]: Closed REST API socket for snapd user session agent. 3月 09 22:32:28 yyq systemd[3728]: Closed Speech Dispatcher Socket. 3月 09 22:32:28 yyq systemd[3728]: Removed slice User Application Slice. 3月 09 22:32:28 yyq systemd[3728]: Reached target Shutdown. 3月 09 22:32:28 yyq systemd[3728]: Finished Exit the Session. 3月 09 22:32:28 yyq systemd[3728]: Reached target Exit the Session. 3月 09 22:32:28 yyq systemd[1]: user@128.service: Deactivated successfully. 3月 09 22:32:28 yyq systemd[1]: Stopped User Manager for UID 128. 3月 09 22:32:28 yyq systemd[1]: Stopping User Runtime Directory /run/user/128... 3月 09 22:32:28 yyq systemd[1]: run-user-128.mount: Deactivated successfully. 3月 09 22:32:28 yyq systemd[1]: user-runtime-dir@128.service: Deactivated successfully. 3月 09 22:32:28 yyq systemd[1]: Stopped User Runtime Directory /run/user/128. 3月 09 22:32:28 yyq systemd[1]: Removed slice User Slice of UID 128. 3月 09 22:32:28 yyq systemd[1]: user-128.slice: Consumed 3.539s CPU time. 3月 09 22:32:29 yyq systemd-logind[727]: Lid closed. 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0849] manager: sleep: sleep requested (sleeping: no enabled: yes) 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0850] device (enp2s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:32:29 yyq ModemManager[772]: <info> [sleep-monitor-systemd] system is about to suspend 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0944] device (p2p-dev-wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0946] manager: NetworkManager state is now ASLEEP 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0947] device (wlp4s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:32:29 yyq kernel: wlp4s0: deauthenticating from 52:33:f0:bd:67:ce by local choice (Reason: 3=DEAUTH_LEAVING) 3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DISCONNECTED bssid=52:33:f0:bd:67:ce reason=3 locally_generated=1 3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4107] device (wlp4s0): supplicant interface state: completed -> disconnected 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4108] device (wlp4s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:32:29 yyq gnome-shell[4522]: An active wireless connection, in infrastructure mode, involves no access point? 3月 09 22:32:29 yyq avahi-daemon[693]: Withdrawing address record for fe80::b37c:d033:cc87:692a on wlp4s0. 3月 09 22:32:29 yyq avahi-daemon[693]: Leaving mDNS multicast group on interface wlp4s0.IPv6 with address fe80::b37c:d033:cc87:692a. 3月 09 22:32:29 yyq avahi-daemon[693]: Interface wlp4s0.IPv6 no longer relevant for mDNS. 3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4419] dhcp4 (wlp4s0): canceled DHCP transaction 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4419] dhcp4 (wlp4s0): activation: beginning transaction (timeout in 45 seconds) 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4420] dhcp4 (wlp4s0): state changed no lease 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4422] dhcp6 (wlp4s0): canceled DHCP transaction 3月 09 22:32:29 yyq avahi-daemon[693]: Withdrawing address record for 192.168.2.61 on wlp4s0. 3月 09 22:32:29 yyq avahi-daemon[693]: Leaving mDNS multicast group on interface wlp4s0.IPv4 with address 192.168.2.61. 3月 09 22:32:29 yyq avahi-daemon[693]: Interface wlp4s0.IPv4 no longer relevant for mDNS. 3月 09 22:32:29 yyq systemd-resolved[626]: wlp4s0: Bus client reset search domain list. 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4437] device (wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:32:29 yyq systemd-resolved[626]: wlp4s0: Bus client set default route setting: no 3月 09 22:32:29 yyq systemd-resolved[626]: wlp4s0: Bus client reset DNS server list. 3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:32:29 yyq wpa_supplicant[730]: nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0
通过查询chatgpt,说这两个日志都显示系统进入了睡眠,然后实际上电脑关机了
似乎第二部分的日志没看到 acpid 的内容?你启用了 acpid.service 这个服务了吗?(不过你在 logind 中设置行为为 ignore 仍然合盖关机的话那可能不是相关的原因了。。)
离线
Knignt912 说:BRS5672023 说:Knignt912 说:BRS5672023 说:ZX1209 说:合盖关机有可能是bios里面设置了合盖开机关机的选项
楼主倒是强调了只有 wayland 有这个问题,我觉得如果 systemctl suspend 能正常工作的话,就设置 logind.conf 中的行为为 ignore,然后使用 acpid 来管理合盖行为就可以了。。
我按你说的之后也没啥用,systemctl suspend是正常工作的。无论是wayland还是x11都还是会关机。我的系统是Ubuntu22.04,更新了6.8.rc7内核
你具体怎么操作的?看看合盖之后的 journal 输出是啥(比如运行下面的 code 然后合盖,重启之后检查 log)
journalctl -f &>>~/journal.log
还有就是,看看 mem_sleep 是啥
cat /sys/power/mem_sleep
你好,我的日志如下
3月 09 22:21:51 yyq systemd[1]: user@128.service: Deactivated successfully. 3月 09 22:21:51 yyq systemd[1]: Stopped User Manager for UID 128. 3月 09 22:21:51 yyq systemd[1]: Stopping User Runtime Directory /run/user/128... 3月 09 22:21:51 yyq systemd[1]: run-user-128.mount: Deactivated successfully. 3月 09 22:21:51 yyq systemd[1]: user-runtime-dir@128.service: Deactivated successfully. 3月 09 22:21:51 yyq systemd[1]: Stopped User Runtime Directory /run/user/128. 3月 09 22:21:51 yyq systemd[1]: Removed slice User Slice of UID 128. 3月 09 22:21:51 yyq systemd[1]: user-128.slice: Consumed 9.439s CPU time. 3月 09 22:21:52 yyq systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully. 3月 09 22:21:53 yyq systemd-timesyncd[602]: Timed out waiting for reply from 185.125.190.56:123 (ntp.ubuntu.com). 3月 09 22:21:56 yyq dbus-daemon[4133]: [session uid=1000 pid=4133] Activating via systemd: service name='org.freedesktop.Tracker3.Miner.Extract' unit='tracker-extract-3.service' requested by ':1.88' (uid=1000 pid=4851 comm="/usr/libexec/tracker-miner-fs-3 ") 3月 09 22:21:56 yyq systemd[4088]: Starting Tracker metadata extractor... 3月 09 22:21:56 yyq dbus-daemon[4133]: [session uid=1000 pid=4133] Successfully activated service 'org.freedesktop.Tracker3.Miner.Extract' 3月 09 22:21:56 yyq systemd[4088]: Started Tracker metadata extractor. 3月 09 22:21:56 yyq systemd-logind[826]: Lid closed. 3月 09 22:21:56 yyq systemd-logind[826]: Suspending... 3月 09 22:21:56 yyq ModemManager[868]: <info> [sleep-monitor-systemd] system is about to suspend 3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.6943] manager: sleep: sleep requested (sleeping: no enabled: yes) 3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.6945] device (enp2s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.7027] device (p2p-dev-wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.7028] manager: NetworkManager state is now ASLEEP 3月 09 22:21:56 yyq NetworkManager[720]: <info> [1709994116.7030] device (wlp4s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:21:56 yyq dbus-daemon[719]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=720 comm="/usr/sbin/NetworkManager --no-daemon ") 3月 09 22:21:56 yyq systemd[1]: Starting Network Manager Script Dispatcher Service... 3月 09 22:21:56 yyq dbus-daemon[719]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' 3月 09 22:21:56 yyq systemd[1]: Started Network Manager Script Dispatcher Service. 3月 09 22:21:56 yyq kernel: wlp4s0: deauthenticating from 52:33:f0:bd:67:ce by local choice (Reason: 3=DEAUTH_LEAVING) 3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DISCONNECTED bssid=52:33:f0:bd:67:ce reason=3 locally_generated=1 3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.0711] device (wlp4s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:21:57 yyq avahi-daemon[714]: Withdrawing address record for fe80::b37c:d033:cc87:692a on wlp4s0. 3月 09 22:21:57 yyq avahi-daemon[714]: Leaving mDNS multicast group on interface wlp4s0.IPv6 with address fe80::b37c:d033:cc87:692a. 3月 09 22:21:57 yyq avahi-daemon[714]: Interface wlp4s0.IPv6 no longer relevant for mDNS. 3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1217] dhcp4 (wlp4s0): canceled DHCP transaction 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1218] dhcp4 (wlp4s0): activation: beginning transaction (timeout in 45 seconds) 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1218] dhcp4 (wlp4s0): state changed no lease 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1222] dhcp6 (wlp4s0): canceled DHCP transaction 3月 09 22:21:57 yyq avahi-daemon[714]: Withdrawing address record for 192.168.2.61 on wlp4s0. 3月 09 22:21:57 yyq avahi-daemon[714]: Leaving mDNS multicast group on interface wlp4s0.IPv4 with address 192.168.2.61. 3月 09 22:21:57 yyq avahi-daemon[714]: Interface wlp4s0.IPv4 no longer relevant for mDNS. 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1247] device (wlp4s0): supplicant interface state: completed -> disconnected 3月 09 22:21:57 yyq systemd-resolved[601]: wlp4s0: Bus client reset search domain list. 3月 09 22:21:57 yyq gnome-shell[4366]: An active wireless connection, in infrastructure mode, involves no access point? 3月 09 22:21:57 yyq NetworkManager[720]: <info> [1709994117.1249] device (wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:21:57 yyq systemd-resolved[601]: wlp4s0: Bus client set default route setting: no 3月 09 22:21:57 yyq systemd-resolved[601]: wlp4s0: Bus client reset DNS server list. 3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:21:57 yyq wpa_supplicant[829]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:21:57 yyq wpa_supplicant[829]: nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0
然后第二条命令的输出是[s2idle],我在网上查询得知这个是s0睡眠,应该是没有问题的。
上面的日至是我在logind文件中设置合盖为suspend的,下面的日至是设置为ignore,并用acpid控制睡眠的日至3月 09 22:32:20 yyq NetworkManager[699]: <info> [1709994740.0441] device (utun): state change: secondaries -> activated (reason 'none', sys-iface-state: 'external') 3月 09 22:32:20 yyq NetworkManager[699]: <info> [1709994740.0444] device (utun): Activation: successful, device activated. 3月 09 22:32:20 yyq systemd[1577]: Started Application launched by gsd-media-keys. 3月 09 22:32:21 yyq dbus-daemon[4238]: [session uid=1000 pid=4238] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.105' (uid=1000 pid=5316 comm="/usr/bin/gnome-terminal.real --wait ") 3月 09 22:32:21 yyq systemd[1577]: Created slice Slice /app/org.gnome.Terminal. 3月 09 22:32:21 yyq systemd[1577]: Starting GNOME Terminal Server... 3月 09 22:32:21 yyq dbus-daemon[4238]: [session uid=1000 pid=4238] Successfully activated service 'org.gnome.Terminal' 3月 09 22:32:21 yyq systemd[1577]: Started GNOME Terminal Server. 3月 09 22:32:22 yyq systemd[1577]: Started VTE child process 5381 launched by gnome-terminal-server process 5321. 3月 09 22:32:24 yyq gnome-keyring-daemon[4453]: asked to register item /org/freedesktop/secrets/collection/login/4, but it's already registered 3月 09 22:32:28 yyq nautilus[4707]: Could not delete '.meta.isrunning': 没有那个文件或目录 3月 09 22:32:28 yyq systemd-timesyncd[627]: Timed out waiting for reply from 185.125.190.57:123 (ntp.ubuntu.com). 3月 09 22:32:28 yyq systemd[1]: Stopping User Manager for UID 128... 3月 09 22:32:28 yyq systemd[3728]: Stopped target Main User Target. 3月 09 22:32:28 yyq systemd[3728]: Stopping D-Bus User Message Bus... 3月 09 22:32:28 yyq systemd[3728]: Stopping PipeWire Media Session Manager... 3月 09 22:32:28 yyq systemd[3728]: Stopping flatpak document portal service... 3月 09 22:32:28 yyq systemd[3728]: Stopping sandboxed app permission store... 3月 09 22:32:28 yyq systemd[3728]: Stopped D-Bus User Message Bus. 3月 09 22:32:28 yyq systemd[3728]: xdg-permission-store.service: Main process exited, code=exited, status=1/FAILURE 3月 09 22:32:28 yyq systemd[3728]: xdg-permission-store.service: Failed with result 'exit-code'. 3月 09 22:32:28 yyq systemd[3728]: Stopped sandboxed app permission store. 3月 09 22:32:28 yyq systemd[3728]: Stopped PipeWire Media Session Manager. 3月 09 22:32:28 yyq systemd[3728]: Stopping PipeWire Multimedia Service... 3月 09 22:32:28 yyq systemd[1]: run-user-128-doc.mount: Deactivated successfully. 3月 09 22:32:28 yyq systemd[3728]: Stopped PipeWire Multimedia Service. 3月 09 22:32:28 yyq systemd[3728]: xdg-document-portal.service: Main process exited, code=exited, status=20/n/a 3月 09 22:32:28 yyq systemd[3728]: xdg-document-portal.service: Failed with result 'exit-code'. 3月 09 22:32:28 yyq systemd[3728]: Stopped flatpak document portal service. 3月 09 22:32:28 yyq systemd[3728]: Removed slice User Core Session Slice. 3月 09 22:32:28 yyq systemd[3728]: Stopped target Basic System. 3月 09 22:32:28 yyq systemd[3728]: Stopped target Paths. 3月 09 22:32:28 yyq systemd[3728]: Stopped Pending report trigger for Ubuntu Report. 3月 09 22:32:28 yyq systemd[3728]: Stopped target Sockets. 3月 09 22:32:28 yyq systemd[3728]: Stopped target Timers. 3月 09 22:32:28 yyq systemd[3728]: Closed D-Bus User Message Bus Socket. 3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG network certificate management daemon. 3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers). 3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent and passphrase cache (restricted). 3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent (ssh-agent emulation). 3月 09 22:32:28 yyq systemd[3728]: Closed GnuPG cryptographic agent and passphrase cache. 3月 09 22:32:28 yyq systemd[3728]: Closed PipeWire Multimedia System Socket. 3月 09 22:32:28 yyq systemd[3728]: Closed debconf communication socket. 3月 09 22:32:28 yyq systemd[3728]: Closed Sound System. 3月 09 22:32:28 yyq systemd[3728]: Closed REST API socket for snapd user session agent. 3月 09 22:32:28 yyq systemd[3728]: Closed Speech Dispatcher Socket. 3月 09 22:32:28 yyq systemd[3728]: Removed slice User Application Slice. 3月 09 22:32:28 yyq systemd[3728]: Reached target Shutdown. 3月 09 22:32:28 yyq systemd[3728]: Finished Exit the Session. 3月 09 22:32:28 yyq systemd[3728]: Reached target Exit the Session. 3月 09 22:32:28 yyq systemd[1]: user@128.service: Deactivated successfully. 3月 09 22:32:28 yyq systemd[1]: Stopped User Manager for UID 128. 3月 09 22:32:28 yyq systemd[1]: Stopping User Runtime Directory /run/user/128... 3月 09 22:32:28 yyq systemd[1]: run-user-128.mount: Deactivated successfully. 3月 09 22:32:28 yyq systemd[1]: user-runtime-dir@128.service: Deactivated successfully. 3月 09 22:32:28 yyq systemd[1]: Stopped User Runtime Directory /run/user/128. 3月 09 22:32:28 yyq systemd[1]: Removed slice User Slice of UID 128. 3月 09 22:32:28 yyq systemd[1]: user-128.slice: Consumed 3.539s CPU time. 3月 09 22:32:29 yyq systemd-logind[727]: Lid closed. 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0849] manager: sleep: sleep requested (sleeping: no enabled: yes) 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0850] device (enp2s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:32:29 yyq ModemManager[772]: <info> [sleep-monitor-systemd] system is about to suspend 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0944] device (p2p-dev-wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0946] manager: NetworkManager state is now ASLEEP 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.0947] device (wlp4s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:32:29 yyq kernel: wlp4s0: deauthenticating from 52:33:f0:bd:67:ce by local choice (Reason: 3=DEAUTH_LEAVING) 3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DISCONNECTED bssid=52:33:f0:bd:67:ce reason=3 locally_generated=1 3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4107] device (wlp4s0): supplicant interface state: completed -> disconnected 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4108] device (wlp4s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:32:29 yyq gnome-shell[4522]: An active wireless connection, in infrastructure mode, involves no access point? 3月 09 22:32:29 yyq avahi-daemon[693]: Withdrawing address record for fe80::b37c:d033:cc87:692a on wlp4s0. 3月 09 22:32:29 yyq avahi-daemon[693]: Leaving mDNS multicast group on interface wlp4s0.IPv6 with address fe80::b37c:d033:cc87:692a. 3月 09 22:32:29 yyq avahi-daemon[693]: Interface wlp4s0.IPv6 no longer relevant for mDNS. 3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4419] dhcp4 (wlp4s0): canceled DHCP transaction 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4419] dhcp4 (wlp4s0): activation: beginning transaction (timeout in 45 seconds) 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4420] dhcp4 (wlp4s0): state changed no lease 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4422] dhcp6 (wlp4s0): canceled DHCP transaction 3月 09 22:32:29 yyq avahi-daemon[693]: Withdrawing address record for 192.168.2.61 on wlp4s0. 3月 09 22:32:29 yyq avahi-daemon[693]: Leaving mDNS multicast group on interface wlp4s0.IPv4 with address 192.168.2.61. 3月 09 22:32:29 yyq avahi-daemon[693]: Interface wlp4s0.IPv4 no longer relevant for mDNS. 3月 09 22:32:29 yyq systemd-resolved[626]: wlp4s0: Bus client reset search domain list. 3月 09 22:32:29 yyq NetworkManager[699]: <info> [1709994749.4437] device (wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') 3月 09 22:32:29 yyq systemd-resolved[626]: wlp4s0: Bus client set default route setting: no 3月 09 22:32:29 yyq systemd-resolved[626]: wlp4s0: Bus client reset DNS server list. 3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:32:29 yyq wpa_supplicant[730]: wlp4s0: CTRL-EVENT-DSCP-POLICY clear_all 3月 09 22:32:29 yyq wpa_supplicant[730]: nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0
通过查询chatgpt,说这两个日志都显示系统进入了睡眠,然后实际上电脑关机了
似乎第二部分的日志没看到 acpid 的内容?你启用了 acpid.service 这个服务了吗?(不过你在 logind 中设置行为为 ignore 仍然合盖关机的话那可能不是相关的原因了。。)
启用了,唉凑和用吧,我怀疑是amd cpu的问题,我在其他地方看见有人和我有类似问题,新的amd cpu一合盖子就断电
离线