From: Przemo Firszt <przemo@firszt.eu>
To: linux-input@vger.kernel.org
Subject: EV_PWR events for reporting battery state?
Date: Tue, 16 Feb 2010 22:00:20 +0000 [thread overview]
Message-ID: <1266357620.4195.10.camel@pldmachine> (raw)
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
next reply other threads:[~2010-02-16 22:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-16 22:00 Przemo Firszt [this message]
2010-02-17 5:19 ` EV_PWR events for reporting battery state? Dmitry Torokhov
2010-02-18 20:51 ` Przemo Firszt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1266357620.4195.10.camel@pldmachine \
--to=przemo@firszt.eu \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).