How should I diagnose "no voltage values" issues?

Timothée Ravier siosm99 at gmail.com
Tue Aug 27 05:10:56 PDT 2013


Le 27/08/2013 12:45, Peter Wu a écrit :
> On Monday 26 August 2013 14:40:21 Timothée Ravier wrote:
> 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?

Hi,

My laptop is a Sony VAIO VGN-FW4 (more in the dmesg log attached).

I forgot to mention that my battery is currently dying which is probably
part of the issue.

$ cd /sys/class/power_supply/BAT0 && grep . *
alarm:0
capacity:20
cycle_count:0
energy_full:48370000
energy_full_design:54830000
energy_now:9740000
manufacturer:Sony Corp.
power_now:19440000
present:1
status:Charging
technology:Li-ion
type:Battery
uevent:POWER_SUPPLY_NAME=BAT0
uevent:POWER_SUPPLY_STATUS=Charging
uevent:POWER_SUPPLY_PRESENT=1
uevent:POWER_SUPPLY_TECHNOLOGY=Li-ion
uevent:POWER_SUPPLY_CYCLE_COUNT=0
uevent:POWER_SUPPLY_VOLTAGE_MIN_DESIGN=430000
uevent:POWER_SUPPLY_POWER_NOW=19440000
uevent:POWER_SUPPLY_ENERGY_FULL_DESIGN=54830000
uevent:POWER_SUPPLY_ENERGY_FULL=48370000
uevent:POWER_SUPPLY_ENERGY_NOW=9740000
uevent:POWER_SUPPLY_CAPACITY=20
uevent:POWER_SUPPLY_MODEL_NAME=
uevent:POWER_SUPPLY_MANUFACTURER=Sony Corp.
uevent:POWER_SUPPLY_SERIAL_NUMBER=
voltage_min_design:430000

Which is missing one entry as:

$ ls /sys/class/power_supply/BAT0/voltage_now
-r--r--r-- 1 root root 4,0K 27 août  12:51 voltage_now
$ cat /sys/class/power_supply/BAT0/voltage_now
cat: /sys/class/power_supply/BAT0/voltage_now: No such device

So voltage_min_design / 1000000.0 = 0.43 which is < 1.00f which seems to
be the reason I'm getting warnings.

Is this related to the fact that my battery is dying ? Maybe if it is
the case we should replace it with a different warning, or a less
repeated one.

Thanks,

Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dmesg.log
Type: text/x-log
Size: 67722 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/devkit-devel/attachments/20130827/efb29900/attachment-0001.bin>


More information about the devkit-devel mailing list