linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Stéphane Guedon" <stephane@22decembre.eu>
To: linux-hotplug@vger.kernel.org
Subject: udev and acer batteries
Date: Wed, 11 Aug 2010 17:08:28 +0000	[thread overview]
Message-ID: <201008111908.37155.stephane@22decembre.eu> (raw)

[-- Attachment #1: Type: Text/Plain, Size: 2626 bytes --]

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
-- 
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 --]

             reply	other threads:[~2010-08-11 17:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-11 17:08 Stéphane Guedon [this message]
2010-08-11 19:47 ` udev and acer batteries Kay Sievers
2010-08-12  5:25 ` Martin Pitt
2010-08-12 17:57 ` Stéphane Guedon
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=201008111908.37155.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).