我发现了一个问题,同一台集成显卡的笔记本电脑,安装windows10系统和安装ubuntu24.04...

Creado el: 15 de enero de 2026

Respondido usando GPT-5.2 Thinking por Chat01

Pregunta

我发现了一个问题,同一台集成显卡的笔记本电脑,安装windows10系统和安装ubuntu24.04系统,在只使用笔记本电池而不充电场景下,ubuntu系统比windows10系统耗电更快些,但在笔记本电脑插电源场景下,ubuntu系统性能优于window10系统

Pensamiento

Explaining iGPU power differences between Ubuntu and Windows

The user mentioned that Ubuntu 24.04 drains battery faster than Windows 10, but performs better when plugged in. The reasons might involve differences in power management: Windows uses specialized OEM power settings, which Ubuntu doesn’t replicate exactly. Ubuntu’s default power settings, GNOME, iGPU and driver settings could also play a part.

Improving Ubuntu battery life and performance

Ubuntu's plugged-in performance is better due to factors like more efficient iGPU drivers and CPU governor settings. On battery, Ubuntu may not always switch to power-saving mode. To improve battery life: use tools like powertop, tlp, and check settings for CPU scaling, unnecessary services, and power-saving options. Be cautious with kernel parameters. Consider adjusting BIOS settings and updating.

Improving Ubuntu battery life and performance

On battery, Ubuntu may not always enforce battery discharge thresholds. I recommend using power-profiles-daemon in power-saver mode and running sudo powertop --auto-tune. For better results, try installing TLP (sudo apt install tlp tlp-rdw), which isn't enabled by default. Also, consider checking for thermald (Intel) or amd-pstate (AMD). Battery drain could also be due to dGPU not powering down fully, but since this user uses an iGPU, they might not be affected. Performance on AC is better due to newer kernel and drivers.

Optimizing battery life on Ubuntu and Windows

Install the latest OEM drivers for both Intel/AMD on Windows and ensure you're using the latest Mesa drivers on Ubuntu. For Ubuntu, try adjusting power settings through powerprofilesctl and tools like TLP. Check settings on iGPU, CPU, and background services to save power. Be mindful that enforcing power-saving can lower performance, but it will help reduce battery drain.

Thought for 41s

Respuesta

你描述的现象其实挺常见:Windows 在“电池模式”的省电调校往往比 Linux/Ubuntu 更激进、更贴合厂商机型;而 Ubuntu 在“插电模式”下更容易把 CPU/GPU 跑满(再加上较新的内核/Mesa/调度器与图形栈),所以表现出“更耗电但更快”的组合。

下面把原因和排查/优化方法按“最可能 → 最有效”给你一套可直接照做的清单。


为什么 Ubuntu 电池更耗电、插电更快?

1) 厂商电源管理“私货”在 Windows 上更完整

同一台笔记本,厂商通常只对 Windows 做了大量针对性优化:

  • ACPI/EC(嵌入式控制器)策略、风扇曲线、电源限额(PL1/PL2)、面板省电、PCIe 省电、音频/网卡省电
  • Intel DPTF/AMD 平台驱动、OEM Service(后台策略)
    这些在 Linux 上可能只有通用实现,能用但不够“抠门”,于是电池耗电更高。

2) Ubuntu 的默认策略可能“偏性能/偏通用”

Ubuntu 24.04 默认通常由 power-profiles-daemon 管理电源档位(performance / balanced / power-saver)。
有些机型上它不会像 Windows 那样自动把很多设备压到极致低功耗,或者某些设备没进入真正的低功耗态(例如 PCIe ASPM、USB autosuspend、NVMe/APST、iGPU 的省电特性等)。

3) 插电性能更好:Ubuntu 更容易释放硬件上限

插电时 Ubuntu 往往:

  • CPU 更容易长时间 Turbo(或更少的厂商限制)
  • 图形栈(Mesa/Wayland/驱动)在某些场景效率更高
    而 Windows 10 如果驱动/电源计划较保守,或者厂商“安静模式/省电模式”常驻,就会显得插电也没跑满。

先“量化”一下:确认到底谁在耗电(10 分钟)

建议你先固定变量,不然很容易被屏幕亮度、刷新率、浏览器视频解码等“偷走结论”。

  1. 把屏幕亮度固定到同一档(最关键)
  2. 关闭/固定:键盘背光、蓝牙、外接设备
  3. Ubuntu 下看实时功耗(两种选一个):
  • 方式A(直观):

    bash
    sudo apt update sudo apt install powertop sudo powertop

    看顶部 “Power est.”(估算功耗)以及哪个设备最“活跃”。

  • 方式B(更直接读电池功耗,单位通常是 µW):

    bash
    cat /sys/class/power_supply/BAT*/power_now 2>/dev/null || cat /sys/class/power_supply/BAT*/current_now

如果 Ubuntu 比 Windows 多 2–5W,电池续航差距会非常明显。


Ubuntu 24.04 省电最有效的“快速改进”(按推荐顺序)

A. 确认/切换电源档位(最简单也最常见)

bash
powerprofilesctl get powerprofilesctl set power-saver

很多机器默认一直在 balanced,甚至插拔电源切换不理想;先把电池模式强制到 power-saver 看差距。

B. 装 TLP(对很多轻薄本提升非常明显)

bash
sudo apt install tlp tlp-rdw sudo systemctl enable --now tlp sudo tlp-stat -s

TLP 会更激进地做 USB autosuspend、PCIe、省电参数等(这正是很多机型在 Windows 上“默认就有”的东西)。

C. 用 powertop 一键建议(有风险但见效快)

bash
sudo powertop --auto-tune

注意:这会对很多设备启用省电策略,个别硬件可能出现掉线/兼容性问题。如果你发现 Wi-Fi/蓝牙/触控板异常,就别用它做长期方案,改用 TLP 精细配置。

D. 检查 CPU 是否真的在省电策略下运行

看频率策略:

bash
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 2>/dev/null

再看 turbo 是否开启(Intel 常见):

bash
cat /sys/devices/system/cpu/intel_pstate/no_turbo 2>/dev/null

在电池模式下,关闭 turbo 往往能显著省电(代价是峰值性能降低)。一般 power-saver 档位会帮你做一部分,但不一定覆盖所有机型。

E. “屏幕”往往是第一耗电大户

即使你觉得是“系统耗电”,很多时候是:

  • 亮度更高(Ubuntu 自动亮度策略不同)
  • 刷新率更高(比如 60Hz vs 120Hz)
  • 面板省电特性(PSR/FBC)没启用或不稳定导致回退

你可以先手动把刷新率降到 60Hz(如果是高刷屏)看看电池功耗是否立刻下降。


为什么插电 Ubuntu 更快:Windows 10 这边也能优化

如果你希望 Windows 插电性能也接近 Ubuntu,重点看三件事:

  1. 电源计划:插电时切到“高性能/最佳性能”(或厂商控制中心里的“性能模式”)
  2. 更新芯片组/显卡驱动:Windows 10 上旧驱动很常见,iGPU 性能差距会很大
  3. 厂商静音/省电模式常驻:很多 OEM 工具会在插电也锁功耗/锁风扇曲线

最常见的“罪魁祸首”名单(你可以对照 powertop)

  • 屏幕亮度/刷新率/面板省电特性没生效
  • Wi-Fi 网卡省电策略不同(尤其是某些 Realtek/Intel 组合)
  • NVMe/APST 没进入低功耗
  • USB 外设/蓝牙没有 autosuspend
  • 浏览器视频播放没走硬件解码(CPU 占用高直接耗电飙升)
  • 后台索引/更新(如文件索引、应用商店后台)在电池时仍在跑

如果你愿意更精准定位(可选)

你把下面三条命令的输出(直接复制粘贴)发我,我可以基本定位是哪一类导致的耗电差异:

bash
powerprofilesctl get sudo powertop --time=10 --html=/tmp/powertop.html >/dev/null 2>&1 && echo "saved to /tmp/powertop.html" uname -r

不发也没关系——你先按上面的 A → B 做,通常就能把 Ubuntu 电池续航拉近 Windows(很多机型能明显改善)。

Compartir este Q&A