diff options
| author | Frank Praznik <frank.praznik@gmail.com> | 2015-11-11 09:49:38 -0500 |
|---|---|---|
| committer | Siarhei Vishniakou <svv@google.com> | 2019-11-07 11:11:54 -0600 |
| commit | f594dbc70fc32474f5bbba1c9090b941cf074511 (patch) | |
| tree | dd6c3f2db879e8791a21f894af2e2d02f95245fe /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 8eecef6f2430fe0cb78cbd6fded2616af1e22172 (diff) | |
UPSTREAM: HID: sony: Save and restore the controller state on suspend and resume
On hardware which provides standby power for charging devices the state of the
LEDs and force-feedback on controllers can persist even when the system is in
standby. Additionally, the state of the controllers on resume may be different
from the state they were in at the time when they were suspended (ie. LEDs are
cleared on resume).
This implements the suspend and resume callbacks which saves and clears the
state of the LEDs on suspend and restores them on resume. Force-feedback is
stopped on suspend but not automatically restored on resume until a new event is
received to avoid potentially damaging hardware.
USB Sixaxis and navigation controllers must be reinitialized when the hardware
is reset on resume or they won't send any input reports.
Signed-off-by: Frank Praznik <frank.praznik@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit decd946c99f6b3826bda0bfd5d1b2ddd56ef6b54)
Bug: 111431828
Signed-off-by: Kim Low <kim-huei.low@sony.com>
Change-Id: Ib697f09822fb1239ca0846671648d82e483f66fe
Signed-off-by: Siarhei Vishniakou <svv@google.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
