fenrus75 / powertop

The Linux PowerTOP tool -- please post patches to the mailing list instead of using github pull requests
http://www.01.org/powertop
GNU General Public License v2.0
1.06k stars 131 forks source link

Stats for display backlight being reported as 0mW #62

Open sk33wiff opened 4 years ago

sk33wiff commented 4 years ago

Hello

I was wondering what do I need do, so that powertop will properly read stats for my laptop's (lenovo e531) display. In case it's relevant, my GPU is a hybrid intel HD 4000/nvidia 740m one. I've already tried with both.

Currently this is how it looks like: 19.9%;Display backlight; 0 mW

I already tried setting the kernel's option acpi_backlight=vendor, but it made no difference.

These is how my current relevant kernel's config flags looks like:

$ cat /lib/modules/$(uname -r)/build/.config | grep CONFIG_NO_HZ
CONFIG_NO_HZ_COMMON=y
CONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ_FULL is not set
CONFIG_NO_HZ=y
$ cat /lib/modules/$(uname -r)/build/.config | grep CONFIG_HIGH_RES_TIMERS
CONFIG_HIGH_RES_TIMERS=y
$ cat /lib/modules/$(uname -r)/build/.config | grep CONFIG_HPET_TIMER
CONFIG_HPET_TIMER=y
$ cat /lib/modules/$(uname -r)/build/.config | grep CONFIG_CPU_FREQ_GOV_ONDEMAND
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
$ cat /lib/modules/$(uname -r)/build/.config | grep CONFIG_USB_SUSPEND
$ cat /lib/modules/$(uname -r)/build/.config | grep CONFIG_SND_AC97_POWER_SAVE
CONFIG_SND_AC97_POWER_SAVE=y
CONFIG_SND_AC97_POWER_SAVE_DEFAULT=0
$ cat /lib/modules/$(uname -r)/build/.config | grep CONFIG_TIMER_STATS
$ cat /lib/modules/$(uname -r)/build/.config | grep CONFIG_PERF_EVENTS
CONFIG_PERF_EVENTS=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_PERF_EVENTS_INTEL_RAPL=m
CONFIG_PERF_EVENTS_INTEL_CSTATE=m
# CONFIG_PERF_EVENTS_AMD_POWER is not set
$ cat /lib/modules/$(uname -r)/build/.config | grep CONFIG_EVENT_POWER_TRACING_DEPRECATED
$ cat /lib/modules/$(uname -r)/build/.config | grep CONFIG_X86_MSR
CONFIG_X86_MSR=m
$ cat /lib/modules/$(uname -r)/build/.config | grep ACPI_PROCFS_POWER
# CONFIG_ACPI_PROCFS_POWER is not set
$ cat /lib/modules/$(uname -r)/build/.config | grep CONFIG_DEBUG_FS
CONFIG_DEBUG_FS=y

Debug report:

____________________________________________________________________
            P o w e r T O P

____________________________________________________________________
 *  *  *   System Information   *  *  *

PowerTOP Version;v2.11-1-g7ef7f79 ran at Sat Jun 20 14:50:09 2020

Kernel Version;Linux version 5.4.0-37-generic
System Name;LENOVO68851L2ThinkPad Edge E531
CPU Information;4 Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
OS Information;Ubuntu 20.04 LTS

Target: 1 units/s;System:  196.1 wakeup/s;CPU:  3.2% usage;GPU: 0 ops/s;GFX: 5.9 wakeups/s;VFS: 0 ops/s;

____________________________________________________________________
 *  *  *   Top 10 Power Consumers   *  *  *

Usage;Events/s;Category;Description;PW Estimate
100.0%;;Device;Audio codec hwC0D0: Conexant;  500 mW  
100.0%;;Device;Audio codec hwC0D3: Intel;  500 mW  
  0.5%; 31.1;Process;[PID 3541] /usr/lib/firefox/firefox ;  130 mW  
  0.0%; 22.6;Timer;tick_sched_timer; 89.8 mW  
  0.2%; 18.3;Process;[PID 3553] /usr/lib/firefox/firefox ; 74.9 mW  
  0.3%; 13.5;Process;[PID 4017] /usr/lib/firefox/firefox -contentproc -childID 12 -isForBrowser -prefsLen 7433 -prefMapSize 227248 -parentBuildID 20; 58.3 mW  
  0.3%; 11.4;Process;[PID 3903] /usr/lib/firefox/firefox -contentproc -childID 9 -isForBrowser -prefsLen 7361 -prefMapSize 227248 -parentBuildID 202; 49.4 mW  
  0.3%;  9.4;Process;[PID 2493] cinnamon --replace ; 46.5 mW  
  0.1%; 10.2;Interrupt;[6] tasklet(softirq); 41.8 mW  
  0.0%;  8.5;kWork;psi_avgs_work; 33.9 mW  

