Pop OS / Dell XPS 9310 - 电池在挂起时整夜耗尽

发布于 2025-01-20 13:39:14 字数 3621 浏览 3 评论 0原文

我的笔记本电脑成功地悬挂了盖子,但是如果我没有将其插入一整夜,则电池会在早晨排出。

我刚刚跑出了短暂的暂停日志。我可以将其暂停过夜,然后看一下原木,但是这里有什么可疑的吗?我验证了所有与悬浮相关的目标均通过sudo systemctl状态睡眠加载。TARGET.TARGET.TARGETHIBERNATE.TARGET HYBRID-SEEP.TARGET.TARGET.TARGET

Apr 11 22:09:29 pop-os systemd[1]: Reached target Sleep.
Apr 11 22:09:29 pop-os systemd[1]: Starting Suspend...
Apr 11 22:09:29 pop-os kernel: [   44.986190] PM: suspend entry (s2idle)
Apr 11 22:09:29 pop-os systemd-sleep[3730]: Suspending system...
Apr 11 22:09:29 pop-os kernel: [   44.991600] Filesystems sync: 0.005 seconds
Apr 11 22:09:57 pop-os kernel: [   44.994638] Freezing user space processes ... (elapsed 0.002 seconds) done.
Apr 11 22:09:57 pop-os kernel: [   44.996920] OOM killer disabled.
Apr 11 22:09:57 pop-os kernel: [   44.996921] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Apr 11 22:09:57 pop-os kernel: [   44.998055] printk: Suspending console(s) (use no_console_suspend to debug)
Apr 11 22:09:57 pop-os kernel: [   45.315954] psmouse serio1: Failed to disable mouse on isa0060/serio1
Apr 11 22:09:57 pop-os kernel: [   46.377203] ACPI: EC: interrupt blocked
Apr 11 22:09:57 pop-os kernel: [   72.605807] ACPI: EC: interrupt unblocked
Apr 11 22:09:57 pop-os kernel: [   73.107660] pcieport 10000:e0:06.0: can't derive routing for PCI INT A
Apr 11 22:09:57 pop-os kernel: [   73.107666] nvme 10000:e1:00.0: PCI INT A: no GSI
Apr 11 22:09:57 pop-os kernel: [   73.114494] nvme nvme0: 8/0/0 default/read/poll queues
Apr 11 22:09:57 pop-os kernel: [   73.363725] OOM killer enabled.
Apr 11 22:09:57 pop-os kernel: [   73.363728] Restarting tasks ... 
Apr 11 22:09:57 pop-os kernel: [   73.364154] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
Apr 11 22:09:57 pop-os kernel: [   73.367166] done.
Apr 11 22:09:57 pop-os touchegg[1000]: libinput error: event0  - Lid Switch: client bug: event processing lagging behind by 1279ms, your system is too slow
Apr 11 22:09:57 pop-os /usr/libexec/gdm-x-session[1823]: (II) modeset(0): EDID vendor "SHP", prod id 5370
Apr 11 22:09:57 pop-os /usr/libexec/gdm-x-session[1823]: (II) modeset(0): Printing DDC gathered Modelines:
Apr 11 22:09:57 pop-os /usr/libexec/gdm-x-session[1823]: (II) modeset(0): Modeline "3840x2400"x0.0  592.50  3840 3888 3920 4000  2400 2403 2409 2469 -hsync -vsync (148.1 kHz eP)
Apr 11 22:09:57 pop-os /usr/libexec/gdm-x-session[1823]: (II) modeset(0): Modeline "3840x2400"x0.0  474.00  3840 3888 3920 4000  2400 2403 2409 2469 -hsync -vsync (118.5 kHz e)
Apr 11 22:09:57 pop-os systemd-sleep[3730]: System resumed.
Apr 11 22:09:57 pop-os bluetoothd[961]: Controller resume with wake event 0x0
Apr 11 22:09:57 pop-os kernel: [   73.413202] PM: suspend exit
Apr 11 22:09:57 pop-os systemd[1]: systemd-suspend.service: Succeeded.
Apr 11 22:09:57 pop-os systemd[1]: Finished Suspend.
Apr 11 22:09:57 pop-os systemd[1]: Stopped target Sleep.
Apr 11 22:09:57 pop-os systemd[1]: Reached target Suspend.
Apr 11 22:09:57 pop-os systemd[1]: Stopped target Suspend.
Apr 11 22:09:57 pop-os NetworkManager[968]: <info>  [1649729397.3461] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Apr 11 22:09:57 pop-os NetworkManager[968]: <info>  [1649729397.3461] device (wlp113s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Apr 11 22:09:57 pop-os ModemManager[1079]: <info>  [sleep-monitor] system is resuming
Apr 11 22:09:57 pop-os NetworkManager[968]: <info>  [1649729397.4258] manager: NetworkManager state is now DISCONNECTED

My laptop is suspending on lid close successfully, but if I don't have it plugged in overnight, the battery is drained by the morning.

I'm including logs from a short suspend I ran just now. I can suspend it overnight and look at the logs afterward, but is there anything immediately suspicious here? I validated that all suspend-related targets are loaded via sudo systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target

Apr 11 22:09:29 pop-os systemd[1]: Reached target Sleep.
Apr 11 22:09:29 pop-os systemd[1]: Starting Suspend...
Apr 11 22:09:29 pop-os kernel: [   44.986190] PM: suspend entry (s2idle)
Apr 11 22:09:29 pop-os systemd-sleep[3730]: Suspending system...
Apr 11 22:09:29 pop-os kernel: [   44.991600] Filesystems sync: 0.005 seconds
Apr 11 22:09:57 pop-os kernel: [   44.994638] Freezing user space processes ... (elapsed 0.002 seconds) done.
Apr 11 22:09:57 pop-os kernel: [   44.996920] OOM killer disabled.
Apr 11 22:09:57 pop-os kernel: [   44.996921] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Apr 11 22:09:57 pop-os kernel: [   44.998055] printk: Suspending console(s) (use no_console_suspend to debug)
Apr 11 22:09:57 pop-os kernel: [   45.315954] psmouse serio1: Failed to disable mouse on isa0060/serio1
Apr 11 22:09:57 pop-os kernel: [   46.377203] ACPI: EC: interrupt blocked
Apr 11 22:09:57 pop-os kernel: [   72.605807] ACPI: EC: interrupt unblocked
Apr 11 22:09:57 pop-os kernel: [   73.107660] pcieport 10000:e0:06.0: can't derive routing for PCI INT A
Apr 11 22:09:57 pop-os kernel: [   73.107666] nvme 10000:e1:00.0: PCI INT A: no GSI
Apr 11 22:09:57 pop-os kernel: [   73.114494] nvme nvme0: 8/0/0 default/read/poll queues
Apr 11 22:09:57 pop-os kernel: [   73.363725] OOM killer enabled.
Apr 11 22:09:57 pop-os kernel: [   73.363728] Restarting tasks ... 
Apr 11 22:09:57 pop-os kernel: [   73.364154] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
Apr 11 22:09:57 pop-os kernel: [   73.367166] done.
Apr 11 22:09:57 pop-os touchegg[1000]: libinput error: event0  - Lid Switch: client bug: event processing lagging behind by 1279ms, your system is too slow
Apr 11 22:09:57 pop-os /usr/libexec/gdm-x-session[1823]: (II) modeset(0): EDID vendor "SHP", prod id 5370
Apr 11 22:09:57 pop-os /usr/libexec/gdm-x-session[1823]: (II) modeset(0): Printing DDC gathered Modelines:
Apr 11 22:09:57 pop-os /usr/libexec/gdm-x-session[1823]: (II) modeset(0): Modeline "3840x2400"x0.0  592.50  3840 3888 3920 4000  2400 2403 2409 2469 -hsync -vsync (148.1 kHz eP)
Apr 11 22:09:57 pop-os /usr/libexec/gdm-x-session[1823]: (II) modeset(0): Modeline "3840x2400"x0.0  474.00  3840 3888 3920 4000  2400 2403 2409 2469 -hsync -vsync (118.5 kHz e)
Apr 11 22:09:57 pop-os systemd-sleep[3730]: System resumed.
Apr 11 22:09:57 pop-os bluetoothd[961]: Controller resume with wake event 0x0
Apr 11 22:09:57 pop-os kernel: [   73.413202] PM: suspend exit
Apr 11 22:09:57 pop-os systemd[1]: systemd-suspend.service: Succeeded.
Apr 11 22:09:57 pop-os systemd[1]: Finished Suspend.
Apr 11 22:09:57 pop-os systemd[1]: Stopped target Sleep.
Apr 11 22:09:57 pop-os systemd[1]: Reached target Suspend.
Apr 11 22:09:57 pop-os systemd[1]: Stopped target Suspend.
Apr 11 22:09:57 pop-os NetworkManager[968]: <info>  [1649729397.3461] manager: sleep: wake requested (sleeping: yes  enabled: yes)
Apr 11 22:09:57 pop-os NetworkManager[968]: <info>  [1649729397.3461] device (wlp113s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'external')
Apr 11 22:09:57 pop-os ModemManager[1079]: <info>  [sleep-monitor] system is resuming
Apr 11 22:09:57 pop-os NetworkManager[968]: <info>  [1649729397.4258] manager: NetworkManager state is now DISCONNECTED

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

征棹 2025-01-27 13:39:14

该系统上的硬件仅支持s2idle睡眠,而不是deep睡眠以减少能量消耗(此处不同睡眠状态的详细信息 https://www.kernel.org/doc/documentation/power/power/states.txt.txt )。

pop-os:$~ sudo cat /sys/power/mem_sleep 
[s2idle]

我发现了这个线程: https://www.dell.com/community/xps/xps/xps-13-9310-ubuntu-deep-sleep-missing/td-p/7734008 它建议从RAID(Dell's Default)更改磁盘管理通过Dell Bios到AHCI。

到目前为止,这已经为解决方案工作了!一夜之间,我只损失了10%的电池,并且可以在不收取费用的情况下闲置3天。

(在此之前,我确实尝试通过System76 “ nofollow noreferrer”> htttps://support.system76766666666666666666666666666.System7676666666666666.6.com/arbefort.system767676. .com/文章/启用hibernation/

The hardware on this system only supports s2idle sleep, and not deep sleep for less energy consumption (details on different sleep states here https://www.kernel.org/doc/Documentation/power/states.txt).

pop-os:$~ sudo cat /sys/power/mem_sleep 
[s2idle]

I found this thread: https://www.dell.com/community/XPS/XPS-13-9310-Ubuntu-deep-sleep-missing/td-p/7734008 It suggests changing the disk management from RAID (Dell's default) to AHCI via the Dell BIOS.

So far this has worked for a solution! I've lost only 10% battery overnight, and can go 3 days idling in suspend without a charge.

(Before this, I did try enabling hibernate through these instructions from System76 https://support.system76.com/articles/enable-hibernation/. This does not work great, because the Killer wifi driver does not load on wake from hibernate.)

怼怹恏 2025-01-27 13:39:14

挂起(考虑混合挂起),机器的状态存储在交换空间中,并通过 RAM 挂起(又名睡眠)被调用。这导致电力利用率最低。

这样做的原因:从休眠状态唤醒比从睡眠状态唤醒慢。因此,为了确保系统状态不丢失,机器的状态存储在交换空间中,并调用睡眠,使用最少的功率并且不会关闭机器。机器的状态存储在 RAM 中。如果电池没有耗尽,则从 RAM 唤醒,速度更快。
了解更多:https://wiki.archlinux.org/title/Power_management/Sus​​pend_and_hibernate

如果您希望电池不耗尽或耗尽,请将盖子关闭操作从睡眠/挂起切换到休眠。 Hibernate 的功耗为零。请按照下面提到的步骤操作。

$ grep HandleLidSwitch /etc/systemd/logind.conf 
HandleLidSwitch=suspend

如果该行被注释,请通过删除“#”来取消注释并将选项更改为休眠。

HandleLidSwitch=hibernate

如果您是 Linux 新手,请使用 gedit 命令来编辑该文件。

sudo gedit /etc/systemd/logind.conf

Suspend ( considering hybrid suspend ), the machine's state is stored in swap space and suspend via RAM (aka sleep) is invoked. This caused for minimal utilisation of power.

Reason to do so : wake up from hibernate is slower than wakeup from sleep. So to ensure system state is not lost, machine's state is stored in swap space and sleep is invoked that uses minimal power and does not shut off the machine. Machine's state is stored in RAM. If battery does not die, wake up happens from RAM which is faster.
Read More : https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate

In case you want your battery to not die or drain, switch your lid close action from sleep/suspend to hibernate. Hibernate has zero power consumption. Follow the steps mentioned below.

$ grep HandleLidSwitch /etc/systemd/logind.conf 
HandleLidSwitch=suspend

If the line is commented, please uncomment by removing "#" and change option to hibernate.

HandleLidSwitch=hibernate

If you are new to Linux, please use gedit command to edit the file.

sudo gedit /etc/systemd/logind.conf
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文