Skip to contentSkip to conversation

asus-wireless: New driver for asus wireless button

PATCH In review Mousou Yuu 2 participants 3 messages Dec 19, 2015

Subsystems (3)
lore
Share & tools
lore

Mousou Yuu

author
#0 lore raw

PATCH 1/1 asus-wireless: New driver for asus wireless button

Some asus laptop models (zenbook UX303/U303) have their wireless control button as a ACPI device, but make all other hotkeys in WMI, so ASUS_NB_WMI failed to handle it. Maybe it's better to modify ASUS_LAPTOP, but it's too complex (for me) and device id is different, so a new driver is made.

---
 drivers/platform/x86/Kconfig         | 10 ++++
 drivers/platform/x86/Makefile        |  1 +
 drivers/platform/x86/asus-wireless.c | 95 ++++++++++++++++++++++++++++++++++++
 3 files changed, 106 insertions(+)
 create mode 100644 drivers/platform/x86/asus-wireless.c
drivers/platform/x86/Kconfig +10 -0
index 1089eaa..2763632 100644
@@ -542,6 +542,16 @@ config EEEPC_LAPTOP
 	  If you have an Eee PC laptop, say Y or M here. If this driver
 	  doesn't work on your Eee PC, try eeepc-wmi instead.
 
+config ASUS_WIRELESS
+	tristate "ASUS Wireless Radio Control"
+	depends on ACPI
+	depends on INPUT
+	help
+	  This driver is for Asus zenbook UX303/U303 whose wireless
+	  control button can't be driven by ASUS_WMI.
+
+	  If you have one of them, say Y or M here.
+
 config ASUS_WMI
 	tristate "ASUS WMI Driver"
 	depends on ACPI_WMI
drivers/platform/x86/Makefile +1 -0
index 3ca78a3..e358e80 100644
@@ -4,6 +4,7 @@
 #
 obj-$(CONFIG_ASUS_LAPTOP)	+= asus-laptop.o
 obj-$(CONFIG_ASUS_WMI)		+= asus-wmi.o
+obj-$(CONFIG_ASUS_WIRELESS)	+= asus-wireless.o
 obj-$(CONFIG_ASUS_NB_WMI)	+= asus-nb-wmi.o
 obj-$(CONFIG_EEEPC_LAPTOP)	+= eeepc-laptop.o
 obj-$(CONFIG_EEEPC_WMI)		+= eeepc-wmi.o
drivers/platform/x86/asus-wireless.c new file +95 -0

95 lines not on this page · raw message

Signature · 1 line
2.6.4
#1 lore raw

Hello Mousou,

Quoted 5 lines · Mousou Yuu

Some asus laptop models (zenbook UX303/U303) have their wireless control button as a ACPI device, but make all other hotkeys in WMI, so ASUS_NB_WMI failed to handle it. Maybe it's better to modify ASUS_LAPTOP, but it's too complex (for me) and device id is different, so a new driver is made.

I have sent a patch series to this list to drive the exact same device your proposed module is driving, about 4 days ago. The first message in the thread is titled "[RFC 0/4] Asus Wireless Radio Control driver". Could you check if that works on your laptop as well? After a quick glance through your patch I think it will work just fine. My series also deals with the airplane mode LED, does your laptop has an LED as well? If so, can you check if the LED is being driven as expected? In one of the systems I have access to there is a conflict with asus-wmi (Asus re-used the previous WLAN LED id for this one) and the LED is inverted.

Thanks and best regards,

--
João Paulo Rechi Vita
http://about.me/jprvita

author
#2 lore raw
Quoted 10 lines · On Sat, 19 Dec 2015 00:59:58 -0500 João Paulo Rechi Vita <[email protected]>…

I have sent a patch series to this list to drive the exact same device your proposed module is driving, about 4 days ago. The first message in the thread is titled "[RFC 0/4] Asus Wireless Radio Control driver". Could you check if that works on your laptop as well? After a quick glance through your patch I think it will work just fine. My series also deals with the airplane mode LED, does your laptop has an LED as well? If so, can you check if the LED is being driven as expected? In one of the systems I have access to there is a conflict with asus-wmi (Asus re-used the previous WLAN LED id for this one) and the LED is inverted.

Oh, I should have searched the archive before submitting, it's the first time I use mailing list...

I tested your patch on my U303LB model: there is no conflict, and airplane hotkey works. But the patch has no effect on LED (still "inverted").

If I have to fix LED problem, I will consider modifying only asus-wmi and asus-nb-wmi.