From mboxrd@z Thu Jan 1 00:00:00 1970 From: Przemo Firszt Subject: Re: HID battery strength does not emit power_suppy udev events Date: Tue, 01 Jan 2013 20:56:50 +0000 Message-ID: <1357073810.8915.14.camel@localhost> References: <1357069586.8915.11.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from wren.arvixe.com ([50.97.138.99]:45537 "EHLO wren.arvixe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752440Ab3AAU4z (ORCPT ); Tue, 1 Jan 2013 15:56:55 -0500 In-Reply-To: Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Daniel Nicoletti Cc: linux-input@vger.kernel.org, Jiri Kosina , Jeremy Fitzhardinge Dnia 2013-01-01, wto o godzinie 18:39 -0200, Daniel Nicoletti pisze: > 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. > 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... Can you post the code? Do you have this switched on in your kernel config (default = no)? config HID_BATTERY_STRENGTH bool "Battery level reporting for HID devices" depends on HID && POWER_SUPPLY && HID = POWER_SUPPLY default n ---help--- This option adds support of reporting battery strength (for HID devices that support this feature) through power_supply class so that userspace tools, such as upower, can display it. -- Kind regards, Przemo Firszt