Bug 194557 - Asus GL553VE laptop keyboard backlight uncontrollable and Fn keys not working
Summary: Asus GL553VE laptop keyboard backlight uncontrollable and Fn keys not working
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Platform (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: drivers_platform@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-12 12:47 UTC by Ivan Vokhmin
Modified: 2019-10-13 13:23 UTC (History)
15 users (show)

See Also:
Kernel Version: 4.10.0-041000rc7-generic
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Dmesg on 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux (90.10 KB, text/plain)
2017-02-16 07:11 UTC, Ivan Vokhmin
Details
[ 0.000000] Linux version 4.9.8-201.fc25.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC) ) #1 SMP Tue Feb 7 11:28:07 UTC 2017 (72.86 KB, text/plain)
2017-02-16 08:05 UTC, Martijn Schoemaker
Details
Dmesg of 4.10.0.rc8 (68.84 KB, text/plain)
2017-02-17 15:29 UTC, Martijn Schoemaker
Details
dmesg for 4.10.0-041000rc8-generic (67.51 KB, text/plain)
2017-03-01 12:35 UTC, Ivan Vokhmin
Details
lshw GL553VE (22.47 KB, text/plain)
2017-03-01 12:41 UTC, Ivan Vokhmin
Details
lshw output for Asus FX53VD/GL553VD (15.74 KB, text/plain)
2017-03-30 20:28 UTC, John Hertzog
Details
Collection of Patches from EndlessOS (20.00 KB, application/x-tar)
2017-04-17 21:09 UTC, John Hertzog
Details
Fixed collection of patches from EndlessOS (20.00 KB, application/x-tar)
2017-04-17 22:20 UTC, John Hertzog
Details
Patches to get keyboard backlight function working (10.00 KB, patch)
2017-04-25 17:29 UTC, Karthik Karanth
Details | Diff
Diff from original 4.12 kernel to make backlight and its keys working on GL553VE (2.59 KB, text/plain)
2017-07-08 00:52 UTC, Ivan Vokhmin
Details

Description Ivan Vokhmin 2017-02-12 12:47:51 UTC
[1.] One line summary of the problem:
Asus GL553VE laptop keyboard backlight uncontrollable and Fn keys not working

[2.] Full description of the problem/report:

There are problems with Asus GL553VE laptop Fn buttons and keyboard backlight
1) Keyboard backlight uncontrollable
2) Most FN keys don't work

There is no way to control keyboard backlight at all (already tried all possible ways found in internet)

Missing /sys/class/leds/asus::kbd_backlight (asus-nb-wmi modprobed)

try all possible variants with acpi_osi and acpi_backlight from forum - no effect.

Install kernel 4.9 and even 4.10 latest RC - no effect (only got control over airplane led).

Keyboard backlight is always on or always off (last state from windows)
Fn keys not working:
F1(Zz Suspend) F2(Airplane) F3(Kb brightness down) F4(Kb brightness up) F5(Brightness down) F6(Brightness up) F7(Screen dim) F9(Touchpad disable)
Working: Sound Mute + - (F10 F11 F12)

Monitor backlight working fine by using menu slider.

Suggestion: asus-nb-wmi kernel module unable to detect hardware 

Launchpad bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1662316

uname -a
Linux cabalbl4-STRIX 4.10.0-041000rc7-generic #201702051931 SMP Mon Feb 6 

lsb_release -rd
Description:    Ubuntu 16.04.1 LTS
Release:        16.04 

modinfo asus-nb-wmi
filename:       /lib/modules/4.10.0-041000rc7-generic/kernel/drivers/platform/x86/asus-nb-wmi.ko
alias:          wmi:0B3CBB35-E3C2-45ED-91C2-4C5A6D195D1C
license:        GPL
description:    Asus Notebooks WMI Hotkey Driver
author:         Corentin Chary <corentin.chary@xxxxxxxxx>
srcversion:     D736E3F1EE99A90EAA46416
depends:        asus-wmi
intree:         Y
vermagic:       4.10.0-041000rc7-generic SMP mod_unload 
parm:           wapf:WAPF value (uint)  

ProblemType: Bug
CurrentDesktop: KDE
Date: Mon Feb 6 23:18:11 2017
HibernationDevice: RESUME=UUID=6ab6365a-c88a-4e64-a529-83b6a9a70e4e
InstallationDate: Installed on 2017-02-05 (1 days ago)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 003: ID 8087:0a2a Intel Corp.
 Bus 001 Device 002: ID 0bda:57f5 Realtek Semiconductor Corp.
 Bus 001 Device 004: ID 0b05:1854 ASUSTek Computer, Inc.
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: ASUSTeK COMPUTER INC. GL553VE
ProcFB: 0 inteldrmfb
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/08/2016
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: GL553VE.208
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: GL553VE
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrGL553VE.208:bd11/08/2016:svnASUSTeKCOMPUTERINC.:pnGL553VE:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnGL553VE:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.name: GL553VE
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

[3.] Keywords (i.e., modules, networking, kernel):


[4.] Kernel version (from /proc/version): 
cat /proc/version
Linux version 4.10.0-041000rc7-generic (kernel@gloin) (gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12) ) #201702051931 SMP Mon Feb 6 00:33:39 UTC 2017
Comment 1 Ivan Vokhmin 2017-02-14 19:56:15 UTC
Bug still exists in  4.10.0-041000rc8-generic #201702121731
Comment 2 Ivan Vokhmin 2017-02-14 21:43:53 UTC
After digging a bit, I understood that Asus is using their "Aura" software to control keyboard backlight, so it may change colors etc. Is there any possible linux module for "Aura"?
Comment 3 Martijn Schoemaker 2017-02-15 09:22:18 UTC
Exactly the same issues here on an ASUS GL753VD laptop running Fedora 25 with kernel 4.9.8. Seems to be the same keyboard hardware (0b05:1854). No control of keyboard backlight (only airplanemode light is found) and the beforementioned function keys do not work.

# uname -a
Linux deathstar 4.9.8-201.fc25.x86_64 #1 SMP Tue Feb 7 11:28:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 8087:0a2a Intel Corp. 
Bus 001 Device 002: ID 0b05:1854 ASUSTek Computer, Inc. 
Bus 001 Device 004: ID 13d3:5666 IMC Networks 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

# modinfo asus-nb-wmi
filename:       /lib/modules/4.9.8-201.fc25.x86_64/kernel/drivers/platform/x86/asus-nb-wmi.ko.xz
alias:          wmi:0B3CBB35-E3C2-45ED-91C2-4C5A6D195D1C
license:        GPL
description:    Asus Notebooks WMI Hotkey Driver
author:         Corentin Chary <corentin.chary@gmail.com>
depends:        asus-wmi
intree:         Y
vermagic:       4.9.8-201.fc25.x86_64 SMP mod_unload 
signat:         PKCS#7
signer:         
sig_key:        
sig_hashalgo:   md4
parm:           wapf:WAPF value (uint)

Bus 001 Device 002: ID 0b05:1854 ASUSTek Computer, Inc. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0b05 ASUSTek Computer, Inc.
  idProduct          0x1854 
  bcdDevice            3.02
  iManufacturer           1 ITE Tech. Inc.
  iProduct                2 ITE Device(8910)
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     199
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               4
Device Status:     0x0001
  Self Powered
Comment 4 Marcos Souza 2017-02-16 00:53:52 UTC
Hi guys,

have you tried the patch mentioned in [1]? It fixed my problem with brightness keys, although other keys like volume and wireless were working before.

Also, can you guys add a dmesg output? Thanks.

