Commit 03a790d
committed
input: macsmc-input: Fix wakeup from s2idle
Hard wakeup events are required to wake from s2idle. The comment in [1]
to always send wakeup events is correct though. To combine both
requirements use pm_wakeup_dev_event() and evaluate the previous
conditions for calling pm_wakeup_hard_event() as hard parameters.
The remark about always reporting KEY_POWER is only partially correct
though. (Some) User space handles that indeed correctly but a system
offering a agetty login prompt shuts down immediately after waking from
s2idle.
1: https://lore.kernel.org/all/qffp7kadq3xojla5k6f5pr37irgytqfsqvabr6ydvulxnkcgnn@bv5mrraxrhhe/
Signed-off-by: Janne Grunau <j@jannau.net>1 parent 212aef7 commit 03a790d
1 file changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
83 | | - | |
84 | | - | |
85 | | - | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
0 commit comments