]> git.baikalelectronics.ru Git - kernel.git/commit
Input: xpad - power off wireless 360 controllers on suspend
authorCameron Gutman <aicommander@gmail.com>
Wed, 27 Jul 2016 21:24:55 +0000 (14:24 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 28 Jul 2016 01:26:09 +0000 (18:26 -0700)
commite5b555da00449327c39469b639007f1b94175cd6
tree05bc3812fb025030d820836acc4b5b59d021f1f0
parentd7ac1f5beb29d549ca0d52ba9ec6b70169d01adc
Input: xpad - power off wireless 360 controllers on suspend

When the USB wireless adapter is suspended, the controllers
lose their connection. This causes them to start flashing
their LED rings and searching for the wireless adapter
again, wasting the controller's battery power.

Instead, we will tell the controllers to power down when
we suspend. This mirrors the behavior of the controllers
when connected to the console itself and how the official
Xbox One wireless adapter behaves on Windows.

Signed-off-by: Cameron Gutman <aicommander@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/xpad.c