|
|
@@ -373,7 +373,7 @@ wakeup:
|
|
|
* the 5-button array, but still send notifies with power button
|
|
|
* event code to this device object on power button actions.
|
|
|
*
|
|
|
- * Report the power button press; catch and ignore the button release.
|
|
|
+ * Report the power button press and release.
|
|
|
*/
|
|
|
if (!priv->array) {
|
|
|
if (event == 0xce) {
|
|
|
@@ -382,8 +382,11 @@ wakeup:
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (event == 0xcf)
|
|
|
+ if (event == 0xcf) {
|
|
|
+ input_report_key(priv->input_dev, KEY_POWER, 0);
|
|
|
+ input_sync(priv->input_dev);
|
|
|
return;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/* 0xC0 is for HID events, other values are for 5 button array */
|