____________________________________________________________________
 *  *  *   Processor Idle State Report   *  *  *

Package;0
C2 (pc2);  0.4%
C3 (pc3);  0.0%
C6 (pc6);  1.3%
C7 (pc7); 87.9%
;
;
;

;Core 0
C3 (cc3);  0.0%
C6 (cc6);  0.0%
C7 (cc7); 98.1%
;Core 1
C3 (cc3);  0.1%
C6 (cc6);  0.0%
C7 (cc7); 97.5%
;GPU 0
Powered On;  7.4%
RC6;  9.5%
RC6p; 83.1%
RC6pp;  0.0%

CPU;0;CPU;1
C0 active;  0.4%;  0.5%;
POLL;  0.0%;   0.0 ms;  0.0%;   0.0 ms
C1;  0.0%;   0.0 ms;  0.0%;   0.0 ms
C1E;  0.0%;   0.3 ms;  0.0%;   0.3 ms
C3;  0.0%;   0.3 ms;  0.0%;   0.2 ms
C6;  0.0%;   0.0 ms;  0.0%;   0.0 ms
C7; 99.1%;  21.2 ms; 99.0%;  26.3 ms
CPU;2;CPU;3
C0 active;  0.5%;  0.5%;
POLL;  0.0%;   0.0 ms;  0.0%;   0.0 ms
C1;  0.0%;   0.7 ms;  0.0%;   0.1 ms
C1E;  0.1%;   0.6 ms;  0.0%;   0.2 ms
C3;  0.0%;   0.5 ms;  0.0%;   0.4 ms
C6;  0.0%;   0.0 ms;  0.0%;   0.0 ms
C7; 98.7%;  20.5 ms; 98.9%;  17.2 ms
;;;
;;;;
;;;;
;;;;
;;;;
;;;;
;;;;
;;;;
;;;;
;;;;
;;;;
;;;;
;;;;
;;;;
;;;;
;;;;
;;;;

____________________________________________________________________
 *  *  *   Processor Frequency Report   *  *  *

Package;0
Idle;
3.21 GHz;
2.40 GHz;
2.00 GHz;
2.10 GHz;
1500 MHz;
1.80 GHz;
1.60 GHz;
1400 MHz;
1200 MHz;
1300 MHz;
;
;
;

;Core 0
Idle;
1.91 GHz;
2.71 GHz;
2.00 GHz;
3.21 GHz;
1.80 GHz;
1.60 GHz;
1500 MHz;
1200 MHz;
1300 MHz;
;Core 1
Idle;
1.91 GHz;
2.71 GHz;
2.00 GHz;
3.21 GHz;
1.80 GHz;
1.60 GHz;
1500 MHz;
1300 MHz;
1200 MHz;
1400 MHz;
;
;
;
;
;
;
;
;
;
;
;
;
;

CPU 0;CPU 1
Average;  1291 MHz;  1244 MHz
Idle;
2.71 GHz;
2.00 GHz;
1.91 GHz;
3.21 GHz;
1.80 GHz;
1.60 GHz;
1200 MHz;
1300 MHz;
CPU 2;CPU 3
Average;  1213 MHz;  1210 MHz
Idle;
1.91 GHz;
2.71 GHz;
2.00 GHz;
3.21 GHz;
1.80 GHz;
1.60 GHz;
1500 MHz;
1200 MHz;
1300 MHz;
1400 MHz;
;
;;
;;
;;
;;
;;
;;
;;
;;
;;
;;
;;
;;
;;
;;
;;

____________________________________________________________________
 *  *  *   Overview of Software Power Consumers   *  *  *

Usage;Wakeups/s;GPU ops/s;Disk IO/s;GFX Wakeups/s;Category;Description;PW Estimate
  4.9 ms/s; 31.1;;;;Process;[PID 3541] /usr/lib/firefox/firefox ;  130 mW  
