Bug#990162: power consumption regression
The power consumption measurement in my previous message using RC2 was executed wrong. A USB key added to the power consumption. The conclusions based on that are wrong. New test result after reboot: +6% compared to Debian 10. The same power consumption level as in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990162#31 .
Bug#990162: power consumption regression
Tested Debian Bullseye RC2 - no Desktop Environment (GUI) appended to /etc/sources on deb lines: contrib nonfree apt install firmware-misc-nonfree apt install powertop powertop --auto-tune run as a service at boot /etc/default/grub contains GRUB_CMDLINE_LINUX_DEFAULT="quiet consoleblank=5" # update-grub # cat /sys/module/kernel/parameters/consoleblank 5 (screen is blanked) # cat /sys/devices/pci:00/:00:02.0/graphics/fb0/blank (no value) The dmesg errors are gone. The disk was repartitioned during install. There is no longer a drop in power consumption at console blanking. We're back to +25%. These do not have the desired power reduction effect: echo 1 > /sys/devices/pci:00/:00:02.0/graphics/fb0/blank (no change in power consumption) echo > /sys/devices/pci:00/:00:02.0/graphics/fb0/blank (disables blanking, screen blanks again after 5 seconds, same level of power consumption) attempted again: echo 1 > /sys/devices/pci:00/:00:02.0/graphics/fb0/blank (no change in power consumption) It seems no longer possible to use these settings as they were to reduce power consumption. It seems power consumption reduction by the turning off console is not working.
Bug#990162: power consumption regression
In order to attempt to prevent the i915 error, this command was used: aptitude -t unstable install firmware-misc-nonfree This installed firmware-misc-nonfree_20210315-2_all.deb. After rebooting, it seems to solve the i915 error. The power consumption (+25% compared to Debian 10.9) initially did not change because a single line message about the disk was still on screen, blocking blanking of the screen: dev/sda2: clean 5086/15177184 files, 1868566/60668160 blocks This remains on screen after running e2fsck /dev/sda2 booted from the installer usb. No errors reported. By using this workaround again: echo 1 > /sys/devices/pci:00/:00:02.0/graphics/fb0/blank and then echo > /sys/devices/pci:00/:00:02.0/graphics/fb0/blank The screen blanked. The login prompt was displayed shortly before blanking at the second command. Using the keyboard to wake now works and it is possible to login. After that, power consumption was reduced to +6% (down from +25%) above Debian 10 level. package: linux-image-5.10.0-8-amd64 version: 5.10.46-1 package: firmware-misc-nonfree version: 20210315-2 i915/kbl_dmc_ver1_04.bin is part of firmware-misc-nonfree 20210315-2 https://packages.debian.org/bullseye/firmware-linux-nonfree Also tested with similar result: package: firmware-misc-nonfree version: 20210322-1~exp1
Bug#990162: power consumption regression
I tested going back to kernel 4.19 which increased power use even more. While testing reverting to linux-image-5.10.0-7-amd64 and linux-image-5.10.0-8-amd64, I noticed that there was a message on the screen which should have been blanked (grub command line has consoleblank=5). What happens is that the screen is blanked for 5 seconds and then shown again. # cat /sys/module/kernel/parameters/consoleblank 5 /etc/default/grub contains: GRUB_CMDLINE_LINUX_DEFAULT="quiet consoleblank=5" The message on screen is: dev/sda2: recovering journal dev/sda2: clean 4536/1517 584 files, 1757736/60668160 blocks [2.278775] i915 :00:02.0: firmware: failed to load i915/kbl_dmc_ver1_04.bin (-2) [2.278780] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware There is no login prompt or cursor on screen. The system does not respond to key presses. It is possible to log in remotely using ssh. It seems consoleblank is overridden by the "recovery journal". This is not a good situation, the screen should blank as instructed. Blanking the screen should save power consumption, if indeed the monitor and/or the integrated GPU driving it is set to low power. If there is something displayed on screen, it will not save power. This forces the monitor to blank: # echo 1 > /sys/devices/pci:00/:00:02.0/graphics/fb0/blank The effect is the same as pulling the VGA plug: power consumption drops with about 9%. Obviously, this not near 25%. The monitor is re-enabled by: echo > /sys/devices/pci:00/:00:02.0/graphics/fb0/blank The monitor turns on again, displays a login prompt and blanks after 5 seconds as expected. Power saved remains 9%. The monitor does not wake by keyboard as it does in Debian 10.
Bug#990162: power consumption regression
package: linux-image-5.10.0-8-amd64 version: 5.10.46-1 Tested on Debian 11 with sid (unstable) kernel. Performs slightly better (3%) than 5.10.28-1/5.10.40-1.
Bug#990162: power consumption regression
Same issue with this version on Debian 11 package: linux-image-5.10.0-7-amd64 version: 5.10.40-1
Bug#990162: power consumption regression
Package: linux-image-5.10.0-6-amd64 Version: 5.10.28-1 Idle power consumption has increased by 25% from Debian 10.9 to Debian 11. Possibly a kernel or driver/firmware issue. Debian 11, updated # uname -a Linux mx1 5.10.0-6-amd64 #1 SMP Debian 5.10.28-1 (2021-04-09) x86_64 GNU/Linux dpkg --list | grep linux-image ii linux-image-5.10.0-6-amd64 5.10.28-1 amd64 Linux 5.10 for 64-bit PCs (signed) ii linux-image-amd64 5.10.28-1 amd64 Linux for 64-bit PCs (meta-package) powertop --auto-tune was executed (tunables at good) see below for C states output dpkg --list | grep powertop ii powertop 2.11-1 amd64 diagnose issues with power consumption and management processor: Coffee Lake Intel Pentium G5400 One error in dmesg dmesg: all i915 lines: [ 2.153980] i915 :00:02.0: [drm] VT-d active for gfx access [ 2.158236] i915 :00:02.0: vgaarb: deactivate vga console [ 2.172255] i915 :00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem [ 2.174543] i915 :00:02.0: firmware: failed to load i915/kbl_dmc_ver1_04.bin (-2) [ 2.174551] i915 :00:02.0: Direct firmware load for i915/kbl_dmc_ver1_04.bin failed with error -2 [ 2.174553] i915 :00:02.0: [drm] Failed to load DMC firmware i915/kbl_dmc_ver1_04.bin. Disabling runtime power management. [ 2.174554] i915 :00:02.0: [drm] DMC firmware homepage: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/i915 [ 2.515706] i915 :00:02.0: [drm] failed to retrieve link info, disabling eDP [ 2.556098] [drm] Initialized i915 1.6.0 20200917 for :00:02.0 on minor 0 [ 2.558481] snd_hda_intel :00:1f.3: bound :00:02.0 (ops i915_audio_component_bind_ops [i915]) [ 2.608536] fbcon: i915drmfb (fb0) is primary device [ 2.647236] i915 :00:02.0: [drm] fb0: i915drmfb frame buffer device # lspci | grep -i VGA 00:02.0 VGA compatible controller: Intel Corporation CoffeeLake-S GT1 [UHD Graphics 610] kbl_dmc_ver1_04.bin not found on disk # find / -name kbl_dmc_ver1_04.bin # cat /sys/kernel/debug/dri/0/i915_dmc_info cat /sys/kernel/debug/dri/0/i915_dmc_info fw loaded: no path: i915/kbl_dmc_ver1_04.bin [..] # cat /sys/kernel/debug/dri/0/i915_params/dmc_firmware_path cat /sys/kernel/debug/dri/0/i915_params/dmc_firmware_path (null) No GUI. /usr/sbin/powertop modprobe cpufreq_stats failedLoaded 0 prior measurements RAPL device for cpu 0 RAPL Using PowerCap Sysfs : Domain Mask f RAPL device for cpu 0 RAPL Using PowerCap Sysfs : Domain Mask f Devfreq not enabled glob returned GLOB_ABORTED PowerTOP v2.11 Overview Idle stats Frequency stats Device stats Tunables WakeUp Pkg(HW) | Core(HW) | CPU(OS) 0 CPU(OS) 2 | | C0 active 0.1% 0.1% | | POLL 0.0% 0.0 ms 0.0% 0.0 ms | | C1 0.0% 1.6 ms 0.1% 0.7 ms C2 (pc2) 3.6% | | C3 (pc3) 0.0% | C3 (cc3) 0.0% | C3 0.0% 0.2 ms 0.0% 0.0 ms C6 (pc6) 0.0% | C6 (cc6) 0.0% | C6 0.0% 0.8 ms 0.0% 0.1 ms C7 (pc7) 0.0% | C7 (cc7) 99.4% | C7s 0.0% 0.0 ms 0.0% 0.0 ms C8 (pc8) 95.2% | | C8 0.3% 2.2 ms 0.3% 1.4 ms C9 (pc9) 0.0% | | C9 0.0% 3.0 ms 0.1% 4.6 ms C10 (pc10) 0.0% | | | | C10 99.3% 129.0 ms 99.3% 122.4 ms | | C1E 0.2% 3.6 ms 0.1% 1.2 ms | Core(HW) | CPU(OS) 1 CPU(OS) 3 | | C0 active 0.1% 0.0% | | POLL 0.0% 0.0 ms 0.0% 0.0 ms | | C1 0.6% 0.3 ms 0.2% 0.2 ms | | | C3 (cc3) 0.0% | C3 0.0% 0.1 ms 0.0% 0.0 ms | C6 (cc6) 0.0% | C6 0.0% 0.0 ms 0.0% 0.0 ms | C7 (cc7) 99.3% | C7s 0.0% 0.0 ms 0.0% 0.0 ms | | C8 0.0% 0.0 ms 0.0% 1.0 ms | | C9 0.0% 0.0 ms 0.0% 0.0 ms | | | | C10 99.3% 159.2 ms 99.7% 220.5 ms | | C1E 0.0% 0.0 ms 0.0% 0.0 ms | GPU | | | | Powered On 0.0% | | RC6 100.0% | | RC6p 0.0% | | RC6pp 0.0% | | | | | | | | | | | | | | | Power est. Usage Device name 0.0% I2C Adapter (i2c-1): i915 gmbus dpb 0.0% I2C Adapter (i2c-4): i915 gmbus dpd 0.0% I2C Adapter (i2c-2): i915 gmbus dpc 0.0% I2C Adapter (i2c-3): i915 gmbus misc