[1] https://bugzilla.kernel.org/show_bug.cgi?id=98931
Comment 5 Ivan Vokhmin 2017-02-16 07:11:27 UTC
Created attachment 254781 [details]
Dmesg on 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

I am currently on an older kernel, will this dmesg do?
Comment 6 Ivan Vokhmin 2017-02-16 07:13:18 UTC
Have not tried the patch yet, but soon I will try to apply it and I can post a dmsg after.
Comment 7 Martijn Schoemaker 2017-02-16 08:05:15 UTC
Created attachment 254785 [details]
[    0.000000] Linux version 4.9.8-201.fc25.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 6.3.1 20161221 (Red Hat 6.3.1-1) (GCC) ) #1 SMP Tue Feb 7 11:28:07 UTC 2017

Here is the dmesg from my GL753VD running Fedora 25 (nouveau disabled due to non supported GTX 1050)
Comment 8 Marcos Souza 2017-02-17 10:03:44 UTC
Hi guys,

I couldn't see anything obvious in your dmesg files. However, as the mentioned patch touches the currently active display, this may not be shown in dmesg.

Can you guys please test the attached patch, or just test 4.10-rc8?

Thanks
Comment 9 Martijn Schoemaker 2017-02-17 15:29:07 UTC
Created attachment 254813 [details]
Dmesg of 4.10.0.rc8

Installed 4.10.0-rc8, unfortunately no difference. Buttons are not working and no new led devices in /sys/class/leds
Comment 10 Martin Mokrejs 2017-02-27 01:31:21 UTC
Do you have these enabled?

asus_g552vw linux-4.10.0-gentoo # grep ATK .config
CONFIG_KEYBOARD_ATKBD=y
CONFIG_SENSORS_ATK0110=y
asus_g552vw linux-4.10.0-gentoo # 

See my bug #194719 too.
Comment 11 Martin Mokrejs 2017-02-27 02:34:37 UTC
(In reply to Martijn Schoemaker from comment #7)
> Created attachment 254785 [details]
> [    0.000000] Linux version 4.9.8-201.fc25.x86_64
> (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 6.3.1 20161221
> (Red Hat 6.3.1-1) (GCC) ) #1 SMP Tue Feb 7 11:28:07 UTC 2017
> 
> Here is the dmesg from my GL753VD running Fedora 25 (nouveau disabled due to
> non supported GTX 1050)

How about this?

[    4.420908] ACPI Warning: \_SB_.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20150930/nsarguments-95)
Comment 12 Martin Mokrejs 2017-02-27 09:40:38 UTC
And I have also these installed, notably the CONFIG_ACPI_WMI seems to be used on my laptop (the bug #194719).

asus_g552vw linux-4.10.0-gentoo # grep WMI .config | grep -v '^#'
CONFIG_ASUS_WMI=y
CONFIG_ASUS_NB_WMI=y
CONFIG_ACPI_WMI=y
CONFIG_MXM_WMI=y
asus_g552vw linux-4.10.0-gentoo #
Comment 13 Martijn Schoemaker 2017-03-01 12:22:31 UTC
(In reply to Martin Mokrejs from comment #12)

Martin, I have the modules loaded. I'm afraid your g552vw has different hardware. What does your lsusb show ? Do you also have the 0b05:1854 device ?
Comment 14 Ivan Vokhmin 2017-03-01 12:35:45 UTC
Created attachment 255007 [details]
dmesg for 4.10.0-041000rc8-generic

Sorry for late response. 
This is dmesg for GL553VE on latest RC8 kernel

uname -a
Linux cabalbl4-STRIX 4.10.0-041000rc8-generic #201702121731 SMP Sun Feb 12 22:33:33 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Comment 15 Ivan Vokhmin 2017-03-01 12:41:40 UTC
Created attachment 255009 [details]
lshw GL553VE

Adding my hardware profile for GL553VE.

My kernel config:
cat /boot/config-$(uname -r) | grep ATK
CONFIG_KEYBOARD_ATKBD=y
CONFIG_SENSORS_ATK0110=m

cat /boot/config-$(uname -r) | grep WMI
CONFIG_SND_RAWMIDI=m
CONFIG_SND_RAWMIDI_SEQ=m
CONFIG_ACER_WMI=m
CONFIG_ALIENWARE_WMI=m
CONFIG_DELL_WMI=m
CONFIG_DELL_WMI_AIO=m
CONFIG_HP_WMI=m
CONFIG_SURFACE3_WMI=m
CONFIG_ASUS_WMI=m
CONFIG_ASUS_NB_WMI=m
CONFIG_EEEPC_WMI=m
CONFIG_ACPI_WMI=m
CONFIG_MSI_WMI=m

lsmod | grep wmi
asus_nb_wmi            28672  0
asus_wmi               28672  1 asus_nb_wmi
sparse_keymap          16384  1 asus_wmi
snd_rawmidi            32768  1 snd_seq_midi
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd                    77824  17 snd_hda_intel,snd_hwdep,snd_seq,snd_hda_codec,snd_timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_seq_device,snd_hda_codec_realtek,snd_pcm
mxm_wmi                16384  0
wmi                    16384  2 asus_wmi,mxm_wmi
video                  40960  2 asus_wmi,i915
Comment 16 John Hertzog 2017-03-30 20:28:54 UTC
Created attachment 255649 [details]
lshw output for Asus FX53VD/GL553VD

I am also still getting this issue of no keyboard FN functionality working except for volume buttons. I added my lshw output for my FX53VD (which identifies itself in the BIOS as a GL553VD, must be same internals). This is on kernel 4.11rc2. In addition, I recieve this error on startup regarding ACPI:

[    0.030577] ACPI Error: [PRT0] Namespace lookup failure, AE_ALREADY_EXISTS (20170119/dswload-378)
[    0.030585] ACPI Exception: AE_ALREADY_EXISTS, During name lookup/catalog (20170119/psobject-227)
[    0.030666] ACPI Exception: AE_ALREADY_EXISTS, (SSDT:SataTabl) while loading table (20170119/tbxfload-228)
[    0.040205] ACPI Error: 1 table load failures, 10 successful (20170119/tbxfload-246)

Not sure if this is related or not. I can get any other info as needed if it would help.
Comment 17 Karthik Karanth 2017-04-17 18:22:26 UTC
I have an FX553VD. This laptop comes preinstalled with Endless OS(a Linux distro) and not Windows. (I got rid of it and installed Ubuntu on day one though). I compiled the Endless OS kernel from https://github.com/endlessm/linux and installed it. Most the function keys(sleep, airplane mode, brightness, touchpad, sound) are now working. I haven't investigated what changes they have made to the source yet. The keyboard backlight control doesn't work however. The keypress is identified and GNOME shows a notification, but the keyboard backlight can't be dimmed/increased. The folder /sys/class/leds/asus::kbd_backlight/ is missing. The script that is run on pressing Fn+F3/F4 uses a file in that folder to control the keyboard backlight.

dmesg output with asus:
~$ dmesg | grep asus
[    2.745523] asus 0003:0B05:1854.0002: input,hiddev0,hidraw1: USB HID v1.10 Keyboard [ITE Tech. Inc. ITE Device(8910)] on usb-0000:00:14.0-11/input0
[   12.714895] asus_wmi: ASUS WMI generic driver loaded
[   12.715905] asus_wmi: Initialization: 0x1
[   12.715969] asus_wmi: BIOS WMI version: 8.1
[   12.716029] asus_wmi: SFUN value: 0x4a0061
[   12.716562] input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input10
[   12.716666] asus_wmi: Number of fans: 1
Comment 18 John Hertzog 2017-04-17 21:09:37 UTC
Created attachment 255909 [details]
Collection of Patches from EndlessOS

Here are the differences I've noted from comparing 4.10.10 to EndlessOS's. I was able to successfully compile and install a kernel with these patches on my Arch install. I'm not sure if I'm allowed to provide these patches or not to officially be included as I did not write them and all credit goes to the Endless team. I also noticed that the keyboard backlight behavior is the same as the previous poster's.
Comment 19 John Hertzog 2017-04-17 22:17:05 UTC
Ok, so those patches are broken because I messed up creating the tar file, however, here is the Github commit that added support just 7 days ago for the FN keys

https://github.com/endlessm/linux/commit/aae7c7a42f03f030bb5cc2d5708200f1c571c063
Comment 20 John Hertzog 2017-04-17 22:20:51 UTC
Created attachment 255913 [details]
Fixed collection of patches from EndlessOS
Comment 21 Martijn Schoemaker 2017-04-20 09:00:44 UTC
Thanks John! Patched the latest Fedora 25 kernel (4.10.10-200) on my ASUS GL753VD using these patches. Function keys work now, but unfortunately no led control for the keyboard yet.... The USB identifiers in de code seem to match though.

Anyone an idea if Aura (which these Strix keyboards seem to use) is already available in another way ?
Comment 22 Martijn Schoemaker 2017-04-24 07:01:25 UTC
I got the function keys and keyboard backlight brightness control working. It seems you need to set a quirk flag to enable the keyboard backlight dimming with the provided patches. I ended up changing the code to force initialization of the keyboard backlight altering code, but this is nog the clean way. If I have some time I will try to get this to work the correct way by setting the quirk flag on module load (should be 0x10 or 16 decimal, so quirk=0x10 as argument to the module.d config file). So basic function is there, now only to find the code for setting the colors and I'm a happy camper ...
Comment 23 Karthik Karanth 2017-04-24 18:34:41 UTC
I modified a line in hid-asus.c, from
#define KEYBOARD_QUIRKS	(QUIRK_FIX_NOTEBOOK_REPORT | QUIRK_NO_INIT_REPORTS)
to
#define KEYBOARD_QUIRKS	(QUIRK_USE_KBD_BACKLIGHT | QUIRK_FIX_NOTEBOOK_REPORT | QUIRK_NO_INIT_REPORTS)

The keyboard backlight still doesn't work on my FX553VD.
Comment 24 Martijn Schoemaker 2017-04-25 06:41:53 UTC
(In reply to Karthik Karanth from comment #23)
> I modified a line in hid-asus.c, from
> #define KEYBOARD_QUIRKS       (QUIRK_FIX_NOTEBOOK_REPORT |
> QUIRK_NO_INIT_REPORTS)
> to
> #define KEYBOARD_QUIRKS       (QUIRK_USE_KBD_BACKLIGHT |
> QUIRK_FIX_NOTEBOOK_REPORT
> | QUIRK_NO_INIT_REPORTS)
> 
> The keyboard backlight still doesn't work on my FX553VD.

You also need to add the QUIRK flags to the hid_device_id structure for USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD1. Better solution is to add is to the modules.d config for module load (also need to recreate ramdisk as I guess this driver is loaded from ramdisk first).

There is another check too which I disabled, the one that checks for the SUPPORT_KBD_BACKLIGHT flag during init. I have created a new patch with more logging so I can build a kernel to see what all flags are and which are tested to see where things get blocked. Just need some time to do the debugging ...
Comment 25 Karthik Karanth 2017-04-25 11:43:29 UTC
Thanks Martijn! I can confirm that the keyboard backlight is now working and controllable on the FX553-VD.  

This laptop doesn't support different colored backlights, just off or three levels of brightness, all of which are functional.
Comment 26 Martijn Schoemaker 2017-04-25 11:50:00 UTC
(In reply to Karthik Karanth from comment #25)
> Thanks Martijn! I can confirm that the keyboard backlight is now working and
> controllable on the FX553-VD.  
> 
> This laptop doesn't support different colored backlights, just off or three
> levels of brightness, all of which are functional.

That's great news, can you share what you did exactly to get this working ?
Comment 27 Karthik Karanth 2017-04-25 17:29:08 UTC
Created attachment 256023 [details]
Patches to get keyboard backlight function working

This patch is to be applied on hid-asus.c -- use the one from the EndlessOS tree, or the modified hid-asus.c from John's patch
Comment 28 Karthik Karanth 2017-04-25 17:31:19 UTC
I did exactly what Martijn said, a few changes in hid-asus.c. I've attached it as a patch in my previous post. I'm using the EndlessOS kernel, but it should work if you've applied already applied John's patches from the EndlessOS tree.
Comment 29 Martijn Schoemaker 2017-04-26 07:51:52 UTC
@Karthik, thanks for your answer.

I have done some debugging, reinstated all checks with additional logging and I could not set the Quirk flag in any dynamic way like as kernel boot argument (usbhid.quirks) or module argument to hid-asus. The only way is like Karthik did, and that is to add the quirk flag for the USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD1 entry (which is 0 in the original patch).

I don't know if changing it this way will break something (why was this flag not set for this keyboard type in the first place?) and unfortunately i'm no USB kernel module guru in any way.

So as it stands this is currently the only way to get this working. I will tidy up and make a patch as I used on my fedora 25 install that can be used as a drop-in for the rpmbuild process later.
Comment 30 shivangpatel 2017-06-07 19:37:05 UTC
I have (In reply to Martijn Schoemaker from comment #29)
> @Karthik, thanks for your answer.
> 
> I have done some debugging, reinstated all checks with additional logging
> and I could not set the Quirk flag in any dynamic way like as kernel boot
> argument (usbhid.quirks) or module argument to hid-asus. The only way is
> like Karthik did, and that is to add the quirk flag for the
> USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD1 entry (which is 0 in the original patch).
> 
> I don't know if changing it this way will break something (why was this flag
> not set for this keyboard type in the first place?) and unfortunately i'm no
> USB kernel module guru in any way.
> 
> So as it stands this is currently the only way to get this working. I will
> tidy up and make a patch as I used on my fedora 25 install that can be used
> as a drop-in for the rpmbuild process later.

Hello, 

I have also asusFX553VD and i m facing same problem. After many search, someone send me this page link. Please make a simple command list, so I can able to install those patches in my ubuntu 16.04 kernal. 

I tried, but maybe some mistake i didn't patch it. 
Thank you.
Comment 31 UserThatUsesArchLinux 2017-06-07 19:44:28 UTC
(In reply to Martijn Schoemaker from comment #29)
> @Karthik, thanks for your answer.
> 
> I have done some debugging, reinstated all checks with additional logging
> and I could not set the Quirk flag in any dynamic way like as kernel boot
> argument (usbhid.quirks) or module argument to hid-asus. The only way is
> like Karthik did, and that is to add the quirk flag for the
> USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD1 entry (which is 0 in the original patch).
> 
> I don't know if changing it this way will break something (why was this flag
> not set for this keyboard type in the first place?) and unfortunately i'm no
> USB kernel module guru in any way.
> 
> So as it stands this is currently the only way to get this working. I will
> tidy up and make a patch as I used on my fedora 25 install that can be used
> as a drop-in for the rpmbuild process later.

I have applied 7 patches: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/hid/hid-asus.c (in the reverse order, so first "HID: asus: support Republic of Gamers special keys", "HID: asus: fix and generalize ambiguous preprocessor macros" secondly, etc.

I successfully booted up then with the kernel, but the keyboard function keys still do not work. @Karthik's patch doesn't seem work anymore with the last kernel.

Running ArchLinux.
Comment 32 shivangpatel 2017-06-09 04:46:33 UTC
Now, finally.... new kernel this this bug is fixed..98%. Still keyboard back-light is not changing. Rest of all key working fine. 

Linux shivangpatel 4.12.0-041200rc4-generic #201706042031 SMP Mon Jun 5 00:32:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Comment 33 John Hertzog 2017-06-09 08:31:48 UTC
I can confirm that on my FX53VD (different from the FX553VD) the FN keys seem to function properly except the keyboard backlight never changes. However, while running GNOME there is an icon that pops up indicating that the keyboard backlight is trying to be changed, or something similar to that nature? However, the backlight itself never changes.

Linux john-laptop 4.12.0-rc4-custom #1 SMP PREEMPT Fri Jun 9 03:10:08 CDT 2017 x86_64 GNU/Linux
Comment 34 shivangpatel 2017-06-09 11:55:53 UTC
(In reply to John Hertzog from comment #33)
> I can confirm that on my FX53VD (different from the FX553VD) the FN keys
> seem to function properly except the keyboard backlight never changes.
> However, while running GNOME there is an icon that pops up indicating that
> the keyboard backlight is trying to be changed, or something similar to that
> nature? However, the backlight itself never changes.
> 
> Linux john-laptop 4.12.0-rc4-custom #1 SMP PREEMPT Fri Jun 9 03:10:08 CDT
> 2017 x86_64 GNU/Linux


Yes... @johnHertzog - 

Backlight is not changing, and just popup is appearing. 
No acpi_listion on F3, F4. 

Backlight eating battery power and my battery hardly working for 1H 48Min. same happening with your battery ?
Comment 35 Karthik Karanth 2017-06-09 18:53:27 UTC
I haven't tested the patch I posted earlier on 4.12. It works on 4.10 however.

Regarding battery life, I highly doubt its the backlight. I get 3~4 hours with the keyboard backlight on. Maybe your discrete GPU is running all the time? Running powertop should give you an idea as to what is draining your battery.
Comment 36 UserThatUsesArchLinux 2017-06-09 23:20:33 UTC
(In reply to Karthik Karanth from comment #35)
> I haven't tested the patch I posted earlier on 4.12. It works on 4.10
> however.
> 
> Regarding battery life, I highly doubt its the backlight. I get 3~4 hours
> with the keyboard backlight on. Maybe your discrete GPU is running all the
> time? Running powertop should give you an idea as to what is draining your
> battery.

Could you tell if that patch with the 4.10 let all FN keys do work in the OS? Are you still using this version? Are all your FN keys working (if so, how did you make them working)? What's your output of `uname -r` (which precise kernel release did you use to make this patch?)?
Comment 37 Karthik Karanth 2017-06-10 04:33:26 UTC
My FX553-VD came with EndlessOS preinstalled, but I got rid of it the day I bought it. So I compiled the kernel from their tree(https://github.com/endlessm/linux) and all the function keys except keyboard backlight worked immediately. At the time I cloned their source, it was version 4.10.

For keyboard backlight, I've attached a patch in one of my earlier posts in this thread based on what Martijn said. 

I'm still using that kernel, haven't got around to updating to a newer kernel.

~$ uname -r
4.10.0-15-generic
Comment 38 UserThatUsesArchLinux 2017-06-10 12:05:41 UTC
(In reply to Karthik Karanth from comment #37)
> My FX553-VD came with EndlessOS preinstalled, but I got rid of it the day I
> bought it. So I compiled the kernel from their
> tree(https://github.com/endlessm/linux) and all the function keys except
> keyboard backlight worked immediately. At the time I cloned their source, it
> was version 4.10.
> 
> For keyboard backlight, I've attached a patch in one of my earlier posts in
> this thread based on what Martijn said. 
> 
> I'm still using that kernel, haven't got around to updating to a newer
> kernel.
> 
> ~$ uname -r
> 4.10.0-15-generic

Is there a way to get that 4.10 kernel to patch and compile it? Is it equivalent to the standard Linux kernel?
Comment 39 Karthik Karanth 2017-06-10 14:34:39 UTC
The EndlessOS kernel has some changes made to hid-asus.c(atleast) which enable the function keys. This is the kernel I'm using.

OR, you could patch a regular 4.10 kernel. John uploaded a patch in this thread with the changes: https://bugzilla.kernel.org/attachment.cgi?id=255913


Either way, after that, you'll have to apply this patch: https://bugzilla.kernel.org/attachment.cgi?id=256023&action=diff.


> Is there a way to get that 4.10 kernel to patch and compile it?
You can pass `--branch v4.10` as an argument to `git clone` when downloading the source. 
If you are talking about the 4.10 version of the EndlessOS kernel, I am not sure. Perhaps you could clone their repo, and use git checkout to get to the kernel's state on April 17th(which is when I compiled the kernel).
Comment 40 shivangpatel 2017-06-13 04:36:01 UTC
(In reply to Karthik Karanth from comment #35)
> I haven't tested the patch I posted earlier on 4.12. It works on 4.10
> however.
> 
> Regarding battery life, I highly doubt its the backlight. I get 3~4 hours
> with the keyboard backlight on. Maybe your discrete GPU is running all the
> time? Running powertop should give you an idea as to what is draining your
> battery.

Really !  3~4 Hours!!  
My system hardly run 1.48H without NVIDIA GPU. And when I enabled, generally GPU is taking around ~300MB. I don't know what is problem with it... (i m using netbeans n some development apps). 

Now, for powertop... when i calibrate system using powertop, on that time i get 1.48H. without it 1.30H max.

@karthik suggest me more so i can resolve it.. or any other link available for discussion for battery...  (this thred for backlight and Fn key)     

Thank you !
Comment 41 UserThatUsesArchLinux 2017-06-15 12:15:38 UTC
(In reply to Karthik Karanth from comment #39)
> The EndlessOS kernel has some changes made to hid-asus.c(atleast) which
> enable the function keys. This is the kernel I'm using.
> 
> OR, you could patch a regular 4.10 kernel. John uploaded a patch in this
> thread with the changes: https://bugzilla.kernel.org/attachment.cgi?id=255913
> 
> 
> Either way, after that, you'll have to apply this patch:
> https://bugzilla.kernel.org/attachment.cgi?id=256023&action=diff.
> 
> 
> > Is there a way to get that 4.10 kernel to patch and compile it?
> You can pass `--branch v4.10` as an argument to `git clone` when downloading
> the source. 
> If you are talking about the 4.10 version of the EndlessOS kernel, I am not
> sure. Perhaps you could clone their repo, and use git checkout to get to the
> kernel's state on April 17th(which is when I compiled the kernel).

Oh, I forgot to reply. It worked, thanks.

(In reply to shivangpatel from comment #40)
> (In reply to Karthik Karanth from comment #35)
> > I haven't tested the patch I posted earlier on 4.12. It works on 4.10
> > however.
> > 
> > Regarding battery life, I highly doubt its the backlight. I get 3~4 hours
> > with the keyboard backlight on. Maybe your discrete GPU is running all the
> > time? Running powertop should give you an idea as to what is draining your
> > battery.
> 
> Really !  3~4 Hours!!  
> My system hardly run 1.48H without NVIDIA GPU. And when I enabled, generally
> GPU is taking around ~300MB. I don't know what is problem with it... (i m
> using netbeans n some development apps). 
> 
> Now, for powertop... when i calibrate system using powertop, on that time i
> get 1.48H. without it 1.30H max.
> 
> @karthik suggest me more so i can resolve it.. or any other link available
> for discussion for battery...  (this thred for backlight and Fn key)     
> 
> Thank you !

Please stop annoying people with off-topic requests. There are a lot of relevant guides on the internet for what you're asking.
Comment 42 Ivan Vokhmin 2017-07-08 00:52:02 UTC
Created attachment 257399 [details]
Diff from original 4.12 kernel to make backlight and its keys working on GL553VE
Comment 43 Ivan Vokhmin 2017-07-08 00:53:07 UTC
Finally, almost all keys are working for my GL553VE on 4.12 kernel from stock.

Backlight/F3/F4 were still disabled, however, I managed to get them working with the given diff on 4.12 kernel (based on Karthik Karanth patch). There is no way to change color, but the backlight and its keys are now working.

This diff is purely guess-based, so it needs to be cleaned up/reviewed by a experienced developer. At least it is working.
Comment 44 UserThatUsesArchLinux 2017-07-22 12:43:19 UTC
(In reply to Ivan Vokhmin from comment #43)
> Finally, almost all keys are working for my GL553VE on 4.12 kernel from
> stock.
> 
> Backlight/F3/F4 were still disabled, however, I managed to get them working
> with the given diff on 4.12 kernel (based on Karthik Karanth patch). There
> is no way to change color, but the backlight and its keys are now working.
> 
> This diff is purely guess-based, so it needs to be cleaned up/reviewed by a
> experienced developer. At least it is working.

I've tried to apply this: https://bugzilla.kernel.org/attachment.cgi?id=257399 on a 4.12.3 base kernel, but the patch failed. Why?
Comment 45 Ivan Vokhmin 2017-07-22 13:45:33 UTC
(In reply to UserThatUsesArchLinux from comment #44)
> (In reply to Ivan Vokhmin from comment #43)
> > Finally, almost all keys are working for my GL553VE on 4.12 kernel from
> > stock.
> > 
> > Backlight/F3/F4 were still disabled, however, I managed to get them working
> > with the given diff on 4.12 kernel (based on Karthik Karanth patch). There
> > is no way to change color, but the backlight and its keys are now working.
> > 
> > This diff is purely guess-based, so it needs to be cleaned up/reviewed by a
> > experienced developer. At least it is working.
> 
> I've tried to apply this:
> https://bugzilla.kernel.org/attachment.cgi?id=257399 on a 4.12.3 base
> kernel, but the patch failed. Why?

Maybe because of changes in 4.12.3 kernel? I pathced the 4.12.0 one, there are some changes afterwards.
Comment 46 John Hertzog 2017-07-27 23:41:22 UTC
(In reply to UserThatUsesArchLinux from comment #44)
> (In reply to Ivan Vokhmin from comment #43)
> > Finally, almost all keys are working for my GL553VE on 4.12 kernel from
> > stock.
> > 
> > Backlight/F3/F4 were still disabled, however, I managed to get them working
> > with the given diff on 4.12 kernel (based on Karthik Karanth patch). There
> > is no way to change color, but the backlight and its keys are now working.
> > 
> > This diff is purely guess-based, so it needs to be cleaned up/reviewed by a
> > experienced developer. At least it is working.
> 
> I've tried to apply this:
> https://bugzilla.kernel.org/attachment.cgi?id=257399 on a 4.12.3 base
> kernel, but the patch failed. Why?

Try ignoring whitespace with the --ignore-whitespace flag. I had to do that to get 4.12.2 to patch, haven't tried 4.12.3 yet.
Comment 47 Kolbjorn Blix 2017-07-30 10:17:30 UTC
I can confirm that Cabalbl4 (i-vohmin)'s  (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1662316/comments/11) pre-compiled 4.12.0_custom kernel makes all the F1 to F12 keys work on my ASUS GL753 VD.
Comment 48 shivangpatel 2017-07-31 12:59:08 UTC
I can confirm that Cabalbl4 (i-vohmin)'s  (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1662316/comments/11) pre-compiled 4.12.0_custom kernel makes all the F1 to F12 keys work on my ASUS FX553VD VD.
Comment 49 John Hertzog 2017-12-12 15:42:42 UTC
So, the patch still works with the latest 4.14.5 kernel and is necessary to make backlight keys work. Would this patch break other keyboards? What is preventing this from being submitted upstream?
Comment 50 Kolbjorn Blix 2017-12-12 15:46:11 UTC
(In reply to John Hertzog from comment #49)
> So, the patch still works with the latest 4.14.5 kernel and is necessary to
> make backlight keys work. Would this patch break other keyboards? What is
> preventing this from being submitted upstream?

Just to let you know that the backlight keys works ok with the 4.15 kernels, without any patches. Running it on my ROG GL753VD.

-Kolbjorn Blix
Comment 51 apeelme 2018-01-29 20:22:00 UTC
(In reply to Kolbjorn Blix from comment #50)
> Just to let you know that the backlight keys works ok with the 4.15 kernels,
> without any patches. Running it on my ROG GL753VD.
> 
> -Kolbjorn Blix

Unfortunately for me does not work. I have GL553VW with last 4.15 (Linux apeelme-GL553VW 4.15.0-041500-generic #201801282230 SMP Sun Jan 28 22:31:30 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux) and does not work except the volume keys.
Missing /sys/class/leds/asus::kbd_backlight and acpi_listen can not "hear" anything on press Fn+F3/F4/F5/F6 etc.!

apeelme
Comment 52 Ivan Vokhmin 2018-02-02 10:40:56 UTC
Kernel 4.15 enables keyboard backlight control for me (GL553VE). No more kernel patching needed.
Comment 53 apeelme 2018-02-02 10:54:51 UTC
I understand, but GL553VW not working!!!!
Comment 54 Ivan Vokhmin 2018-02-02 11:13:38 UTC
(In reply to apeelme from comment #53)
> I understand, but GL553VW not working!!!!

Have you tried applying my patch to kernel?
It kind of force-loads Asus quirks regardless to any conditions.
If it solves issues for you, then loading conditions need to be adjusted
If not, seems that your hardware differs a lot from my VE model
Comment 55 apeelme 2018-02-02 11:32:22 UTC
(In reply to Ivan Vokhmin from comment #54)
> (In reply to apeelme from comment #53)
> > I understand, but GL553VW not working!!!!
> 
> Have you tried applying my patch to kernel?
> It kind of force-loads Asus quirks regardless to any conditions.
> If it solves issues for you, then loading conditions need to be adjusted
> If not, seems that your hardware differs a lot from my VE model

Im not. Sorry for my question...but im not build every day....
build own kernel procedure (ubuntu 16.04.3 LTS):

1. apt-get source linux-image-$(uname -r)
2. apt-get build-dep linux-image-$(uname -r)
3. chmod a+x debian/rules
   chmod a+x debian/scripts/*
   chmod a+x debian/scripts/misc/*
   fakeroot debian/rules clean
   fakeroot debian/rules editconfigs
4. patching files
5. fakeroot debian/rules clean
6. fakeroot debian/rules binary-headers binary-generic binary-perarch
7. and install sudo dpkg -i 3 deb files?

(https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel)
Comment 56 Ivan Vokhmin 2018-02-02 12:33:04 UTC
(In reply to apeelme from comment #55) 
> Im not. Sorry for my question...but im not build every day....
> build own kernel procedure (ubuntu 16.04.3 LTS):


I have ubuntu kernel pre-compiled here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1662316/comments/11

Does it work for you?
Comment 57 apeelme 2018-02-02 21:02:49 UTC
(In reply to Ivan Vokhmin from comment #56)
> (In reply to apeelme from comment #55) 
> > Im not. Sorry for my question...but im not build every day....
> > build own kernel procedure (ubuntu 16.04.3 LTS):
> 
> 
> I have ubuntu kernel pre-compiled here:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1662316/comments/11
> 
> Does it work for you?

I tried, unfortunately not.

dmesg: https://pastebin.com/zwjFFeAv
Comment 58 apeelme 2018-02-03 20:27:23 UTC
Ok, i found the different -> ITE Device ID vendor product 

lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:0a2a Intel Corp. 
Bus 001 Device 003: ID 0bda:57f5 Realtek Semiconductor Corp. 
Bus 001 Device 005: ID 0b05:8176 ASUSTek Computer, Inc. 
Bus 001 Device 002: ID 04b4:0060 Cypress Semiconductor Corp. Wireless optical mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lshw:
apeelme-gl553vw           
    description: Notebook
    product: GL553VW (ASUS-NotebookSKU)
    vendor: ASUSTeK COMPUTER INC.
    version: 1.0
    serial: GBN0CV099286468
    width: 64 bits
    capabilities: smbios-3.0 dmi-3.0 vsyscall32
    configuration: boot=normal chassis=notebook family=GL sku=ASUS-NotebookSKU uuid=7EDCA0E0-CBC9-4C1F-81A3-BDED92BB10E9
  *-core
       description: Motherboard
       product: GL553VW
       vendor: ASUSTeK COMPUTER INC.
       physical id: 0
       version: 1.0
       serial: BSN12345678901234567
       slot: Default string
     *-firmware
          description: BIOS
          vendor: American Megatrends Inc.
          physical id: 0
          version: 304
          date: 05/22/2017
          size: 64KiB
          capacity: 15MiB
          capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int14serial int17printer acpi usb biosbootspecification uefi
     *-cache:0
          description: L1 cache
          physical id: 3d
          slot: L1 Cache
          size: 128KiB
          capacity: 128KiB
          capabilities: synchronous internal write-back data
          configuration: level=1
     *-cache:1
          description: L1 cache
          physical id: 3e
          slot: L1 Cache
          size: 128KiB
          capacity: 128KiB
          capabilities: synchronous internal write-back instruction
          configuration: level=1
     *-cache:2
          description: L2 cache
          physical id: 3f
          slot: L2 Cache
          size: 1MiB
          capacity: 1MiB
          capabilities: synchronous internal write-back unified
          configuration: level=2
     *-cache:3
          description: L3 cache
          physical id: 40
          slot: L3 Cache
          size: 6MiB
          capacity: 6MiB
          capabilities: synchronous internal write-back unified
          configuration: level=3
     *-cpu
          description: CPU
          product: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
          vendor: Intel Corp.
          physical id: 41
          bus info: cpu@0
          version: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
          serial: To Be Filled By O.E.M.
          slot: U3E1
          size: 3357MHz
          capacity: 4005MHz
          width: 64 bits
          clock: 100MHz
          capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp cpufreq
          configuration: cores=4 enabledcores=4 threads=8
     *-memory
          description: System Memory
          physical id: 42
          slot: System board or motherboard
          size: 8GiB
        *-bank:0
             description: [empty]
             physical id: 0
             slot: ChannelA-DIMM0
        *-bank:1
             description: [empty]
             physical id: 1
             slot: ChannelA-DIMM1
        *-bank:2
             description: SODIMM Synchronous 2133 MHz (0,5 ns)
             product: M471A1K43BB0-CPB
             vendor: Samsung
             physical id: 2
             serial: 22157524
             slot: ChannelB-DIMM0
             size: 8GiB
             width: 64 bits
             clock: 2133MHz (0.5ns)
        *-bank:3
             description: [empty]
             physical id: 3
             slot: ChannelB-DIMM1
     *-pci
          description: Host bridge
          product: Sky Lake Host Bridge/DRAM Registers
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 07
          width: 32 bits
          clock: 33MHz
          configuration: driver=skl_uncore
          resources: irq:0
        *-pci:0
             description: PCI bridge
             product: Sky Lake PCIe Controller (x16)
             vendor: Intel Corporation
             physical id: 1
             bus info: pci@0000:00:01.0
             version: 07
             width: 32 bits
             clock: 33MHz
             capabilities: pci pm msi pciexpress normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:122 ioport:e000(size=4096) memory:de000000-df0fffff ioport:c0000000(size=301989888)
           *-display
                description: 3D controller
                product: GM107M [GeForce GTX 960M]
                vendor: NVIDIA Corporation
                physical id: 0
                bus info: pci@0000:01:00.0
                version: a2
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list rom
                configuration: driver=nvidia latency=0
                resources: irq:326 memory:de000000-deffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(size=128) memory:df000000-df07ffff
        *-display
             description: VGA compatible controller
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 06
             width: 64 bits
             clock: 33MHz
             capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:322 memory:dd000000-ddffffff memory:b0000000-bfffffff ioport:f000(size=64) memory:c0000-dffff
        *-generic:0 UNCLAIMED
             description: System peripheral
             product: Sky Lake Gaussian Mixture Model
             vendor: Intel Corporation
             physical id: 8
             bus info: pci@0000:00:08.0
             version: 00
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm cap_list
             configuration: latency=0
             resources: memory:df432000-df432fff
        *-usb
             description: USB controller
             product: Sunrise Point-H USB 3.0 xHCI Controller
             vendor: Intel Corporation
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 31
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:126 memory:df410000-df41ffff
           *-usbhost:0
                product: xHCI Host Controller
                vendor: Linux 4.13.0-32-generic xhci-hcd
                physical id: 0
                bus info: usb@1
                logical name: usb1
                version: 4.13
                capabilities: usb-2.00
                configuration: driver=hub slots=16 speed=480Mbit/s
              *-usb:0
                   description: Mouse
                   product: USB Device
                   vendor: SONiX
                   physical id: 1
                   bus info: usb@1:1
                   version: 2.00
                   capabilities: usb-2.00
                   configuration: driver=usbhid maxpower=100mA speed=1Mbit/s
              *-usb:1
                   description: Video
                   product: USB2.0 HD UVC WebCam
                   vendor: 04081-0009480016431007946
                   physical id: 6
                   bus info: usb@1:6
                   version: 0.03
                   serial: 200901010001
                   capabilities: usb-2.00
                   configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
              *-usb:2
                   description: Bluetooth wireless interface
                   vendor: Intel Corp.
                   physical id: 8
                   bus info: usb@1:8
                   version: 0.01
                   capabilities: bluetooth usb-2.01
                   configuration: driver=btusb maxpower=100mA speed=12Mbit/s
              *-usb:3
                   description: Keyboard
                   product: ITE Device(8910)
                   vendor: ITE Tech. Inc.
                   physical id: b
                   bus info: usb@1:b
                   version: 0.03
                   capabilities: usb-2.00
                   configuration: driver=usbhid maxpower=100mA speed=12Mbit/s
           *-usbhost:1
                product: xHCI Host Controller
                vendor: Linux 4.13.0-32-generic xhci-hcd
                physical id: 1
                bus info: usb@2
                logical name: usb2
                version: 4.13
                capabilities: usb-3.00
                configuration: driver=hub slots=8 speed=5000Mbit/s
        *-generic:1
             description: Signal processing controller
             product: Sunrise Point-H Thermal subsystem
             vendor: Intel Corporation
             physical id: 14.2
             bus info: pci@0000:00:14.2
             version: 31
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi cap_list
             configuration: driver=intel_pch_thermal latency=0
             resources: irq:18 memory:df431000-df431fff
        *-generic:2
             description: Signal processing controller
             product: Sunrise Point-H LPSS I2C Controller #0
             vendor: Intel Corporation
             physical id: 15
             bus info: pci@0000:00:15.0
             version: 31
             width: 64 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=intel-lpss latency=0
             resources: irq:16 memory:df430000-df430fff
        *-generic:3
             description: Signal processing controller
             product: Sunrise Point-H LPSS I2C Controller #1
             vendor: Intel Corporation
             physical id: 15.1
             bus info: pci@0000:00:15.1
             version: 31
             width: 64 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=intel-lpss latency=0
             resources: irq:17 memory:df42f000-df42ffff
        *-communication
             description: Communication controller
             product: Sunrise Point-H CSME HECI #1
             vendor: Intel Corporation
             physical id: 16
             bus info: pci@0000:00:16.0
             version: 31
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_me latency=0
             resources: irq:324 memory:df42e000-df42efff
        *-storage
             description: SATA controller
             product: Sunrise Point-H SATA Controller [AHCI mode]
             vendor: Intel Corporation
             physical id: 17
             bus info: pci@0000:00:17.0
             version: 31
             width: 32 bits
             clock: 66MHz
             capabilities: storage msi pm ahci_1.0 bus_master cap_list
             configuration: driver=ahci latency=0
             resources: irq:320 memory:df428000-df429fff memory:df42d000-df42d0ff ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:df42c000-df42c7ff
        *-pci:1
             description: PCI bridge
             product: Sunrise Point-H PCI Express Root Port #3
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: f1
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:123 memory:df300000-df3fffff
           *-network
                description: Wireless interface
                product: Wireless 7265
                vendor: Intel Corporation
                physical id: 0
                bus info: pci@0000:02:00.0
                logical name: wlp2s0
                version: 59
                serial: d0:57:7b:8c:32:8c
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=iwlwifi driverversion=4.13.0-32-generic firmware=29.610311.0 ip=192.168.1.107 latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:323 memory:df300000-df301fff
        *-pci:2
             description: PCI bridge
             product: Sunrise Point-H PCI Express Root Port #4
             vendor: Intel Corporation
             physical id: 1c.3
             bus info: pci@0000:00:1c.3
             version: f1
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:124 ioport:d000(size=4096) memory:df200000-df2fffff
           *-network
                description: Ethernet interface
                product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:03:00.0
                logical name: enp3s0
                version: 15
                serial: 70:4d:7b:c5:bc:41
                size: 10Mbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s
                resources: irq:321 ioport:d000(size=256) memory:df204000-df204fff memory:df200000-df203fff
        *-pci:3
             description: PCI bridge
             product: Sunrise Point-H PCI Express Root Port #7
             vendor: Intel Corporation
             physical id: 1c.6
             bus info: pci@0000:00:1c.6
             version: f1
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:125 memory:df100000-df1fffff
           *-generic
                description: Unassigned class
                product: RTS5229 PCI Express Card Reader
                vendor: Realtek Semiconductor Co., Ltd.
                physical id: 0
                bus info: pci@0000:04:00.0
                version: 01
                width: 32 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list
                configuration: driver=rtsx_pci latency=0
                resources: irq:319 memory:df100000-df100fff
        *-generic:4
             description: Signal processing controller
             product: Sunrise Point-H LPSS UART #0
             vendor: Intel Corporation
             physical id: 1e
             bus info: pci@0000:00:1e.0
             version: 31
             width: 64 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=intel-lpss latency=0
             resources: irq:20 memory:df42b000-df42bfff
        *-isa
             description: ISA bridge
             product: Sunrise Point-H LPC Controller
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 31
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master
             configuration: latency=0
        *-memory UNCLAIMED
             description: Memory controller
             product: Sunrise Point-H PMC
             vendor: Intel Corporation
             physical id: 1f.2
             bus info: pci@0000:00:1f.2
             version: 31
             width: 32 bits
             clock: 33MHz (30.3ns)
             configuration: latency=0
             resources: memory:df424000-df427fff
        *-multimedia
             description: Audio device
             product: Sunrise Point-H HD Audio
             vendor: Intel Corporation
             physical id: 1f.3
             bus info: pci@0000:00:1f.3
             version: 31
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=snd_hda_intel latency=32
             resources: irq:325 memory:df420000-df423fff memory:df400000-df40ffff
        *-serial UNCLAIMED
             description: SMBus
             product: Sunrise Point-H SMBus
             vendor: Intel Corporation
             physical id: 1f.4
             bus info: pci@0000:00:1f.4
             version: 31
             width: 64 bits
             clock: 33MHz
             configuration: latency=0
             resources: memory:df42a000-df42a0ff ioport:f040(size=32)
     *-scsi:0
          physical id: 1
          logical name: scsi0
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: HFS128G39TND-N21
             physical id: 0.0.0
             bus info: scsi@0:0.0.0
             logical name: /dev/sda
             version: 0P10
             serial: FI69N07351050A43I
             size: 119GiB (128GB)
             capabilities: gpt-1.00 partitioned partitioned:gpt
             configuration: ansiversion=5 guid=474f2405-2866-4174-b164-3c0bc9db7705 logicalsectorsize=512 sectorsize=4096
           *-volume:0
                description: Windows NTFS volume
                vendor: Windows
                physical id: 1
                bus info: scsi@0:0.0.0,1
                logical name: /dev/sda1
                version: 3.1
                serial: 5ee1-dd33
                size: 448MiB
                capacity: 449MiB
                capabilities: boot precious readonly hidden nomount ntfs initialized
                configuration: clustersize=4096 created=2017-03-31 18:07:23 filesystem=ntfs label=Helyreállítás modified_by_chkdsk=true mounted_on_nt4=true name=Basic data partition resize_log_file=true state=dirty upgrade_on_mount=true
           *-volume:1
                description: Windows FAT volume
                vendor: MSDOS5.0
                physical id: 2
                bus info: scsi@0:0.0.0,2
                logical name: /dev/sda2
                logical name: /boot/efi
                version: FAT32
                serial: 80e2-b9dd
                size: 93MiB
                capacity: 99MiB
                capabilities: boot precious readonly hidden nomount fat initialized
                configuration: FATs=2 filesystem=fat mount.fstype=vfat mount.options=rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro name=EFI system partition state=mounted
           *-volume:2
                description: reserved partition
                vendor: Windows
                physical id: 3
                bus info: scsi@0:0.0.0,3
                logical name: /dev/sda3
                serial: 862df7ca-a11a-49fa-99de-a2d9e028fbdd
                capacity: 15MiB
                capabilities: nofs precious readonly hidden nomount
                configuration: name=Microsoft reserved partition
           *-volume:3
                description: Windows NTFS volume
                vendor: Windows
                physical id: 4
                bus info: scsi@0:0.0.0,4
                logical name: /dev/sda4
                version: 3.1
                serial: 6a07c014-2deb-8c4d-ab0d-04cc6f6a2dcd
                size: 118GiB
                capacity: 118GiB
                capabilities: ntfs initialized
                configuration: clustersize=4096 created=2017-03-31 18:07:39 filesystem=ntfs label=OS name=Basic data partition state=clean
     *-scsi:1
          physical id: 2
          logical name: scsi1
          capabilities: emulated
        *-disk
             description: ATA Disk
             product: HGST HTS721010A9
             physical id: 0.0.0
             bus info: scsi@1:0.0.0
             logical name: /dev/sdb
             version: A3J0
             serial: JR1000D30NTG3E
             size: 931GiB (1TB)
             capabilities: gpt-1.00 partitioned partitioned:gpt
             configuration: ansiversion=5 guid=81fe27f2-47cd-43a9-af2d-6bad02f6ea06 logicalsectorsize=512 sectorsize=4096
           *-volume:0
                description: reserved partition
                vendor: Windows
                physical id: 1
                bus info: scsi@1:0.0.0,1
                logical name: /dev/sdb1
                serial: 05903c23-ed0b-4a52-b015-55a231f5a18e
                capacity: 15MiB
                capabilities: nofs
                configuration: name=Microsoft reserved partition
           *-volume:1
                description: Windows NTFS volume
                vendor: Windows
                physical id: 2
                bus info: scsi@1:0.0.0,2
                logical name: /dev/sdb2
                version: 3.1
                serial: 7a0027ed-0468-af4a-8e1f-9918d5fede53
                size: 585GiB
                capacity: 585GiB
                capabilities: ntfs initialized
                configuration: clustersize=4096 created=2017-03-31 18:07:49 filesystem=ntfs label=ADAT name=Basic data partition state=clean
           *-volume:2
                description: EXT4 volume
                vendor: Linux
                physical id: 3
                bus info: scsi@1:0.0.0,3
                logical name: /dev/sdb3
                logical name: /
                version: 1.0
                serial: 3f0035a7-4b73-47e9-b05b-f7a1896d2c40
                size: 14GiB
                capabilities: journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
                configuration: created=2018-01-29 12:41:52 filesystem=ext4 lastmountpoint=/ modified=2018-02-03 22:19:29 mount.fstype=ext4 mount.options=rw,relatime,errors=remount-ro,data=ordered mounted=2018-02-03 22:19:33 name=ubuntu state=mounted
           *-volume:3
                description: Linux swap volume
                vendor: Linux
                physical id: 4
                bus info: scsi@1:0.0.0,4
                logical name: /dev/sdb4
                version: 1
                serial: ecdfe804-3b44-4627-903a-cdc87213cf66
                size: 1999MiB
                capacity: 1999MiB
                capabilities: nofs swap initialized
                configuration: filesystem=swap pagesize=4095
           *-volume:4
                description: EXT4 volume
                vendor: Linux
                physical id: 5
                bus info: scsi@1:0.0.0,5
                logical name: /dev/sdb5
                logical name: /home
                version: 1.0
                serial: bcf1a0af-7878-4f94-81b9-b3a96648d047
                size: 328GiB
                capabilities: journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
                configuration: created=2018-01-29 12:41:54 filesystem=ext4 lastmountpoint=/home modified=2018-02-03 22:19:38 mount.fstype=ext4 mount.options=rw,relatime,data=ordered mounted=2018-02-03 22:19:38 name=home state=mounted
     *-scsi:2
          physical id: 3
          logical name: scsi2
          capabilities: emulated
        *-cdrom
             description: DVD-RAM writer
             product: DVD A  DA8AESH
             vendor: Slimtype
             physical id: 0.0.0
             bus info: scsi@2:0.0.0
             logical name: /dev/cdrom
             logical name: /dev/cdrw
             logical name: /dev/dvd
             logical name: /dev/dvdrw
             logical name: /dev/sr0
             version: XAA1
             capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
             configuration: ansiversion=5 status=nodisc
  *-power UNCLAIMED
       description: To Be Filled By O.E.M.
       product: To Be Filled By O.E.M.
       vendor: To Be Filled By O.E.M.
       physical id: 1
       version: To Be Filled By O.E.M.
       serial: To Be Filled By O.E.M.
       capacity: 32768mWh
Comment 59 apeelme 2018-02-03 22:05:40 UTC
Ok i make a fast test, modified in drivers/hid/hid-ids.h line #183:
-#define USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD2 0x1837
+#define USB_DEVICE_ID_ASUSTEK_ROG_KEYBOARD2 0x8176

build, and install *.deb's, reboot and worked all Fn buttons!!!!!!!!
Comment 60 John Hertzog 2018-02-14 22:09:26 UTC
The keyboard backlight works amazingly on my FX53VD (which identifies to Linux as a GL553VD) with 4.15.3
Comment 61 Kolbjorn Blix 2018-02-14 22:12:16 UTC
(In reply to John Hertzog from comment #60)
> The keyboard backlight works amazingly on my FX53VD (which identifies to
> Linux as a GL553VD) with 4.15.3

Yes! After 4.15 it started to work like a charm, out of the "box"  :-)

-Kolbjørn
Comment 62 shivangpatel 2018-02-15 04:58:36 UTC
(In reply to Kolbjorn Blix from comment #61)
> (In reply to John Hertzog from comment #60)
> > The keyboard backlight works amazingly on my FX53VD (which identifies to
> > Linux as a GL553VD) with 4.15.3
> 
> Yes! After 4.15 it started to work like a charm, out of the "box"  :-)
> 
> -Kolbjørn


Linux shivangpatel 4.15.3-041503-generic #201802120730 SMP Mon Feb 12 07:31:14 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


I am also confirming that, my asus FX553VD working fine with 4.15. If you found any problem related to display, then you need to update nvidia drivers and install new one.

Thanks.
Comment 63 apeelme 2018-02-16 20:56:48 UTC
4.15.3 and 4.16-rc1 also does not work for me!!!! (GL553VW)
Comment 64 apeelme 2018-02-18 19:39:35 UTC
Serious? Who should write a letter to move the story because it has the solution??????
Comment 65 Tetsuosp 2018-02-22 22:21:37 UTC
(In reply to shivangpatel from comment #62)
> I am also confirming that, my asus FX553VD working fine with 4.15. If you
> found any problem related to display, then you need to update nvidia drivers
> and install new one.

Like shivangpatel, i recently buy an ASUS FX553VD. And it working fine under v4.15.4.

THX
Comment 66 V. Dalechin 2018-08-08 23:30:47 UTC
Hello everybody. I hope this post is still not dead. I have Asus-FX553VD and i am new to Linux.

I also have a problem with keyboard backlight. I don't understand how to apply a patch, could someone help me please?

Here's uname-r

4.17.0-041700rc6-generic


Only on that kernel my touchpad is working and i have no problems with gpu's. 

My FN keys also don't work (except of volume FN+F1, FN+F2, FN+F3).
Comment 67 Tony 2018-09-03 12:25:07 UTC
Hi.
Opensuse tumbleweed. Kernel 4.18.5-1-default
KDE 5.13.4
module asus-nb-wmi - load
ASUS ux430ua

 Fn+F3 & Fn+F4 - don't work backlighte keyboard.
Fn+10/11/12 - volume control - don't work.
Monitor backlight working fine by using menu slider.

if i used
>echo 0(1,2,3) >>
>/sys/devices/platform/asus-nb-wmi/leds/asus\:\:kbd_backlight/brightness
 - can control backlight

is start notebook with KDE Neon User Edition 20180823 live image (kernel 4.15, Plasma 5.13) - all work
Comment 68 Andy Dodd 2019-10-13 13:23:57 UTC
I don't think drivers/platform is the appropriate place for this one.  The reported issues with the GL553VE are nearly identical to what I experience on a GL502VE.

My observations:
There are almost never any WMI events on this system.  The only time I see WMI events is when unplugging/plugging AC.  (The system is sending some unrecognized event codes in the kernel, but KDE seems to still recognize AC state properly.)

Rather than use WMI, it appears that Asus ROG laptops with per-key RGB lighting are using what is effectively a USB-attached ROG Claymore ( https://www.asus.com/us/Keyboards-Mice/ROG-Claymore/ )

Presses of the unrecognized Fn keys ARE viewable in /dev/hidraw3 or /dev/usb/hiddev0 - they're coming in as nonstandard HID reports instead of via WMI events.

Control of RGB backlight via Armoury Crate on Windows when Wireshark is running using USBPcap shows traffic to the compound USB device.

I'll attach wireshark traces and kernel logs later this week.  This is a work in progress, I just discovered this a few minutes ago and came across this bug report when searching for info on the Claymore and Linux.

Note You need to log in before you can comment on or make changes to this bug.