summarylogtreecommitdiffstats
path: root/ROG-ALLY-LED-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ROG-ALLY-LED-fix.patch')
-rw-r--r--ROG-ALLY-LED-fix.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/ROG-ALLY-LED-fix.patch b/ROG-ALLY-LED-fix.patch
new file mode 100644
index 000000000000..e5014cba75de
--- /dev/null
+++ b/ROG-ALLY-LED-fix.patch
@@ -0,0 +1,32 @@
+diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c
+index e7993d7..c8189f9 100644
+--- a/drivers/hid/hid-asus.c
++++ b/drivers/hid/hid-asus.c
+@@ -454,6 +454,9 @@ static int rog_nkey_led_init(struct hid_device *hdev)
+ 0x54, 0x65, 0x63, 0x68, 0x2e, 0x49, 0x6e, 0x63, 0x2e, 0x00 };
+ u8 buf_init3[] = { FEATURE_KBD_LED_REPORT_ID1,
+ 0x05, 0x20, 0x31, 0x00, 0x08 };
++ u8 buf_init4[] = { 0x5a, 0xb3};
++ u8 buf_init5[] = { 0x5a, 0xb5};
++ u8 buf_init6[] = { 0x5a, 0xb4};
+ int ret;
+
+ hid_info(hdev, "Asus initialise N-KEY Device");
+@@ -488,6 +491,17 @@ static int rog_nkey_led_init(struct hid_device *hdev)
+ ret = asus_kbd_set_report(hdev, buf_init3, sizeof(buf_init3));
+ if (ret < 0)
+ hid_warn(hdev, "Asus failed to send init command 2.1: %d\n", ret);
++
++ /* ROG ALLY LED init */
++ ret = asus_kbd_set_report(hdev, buf_init4, sizeof(buf_init4));
++ if (ret < 0)
++ hid_warn(hdev, "Asus failed to send ROG ALLY LED init command: %d\n", ret);
++ ret = asus_kbd_set_report(hdev, buf_init5, sizeof(buf_init5));
++ if (ret < 0)
++ hid_warn(hdev, "Asus failed to send ROG ALLY LED init command: %d\n", ret);
++ ret = asus_kbd_set_report(hdev, buf_init6, sizeof(buf_init6));
++ if (ret < 0)
++ hid_warn(hdev, "Asus failed to send ROG ALLY LED init command: %d\n", ret);
+
+ return ret;
+ }