[PATCH BlueZ v1 0/6] HoG Suspend/Resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch series adds HID Control Point support. This control point
allows the report host(BlueZ) to notify the report device(HoG device)
when the host is entering or leaving the Suspend Mode.

The low power Suspend Mode concept is implementation specific. This
proposal adds a selectable back-end for HoG Suspend/Resume control.
Each platform is free to write it's own HoG suspend back-end.
A dummy back-end based on a FIFO (/tmp/hogsuspend) is proposed for
reference and testing purpose only. Writting "suspend" or "resume"
in this FIFO will trigger the update of the HID Control Point.

Notify the HoG device is useful to save power. Devices can implement
different actions (diff than disconnect) when commands are written
on the HID control point. The HoG capable device cab reduce the key
press detection frequency or disable LEDs.

*** Changes from previous version:
Replaces UPower by a dummy selectable back-end. As discussed in IRC
tracking UPower "suspending" or "resuming" signals are not suitable
for desktops since the connection is dropped right after detecting
suspend.

Claudio Takahasi (6):
  hog: Add initial files for suspend support
  hog: Add suspend back-end selection
  hog: Add suspend/resume callbacks declaration
  hog: Create a FIFO for dummy suspend
  hog: Move HoG device list to manager
  hog: Add writting Control Point

 Makefile.am                    |   6 +-
 acinclude.m4                   |   7 ++
 profiles/input/hog_device.c    |  73 ++++++++++++++-------
 profiles/input/hog_device.h    |   9 ++-
 profiles/input/hog_manager.c   |  62 ++++++++++++++++-
 profiles/input/suspend-dummy.c | 146 +++++++++++++++++++++++++++++++++++++++++
 profiles/input/suspend.h       |  29 ++++++++
 7 files changed, 302 insertions(+), 30 deletions(-)
 create mode 100644 profiles/input/suspend-dummy.c
 create mode 100644 profiles/input/suspend.h

-- 
1.7.12

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux