EV_PWR events for reporting battery state?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I'm developing device driver for a bluetooth device. I need to report
battery state/ac plugged status via input_event function. I've 2 ideas
what event I could use: EV_MSC/MSC_RAW or define something for EV_PWR
i.e.:
PWR_BAT for reporting battery operation, 
PWR_AC for ac connected and 
PWR_STT for battery state.

There are some definitions in HID usage tables in HID specification, but
I cannot see any of them implemented in kernel (or I omitted something).
Are my ideas fine or there is a standard way or reporting battery
condition of a wireless device - a way that I cannot find?
--
Regards
Przemo

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux