power usage in watts not being displayed (battery discharge rate)

Bug #998830 reported by Neal McBurnett
40
This bug affects 9 people
Affects Status Importance Assigned to Milestone
powertop
Fix Released
Medium
powertop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Powertop displays lots of great statistics, but not the main power usage which normally shows up above the Summary line on the Overview page. I'm using powertop 1.97-2 on precise 12.04 on a System75 Lemur lemu2.

This is reported as being fixed in Fedora's version: powertop-1.98-4.fc17

Bug 796068 – Powertop not showing watts on laptop
 https://bugzilla.redhat.com/show_bug.cgi?id=796068

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: powertop 1.97-2
ProcVersionSignature: Ubuntu 3.2.0-24.38-generic 3.2.16
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Sun May 13 11:13:47 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
ProcEnviron:
 TERM=screen-bce
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: powertop
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Neal McBurnett (nealmcb) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in powertop (Ubuntu):
status: New → Confirmed
Revision history for this message
pdf (pdffs) wrote :

powertop_2.0-0.2 in Quantal works. Unfortuantely the patch from the Redhat bug is against 1.98, and it looks like there was some significant between 1.97 and 1.98, so the patch is not easily applied to the current Precise version.

Revision history for this message
bwat47 (bwat47) wrote :

Its now working for me with powertop 2 in quantal

Revision history for this message
Jakub Narębski (jnareb) wrote :

It is NOT WORKING for me:

* powertop 2.1.0ubuntu1
* Ubuntu 12.10 Quantal Quetzal
* linux kernel 3.5.0.18.21

Revision history for this message
Daniel Cooper (d4nc00per) wrote :

It's not working for me either:

* powertop 2.1
* Ubuntu 12.04
* kernel 3.2.0.37

Revision history for this message
Stefan (drezil) wrote :

Wont work for me.

Posted solution in fedora-bugreport linked above, inserted here for convinience:

seems the same problem persists on my laptop.. for me its not "rate" or "power_now" but "charge_now".

$ ls -l /sys/class/power_supply/*
lrwxrwxrwx 1 root root 0 Mai 8 10:40 /sys/class/power_supply/AC -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/AC
lrwxrwxrwx 1 root root 0 Mai 8 10:40 /sys/class/power_supply/BAT -> ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT

$ for d in /sys/class/power_supply/*; do echo $d; cat $d/uevent; done
/sys/class/power_supply/AC
POWER_SUPPLY_NAME=AC
POWER_SUPPLY_ONLINE=0
/sys/class/power_supply/BAT
POWER_SUPPLY_NAME=BAT
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
POWER_SUPPLY_VOLTAGE_NOW=15588000
POWER_SUPPLY_CHARGE_FULL_DESIGN=5200000
POWER_SUPPLY_CHARGE_FULL=5078000
POWER_SUPPLY_CHARGE_NOW=4114000
POWER_SUPPLY_CAPACITY=81
POWER_SUPPLY_MODEL_NAME=BAT
POWER_SUPPLY_MANUFACTURER=NOTEBOOK
POWER_SUPPLY_SERIAL_NUMBER=0001

--

Using "PowerTOP versionv2.1, compiled on Aug 23 2012" (the current in Kubuntu 13.04)

fix should be similar to https://bugzilla.redhat.com/attachment.cgi?id=565604&action=diff

Revision history for this message
GreyGeek (greygeek77) wrote :

A year later and it is still not fixed in Kubuntu 12.04.3 with the 3.2.0-52 kernel.

$ for d in /sys/class/power_supply/*; do echo $d; cat $d/uevent; done
/sys/class/power_supply/AC0
POWER_SUPPLY_NAME=AC0
POWER_SUPPLY_ONLINE=1
/sys/class/power_supply/BAT0
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_STATUS=Full
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_CYCLE_COUNT=0
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
POWER_SUPPLY_VOLTAGE_NOW=12237000
POWER_SUPPLY_POWER_NOW=0
POWER_SUPPLY_ENERGY_FULL_DESIGN=48400000
POWER_SUPPLY_ENERGY_FULL=48400000
POWER_SUPPLY_ENERGY_NOW=48400000
POWER_SUPPLY_MODEL_NAME=AS10D41
POWER_SUPPLY_MANUFACTURER=OEM
POWER_SUPPLY_SERIAL_NUMBER=

Changed in powertop:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.