udev and acer batteries
Hello
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.
In fact, sysfs detect it at boot and display it's state. But kde seems to look at udev event :
-when I switch off udev service, and plug in or out my adaptator, kde detect nothing !
- if I start again udev (just after stopping it and plug in/out adaptator), kde detect it !
When I look at events in boot, I can see that my battery is detect by udev :
Aug 11 18:45:24 luciole hald[5494]: 18:45:24.981 [I] coldplug.c:221: found (udevdb export) '/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD' -> '/dev/(null)' Aug 11 18:45:25 luciole hald[5494]: 18:45:25.445 [I] coldplug.c:94: creating HotplugEvent for /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD Aug 11 18:45:25 luciole hald[5494]: 18:45:25.445 [I] coldplug.c:285: new event (dev node from udev) '/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD' '' Aug 11 18:45:25 luciole hald[5494]: 18:45:25.445 [I] coldplug.c:319: new event (no dev node) '/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD' Aug 11 18:45:25 luciole hald[5494]: 18:45:25.445 [D] hotplug.c:476: checking ADD event /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD Aug 11 18:45:25 luciole hald[5494]: 18:45:25.445 [D] hotplug.c:397: event /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD: skip ourselves and all later events Aug 11 18:45:25 luciole hald[5494]: 18:45:25.445 [I] hotplug.c:145: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD is a device (subsystem) Aug 11 18:45:25 luciole hald[5494]: 18:45:25.445 [I] device.c:5002: add_dev:
subsys=power_supply sysfs_path=/sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD dev= parent_dev=0x00000000
In same time, I have found rules for toshiba laptop for example, but not for acer laptop.
As far as I understand, my battery is detected when power status change while udev is running.
So I would like to know if a rule for acer is being writed, if you need informations I can give you...
Tank you for you help.
Best regards
Signature · 4 lines
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
Quoted 6 lines · Stéphane Guedon
I am writing to you concerning acer batteries.
My laptop batteries aren't detected until I plug in/out theac_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.
Quoted 6 lines
In fact, sysfs detect it at boot and display it's state. But kde seems to look at udev event :
-when I switch off udev service, and plug in or out my adaptator, kde detect nothing !
- if I start again udev (just after stopping it and plug in/out adaptator), kde detect it !
Udev does not do anything with batteries. It just receives events about them from the kernel.
There are no rules or setup at udev's side which should change things, it's all inside the kernel.
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hello Stéphane,
Stéphane Guedon [2010-08-11 19:08 +0200]:
Quoted 5 lines
I am writing to you concerning acer batteries.
My laptop batteries aren't detected until I plug in/out theac_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
Signature · 2 lines
Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Quoted 13 lines · Martin Pitt
Hello Stéphane,
Stéphane Guedon [2010-08-11 19:08 +0200]:
Quoted 5 lines
I am writing to you concerning acer batteries.
My laptop batteries aren't detected until I plug in/out theac_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.
Quoted 8 lines
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 unknownDaemon:
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 unknownDaemon:
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
Signature · 4 lines
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
Bonjour Stéphane,
Stéphane Guedon [2010-08-12 19:57 +0200]:
Quoted 5 lines
with ac power on, but battery not yet recognize :
19:44:52 stephane@luciole:~ $ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ACAD [...]
OK, so this has the same problem as hal, not very surprising, though.
This could be a BIOS bug, or your battery wasn't properly detected during coldplug. Does this command change anything?
sudo udevadm trigger --verbose --subsystem-match=power_supply
It should print two device paths, one for the AC and one for the battery. If the second one is missing, then the trigger didn't help, and it could be a kernel or BIOS bug.
Thanks,
Martin
Signature · 2 lines
Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
Quoted 16 lines · Martin Pitt
Bonjour Stéphane,
Stéphane Guedon [2010-08-12 19:57 +0200]:
Quoted 5 lines
with ac power on, but battery not yet recognize :
19:44:52 stephane@luciole:~ $ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ACAD [...]OK, so this has the same problem as hal, not very surprising, though.
This could be a BIOS bug, or your battery wasn't properly detected during coldplug. Does this command change anything?
sudo udevadm trigger --verbose --subsystem-match=power_supply
Quoted 7 lines
It should print two device paths, one for the AC and one for the battery. If the second one is missing, then the trigger didn't help, and it could be a kernel or BIOS bug.
Thanks,
Martin
I have nothing in my bios concerning batteries !
just after boot :
21:51:13 root@luciole:~ # udevadm trigger --verbose --subsystem- match=power_supply /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD
plugging out and in ac adaptator :
21:51:16 root@luciole:~ # udevadm trigger --verbose --subsystem- match=power_supply /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT1
So, on your advice, do I have to make a bug report ?
I use currently gentoo tuxonice kernel, but it seems to be a standard kernel with only hibernation patch.
On an other thing, I find strange that I can't find your gpg signature in the ubuntu keyserver, whereas you're a ubuntu "addicted" dev ...
Best regards
Signature · 4 lines
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
Hi Stéphane,
Even if your BIOS does not show a setting for batteries, it might still contain controls for your laptop batteries.
I have an Acer Aspire One AOA-110-1812 and had to upgrade my BIOS due to a battery charging problem that was fixed by a BIOS upgrade.
This is the note regarding the problem for my Acer netbook:
http://macles.blogspot.com/2008/12/acer-aspire-one-bios-3309.html
Regards,
Curtis Gedak
Quoted 3 lines · Stéphane Guedon
I have nothing in my bios concerning batteries !
Hello Stéphane,
Stéphane Guedon [2010-08-12 21:59 +0200]:
Quoted 1 line
I have nothing in my bios concerning batteries !
Not in the setup screen, but the BIOS is still responsible for the ACPI implementation. Unfortunately these often come with pretty serious bugs :-/
Quoted 4 lines
21:51:13 root@luciole:~ # udevadm trigger --verbose --subsystem- match=power_supply /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ACAD
OK, so it's not a bug with udev at all then.
Quoted 3 lines
So, on your advice, do I have to make a bug report ?
I use currently gentoo tuxonice kernel, but it seems to be a standard kernel with only hibernation patch.
I don't know enough about kernel ACPI initialization to know whether it could be a kernel bug, or is definitively a bug in the BIOS' ACPI implementation/tables. If you make a kernel bug report, please test with the latest upstream kernel first, and include the output of "dmesg", which includes quite a lot of ACPI information.
But perhaps try the BIOS update first that Curtis mentioned?
Quoted 2 lines
On an other thing, I find strange that I can't find your gpg signature in the ubuntu keyserver, whereas you're a ubuntu "addicted" dev ...
Both my old and my new key are there..
$ gpg --keyserver keyserver.ubuntu.com --search-key [email protected]
Martin
Signature · 2 lines
Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
I've been looking into ACPI on laptops and have noticed the battery info is usually cached by the BIOS. The battery status/presence won't get updated unless you plug/unplug the power cord if the battery is fully charged.
--jordan hargrave
Dell Enterprise Linux Engineering
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Curtis Gedak
Sent: Thursday, August 12, 2010 4:24 PM
To: Stéphane Guedon
Cc: [email protected]; [email protected]
Subject: Re: udev and acer batteries
Hi Stéphane,
Even if your BIOS does not show a setting for batteries, it might still contain controls for your laptop batteries.
I have an Acer Aspire One AOA-110-1812 and had to upgrade my BIOS due to a battery charging problem that was fixed by a BIOS upgrade.
This is the note regarding the problem for my Acer netbook:
http://macles.blogspot.com/2008/12/acer-aspire-one-bios-3309.html
Regards,
Curtis Gedak
Quoted 3 lines · Stéphane Guedon
I have nothing in my bios concerning batteries !
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
ÿôèº{.nÇ+‰·Ÿ®‰†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±ş-¦[ ş)í…æèw*jg¬±¨¶‰š�Šİ¢jÿ¾«şG«�éÿ¢¸¢·¦j:+v‰¨ŠwèjØm¶Ÿÿşø¯ù®w¥şŠàşf£¢·hš�â�úÿ†Ù¥
Le Friday 13 August 2010 22:40:14, vous avez écrit :
Quoted 30 lines
I've been looking into ACPI on laptops and have noticed the battery info is usually cached by the BIOS. The battery status/presence won't get updated unless you plug/unplug the power cord if the battery is fully charged.
--jordan hargrave
Dell Enterprise Linux Engineering-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Curtis Gedak
Sent: Thursday, August 12, 2010 4:24 PM
To: Stéphane Guedon
Cc: [email protected]; [email protected]
Subject: Re: udev and acer batteriesHi Stéphane,
Even if your BIOS does not show a setting for batteries, it might still contain controls for your laptop batteries.
I have an Acer Aspire One AOA-110-1812 and had to upgrade my BIOS due to a battery charging problem that was fixed by a BIOS upgrade.
This is the note regarding the problem for my Acer netbook:
http://macles.blogspot.com/2008/12/acer-aspire-one-bios-3309.htmlRegards,
Curtis Gedak
Quoted 7 lines
Quoted 1 line · Stéphane Guedon
I have nothing in my bios concerning batteries !
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
So, do you think there is a way to retrieve this information ? A module to load, a specific option to the kernel, a script to run ?
Regards
Signature · 4 lines
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
Le Friday 13 August 2010 22:40:14, vous avez écrit :
Quoted 30 lines
I've been looking into ACPI on laptops and have noticed the battery info is usually cached by the BIOS. The battery status/presence won't get updated unless you plug/unplug the power cord if the battery is fully charged.
--jordan hargrave
Dell Enterprise Linux Engineering-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Curtis Gedak
Sent: Thursday, August 12, 2010 4:24 PM
To: Stéphane Guedon
Cc: [email protected]; [email protected]
Subject: Re: udev and acer batteriesHi Stéphane,
Even if your BIOS does not show a setting for batteries, it might still contain controls for your laptop batteries.
I have an Acer Aspire One AOA-110-1812 and had to upgrade my BIOS due to a battery charging problem that was fixed by a BIOS upgrade.
This is the note regarding the problem for my Acer netbook:
http://macles.blogspot.com/2008/12/acer-aspire-one-bios-3309.htmlRegards,
Curtis Gedak
Quoted 7 lines
Quoted 1 line · Stéphane Guedon
I have nothing in my bios concerning batteries !
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
So, do you think there is a way to retrieve this information ? A module to load, a specific option to the kernel, a script to run ?
Sorry, I forgot to say my laptop model : acer aspire 7730z, this avoid (I think ? don't know !) your remark from your blog !
Regards
Signature · 4 lines
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
Hi Stéphane,
You can check for BIOS updates for your Acer laptop on the manufacturer's web site.
In Canada their web site is:
http://www.acer.ca
The BIOS updates can be found under the "Service & Support" section "Driver Download" subsection.
Regards,
Curtis Gedak
Quoted 6 lines · Stéphane Guedon
So, do you think there is a way to retrieve this information ? A module to load, a specific option to the kernel, a script to run ?
Sorry, I forgot to say my laptop model : acer aspire 7730z, this avoid (I think ? don't know !) your remark from your blog !