Bug 45381 (KarlV) - too many wakeups are consuming my battery - Lenovo e420s core i5 Sandy Bridge
Summary: too many wakeups are consuming my battery - Lenovo e420s core i5 Sandy Bridge
Status: REJECTED INVALID
Alias: KarlV
Product: Power Management
Classification: Unclassified
Component: cpuidle (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: power-management_cpuidle@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-31 19:19 UTC by Carlos
Modified: 2013-07-27 15:39 UTC (History)
3 users (show)

See Also:
Kernel Version: 3.2.0 and 3.5
Subsystem:
Regression: No
Bisected commit-id:


Attachments
interrupts file (2.00 KB, application/octet-stream)
2012-07-31 19:20 UTC, Carlos
Details
Powertop file (7.98 KB, text/x-log)
2012-07-31 19:20 UTC, Carlos
Details
Powertop 1.97 overview (96.42 KB, image/png)
2012-08-24 16:48 UTC, Carlos
Details
Powertop 1.97 idle stats (60.65 KB, image/png)
2012-08-24 16:48 UTC, Carlos
Details
Powertop 1.97 frequency stats (62.00 KB, image/png)
2012-08-24 16:49 UTC, Carlos
Details
Powertop 1.97 Device stats (94.27 KB, image/png)
2012-08-24 16:50 UTC, Carlos
Details
Powertop 1.97 Tuneables (112.87 KB, image/png)
2012-08-24 16:50 UTC, Carlos
Details
vmstat1 (79.46 KB, image/png)
2012-08-24 16:51 UTC, Carlos
Details
New interrupts (2.00 KB, application/octet-stream)
2012-08-24 16:55 UTC, Carlos
Details
New interrupts (2.00 KB, application/octet-stream)
2013-07-22 21:00 UTC, Carlos
Details
New powertop (7.15 KB, text/x-log)
2013-07-22 21:00 UTC, Carlos
Details
powertop 2.4 html (73.82 KB, text/html)
2013-07-24 19:37 UTC, Carlos
Details

Description Carlos 2012-07-31 19:19:21 UTC
Component: In which sub-part of the software does it exist?
This field is required. Click the word "Component" to see a description of each component. If none seems appropriate, look for a "General" component.

OS: Ubuntu 12.04

Summary: My laptop is wasting too much energy reducing from 5 hours battery life to 2,5 in Ubuntu. It's a Lenovo e420s core i5 Sandy Bridge.

I have tried all the ACPI options in the documentation: hand no help.

Powertop estimates 46.2% (744.3)   [Rescheduling interrupts] <kernel IPI> and the file /proc/interrupts indicates that i8042 and Rescheduling interrupts are producing too many wakeups when idle my CPU.

I attached the files.
Comment 1 Carlos 2012-07-31 19:20:06 UTC
Created attachment 76601 [details]
interrupts file
Comment 2 Carlos 2012-07-31 19:20:39 UTC
Created attachment 76611 [details]
Powertop file
Comment 3 Carlos 2012-08-04 13:01:36 UTC
The same problem with Kernel 3.5 Ubuntu 12.10 Alpha 3
Comment 4 Len Brown 2012-08-23 03:00:05 UTC
 12:     668220          0          0          0   IO-APIC-edge      i8042

yup, that is a heck of a lot of serial interrupts,
at what rate are they arriving?

is this device being used?
can you disable it in BIOS SETUP?

have you always had this problem with all versions of linux,
or it is a recent regression?
Comment 5 Len Brown 2012-08-23 17:27:32 UTC
01.org has a new powertop that you might want to try.
It will have better hints & stats, and a more detailed report.

Also, please run vmstat 1 for a bit - it will show if
you are doing disk IO due to being out of memory...

you may find that stopping "tor" will reduce this.
are you also actively using samba (nmbd), if not,
try testing with it disabled.

Also, what happens if you un-plug your ps/2 mouse?
it seems to be quite busy on irq12.
Comment 6 Carlos 2012-08-24 16:41:53 UTC
(In reply to comment #4)

Hi, thank you for your reply.

>  12:     668220          0          0          0   IO-APIC-edge      i8042
> 
> yup, that is a heck of a lot of serial interrupts,
> at what rate are they arriving?
The highest rate I've seen is around that number, so between 660000 and 670000

> 
> is this device being used?
The problem is that I don't know what device is. i8042 seems to be PS2 mouse or keyboard, but I don't have any. Just trackpoint, touchpad and normal keyboard integrated in the lenovo

> can you disable it in BIOS SETUP?
I can disable with bios the devices but I don't know what is the i8042 device. I tried blacklisting the module i8042 and no luck.

> 
> have you always had this problem with all versions of linux,
> or it is a recent regression?
I cannot tell you because I just bought last month the laptop and I installed directly the OS.
Comment 7 Carlos 2012-08-24 16:47:14 UTC
(In reply to comment #5)
> 01.org has a new powertop that you might want to try.
> It will have better hints & stats, and a more detailed report.
> 
OK I installed the newest version of powertop 1.97 possible to run for this Ubuntu. I attached screen-shoots of the powertop in idle

> Also, please run vmstat 1 for a bit - it will show if
> you are doing disk IO due to being out of memory...
Doesnt seems to be the problem, I attached a screenshot of it as well.

> 
> you may find that stopping "tor" will reduce this.
> are you also actively using samba (nmbd), if not,
> try testing with it disabled.
I unistalled tor and samba, not a big difference gain maybe 5 min. battery life

> 
> Also, what happens if you un-plug your ps/2 mouse?
> it seems to be quite busy on irq12.
I have no ps/2 mouse. Only input devices are trackpoint and touchpad.
Comment 8 Carlos 2012-08-24 16:48:11 UTC
Created attachment 78391 [details]
Powertop 1.97 overview
Comment 9 Carlos 2012-08-24 16:48:52 UTC
Created attachment 78401 [details]
Powertop 1.97 idle stats
Comment 10 Carlos 2012-08-24 16:49:32 UTC
Created attachment 78411 [details]
Powertop 1.97 frequency stats
Comment 11 Carlos 2012-08-24 16:50:17 UTC
Created attachment 78421 [details]
Powertop 1.97 Device stats
Comment 12 Carlos 2012-08-24 16:50:48 UTC
Created attachment 78431 [details]
Powertop 1.97 Tuneables
Comment 13 Carlos 2012-08-24 16:51:15 UTC
Created attachment 78441 [details]
vmstat1
Comment 14 Carlos 2012-08-24 16:54:35 UTC
I just check again my file /proc/interrupts and the wakeups are reduce by half.

On the other hand the battery life still the same. I can't get more than 2,5 hours in comparison to the 5 hours in the OS W7.

I attached the new version.
Comment 15 Carlos 2012-08-24 16:55:00 UTC
Created attachment 78451 [details]
New interrupts
Comment 16 Carlos 2012-10-06 10:40:25 UTC
Just as additional info, I disable the Visualization (VT-x) feature for the processor in the BIOS settings and I gained 30 minutes more. So at this point I have 3 hours IDLE battery life.
Comment 17 Aaron Lu 2013-07-22 05:53:38 UTC
Carlos,

Is this still a problem on latest upstream kernel?
Comment 18 Carlos 2013-07-22 21:00:20 UTC
Created attachment 106990 [details]
New interrupts

Hi,

Unfortunately I have not seen any improvement. Still same battery life time and more or less the same number of wakeups. I run the test again today and seems the same. I attached the results to this comment.
Comment 19 Carlos 2013-07-22 21:00:54 UTC
Created attachment 106991 [details]
New powertop
Comment 20 Aaron Lu 2013-07-23 07:57:36 UTC
i8042 may be used to connect your touch panel, you can test that by:
1 make sure you do not touch the panel, see if its interrupt number goes up;
2 then move your finger on the panel and check again, its interrupt number should be higher(maybe a lot higher).
If it is indeed for the panel, then the interrupt number is correct.

BTW, as Len has said, there is an updated powertop:
https://01.org/powertop/downloads
https://github.com/fenrus75/powertop.git
and it has a pretty switch:
--html[=FILENAME]
    generate an HTML report. If a filename is not specified then the default name "powertop.html"  is used. The HTML report can be sent to others to help diagnose power issues.
Comment 21 Carlos 2013-07-24 19:36:29 UTC
(In reply to Aaron Lu from comment #20)
Hi,

> i8042 may be used to connect your touch panel, you can test that by:
> 1 make sure you do not touch the panel, see if its interrupt number goes up;
> 2 then move your finger on the panel and check again, its interrupt number
> should be higher(maybe a lot higher).
> If it is indeed for the panel, then the interrupt number is correct.
> 
According to your comments it is correct. The wakeups are static until I touch the touchpad. So I guess it's normal.

> BTW, as Len has said, there is an updated powertop:
> https://01.org/powertop/downloads
> https://github.com/fenrus75/powertop.git
> and it has a pretty switch:
> --html[=FILENAME]
>     generate an HTML report. If a filename is not specified then the default
> name "powertop.html"  is used. The HTML report can be sent to others to help
> diagnose power issues.
I manage to install the powertop 2.4
I attached the powertop.html file
Comment 22 Carlos 2013-07-24 19:37:02 UTC
Created attachment 107010 [details]
powertop 2.4 html
Comment 23 Aaron Lu 2013-07-25 01:43:44 UTC
I don't see any problem in IDLE state, I can only suggest you try all those tuning options.
Comment 24 Carlos 2013-07-27 15:38:50 UTC
Ok, I applied the command suggested by Powertop. It increased 10 minutes the battery life.

I guess is not really a bug, just how it handles the power. I may have to live with it.

Thanks. I am closing the bug.

Note You need to log in before you can comment on or make changes to this bug.