From: "Stéphane Guedon" <stephane@22decembre.eu>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev and acer batteries
Date: Thu, 12 Aug 2010 17:57:12 +0000 [thread overview]
Message-ID: <201008121957.23587.stephane@22decembre.eu> (raw)
In-Reply-To: <201008111908.37155.stephane@22decembre.eu>
[-- Attachment #1: Type: Text/Plain, Size: 8070 bytes --]
Le Thursday 12 August 2010 07:25:56, Martin Pitt a écrit :
> Hello Stéphane,
>
> Stéphane Guedon [2010-08-11 19:08 +0200]:
> > I am writing to you concerning acer batteries.
> > My laptop batteries aren't detected until I plug in/out the ac_adaptator.
> > If I am at home, working on it, no problem. But if I am out of buildings,
> > where I can't have power, my power status won't be detected by my desktop
> > environnement.
>
> This is most probably a bug in hal. KDE still uses hal for hardware
> detection/management, but since it's unmaintained, I wouldn't expect
> this to be fixed anytime soon or at all.
>
> Out of interest, can you install "upower" on your machine (if it's not
> already present), and in this situation (i. e. boot when on battery
> without AC), check the output of "upower --dump" whether it detects
> your battery?
>
> Thanks,
>
> Martin
with ac power on, but battery not yet recognize :
19:44:52 stephane@luciole:~ $ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ACAD
native-path:
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD
power supply: yes
updated: Thu Aug 12 19:45:09 2010 (0 seconds ago)
has history: no
has statistics: no
line-power
online: yes
Daemon:
daemon-version: 0.9.5
can-suspend: yes
can-hibernate yes
on-battery: no
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
after plugging out and in :
19:45:09 stephane@luciole:~ $ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ACAD
native-path:
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD
power supply: yes
updated: Thu Aug 12 19:47:07 2010 (6 seconds ago)
has history: no
has statistics: no
line-power
online: yes
Device: /org/freedesktop/UPower/devices/battery_BAT1
native-path:
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT1
vendor: SANYO
model: AS07B31
serial: 30996
power supply: yes
updated: Thu Aug 12 19:47:12 2010 (1 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
energy: 48.3294 Wh
energy-empty: 0 Wh
energy-full: 48.3294 Wh
energy-full-design: 48.84 Wh
energy-rate: 5.6499 W
voltage: 12.594 V
percentage: 100%
capacity: 98.9545%
technology: lithium-ion
History (charge):
1281635230 100.000 fully-charged
1281635226 99.426 fully-charged
1281635222 99.495 fully-charged
1281635222 0.000 unknown
History (rate):
1281635232 5.650 fully-charged
1281635224 30.225 fully-charged
1281635222 3.419 fully-charged
1281635222 0.000 unknown
Daemon:
daemon-version: 0.9.5
can-suspend: yes
can-hibernate yes
on-battery: no
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
reboot on battery :
19:53:49 stephane@luciole:~ $ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ACAD
native-path:
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD
power supply: yes
updated: Thu Aug 12 19:53:52 2010 (0 seconds ago)
has history: no
has statistics: no
line-power
online: no
Daemon:
daemon-version: 0.9.5
can-suspend: yes
can-hibernate yes
on-battery: no
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
plugging in the ac adatator
19:53:52 stephane@luciole:~ $ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ACAD
native-path:
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD
power supply: yes
updated: Thu Aug 12 19:54:02 2010 (2 seconds ago)
has history: no
has statistics: no
line-power
online: yes
Device: /org/freedesktop/UPower/devices/battery_BAT1
native-path:
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT1
vendor: SANYO
model: AS07B31
serial: 30996
power supply: yes
updated: Thu Aug 12 19:54:04 2010 (0 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: charging
energy: 46.62 Wh
energy-empty: 0 Wh
energy-full: 48.3294 Wh
energy-full-design: 48.84 Wh
energy-rate: 37.2738 W
voltage: 11.929 V
time to full: 2.8 minutes
percentage: 96.463%
capacity: 98.9545%
technology: lithium-ion
History (charge):
1281635643 96.463 charging
1281635643 0.000 unknown
History (rate):
1281635643 37.274 charging
1281635643 0.000 unknown
Daemon:
daemon-version: 0.9.5
can-suspend: yes
can-hibernate yes
on-battery: no
on-low-battery: no
lid-is-closed: no
lid-is-present: yes
Hope this will help you, and me !
Thanks
--
Stéphane Guedon
page web : http://www.22decembre.eu/
carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf
clé publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.asc
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-08-12 17:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 17:08 udev and acer batteries Stéphane Guedon
2010-08-11 19:47 ` Kay Sievers
2010-08-12 5:25 ` Martin Pitt
2010-08-12 17:57 ` Stéphane Guedon [this message]
2010-08-12 18:25 ` Martin Pitt
2010-08-12 19:59 ` Stéphane Guedon
2010-08-12 21:23 ` Curtis Gedak
2010-08-13 4:50 ` Martin Pitt
2010-08-13 20:40 ` Jordan_Hargrave
2010-08-14 17:58 ` Stéphane Guedon
2010-08-14 18:01 ` Stéphane Guedon
2010-08-14 20:01 ` Curtis Gedak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008121957.23587.stephane@22decembre.eu \
--to=stephane@22decembre.eu \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).