From: =?utf-8?q?St=C3=A9phane_Guedon?= Date: Thu, 12 Aug 2010 17:57:12 +0000 Subject: Re: udev and acer batteries Message-Id: <201008121957.23587.stephane@22decembre.eu> MIME-Version: 1 Content-Type: multipart/mixed; boundary="nextPart10602335.OqfsNSIon3" List-Id: References: <201008111908.37155.stephane@22decembre.eu> In-Reply-To: <201008111908.37155.stephane@22decembre.eu> To: linux-hotplug@vger.kernel.org --nextPart10602335.OqfsNSIon3 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Le Thursday 12 August 2010 07:25:56, Martin Pitt a =C3=A9crit : > Hello St=C3=A9phane, >=20 > St=C3=A9phane 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_adaptato= r. > > If I am at home, working on it, no problem. But if I am out of building= s, > > where I can't have power, my power status won't be detected by my deskt= op > > environnement. >=20 > 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. >=20 > 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? >=20 > Thanks, >=20 > 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: =20 /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: =20 /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: =20 /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 = = =20 energy: 48.3294 Wh = = =20 energy-empty: 0 Wh = = =20 energy-full: 48.3294 Wh = = =20 energy-full-design: 48.84 Wh = = =20 energy-rate: 5.6499 W = = =20 voltage: 12.594 V = = =20 percentage: 100% = = =20 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: =20 /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: =20 /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: =20 /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 = = =20 energy: 46.62 Wh = = =20 energy-empty: 0 Wh = = =20 energy-full: 48.3294 Wh = = =20 energy-full-design: 48.84 Wh = = =20 energy-rate: 37.2738 W = = =20 voltage: 11.929 V = = =20 time to full: 2.8 minutes = = =20 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 =2D-=20 St=C3=A9phane Guedon page web : http://www.22decembre.eu/ carte de visite : http://www.22decembre.eu/downloads/Stephane-Guedon.vcf cl=C3=A9 publique gpg : http://www.22decembre.eu/downloads/Stephane-Guedon.= asc --nextPart10602335.OqfsNSIon3 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEABECAAYFAkxkNgMACgkQuOgaSVDV+yACDACfX87TmrfTpPh8jRqeAZLr2wP8 ueIAoKLG2kvsJwhI0Z4tb56dz5poJNTJ =sGfz -----END PGP SIGNATURE----- --nextPart10602335.OqfsNSIon3--