2013/1/2 Przemo Firszt [off-list ref]:
Dnia 1 Stycznia 2013, 8:39 pm, Wt, Daniel Nicoletti napisał(a):
quoted
Well from your logs you can see the udev emitted an 'add ' for
wacom_battery, the odd part is that it sends several add for the battery.
It's KERNEL and UDEV, so i think it's OK - no duplicates.
quoted
Wacom tablets have a different code from handling the battery, i wrote the
code that'sgeneric for hid devices, and the battery part looks like a lot
when looking to tje wacom one but it doesn't emits 'add ' or 'del '
events...
I'm not kernel dev and after reading docs and digging some code I 'm still
clueless about it...
You might add a few "printk" in hidinput_setup_battery (in kernel
drivers/hid/hid-input.c) to see if everything goes OK.
What's your device?
--
Regards,
Przemo Firszt
I have all Apple bluettoth devices (keyboard, mouse, trackpad), this behavior
will happen with any bt device that uses generic HID battery strenth descriptor,
from some docs I read that when registering with udev you must say if the
parent has been registered already, but I can't find the code which describes
that.
There's nothing wrong with my patch regarding the probe for the battery status,
but it clearly doesn't follow some rule to add the power_supply infrastructure,
I wish I could know what is missing...
Best,
--
Daniel Nicoletti
KDE Developer - http://dantti.wordpress.com
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html