feat: update desktop environment configuration from COSMIC to GNOME and add kernel patches for Zenbook
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c
|
||||
index fceffe2082ec..ed3633c5955d 100644
|
||||
--- a/drivers/platform/x86/asus-nb-wmi.c
|
||||
+++ b/drivers/platform/x86/asus-nb-wmi.c
|
||||
@@ -145,6 +145,10 @@ static
|
||||
struct quirk_entry quirk_asus_ignore_fan = {
|
||||
.wmi_ignore_fan = true,
|
||||
};
|
||||
|
||||
+static
|
||||
+struct quirk_entry quirk_asus_zenbook_duo_kbd = {
|
||||
+ .ignore_key_wlan = true,
|
||||
+};
|
||||
+
|
||||
static int dmi_matched(const struct dmi_system_id *dmi)
|
||||
{
|
||||
|
||||
pr_info("Identified laptop model '%s'\n", dmi->ident);
|
||||
@@ -516,6 +520,15 @@ static const struct
|
||||
dmi_system_id asus_quirks[] = {
|
||||
...
|
||||
@@ -630,7 +643,12 @@ static void
|
||||
asus_nb_wmi_key_filter(struct asus_wmi_driver *asus_wmi, int *code,
|
||||
...
|
||||
case 0x32: /* Volume Mute */
|
||||
|
||||
if (atkbd_reports_vol_keys)
|
||||
*code = ASUS_WMI_KEY_IGNORE;
|
||||
-
|
||||
+ break;
|
||||
+ case 0x5D: /* Wireless console Toggle */
|
||||
+ case 0x5E: /* Wireless console Enable */
|
||||
+ case 0x5F: /* Wireless console Disable */
|
||||
+ if (quirks->ignore_key_wlan)
|
||||
+ *code = ASUS_WMI_KEY_IGNORE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
diff --git a/drivers/platform/x86/asus-wmi.h b/drivers/platform/x86/asus-wmi.h
|
||||
index cc30f1853847..a6ee9440d932 100644
|
||||
@@ -50,6 +50,7 @@ struct quirk_entry {
|
||||
*/
|
||||
int no_display_toggle;
|
||||
u32 xusb2pr;
|
||||
+ bool ignore_key_wlan;
|
||||
};
|
||||
|
||||
struct asus_wmi_driver {
|
||||
Reference in New Issue
Block a user