All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: Cameron Gutman <aicommander@gmail.com>,
	Roderick Colenbrander <roderick@gaikai.com>
Cc: linux-input@vger.kernel.org
Subject: Re: Method to power off HID device from driver?
Date: Thu, 08 Dec 2016 04:39:08 +0100	[thread overview]
Message-ID: <1481168348.2286.11.camel@hadess.net> (raw)
In-Reply-To: <D5A9B8BF-4720-4BB4-826E-CCA150D2976F@gmail.com>

On Tue, 2016-12-06 at 19:20 -0800, Cameron Gutman wrote:
> Hi,
> 
> > On Dec 6, 2016, at 4:25 PM, Roderick Colenbrander <roderick@gaikai.
> > com> wrote:
> > 
> > Hi,
> > 
> > I looked a bit deeper and found EV_PWR, though it isn't clearly
> > defined, but it is used in some places for purposes like this.
> > Would
> > this be an acceptable method?
> > 
> 
> I am interested in this too. I recently implemented the ability to
> turn off wireless Xbox 360 controllers in [0], but there is no way
> to activate this functionality without suspending the whole system.
> Some folks [1] have asked for this ability in other scenarios.
> 
> [0]: Commit f712a5a05228058f6b74 ("Input: xpad - power off wireless
>                                    360 controllers on suspend")
> [1]: https://github.com/paroj/xpad/issues/52

Ditto the PS3 BD remote driver, when moving to the kernel, lost its
ability to suspend after X minutes, which drains the AA batteries
inside it.

In the original system, the remote would get disconnected after less
than a couple of minutes, and reconnect as soon as you pressed a
button, and make sure that button got sent to the device.

Would be great if we could control this from user-space.

  parent reply	other threads:[~2016-12-08  3:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-02  2:05 Method to power off HID device from driver? Roderick Colenbrander
2016-12-07  0:25 ` Roderick Colenbrander
2016-12-07  3:20   ` Cameron Gutman
2016-12-07 21:21     ` Roderick Colenbrander
2016-12-08  3:39     ` Bastien Nocera [this message]
2017-01-10  2:28       ` Roderick Colenbrander
2017-01-19 13:37         ` Jiri Kosina
2017-01-19 13:42           ` Bastien Nocera
     [not found]             ` <CANndSKkp+wYjp4DpWX5VK7MLWEn60tgcc5QX=r87gPQJKvkoPg@mail.gmail.com>
2017-01-19 16:26               ` Bastien Nocera
2017-01-19 18:07                 ` Roderick Colenbrander
2017-01-24  9:47                   ` Bastien Nocera
2017-01-24 15:29                     ` Roderick Colenbrander

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=1481168348.2286.11.camel@hadess.net \
    --to=hadess@hadess.net \
    --cc=aicommander@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=roderick@gaikai.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.