* 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
* Re: EV_PWR events for reporting battery state?
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
0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Torokhov @ 2010-02-17 5:19 UTC (permalink / raw)
To: Przemo Firszt; +Cc: linux-input
Hi Przemo,
On Tue, Feb 16, 2010 at 10:00:20PM +0000, Przemo Firszt wrote:
> 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).
I maintain that these kind of events are outside of input subsystem
doman (which I would like to limit to human interfaces, not general
purpose transport).
--
Dmitry
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: EV_PWR events for reporting battery state?
2010-02-17 5:19 ` Dmitry Torokhov
@ 2010-02-18 20:51 ` Przemo Firszt
0 siblings, 0 replies; 3+ messages in thread
From: Przemo Firszt @ 2010-02-18 20:51 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-input
Dnia 2010-02-16, wto o godzinie 21:19 -0800, Dmitry Torokhov pisze:
> Hi Przemo,
[..]
> > 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).
>
> I maintain that these kind of events are outside of input subsystem
> doman (which I would like to limit to human interfaces, not general
> purpose transport).
Hi Dmitry,
OK, it makes sense. I'll use sysfs then.
--
Thanks,
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).