383.4 us/s; 22.6;;;;Timer;tick_sched_timer; 89.8 mW  
  1.6 ms/s; 18.3;;;;Process;[PID 3553] /usr/lib/firefox/firefox ; 74.9 mW  
  3.2 ms/s; 13.5;;;;Process;[PID 4017] /usr/lib/firefox/firefox -contentproc -childID 12 -isForBrowser -prefsLen 7433 -prefMapSize 227248 -parentBuildID 20; 58.3 mW  
  2.8 ms/s; 11.4;;;;Process;[PID 3903] /usr/lib/firefox/firefox -contentproc -childID 9 -isForBrowser -prefsLen 7361 -prefMapSize 227248 -parentBuildID 202; 49.4 mW  
  3.0 ms/s;  9.4;;;  4.5;Process;[PID 2493] cinnamon --replace ; 46.5 mW  
  0.9 ms/s; 10.2;;;;Interrupt;[6] tasklet(softirq); 41.8 mW  
 84.0 us/s;  8.5;;;;kWork;psi_avgs_work; 33.9 mW  
  1.0 ms/s;  6.3;;;;Process;[PID 4141] /usr/lib/firefox/firefox -contentproc -childID 14 -isForBrowser -prefsLen 7529 -prefMapSize 227248 -parentBuildID 20; 26.6 mW  
100.4 us/s;  6.5;;;;Process;[PID 11] [rcu_sched]; 26.0 mW  
  0.9 ms/s;  5.3;;;;Process;[PID 3577] /usr/lib/firefox/firefox ; 22.4 mW  
  1.2 ms/s;  3.6;;;;Process;[PID 3686] /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 6439 -prefMapSize 227248 -parentBuildID 202; 16.0 mW  
  0.8 ms/s;  3.4;;;  0.8;Process;[PID 2875] /usr/libexec/gnome-terminal-server ; 15.5 mW  
329.6 us/s;  3.5;;;;Process;[PID 3916] /usr/lib/firefox/firefox -contentproc -childID 9 -isForBrowser -prefsLen 7361 -prefMapSize 227248 -parentBuildID 202; 14.3 mW  
200.3 us/s;  3.3;;;;Process;[PID 4030] /usr/lib/firefox/firefox -contentproc -childID 12 -isForBrowser -prefsLen 7433 -prefMapSize 227248 -parentBuildID 20; 13.3 mW  
213.7 us/s;  3.1;;;;Process;[PID 4154] /usr/lib/firefox/firefox -contentproc -childID 14 -isForBrowser -prefsLen 7529 -prefMapSize 227248 -parentBuildID 20; 12.6 mW  
688.8 us/s;  2.9;;;;Process;[PID 4092] /usr/lib/firefox/firefox -contentproc -childID 13 -isForBrowser -prefsLen 7480 -prefMapSize 227248 -parentBuildID 20; 12.5 mW  
101.7 us/s;  3.1;;;;Interrupt;[33] i915; 12.4 mW  
274.4 us/s;  1.9;;;;Process;[PID 4401] powertop --csv=report.csv ; 7.93 mW  
568.2 us/s;  1.5;;;;Interrupt;[7] sched(softirq); 6.81 mW  
262.4 us/s;  1.2;;;  0.6;Process;[PID 2620] /usr/bin/redshift -v ; 5.75 mW  
117.0 us/s;  1.4;;;;Process;[PID 4106] /usr/lib/firefox/firefox -contentproc -childID 13 -isForBrowser -prefsLen 7480 -prefMapSize 227248 -parentBuildID 20; 5.71 mW  
  1.5 ms/s;  0.8;;;;Process;[PID 1582] /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch ; 5.68 mW  
225.4 us/s;  1.3;;;;Process;[PID 3738] /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 7204 -prefMapSize 227248 -parentBuildID 202; 5.48 mW  
 50.4 us/s;  1.3;;;;Interrupt;[4] block(softirq); 5.41 mW  
 92.4 us/s;  1.2;;;;Process;[PID 3699] /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 6439 -prefMapSize 227248 -parentBuildID 202; 4.88 mW  
  0.7 ms/s;  0.9;;;;Process;[PID 2539] /usr/libexec/tracker-miner-fs ; 4.66 mW  
 14.9 us/s;  1.0;;;;kWork;intel_atomic_cleanup_work; 4.17 mW  
  2.2 us/s;  1.0;;;;kWork;intel_atomic_helper_free_state_; 4.15 mW  
 40.0 us/s;  1.0;;;;Process;[PID 2478] /usr/libexec/gvfs-afc-volume-monitor ; 4.01 mW  
  7.9 us/s;  1.0;;;;kWork;pci_pme_list_scan; 3.96 mW  
 10.8 us/s;  0.9;;;;Timer;watchdog_timer_fn; 3.57 mW  
  2.1 ms/s;;;;;Timer;wl_timer; 3.34 mW  
  0.0 us/s;  0.8;;;;kWork;intel_atomic_commit_work; 3.16 mW  
 47.2 us/s;  0.7;;;;Process;[PID 3694] /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 6439 -prefMapSize 227248 -parentBuildID 202; 2.84 mW  
194.0 us/s;  0.5;;;;Process;[PID 1262] /usr/sbin/NetworkManager --no-daemon ; 2.47 mW  
 46.3 us/s;  0.6;;;;Process;[PID 4101] /usr/lib/firefox/firefox -contentproc -childID 13 -isForBrowser -prefsLen 7480 -prefMapSize 227248 -parentBuildID 20; 2.44 mW  
  8.8 us/s;  0.6;;;;kWork;blk_mq_requeue_work; 2.38 mW  
 41.9 us/s;  0.5;;;;Process;[PID 3764] /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 7204 -prefMapSize 227248 -parentBuildID 202; 2.04 mW  
 29.2 us/s;  0.5;;;;Process;[PID 3007] /usr/libexec/fwupd/fwupd ; 2.02 mW  
  0.0 us/s;  0.4;;;;kWork;disk_events_workfn; 1.78 mW  
 22.4 us/s;  0.4;;;;Process;[PID 1748] /usr/bin/containerd ; 1.61 mW  
 11.3 us/s;  0.4;;;;Process;[PID 1610] /usr/bin/containerd ; 1.60 mW  
 92.8 us/s;  0.3;;;;kWork;hangcheck_elapsed; 1.53 mW  
 39.7 us/s;  0.3;;;;Process;[PID 300] [jbd2/sda6-8]; 1.44 mW  
 36.5 us/s;  0.3;;;;Process;[PID 1297] /usr/lib/accountsservice/accounts-daemon ; 1.44 mW  
 12.5 us/s;  0.3;;;;kWork;vmstat_shepherd; 1.40 mW  
  2.5 us/s;  0.3;;;;kWork;handle_update; 1.39 mW  
  1.4 us/s;  0.3;;;;kWork;blk_mq_timeout_work; 1.38 mW  
 35.5 us/s; 0.30;;;;Process;[PID 2625] nemo-desktop ; 1.24 mW  
 15.7 us/s; 0.30;;;;Process;[PID 1607] /usr/bin/containerd ; 1.21 mW  
  0.7 us/s; 0.30;;;;Timer;intel_uncore_fw_release_timer; 1.19 mW  
617.4 us/s; 0.05;;;;Timer;hrtimer_wakeup; 1.16 mW  
 25.1 us/s; 0.25;;;;Process;[PID 3002] /usr/libexec/fwupd/fwupd ; 1.03 mW  
 22.7 us/s; 0.25;;;;Process;[PID 2966] update-notifier ; 1.02 mW  
 20.4 us/s; 0.25;;;;Process;[PID 2968] /usr/bin/gnome-software --gapplication-service ; 1.02 mW  
 17.2 us/s; 0.25;;;;kWork;retire_work_handler; 1.01 mW  
 83.4 us/s; 0.20;;;;Process;[PID 354] /lib/systemd/systemd-journald ;  920 uW  
 57.6 us/s; 0.20;;;;Process;[PID 1399] /usr/sbin/vnstatd -n ;  879 uW  
 30.4 us/s; 0.20;;;;Process;[PID 2579] nm-applet ;  837 uW  
  1.6 us/s; 0.20;;;;Timer;it_real_fn;  792 uW  
 39.2 us/s; 0.15;;;;Process;[PID 2571] nemo-desktop ;  653 uW  
 31.7 us/s; 0.15;;;;Process;[PID 2530] cinnamon --replace ;  642 uW  
 15.9 us/s; 0.15;;;;Process;[PID 2397] /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-xsettings ;  617 uW  
 10.9 us/s; 0.15;;;;Process;[PID 1095] [jbd2/sda8-8];  609 uW  
  1.3 us/s; 0.15;;;;kWork;neigh_periodic_work;  594 uW  
  0.9 us/s; 0.15;;;;Timer;sched_rt_period_timer;  593 uW  
 58.1 us/s; 0.10;;;;Process;[PID 1270] /usr/sbin/irqbalance --foreground ;  485 uW  
 55.4 us/s; 0.10;;;;Process;[PID 2249] /lib/systemd/systemd --user ;  481 uW  
 52.9 us/s; 0.10;;;;Process;[PID 4415] tracker-miner-f;  477 uW  
 50.0 us/s; 0.10;;;;Process;[PID 2526] cinnamon --replace ;  473 uW  
 41.3 us/s; 0.10;;;;kWork;__i915_gem_free_work;  459 uW  
 33.9 us/s; 0.10;;;;Process;[PID 2583] /usr/lib/caribou/caribou ;  448 uW  
 19.4 us/s; 0.10;;;;Process;[PID 1260] /usr/sbin/cupsd -l ;  425 uW  
140.6 us/s; 0.05;;;;Process;[PID 2420] /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-housekeeping ;  417 uW  
 12.0 us/s; 0.10;;;;Process;[PID 4414] tracker-miner-f;  413 uW  
  6.6 us/s; 0.10;;;;Process;[PID 1317] /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant ;  405 uW  
  5.8 us/s; 0.10;;;;Process;[PID 2045] /usr/libexec/rtkit-daemon ;  404 uW  
  3.8 us/s; 0.10;;;;Process;[PID 2533] cinnamon --replace ;  401 uW  
  0.4 us/s; 0.10;;;;kWork;gen6_pm_rps_work;  395 uW  
240.0 us/s;;;;;Timer;delayed_work_timer_fn;  374 uW  
 79.0 us/s; 0.05;;;;kWork;delayed_fput;  321 uW  
201.2 us/s;;;;;Interrupt;[1] timer(softirq);  314 uW  
171.3 us/s;;;;;Interrupt;[17] wlp4s0;  267 uW  
 18.4 us/s; 0.05;;;;Process;[PID 1768] /usr/bin/containerd ;  226 uW  
 13.8 us/s; 0.05;;;;Process;[PID 4415] pool-tracker-mi;  219 uW  
 13.0 us/s; 0.05;;;;Process;[PID 2964] /usr/bin/gnome-software --gapplication-service ;  218 uW  
 11.2 us/s; 0.05;;;;Process;[PID 1361] /usr/sbin/rsyslogd -n -iNONE ;  215 uW  
  9.8 us/s; 0.05;;;;kWork;__i915_globals_park;  213 uW  
  9.4 us/s; 0.05;;;;Process;[PID 4414] pool-tracker-mi;  212 uW  
  8.9 us/s; 0.05;;;;Process;[PID 1359] /usr/sbin/rsyslogd -n -iNONE ;  211 uW  
  8.7 us/s; 0.05;;;;kWork;wb_workfn;  211 uW  
  5.2 us/s; 0.05;;;;Process;[PID 4373] /usr/bin/gedit --gapplication-service ;  205 uW  
  4.3 us/s; 0.05;;;;Process;[PID 2528] cinnamon --replace ;  204 uW  
  3.9 us/s; 0.05;;;;Process;[PID 2326] /usr/bin/ssh-agent /usr/bin/im-launch cinnamon-session-cinnamon ;  203 uW  
  2.5 us/s; 0.05;;;;Process;[PID 1131] /sbin/rpcbind -f -w ;  201 uW  
  1.5 us/s; 0.05;;;;kWork;free_work;  200 uW  
127.7 us/s;;;;;Process;[PID 4262] [kworker/u16:0];  199 uW  
;;;;;;;
;;;;;;;

The system baseline power is estimated at:  1.82  W;
____________________________________________________________________
 *  *  *   Device Power Report   *  *  *

Usage;Device Name;PW Estimate
  3.2%;CPU misc;  572 mW   
100.0%;Audio codec hwC0D3: Intel;  500 mW   
100.0%;Audio codec hwC0D0: Conexant;  500 mW   
  3.2%;CPU core;  253 mW   
100.0%;USB device: 2.4G Wireless Mouse (MOSART Semi.);    0 mW   
100.0%;Radio device: btusb;    0 mW   
100.0%;Radio device: thinkpad_acpi;    0 mW   
100.0%;USB device: xHCI Host Controller;    0 mW   
     19.9%;Display backlight;    0 mW   
