耗电异常的快,有啥解决方案吗?

联想t14p,285h的处理器, 不带n卡,6.19.9内核。

基本上一个小时22%到24%左右,试了power-profile-daemon和tlp, 都没啥明显作用。切换到节能档勉强算降到一小时20%。

求解决方案。

一个排查思路是:您可以先安装 powertop,然后到 PowerTop 里面看一下各进程的耗电情况,检查一下有没有耗电量偏高的进程。

我看别人的category里面还有process. 我这怎么都是device?

powertop上面一部分:

Summary: -nan wakeups/second,  -nan GPU ops/seconds, -nan VFS ops/sec and -0.0% CPU use

                Usage       Events/s    Category       Description
            100.0%                      Device         USB device: usb-device-8087-0037
            100.0%                      Device         PCI Device: Intel Corporation Arrow Lake-H/U PCIe Root Port #11 (PXPE)
            100.0%                      Device         USB device: USB 10/100/1G/2.5G LAN (Realtek)
            100.0%                      Device         PCI Device: Intel Corporation Meteor Lake-P Dynamic Tuning Technology
            100.0%                      Device         USB device: USB3.0 Hub (Intel Corporation.)
            100.0%                      Device         USB device: xHCI Host Controller
            100.0%                      Device         USB device: USB2.0 Hub (Fresco Logic, Inc.)
            100.0%                      Device         Radio device: btusb
            100.0%                      Device         USB device: USB7206 Smart Hub (Microchip)
              0.0%                      Device         PCI Device: Intel Corporation Thunderbolt 4 Bridge [Goshen Ridge 2020]
              0.0%                      Device         PCI Device: Intel Corporation Thunderbolt 4 Bridge [Goshen Ridge 2020]
            100.0%                      Device         PCI Device: Intel Corporation Arrow Lake Shared SRAM
            100.0%                      Device         PCI Device: Intel Corporation Arrow Lake-H 6p+8e cores Host Bridge/DRAM Controller
            100.0%                      Device         PCI Device: Yangtze Memory Technologies Co.,Ltd PC450 M.2 2280 NVMe SSD (DRAM-less)
            100.0%                      Device         USB device: USB2 Controller Hub (Microchip Tech)
            100.0%                      Device         PCI Device: Intel Corporation Arrow Lake-H/U PCIe Root Port #9 (PXPC)
            100.0%                      Device         USB device: USB4206 Smart Hub (Microchip)
            100.0%                      Device         PCI Device: Intel Corporation Arrow Lake USB 3.2 xHCI Controller
             17.1%                      Device         runtime-i2c_designware.0
             17.3%                      Device         PCI Device: Intel Corporation Arrow Lake-H [Serial IO I2C Host Controller]
              8.2 pkts/s                Device         Network interface: wlan0 (iwlwifi)
            100.0%                      Device         PCI Device: Intel Corporation Meteor Lake-P Thunderbolt 4 NHI #0
            100.0%                      Device         PCI Device: Intel Corporation Meteor Lake-P Platform Monitoring Technology
            100.0%                      Device         Radio device: thinkpad_acpi
            100.0%                      Device         PCI Device: Shenzhen Unionmemory Information System Ltd. Device 6c14
            100.0%                      Device         PCI Device: Intel Corporation Meteor Lake-P Thunderbolt 4 USB Controller
            100.0%                      Device         USB device: xHCI Host Controller
              0.0%                      Device         runtime-PNP0C0C:00
            100.0%                      Device         PCI Device: Intel Corporation Arrow Lake SPI Controller
              0.0 pkts/s                Device         Network interface: enp0s31f6 (e1000e)
              0.0%                      Device         runtime-INTC1062:00
              0.0%                      Device         USB device: USB4216 Smart Hub (Microchip)
              0.0%                      Device         PCI Device: Intel Corporation Arrow Lake HECI Controller #1
              0.0%                      Device         PCI Device: Intel Corporation Meteor Lake-P Thunderbolt 4 PCI Express Root Port #2
              0.0%                      Device         PCI Device: Intel Corporation Arrow Lake-H/U PCIe Root Port #1
              0.0%                      Device         PCI Device: Intel Corporation Thunderbolt 4 Bridge [Goshen Ridge 2020]
              0.0%                      Device         runtime-ACPI0003:00
              0.0%                      Device         USB device: USB4206 Smart Hub (Microchip)
              0.0%                      Device         PCI Device: Intel Corporation Thunderbolt 4 Bridge [Goshen Ridge 2020]
              0.0%                      Device         PCI Device: Intel Corporation Thunderbolt 4 Bridge [Goshen Ridge 2020]
              0.0%                      Device         runtime-PNP0C14:00
              0.0 pkts/s                Device         Network interface: enp0s13f0u1u4u2 (r8152)
              0.0%                      Device         runtime-idma64.1
              0.0%                      Device         runtime-INTC1062:01
              0.0%                      Device         runtime-INTC1062:05
              0.0%                      Device         I2C Adapter (i2c-12): AUX USBC1/DDI TC1/PHY TC1
             70.0%                      Device         Display backlight

powertop的的vice:

              Usage     Device name
             -0.0%        CPU core
             70.0%        Display backlight
            100.0%        PCI Device: Intel Corporation Meteor Lake-P Thunderbolt 4 USB Controller
            100.0%        PCI Device: Intel Corporation Meteor Lake-P Dynamic Tuning Technology
            100.0%        PCI Device: Intel Corporation Arrow Lake-H 6p+8e cores Host Bridge/DRAM Controller
            100.0%        PCI Device: Intel Corporation Arrow Lake Shared SRAM
            100.0%        PCI Device: Intel Corporation Arrow Lake-H/U PCIe Root Port #11 (PXPE)
            100.0%        USB device: usb-device-8087-0037
            100.0%        USB device: USB7206 Smart Hub (Microchip)
            100.0%        Radio device: btusb
            100.0%        USB device: USB2.0 Hub (Fresco Logic, Inc.)
            100.0%        USB device: xHCI Host Controller
            100.0%        USB device: USB3.0 Hub (Intel Corporation.)
            100.0%        USB device: xHCI Host Controller
            100.0%        USB device: USB2 Controller Hub (Microchip Tech)
            100.0%        PCI Device: Yangtze Memory Technologies Co.,Ltd PC450 M.2 2280 NVMe SSD (DRAM-less)
            100.0%        USB device: USB 10/100/1G/2.5G LAN (Realtek)
            100.0%        PCI Device: Intel Corporation Arrow Lake-H/U PCIe Root Port #9 (PXPC)
            100.0%        PCI Device: Shenzhen Unionmemory Information System Ltd. Device 6c14
            100.0%        Radio device: thinkpad_acpi
            100.0%        Radio device: iwlwifi
            100.0%        PCI Device: Intel Corporation Meteor Lake-P Platform Monitoring Technology
            100.0%        PCI Device: Intel Corporation Meteor Lake-P Thunderbolt 4 NHI #0
            100.0%        PCI Device: Intel Corporation Arrow Lake CNVi WiFi
            100.0%        PCI Device: Intel Corporation Arrow Lake SPI Controller
            100.0%        PCI Device: Intel Corporation Arrow Lake USB 3.2 xHCI Controller
            100.0%        PCI Device: Intel Corporation Arrow Lake-P [Arc Pro 130T/140T]
            100.0%        USB device: USB4206 Smart Hub (Microchip)
             25.7%        PCI Device: Intel Corporation Ethernet Connection (24) I219-V
              2.4 pkts/s  Network interface: wlan0 (iwlwifi)
              0.0%        PCI Device: Intel Corporation Arrow Lake HECI Controller #1
              0.0%        PCI Device: Intel Corporation Meteor Lake-P Thunderbolt 4 PCI Express Root Port #2
              0.0%        PCI Device: Intel Corporation Arrow Lake-H/U PCIe Root Port #1
              0.0%        PCI Device: Intel Corporation Thunderbolt 4 Bridge [Goshen Ridge 2020]
              0.0%        PCI Device: Intel Corporation Thunderbolt 4 Bridge [Goshen Ridge 2020]
              0.0%        PCI Device: Intel Corporation Thunderbolt 4 Bridge [Goshen Ridge 2020]
              0.0%        PCI Device: Intel Corporation Thunderbolt 4 Bridge [Goshen Ridge 2020]
              0.0%        PCI Device: Intel Corporation Thunderbolt 4 Bridge [Goshen Ridge 2020]
              0.0%        runtime-PNP0C14:00
              0.0 pkts/s  Network interface: enp0s13f0u1u4u2 (r8152)

我这边 category 里还有 Timer、Interrupt、Process、kWork 等。或许是您那帮的 powertop 没有搜集到足够的测量数据?

或许可以尝试:

  1. 在电池供电的情况下多运行一段时间,收集更多的数据。
  2. 运行 powertop 时增加 --calibrate 参数,进行校准。

参考资料: