• J
    HID: wacom: Add battery presence indicator to wireless tablets · 71fa641e
    Jason Gerecke 提交于
    Declare the POWER_SUPPLY_PROP_PRESENT property to provide userspace
    with a way to determine if the battery on a wireless tablet is plugged
    in. Although current wireless tablets do not explicitly report this
    information, it can be inferred from other state information. In
    particular, a battery is assumed to be present if any of the following
    are true: a non-zero battery level reported, the battery is reported as
    charging, or the tablet is operating wirelessly.
    
    Note: The last condition above may not strictly hold for the Graphire
    Wireless (it charges from a DC barrel jack instead of a USB port), but I
    do not know what is reported in the no-battery condition.
    Signed-off-by: NJason Gerecke <killertofu@gmail.com>
    Signed-off-by: NJiri Kosina <jkosina@suse.cz>
    71fa641e
wacom_wac.h 4.7 KB