100.0%;Radio device: wl;           
100.0%;Radio device: wl;           
100.0%;PCI Device: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode];           
100.0%;PCI Device: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader;           
100.0%;PCI Device: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1;           
100.0%;PCI Device: Intel Corporation HM77 Express Chipset LPC Controller;           
100.0%;PCI Device: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1;           
100.0%;PCI Device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller;           
100.0%;PCI Device: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4;           
100.0%;PCI Device: Intel Corporation 3rd Gen Core processor DRAM Controller;           
100.0%;PCI Device: Intel Corporation 3rd Gen Core processor Graphics Controller;           
100.0%;PCI Device: Broadcom Inc. and subsidiaries BCM43228 802.11a/b/g/n;           
100.0%;PCI Device: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller;           
100.0%;PCI Device: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2;           
100.0%;PCI Device: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2;           
100.0%;PCI Device: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller;           
100.0%;PCI Device: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller;           
100.0%;PCI Device: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1;           
  0.0%;USB device: usb-device-8087-0024;           
  0.0%;PCI Device: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port;           
  0.0%;USB device: EHCI Host Controller;           
  0.0%;USB device: BCM20702A0 (Broadcom Corp);           
  0.0%;USB device: usb-device-8087-0024;           
  0.0%;USB device: xHCI Host Controller;           
  0.0%;USB device: Integrated Camera (J1DD5S22H);           
  0.0%;USB device: EHCI Host Controller;           
  0.0%;Thinkpad light;           
  0.0 pkts/s;Network interface: enp5s0 (r8169);           
  0.0%;PCI Device: NVIDIA Corporation GK208M [GeForce GT 740M];           
  0.0 pkts/s;Network interface: wlp4s0 (wl);           
  0.0%;runtime-intel_rapl_msr.0;           
  0.0%;runtime-alarmtimer.0.auto;           
  0.0%;runtime-reg-dummy;           
  0.0%;runtime-rtsx_pci_sdmmc.0;           
  0.0%;runtime-PNP0C0D:00;           
  0.0%;runtime-PNP0C09:00;           
  0.0%;runtime-PNP0C0A:00;           
  0.0%;runtime-thinkpad_hwmon;           
  0.0%;runtime-ACPI0003:00;           
  0.0%;runtime-eisa.0;           
  0.0%;runtime-microcode;           
  0.0%;runtime-LEN0068:00;           
  0.0%;runtime-i8042;           
  0.0%;runtime-Fixed MDIO bus.0;           
  0.0%;I2C Adapter (i2c-5): i915 gmbus dpb;           
  0.0%;runtime-PNP0C0C:00;           
  0.0%;runtime-INT0800:00;           
  0.0%;runtime-vesa-framebuffer.0;           
  0.0%;runtime-thinkpad_acpi;           
  0.0%;runtime-coretemp.0;           
  0.0%;runtime-regulatory.0;           
  0.0%;runtime-PNP0800:00;           
  0.0%;runtime-PNP0103:00;           
  0.0%;runtime-PNP0C04:00;           
  0.0%;runtime-serial8250;           
  0.0%;runtime-PNP0C14:00;           
  0.0%;runtime-iTCO_wdt.1.auto;           
  0.0%;runtime-rtsx_pci_ms.0;           
  0.0%;runtime-pcspkr;           
  0.0%;I2C Adapter (i2c-3): i915 gmbus panel;           
  0.0%;I2C Adapter (i2c-1): i915 gmbus ssc;           
  0.0%;I2C Adapter (i2c-8): DPDDC-C;           
  0.0%;I2C Adapter (i2c-6): i915 gmbus dpd;           
  0.0%;I2C Adapter (i2c-4): i915 gmbus dpc;           
  0.0%;I2C Adapter (i2c-2): i915 gmbus vga;           
  0.0%;I2C Adapter (i2c-0): SMBus I801 adapter at efa0;           
  0.0%;I2C Adapter (i2c-7): DPDDC-B;           
____________________________________________________________________
 *  *  *   Process Device Activity   *  *  *

Process;Device
systemd;/dev/autofs
;/dev/kmsg
systemd-journal;/dev/kmsg
;/dev/kmsg
acpid;/dev/input/event0
;/dev/input/event1
;/dev/input/event10
;/dev/input/event11
;/dev/input/event12
;/dev/input/event13
;/dev/input/event2
;/dev/input/event3
;/dev/input/event7
;/dev/input/event8
;/dev/input/event9
bluetoothd;/dev/rfkill
systemd-logind;/dev/input/event0
;/dev/input/event1
;/dev/input/event2
;/dev/input/event3
;/dev/input/event7
wpa_supplicant;/dev/rfkill
none;/dev/kmsg
Xorg;/dev/dri/card0
;/dev/dri/card0
;/dev/input/event0
;/dev/input/event14
;/dev/input/event2
;/dev/input/event3
;/dev/input/event4
;/dev/input/event6
;/dev/input/event7
;/dev/input/event8
;/dev/input/event9
;/dev/vga_arbiter
upowerd;/dev/input/event1
pulseaudio;/dev/snd/controlC0
;/dev/snd/controlC0
;/dev/snd/controlC0
gvfsd-fuse;/dev/fuse
cinnamon;/dev/dri/card0
blueman-applet;/dev/rfkill

____________________________________________________________________
 *  *  *   AHCI ALPM Residency Statistics - Not supported on this macine   *  *  *

____________________________________________________________________
 *  *  *   Software Settings in Need of Tuning   *  *  *

Description;Script
Enable SATA link power management for host4;echo 'min_power' > '/sys/class/scsi_host/host4/link_power_management_policy';
Enable SATA link power management for host5;echo 'min_power' > '/sys/class/scsi_host/host5/link_power_management_policy';
Enable SATA link power management for host3;echo 'min_power' > '/sys/class/scsi_host/host3/link_power_management_policy';
Enable SATA link power management for host1;echo 'min_power' > '/sys/class/scsi_host/host1/link_power_management_policy';
Enable SATA link power management for host2;echo 'min_power' > '/sys/class/scsi_host/host2/link_power_management_policy';
Enable SATA link power management for host0;echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy';
Enable Audio codec power management;echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';
Runtime PM for I2C Adapter i2c-2 (i915 gmbus vga);echo 'auto' > '/sys/bus/i2c/devices/i2c-2/device/power/control';
Runtime PM for I2C Adapter i2c-0 (SMBus I801 adapter at efa0);echo 'auto' > '/sys/bus/i2c/devices/i2c-0/device/power/control';
Runtime PM for I2C Adapter i2c-4 (i915 gmbus dpc);echo 'auto' > '/sys/bus/i2c/devices/i2c-4/device/power/control';
Runtime PM for I2C Adapter i2c-1 (i915 gmbus ssc);echo 'auto' > '/sys/bus/i2c/devices/i2c-1/device/power/control';
Runtime PM for I2C Adapter i2c-3 (i915 gmbus panel);echo 'auto' > '/sys/bus/i2c/devices/i2c-3/device/power/control';
Autosuspend for USB device 2.4G Wireless Mouse [MOSART Semi.];echo 'auto' > '/sys/bus/usb/devices/3-3/power/control';
Runtime PM for I2C Adapter i2c-5 (i915 gmbus dpb);echo 'auto' > '/sys/bus/i2c/devices/i2c-5/device/power/control';
Runtime PM for I2C Adapter i2c-6 (i915 gmbus dpd);echo 'auto' > '/sys/bus/i2c/devices/i2c-6/device/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1;echo 'auto' > '/sys/bus/pci/devices/0000:00:1d.0/power/control';
Runtime PM for PCI Device Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader;echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control';
Runtime PM for disk sda;echo 'auto' > '/sys/block/sda/device/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode];echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/power/control';
Runtime PM for port ata1 of PCI device: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode];echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/ata1/power/control';
Runtime PM for port ata2 of PCI device: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode];echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/ata2/power/control';
Runtime PM for port ata3 of PCI device: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode];echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/ata3/power/control';
Runtime PM for port ata6 of PCI device: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode];echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/ata6/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1;echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.0/power/control';
Runtime PM for PCI Device Intel Corporation HM77 Express Chipset LPC Controller;echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller;echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control';
Runtime PM for PCI Device Intel Corporation 3rd Gen Core processor Graphics Controller;echo 'auto' > '/sys/bus/pci/devices/0000:00:02.0/power/control';
Runtime PM for PCI Device Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller;echo 'auto' > '/sys/bus/pci/devices/0000:05:00.0/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2;echo 'auto' > '/sys/bus/pci/devices/0000:00:1a.0/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2;echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.1/power/control';
Runtime PM for PCI Device Intel Corporation 3rd Gen Core processor DRAM Controller;echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C216 Chipset Family SMBus Controller;echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control';
Runtime PM for port ata4 of PCI device: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode];echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/ata4/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 4;echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.3/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller;echo 'auto' > '/sys/bus/pci/devices/0000:00:1b.0/power/control';
Runtime PM for port ata5 of PCI device: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode];echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/ata5/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1;echo 'auto' > '/sys/bus/pci/devices/0000:00:16.0/power/control';
Runtime PM for PCI Device Broadcom Inc. and subsidiaries BCM43228 802.11a/b/g/n;echo 'auto' > '/sys/bus/pci/devices/0000:04:00.0/power/control';
____________________________________________________________________
 *  *  *   Untunable Software Issues   *  *  *

Description
I2C Adapter i2c-8 has no runtime power management
I2C Adapter i2c-7 has no runtime power management
____________________________________________________________________
 *  *  *   Optimal Tuned Software Settings   *  *  *

Description
VM writeback timeout
Bluetooth device interface status
NMI watchdog should be turned off
Autosuspend for USB device Integrated Camera [J1DD5S22H]
Autosuspend for USB device xHCI Host Controller [usb4]
Autosuspend for USB device EHCI Host Controller [usb2]
Autosuspend for unknown USB device 1-1 (8087:0024)
Autosuspend for USB device BCM20702A0 [Broadcom Corp]
Autosuspend for USB device EHCI Host Controller [usb1]
Autosuspend for unknown USB device 2-1 (8087:0024)
Autosuspend for USB device xHCI Host Controller [usb3]
Runtime PM for PCI Device NVIDIA Corporation GK208M [GeForce GT 740M]
Runtime PM for PCI Device Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port

____________________________________________________________________
 *  *  *   Wake status of the devices   *  *  *

Description;Script
Wake-on-lan status for device enp5s0;echo 'enabled' > '/sys/class/net/enp5s0/device/power/wakeup';
Wake-on-lan status for device wlp4s0;echo 'enabled' > '/sys/class/net/wlp4s0/device/power/wakeup';
Wake status for USB device usb3;echo 'enabled' > '/sys/bus/usb/devices/usb3/power/wakeup';
Wake status for USB device 2-1;echo 'enabled' > '/sys/bus/usb/devices/2-1/power/wakeup';
Wake status for USB device usb1;echo 'enabled' > '/sys/bus/usb/devices/usb1/power/wakeup';
Wake status for USB device 1-1.3;echo 'enabled' > '/sys/bus/usb/devices/1-1.3/power/wakeup';
Wake status for USB device 1-1;echo 'enabled' > '/sys/bus/usb/devices/1-1/power/wakeup';
Wake status for USB device usb4;echo 'enabled' > '/sys/bus/usb/devices/usb4/power/wakeup';
Wake status for USB device usb2;echo 'enabled' > '/sys/bus/usb/devices/usb2/power/wakeup';
Wake status for USB device 3-3;echo 'enabled' > '/sys/bus/usb/devices/3-3/power/wakeup';

Thanks

gkammela commented 4 years ago

Hi @marcelopm, thanks for reporting the issue. I'm currently trying to reproduce the issue and will post a fix.

fenrus75 commented 4 years ago

in part, powertop needs measurements of the screen on and screen off situation; without that it cannot do a model fit on estimate the power....

On Wed, Jun 24, 2020 at 8:34 AM Gayatri Kammela notifications@github.com wrote:

Hi @marcelopm https://github.com/marcelopm, thanks for reporting the issue. I'm currently trying to reproduce the issue and will post a fix.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fenrus75/powertop/issues/62#issuecomment-648895363, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FKIFDOF3IDX543B66TRYIMG3ANCNFSM4ODHKZBA .

gkammela commented 4 years ago

@marcelopm, please follow @fenrus75's suggestion and run a few screen off and screen on tests and then check the power estimate

sk33wiff commented 4 years ago

@gkammela sorry, what do you mean by "run a few screen off and screen on tests" ? I tried closing my laptop's screen lid, waiting a few seconds and reopening it and repeated the process a few times while running powertop, but it doesn't seem to change anything.

gkammela commented 4 years ago

@marcelopm, please use these commands below for screen off and screen on xset -d 0.0 dpms force off xset -d 0.0 dpms force on

sk33wiff commented 4 years ago

@gkammela I can make the display to go off by using:

xset -display :0 dpms force off

However, as I hit key on my keyboard, the display goes on automatically.

I did that a few times and, just after the display goes on, I can see that powertop stated 0%, which makes sense. But then it just goes back to where it was before:

    0 mW     29.9%        Display backlight