Thread (2 messages) read the whole thread 2 messages, 1 author, 2009-08-28

Re: [RFC] PS3Remote unpairing and power-saving

From: Ruslan N. Marchenko <hidden>
Date: 2009-08-28 14:09:57

2009/8/27, Ruslan N. Marchenko [off-list ref]:
PS3 BD Remote driver in fakehid is not able to detect remote unpairing, thus
 not handling it properly.
 Also it keeps permanent BT link with remote controller, which drains batteries.
 With these changes it now utlize IdleTimeout to implicitly unpair device,
 forcing it to enter low power sleep mode.
 IdleTimeout is treated in seconds, in contrast with default - minutes.
 HID device is created on first pairing, and then kept cached till the end of
 daemon life, allowing pairing keypresses to be sent to application with minimum
 delays.
 HID is distingueshed by vendor/product codes, which restricts it to only single
 HID for all registered and active PS3 BD Remote controllers.

 Signed-off-by: Ruslan N. Marchenko [off-list ref]
 ---
  input/device.c  |   14 +------
  input/device.h  |   13 ++++++-
  input/fakehid.c |  115 +++++++++++++++++++++++++++++++++++++++++-------------
  input/fakehid.h |    4 ++
  4 files changed, 105 insertions(+), 41 deletions(-)
Well, if no one minds, I'll post it as a patch %)

-- 
----
Looking forward to reading yours.
 RUFF-RIPE DI76-GANDI RUFF-6BONE
     Ruslan N. Marchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help