linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Przemo Firszt <przemo@firszt.eu>
Cc: linux-input@vger.kernel.org
Subject: Re: EV_PWR events for reporting battery state?
Date: Tue, 16 Feb 2010 21:19:40 -0800	[thread overview]
Message-ID: <20100217051940.GC7160@core.coreip.homeip.net> (raw)
In-Reply-To: <1266357620.4195.10.camel@pldmachine>

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

  reply	other threads:[~2010-02-17  5:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-16 22:00 EV_PWR events for reporting battery state? Przemo Firszt
2010-02-17  5:19 ` Dmitry Torokhov [this message]
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=20100217051940.GC7160@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=przemo@firszt.eu \
    /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).