# 12th gen power management on Linux

**URL:** <https://community.frame.work/t/12th-gen-power-management-on-linux/21330>\
**Category:** Linux\
**Created:** [August 12, 2022, 4:12pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330 "2022-08-12T16:12:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Morozov](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@Alex\_Morozov](https://community.frame.work/u/Alex_Morozov)\
**Post date:** [August 12, 2022, 4:12pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/1 "2022-08-12T16:12:07Z")

</div>

Hi all, I was seeing ~9W power consumption when idle. It’s too much, I’d expect around 3W or so. With lid closed, laptop enters sleep mode (I believe), but stays warm and it has depleted full charge in about 6 hours.

OS: Debian Sid  
Kernel: 5.18  
CPU: i-1280  
RAM: 64G

In dmesg there are those lines:

```auto
i915 0000:00:02.0: firmware: failed to load i915/adlp_dmc_ver2_14.bin (-2)i915 0000:00:02.0: [drm] Failed to load DMC firmware i915/adlp_dmc_ver2_14.bin. Disabling runtime power management.
...
i915 0000:00:02.0: firmware: failed to load i915/adlp_guc_69.0.3.bin (-2)

```

Which means that GPU’s firmware that does power management isn’t loaded. I’ve downloaded those files from here [i915 - kernel/git/firmware/linux-firmware.git - Repository of firmware blobs for use with the Linux kernel](https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915) and put them in `/lib/firmware/i915`, and run `update-initramfs -u`.

Now with those firmware blobs loaded power consumption is ~3.5W idle which is about right. But both Firefox and Chrome are unbearably laggy, and when browsing and scrolling pages around, CPU fan spins up to the max.

I’ve also tried booting Ubuntu 22.04 from a flash drive, and while I wasn’t measuring battery drain, it showed time on battery to be ~3h with about 40% of charge which indicates the same problem.

There are similar reports for Windows – Chrome being super laggy, and the proposed solution is to install latest intel drivers.

Any ideas or hints?

---

<div class="post-metadata">

**Author:** ![Vijfhoek](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/vijfhoek/32/10671_2.png) [@Vijfhoek](https://community.frame.work/u/Vijfhoek)\
**Post date:** [August 12, 2022, 6:33pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/2 "2022-08-12T18:33:12Z")

</div>

You could try installing kernel 5.19, see if that fixes things. It’s currently in experimental, so you could try giving that a shot: [Install the latest rc kernel on debian - Unix & Linux Stack Exchange](https://unix.stackexchange.com/a/432439)

---

<div class="post-metadata">

**Author:** ![lhl](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/lhl/32/9497_2.png) [@lhl](https://community.frame.work/u/lhl)\
**Post date:** [August 12, 2022, 6:55pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/3 "2022-08-12T18:55:01Z")

</div>

There’s an `intel-microcode` Debian package that you might want to try and see if that makes any diffference. You might try the [GNOME Power Manager](https://help.gnome.org/users/gnome-power-manager/stable/statistics.html.en) to do some historical charting to see if you can spot anything going on along with `htop` or something like that.

FWIW, running Arch w/ 5.18.16 on a 1260P, I’ve had no issues with unexpected power usage, idle power consumption, or with system responsiveness so far.

Update: one more thing to check out if you’re CPU responsiveness is wonky: [Linux battery life tuning - #204 by Michael\_Wu](http://community.frame.work/t/linux-battery-life-tuning/6665/204)

---

<div class="post-metadata">

**Author:** ![Alex\_Morozov](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@Alex\_Morozov](https://community.frame.work/u/Alex_Morozov)\
**Post date:** [August 14, 2022, 3:33pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/4 "2022-08-14T15:33:34Z")

</div>

Thanks folks, I’ve tried 5.19-trunk from Debian’s experimental repo with the same results and do have intel-microcode installed.

As it turns out the issue is related to i3wm and presumably lack of compositing. If I open FF/Chrome in fullscreen, then there is no lags and scrolling is real smooth; drawback is rendering artefacts – a bunch of pixels throught the screen is stuck and isn’t updated. Enabling / disabling VSYNC has some effect, but artefacts still remain. I’ve tried switching to UXA rendering in Xorg, but Xorg doesn’t start failing on assert about buffer size. Running a compositor in addition to i3 doen’t make any difference. When FF is started in KDE, there is no lag, but there are some insignificant artefacts that later disappear.

So, I’ve moved to Wayland + sway and the problem is solved. No lags, no artefacts, works smoothly. Battery drain is still pretty high: 7-8W when idle and FF running, but now it falls below 9W and GPU spends most of the time in RC6.

---

<div class="post-metadata">

**Author:** ![Thomas\_Herrmann](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@Thomas\_Herrmann](https://community.frame.work/u/Thomas_Herrmann)\
**Post date:** [August 17, 2022, 2:44pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/5 "2022-08-17T14:44:11Z")

</div>

I have also just received my Gen 12 framework an see approx. 10W idle usage on debian. I manually added the 2 firmware files and made sure they are loaded properly, but still \>8W power consumption. Removing HDMI and USB-A takes me to 6.2W, which is still more than I expect (50% display brightness, Wifi connected).

Any ideas?

Powertop and tlp are installed properly.

---

<div class="post-metadata">

**Author:** ![Varg](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/varg/32/10025_2.png) [@Varg](https://community.frame.work/u/Varg)\
**Post date:** [August 17, 2022, 3:23pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/6 "2022-08-17T15:23:09Z")

</div>

> [@Thomas\_Herrmann](#):
>
> Any ideas?

I had read somewhere that disconnecting the modules helps.

Probably more useful in the case where your laptop is switched off though. Although if you are so inclined as to do it while it’s switched on, go right ahead.

Best Regards,  
Varg

---

<div class="post-metadata">

**Author:** ![Thomas\_Herrmann](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@Thomas\_Herrmann](https://community.frame.work/u/Thomas_Herrmann)\
**Post date:** [August 17, 2022, 7:46pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/7 "2022-08-17T19:46:15Z")

</div>

> [@Alex\_Morozov](#):
>
> OS: Debian Sid

Are you really using Sid? Why? I had problems getting Bullseye to work so I went to Bookworm. How are you measuring your power consumption? powertop output when on battery or are you using a “physical” power meter?

---

<div class="post-metadata">

**Author:** ![lhl](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/lhl/32/9497_2.png) [@lhl](https://community.frame.work/u/lhl)\
**Post date:** [August 18, 2022, 12:28am UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/8 "2022-08-18T00:28:01Z")

</div>

One thing that could be a big savings is that Wayland might be more power efficient than X. I haven’t tested on Intel systems (maybe someone wants to test/report) or what idle differences look like, but on a mixed workload on a Ryzen 5000 Ubuntu 21.10 GNOME session, Phoronix measured an average 3W power consumption difference last year: [GNOME's Wayland Session Shows Potential For Better Battery Life Than With X.Org - Phoronix](https://www.phoronix.com/news/GNOME-Wayland-Better-Battery)

The way I’d approach it is to do a sanity check with powertop’s idle stats - if I leave my laptop alone w/ just powertop in a terminal, it gets to about 75% in the C10 state. If you’re not having significant (or any) C10 states, you should try to figure out why. powertop will tell you events/s which is useful, but also just ordering htop processes by time will probably also show you if there’s anything keeping the processor busy.

There are probably some other tips within this thread as things to test out: [Linux battery life tuning](http://community.frame.work/t/linux-battery-life-tuning/6665)

(For example, someone there mentioned replacing PulseAudio w/ pipewire dropped a watt of power usage).

---

<div class="post-metadata">

**Author:** ![Thomas\_Herrmann](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@Thomas\_Herrmann](https://community.frame.work/u/Thomas_Herrmann)\
**Post date:** [August 18, 2022, 11:29am UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/9 "2022-08-18T11:29:52Z")

</div>

I did not see a significant difference between Wayland and X11.

I see that it never reaches C9 or C10, but cannot tell why. Even with no GUI and SDDM stopped powertop shows Pkg(hw) 85% in C8, and 0% for C9 and C10.

The lowest value I saw was 5.5W. Not too bad, but still far from the values that others seem to reach. Could it be the Samsung Pro 980 with PCIe4?

---

<div class="post-metadata">

**Author:** ![Jonathan\_Walters](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@Jonathan\_Walters](https://community.frame.work/u/Jonathan_Walters)\
**Post date:** [August 18, 2022, 11:50am UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/10 "2022-08-18T11:50:44Z")

</div>

Has anyone tried disabling cores yet? The power of 12th gen P series honestly seems overkill for normal use. Only time it would be useful for me is rust compilation. I wonder if they should have offered U series chips either instead of or in addition to the P series chips.

---

<div class="post-metadata">

**Author:** ![Jieren\_Zheng](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/jieren_zheng/32/8994_2.png) [@Jieren\_Zheng](https://community.frame.work/u/Jieren_Zheng)\
**Post date:** [August 18, 2022, 12:01pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/11 "2022-08-18T12:01:40Z")

</div>

> [@Jonathan\_Walters](#):
>
> Has anyone tried disabling cores yet? The power of 12th gen P series honestly seems overkill for normal use. Only time it would be useful for me is rust compilation. I wonder if they should have offered U series chips either instead of or in addition to the P series chips.

You can’t disable all of the E or P cores, you can reduce them to only 1 at a minimum. I have never tried running with 1 P core, I disable the E cores more often.

---

<div class="post-metadata">

**Author:** ![Simon\_F](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Simon\_F](https://community.frame.work/u/Simon_F)\
**Post date:** [August 18, 2022, 12:34pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/12 "2022-08-18T12:34:31Z")

</div>

> [@Jieren\_Zheng](#):
>
> You can’t disable all of the E or P cores, you can reduce them to only 1 at a minimum

Thats a shame… wondering why they have done it like that. I know that it is possible on some desktop boards.

> [@Jieren\_Zheng](#):
>
> I have never tried running with 1 P core, I disable the E cores more often

Did you notice any differences battery wise?

---

<div class="post-metadata">

**Author:** ![Jonathan\_Walters](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@Jonathan\_Walters](https://community.frame.work/u/Jonathan_Walters)\
**Post date:** [August 18, 2022, 1:03pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/13 "2022-08-18T13:03:44Z")

</div>

My understanding is that with the E cores because they come in sets of 4 you’ll only notice a substantial power difference if you go down to 4 or 0 E cores. But from what you’re saying you can’t go down to 0. So does going down to let’s say 4 E Cores and 2 P Cores give big power consumption gains?

I would guess in real world use it would be over half as fast because most of the time you’d struggle to utilise all 12 cores anyway.

Also wondering about 8 E Cores and 1 or 2 P Cores to make it more similar to the U series.

---

<div class="post-metadata">

**Author:** ![Jieren\_Zheng](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/jieren_zheng/32/8994_2.png) [@Jieren\_Zheng](https://community.frame.work/u/Jieren_Zheng)\
**Post date:** [August 18, 2022, 1:18pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/14 "2022-08-18T13:18:03Z")

</div>

> [@Simon\_F](#):
>
> Thats a shame… wondering why they have done it like that. I know that it is possible on some desktop boards.

I was very surprised by this as well considering desktop boards can disable all of them.

> [@Simon\_F](#):
>
> Did you notice any differences battery wise?

Didn’t really try it as most of the time when I was doing troubleshooting when I see temps running up or some stuttering in certain programs, I would go to the BIOS and disable the E cores as much as I can and see it helped performance. Was plugged in when those things happened.

> [@Jonathan\_Walters](#):
>
> My understanding is that with the E cores because they come in sets of 4 you’ll only notice a substantial power difference if you go down to 4 or 0 E cores. But from what you’re saying you can’t go down to 0. So does going down to let’s say 4 E Cores and 2 P Cores give big power consumption gains?

Then this would be weird because you can choose 8 E cores all the way to 1 E core active, not in groups of 8.

---

<div class="post-metadata">

**Author:** ![Simon\_F](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@Simon\_F](https://community.frame.work/u/Simon_F)\
**Post date:** [August 18, 2022, 1:29pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/15 "2022-08-18T13:29:57Z")

</div>

> [@Jonathan\_Walters](#):
>
> My understanding is that with the E cores because they come in sets of 4 you’ll only notice a substantial power difference if you go down to 4 or 0 E cores.

4 e-cores form a cluster, that has some resources / logic that is shared between the cores.  
So when you are only running 1 e-core, the shared logic for that cluster is still active and consumes power.  
It will consume less power when disabling a single e-core, but disabling the whole cluster should reduce power draw by 4x (e-cores) + y (shared logic).

---

<div class="post-metadata">

**Author:** ![Jonathan\_Walters](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@Jonathan\_Walters](https://community.frame.work/u/Jonathan_Walters)\
**Post date:** [August 18, 2022, 3:50pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/16 "2022-08-18T15:50:56Z")

</div>

> [@Jieren\_Zheng](#):
>
> Then this would be weird because you can choose 8 E cores all the way to 1 E core active, not in groups of 8.

You can do that but I don’t think you get the best power efficiency by doing so. @Simon_F elaborates on it.

---

<div class="post-metadata">

**Author:** ![Alex\_Morozov](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@Alex\_Morozov](https://community.frame.work/u/Alex_Morozov)\
**Post date:** [August 18, 2022, 6:20pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/17 "2022-08-18T18:20:51Z")

</div>

Output from `lstopo`:

 ![2022-08-18_14-08-1660846475](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/4/4c70b22b74f6f3ad257d288f5d24b79f3ab16b7c.png)

It’s also possible to shutdown all but the first core without reboot with `echo 0 | tee /sys/devices/system/cpu/cpu*/online` (or do it more selectively if you like). I’m not sure if it completely cuts off power or not. I don’t see any obvious improvement with a single core left online.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Walters](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@Jonathan\_Walters](https://community.frame.work/u/Jonathan_Walters)\
**Post date:** [August 18, 2022, 8:01pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/18 "2022-08-18T20:01:25Z")

</div>

> [@Alex\_Morozov](#):
>
> I don’t see any obvious improvement with a single core left online.

As in there’s negligible power draw difference between having all 14 cores online and having only 1 core online?

---

<div class="post-metadata">

**Author:** ![Vijfhoek](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/vijfhoek/32/10671_2.png) [@Vijfhoek](https://community.frame.work/u/Vijfhoek)\
**Post date:** [August 18, 2022, 9:34pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/19 "2022-08-18T21:34:16Z")

</div>

I’ve done some experimentation with this as well and also didn’t notice idle power use improve significantly by disabling P cores - basically within margin of error

---

<div class="post-metadata">

**Author:** ![Alex\_Morozov](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@Alex\_Morozov](https://community.frame.work/u/Alex_Morozov)\
**Post date:** [August 20, 2022, 5:11pm UTC](https://community.frame.work/t/12th-gen-power-management-on-linux/21330/20 "2022-08-20T17:11:59Z")

</div>

> [@Jonathan\_Walters](#):
>
> As in there’s negligible power draw difference between having all 14 cores online and having only 1 core online?

Yes. I did a few better experiments right now:  
3.5W – raw console, idle, 1p or 20 cores, with or without wifi,  
4.06W – wayland, idle, 20 cores or 1p+4e cores  
4.01W – wayland, idle, 1p core,  
5.1W – wayland, firefox (~20 tabs), idle, 1 or 20 cores.

In all cases I did minimal interactions with the system and waited enough for measurements to become stable. Brightness is down to the minimum.  
There is 0.05W difference between wayland in idle and I think it’s significant, but that’s really too little to be of any importance. As soon I’m starting to do anything, power drain goes to at least 7-8W.

It’s quite interesting what the difference would online cores make when doing some real-world work, but it’s hard to benchmark. I was typing this post on all cores enabled – 7-8W. When I switched to 1p core, it became 10W. Swithed back to 20 cores – 8W, switched back to 1p core – still 8.5W. 1p + 4e – 7.5W. So nothing definitive.

[Next page](https://community.frame.work/t/12th-gen-power-management-on-linux/21330.md?page=2)
