How should I diagnose "no voltage values" issues?

Peter Wu lekensteyn at gmail.com
Tue Aug 27 03:45:23 PDT 2013


Hi,

On Monday 26 August 2013 14:40:21 Timothée Ravier wrote:
> I'm running an updated Arch Linux with Linux 3.10 / 3.11rc7, upower 0.9.21.
> 
> My logs are filled with those lines:
> 
> upowerd[927]: (upowerd:927): UPower-Linux-WARNING **: no voltage values,
> using 10V as approximation
> 
> which I've tracked back to be about
> /org/freedesktop/UPower/devices/battery_BAT0 (the only battery available
> on my laptop) using the patch I sent earlier on the list.
> 
> I'm now stuck as I've no idea on the next step to fix this warning. Is
> it upower related or something to fix in the kernel ?

Can you show the output for:

    cd /sys/class/power_supply/BAT0 && grep . *

The kernel knows can provide one of the following attributes for voltage:
voltage_max
voltage_min
voltage_max_design
voltage_min_design
voltage_now
voltage_avg
voltage_ocv

These values are provides by the battery drivers or ACPI. Perhaps you can add 
some dmesg messages for the battery (if applicable), model/manufacturer for 
the laptop and/of battery?

Regards,
Peter

> Here is a "upower --dump":
> Device: /org/freedesktop/UPower/devices/line_power_ADP1
>   native-path:
> /sys/devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/ADP1
>   power supply:         yes
>   updated:              Sun Aug 25 20:14:41 2013 (65588 seconds ago)
>   has history:          no
>   has statistics:       no
>   line-power
>     online:             yes
> 
> Device: /org/freedesktop/UPower/devices/battery_BAT0
>   native-path:
> /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0
>   vendor:               Sony Corp.
>   power supply:         yes
>   updated:              Mon Aug 26 14:27:22 2013 (27 seconds ago)
>   has history:          yes
>   has statistics:       yes
>   battery
>     present:             yes
>     rechargeable:        yes
>     state:               charging
>     energy:              9.74 Wh
>     energy-empty:        0 Wh
>     energy-full:         48.37 Wh
>     energy-full-design:  54.83 Wh
>     energy-rate:         19.44 W
>     time to full:        2.0 hours
>     percentage:          20.1364%
>     capacity:            88.2181%
>     technology:          lithium-ion
> 
> Daemon:
>   daemon-version:  0.9.21
>   on-battery:      no
>   on-low-battery:  no
>   lid-is-closed:   no
>   lid-is-present:  no
>   is-docked:       no



More information about the devkit-devel mailing list