enable asus wmi and asus nb wmi in kernel

  • i have been building LE from this guide. i'm trying to enable linux kernel driver - platform - asus wmi and asus nb wmi. if i copy kernel config from project/Generic/linux/linux.x86_64.conf to build dir and do make menuconfig that two items did not show up.

    if i remove .config and run make menuconfig the two items that i want show up in the menu.

    is there any way to enable kernel driver that i need?

  • Edit project/Generic/linux/linux.x86_64.conf and search for CONFIG_ASUS_WMI .. change it from unset to CONFIG_ASUS_WMI=m and then add CONFIG_ASUS_NB_WMI=m underneath it, save/exit and then rebuild the image with the change. There's really no need to use make menuconfig.

  • Edit project/Generic/linux/linux.x86_64.conf and search for CONFIG_ASUS_WMI .. change it from unset to CONFIG_ASUS_WMI=m and then add CONFIG_ASUS_NB_WMI=m underneath it, save/exit and then rebuild the image with the change. There's really no need to use make menuconfig.

    Use (replacing aaa anf bbb):

    Code
    PROJECT=aaa ARCH=bbb tools/adjust_kernel_config menuconfig

    i will try it and report back. thank you very much.

  • project/Generic/linux/linux.x86_64.conf does not have CONFIG_ASUS_WMI line.so i manually add these lines:

    CONFIG_ASUS_WMI=m
    CONFIG_ASUS_NB_WMI=m

    then i copy project/Generic/linux/linux.x86_64.conf to project/Generic/linux/linux.x86_64.conf.new

    i enabled 4 more asus specific kernel driver so i got something like this:

    Code
    ~/LibreELEC.tv$ cat projects/Generic/linux/linux.x86_64.conf.new | grep -i asus
    # CONFIG_USB_PEGASUS is not set
    CONFIG_SENSORS_ASUS_WMI=m
    CONFIG_SENSORS_ASUS_EC=m
    CONFIG_HID_ASUS=y
    CONFIG_ASUS_LAPTOP=m
    CONFIG_ASUS_WIRELESS=m
    CONFIG_ASUS_WMI=m
    CONFIG_ASUS_NB_WMI=m
    # CONFIG_ASUS_TF103C_DOCK is not set

    to make sure that the config persist i ran command:

    PROJECT=Generic ARCH=x86_64 tools/adjust_kernel_config menuconfig

    i recheck CONFIG_ASUS_WMI=m and CONFIG_ASUS_NB_WMI=m and they where gone from menuconfig, while others 4 still remain. then i save the config and got something like this:

    Code
    ~/LibreELEC.tv$ cat projects/Generic/linux/linux.x86_64.conf | grep -i asus
    # CONFIG_USB_PEGASUS is not set
    CONFIG_SENSORS_ASUS_WMI=m
    CONFIG_SENSORS_ASUS_EC=m
    CONFIG_HID_ASUS=y
    CONFIG_ASUS_LAPTOP=m
    CONFIG_ASUS_WIRELESS=m
    # CONFIG_ASUS_TF103C_DOCK is not set
  • According to https://cateee.net/lkddb/web-lkddb/ASUS_WMI.html CONFIG_ASUS_WMI=m depends on CONFIG_HOTPLUG_PCI=y which you are not defining so the option is removed (unset) when the defconfig is saved.

    The patch below resulted in it being built:

    You probably don't need these:

    Code
    CONFIG_SENSORS_ASUS_EC=m
    CONFIG_ASUS_LAPTOP=m
    CONFIG_ASUS_WIRELESS=m
  • Use (replacing aaa anf bbb):

    Code
    PROJECT=aaa ARCH=bbb tools/adjust_kernel_config menuconfig

    Doesn't this ^^^^ makes new config file?

    This seems to work

    --- a    2025-05-23 12:48:28.670196285 +0200
    +++ b    2025-05-23 12:39:12.074292019 +0200
    @@ -1680,6 +1680,7 @@ CONFIG_GENERIC_PCI_IOMAP=y
    CONFIG_PCI=y
    CONFIG_PCI_DOMAINS=y
    CONFIG_PCIEPORTBUS=y
    +# CONFIG_HOTPLUG_PCI_PCIE is not set
    CONFIG_PCIEAER=y
    # CONFIG_PCIEAER_INJECT is not set
    # CONFIG_PCIE_ECRC is not set
    @@ -1710,7 +1711,11 @@ CONFIG_PCIE_BUS_DEFAULT=y
    # CONFIG_PCIE_BUS_PEER2PEER is not set
    CONFIG_VGA_ARB=y
    CONFIG_VGA_ARB_MAX_GPUS=16
    -# CONFIG_HOTPLUG_PCI is not set
    +CONFIG_HOTPLUG_PCI=y
    +# CONFIG_HOTPLUG_PCI_ACPI is not set
    +# CONFIG_HOTPLUG_PCI_CPCI is not set
    +# CONFIG_HOTPLUG_PCI_OCTEONEP is not set
    +# CONFIG_HOTPLUG_PCI_SHPC is not set

    #
    # PCI controller drivers
    @@ -2843,7 +2848,7 @@ CONFIG_NET_FAILOVER=y
    CONFIG_INPUT=y
    CONFIG_INPUT_LEDS=y
    CONFIG_INPUT_FF_MEMLESS=y
    -# CONFIG_INPUT_SPARSEKMAP is not set
    +CONFIG_INPUT_SPARSEKMAP=y
    # CONFIG_INPUT_MATRIXKMAP is not set
    CONFIG_INPUT_VIVALDIFMAP=y

    @@ -5552,7 +5557,7 @@ CONFIG_HID_A4TECH=y
    # CONFIG_HID_ACRUX is not set
    CONFIG_HID_APPLE=y
    CONFIG_HID_APPLEIR=m
    -CONFIG_HID_ASUS=y
    +CONFIG_HID_ASUS=m
    CONFIG_HID_AUREAL=y
    CONFIG_HID_BELKIN=y
    # CONFIG_HID_BETOP_FF is not set
    @@ -6288,7 +6293,11 @@ CONFIG_WMI_BMOF=y
    # CONFIG_APPLE_GMUX is not set
    # CONFIG_ASUS_LAPTOP is not set
    # CONFIG_ASUS_WIRELESS is not set
    +CONFIG_ASUS_WMI=m
    +CONFIG_ASUS_NB_WMI=m
    # CONFIG_ASUS_TF103C_DOCK is not set
    +# CONFIG_EEEPC_LAPTOP is not set
    +# CONFIG_EEEPC_WMI is not set
    # CONFIG_X86_PLATFORM_DRIVERS_DELL is not set
    # CONFIG_AMILO_RFKILL is not set
    # CONFIG_FUJITSU_LAPTOP is not set