https://bugzilla.kernel.org/show_bug.cgi?id=24492





--- Comment #34 from Lorenzo Masellis <masel...@fastwebnet.it>  2011-06-24 
08:52:06 ---
(In reply to comment #33)
> You can run "acpi_listen & upower --monitor-detail" to check whether the acpi
> event triggers or not. 

acpi_listen doesn't show anything at all from BAT0, even when upower is
updating correctly (i.e. when discharging). The only events that acpi_listen
gets is charger connection/disconnection (i.e. ac_adapter AC0 00000080
00000001)

> Did "energy-rate: 0 W" happen without the test patch before?

No: before this patch energy-rate used to be the same value as current_now, and
the same was reported in power_now. Now power_now seems to be correct, while
upower has zero rate.

> please attach the output "cat /sys/class/power_supply/*/* && cat
> /proc/acpi/battery/*/*" with the test patch.

lorenzo@castor:~$ cat /sys/class/power_supply/*/* && cat /proc/acpi/battery/*/*
0
35
cat: /sys/class/power_supply/BAT0/device: Is a directory
23290000
65120000
22490000
Lezinn
01ZA
cat: /sys/class/power_supply/BAT0/power: Is a directory
17680000
15648000
1
Discharging
cat: /sys/class/power_supply/BAT0/subsystem: Is a directory
Li-ion
341
Battery
POWER_SUPPLY_NAME=BAT0
POWER_SUPPLY_STATUS=Discharging
POWER_SUPPLY_PRESENT=1
POWER_SUPPLY_TECHNOLOGY=Li-ion
POWER_SUPPLY_VOLTAGE_MIN_DESIGN=14800000
POWER_SUPPLY_VOLTAGE_NOW=16028000
POWER_SUPPLY_POWER_NOW=15648000
POWER_SUPPLY_POWER_AVG=17680000
POWER_SUPPLY_CAPACITY=35
POWER_SUPPLY_ENERGY_FULL_DESIGN=65120000
POWER_SUPPLY_ENERGY_FULL=23290000
POWER_SUPPLY_ENERGY_NOW=22490000
POWER_SUPPLY_TEMP=341
POWER_SUPPLY_MODEL_NAME=01ZA
POWER_SUPPLY_MANUFACTURER=Lezinn
14800000
16028000
cat: /sys/class/power_supply/sbs-charger/device: Is a directory
0
cat: /sys/class/power_supply/sbs-charger/power: Is a directory
cat: /sys/class/power_supply/sbs-charger/subsystem: Is a directory
Mains
POWER_SUPPLY_NAME=sbs-charger
POWER_SUPPLY_ONLINE=0

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to