enable /sys/class/power_supply/battery/energy_now in android kernels

Bug #1172455 reported by Andy Doan on 2013-04-24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released
Ricardo Salveti

Bug Description

The battery (at least for nexus7) provides a pretty decent software interface to gather energy usage metrics. However, the stock kernels don't have this enabled.

The patches already exist for the nexus7:

 patch 1: https://android-review.googlesource.com/#/c/50742/
 patch 2: https://android-review.googlesource.com/#/c/50732/

I've tested these in my local build without issues.

I don't have access to the other devices we support, so I'm not sure what work is needed for those.

Andy Doan (doanac) wrote :

I think getting this enabled for nexus7 now would be sufficient for our needs

Andy Doan (doanac) wrote :

According to Leann:

The Raring image I believe had issues
with a patch we were carrying to enable the Touchscreen in the desktop
image, but broke the touchscreen in the phablet image so we all agreed
to wait to use the Ubuntu Nexus 7 Kernel until Saucy. So I'm going to
assume this is a Raring Touch image and therefore built with a
CyanogenMod kernel sans the patches you want.

I think once saucy builds are going smoothly, we can close this.

Changed in touch-preview-images:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Ricardo Salveti (rsalveti)
milestone: none → ubuntu-13.05
Changed in touch-preview-images:
status: Confirmed → In Progress
Ricardo Salveti (rsalveti) wrote :

They are already applied at the ubuntu kernel, and also made them available at the phablet.u.c kernel until we officially migrate to the kernel package.

Changed in touch-preview-images:
status: In Progress → Fix Committed
Andy Doan (doanac) on 2013-06-22
Changed in touch-preview-images:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers