hid-asus.patch0000664000175000017500000000217713077702772014031 0ustar kkaranthkkaranth--- drivers/hid/hid-asus.c 2017-04-25 22:36:49.603352000 +0530 +++ /media/media/share/hid-asus-modified.c 2017-04-25 22:52:31.489092400 +0530 @@ -69,7 +69,7 @@ #define QUIRK_IS_MULTITOUCH BIT(3) #define QUIRK_USE_KBD_BACKLIGHT BIT(4) -#define KEYBOARD_QUIRKS (QUIRK_FIX_NOTEBOOK_REPORT | \ +#define KEYBOARD_QUIRKS (QUIRK_USE_KBD_BACKLIGHT | QUIRK_FIX_NOTEBOOK_REPORT | \ QUIRK_NO_INIT_REPORTS) #define TOUCHPAD_QUIRKS (QUIRK_NO_INIT_REPORTS | \ QUIRK_SKIP_INPUT_MAPPING | \ @@ -299,8 +299,10 @@ return ret; /* Check for backlight support */ + /* if (!(kbd_func & SUPPORT_KBD_BACKLIGHT)) return -ENODEV; + */ drvdata->kbd_backlight = devm_kzalloc(&hdev->dev, sizeof(struct asus_kbd_leds), @@ -539,7 +541,7 @@ { HID_I2C_DEVICE(USB_VENDOR_ID_ASUSTEK, USB_DEVICE_ID_ASUSTEK_TOUCHPAD), TOUCHPAD_QUIRKS }, { HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK, - USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD1), 0 }, + USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD1), QUIRK_USE_KBD_BACKLIGHT }, { HID_USB_DEVICE(USB_VENDOR_ID_ASUSTEK, USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD2), QUIRK_USE_KBD_BACKLIGHT }, { }