linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* EV_PWR events for reporting battery state?
@ 2010-02-16 22:00 Przemo Firszt
  2010-02-17  5:19 ` Dmitry Torokhov
  0 siblings, 1 reply; 3+ messages in thread
From: Przemo Firszt @ 2010-02-16 22:00 UTC (permalink / raw)
  To: linux-input

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


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

end of thread, other threads:[~2010-02-18 21:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-16 22:00 EV_PWR events for reporting battery state? Przemo Firszt
2010-02-17  5:19 ` Dmitry Torokhov
2010-02-18 20:51   ` Przemo Firszt

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