linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* HID battery strength does not emit power_suppy udev events
@ 2012-09-15  2:30 Daniel Nicoletti
       [not found] ` <CAD2FfiEbqUvfuUYpgQFaXoUBAn_7TnV4FnGXNDeD-jHCCfpGVQ@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Nicoletti @ 2012-09-15  2:30 UTC (permalink / raw)
  To: linux-input, Richard Hughes

Hi,
it's been a while that my patch to probe the battery
strength of HID devices got upstream, though the probe
is working quite well, upower wasn't, it only worked well
if the device was there before upower starts.
So when adding/removing the device upower didn't update,
and of course I thought the fault was on upower, since on
cold plug it worked...

Well today I decided to add udev support to one of my applications
and decided to see what actually happens on the add/remove
case of my mouse. You can find the whole output
(removing, empty space, then adding) here http://fpaste.org/Uvbh/

So in short there is no udev event being emitted for the power_supply
path, which means upower will never be notified, but when starting
and scanning the udev devices it will find.

But I'm don't know exactly what to do differently since the power_supply
code seems quite right, does anyone has any hints on where to start?

BTW: why HID has to be built-in for this feature to be available (no I didn't
write that part :P )

Best,

-- 
Daniel Nicoletti

KDE Developer - http://dantti.wordpress.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-02 23:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-15  2:30 HID battery strength does not emit power_suppy udev events Daniel Nicoletti
     [not found] ` <CAD2FfiEbqUvfuUYpgQFaXoUBAn_7TnV4FnGXNDeD-jHCCfpGVQ@mail.gmail.com>
     [not found]   ` <CACo8zOeSf_0ump=ChJKvgLQL1_OVoOE5Ts0ybw=5S3ZFMzZcGw@mail.gmail.com>
2012-12-28  0:16     ` Daniel Nicoletti
2013-01-01 19:46       ` Przemo Firszt
     [not found]         ` <CACo8zOf9LdPA_OZSLZp3iQj80+DvVvQh_Wc6Or902SSJ2hMWVg@mail.gmail.com>
2013-01-01 20:56           ` Przemo Firszt
     [not found]             ` <CACo8zOe6muNzxE+u-V3dFD27e-2h9w7267Pk3SAUZFsF-Ok9Vw@mail.gmail.com>
2013-01-02  3:24               ` Daniel Nicoletti
2013-01-02 15:04           ` Przemo Firszt
2013-01-02 23:57             ` Daniel Nicoletti

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).