Skip to contentSkip to conversation

ACPI: Blacklist Win8 OSI for some HP laptop 2013 models

PATCH RESEND In review Takashi Iwai 3 participants 12 messages Jan 13, 2014 – Jan 14, 2014 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ACPI: Blacklist Win8 OSI for some HP laptop 2013 models

The BIOS on recent HP laptops behaves differently with Win8 OSI, e.g. no backlight control and no rfkill are available. List them in the blacklist as a workaround.

This patch tries to reduce the added items by matching "G1" suffix, e.g. machines are named like "HP ProBook 430 G1".

Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=856294

---

Rafael, could you check this?
If the problem were only about the backlight, we could fix differenly, but BIOS on these machines seems to switching more other functions like rfkill.

thanks,

Takashi

 drivers/acpi/blacklist.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
drivers/acpi/blacklist.c +50 -0
index 078c4f7fe2dd..40c91f5052ef 100644
@@ -323,6 +323,56 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
 		     DMI_MATCH(DMI_PRODUCT_VERSION, "2349D15"),
 		},
 	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ProBook 2013 models",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ProBook "),
+		     DMI_MATCH(DMI_PRODUCT_NAME, " G1"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP EliteBook 2013 models",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook "),
+		     DMI_MATCH(DMI_PRODUCT_NAME, " G1"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ZBook 14",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 14"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ZBook 15",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 15"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ZBook 17",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 17"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP EliteBook 8780w",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook 8780w"),
+		},
+	},
 
 	/*
 	 * BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
Signature · 1 line
1.8.5
#1 lore raw
Quoted 7 lines · Takashi Iwai

The BIOS on recent HP laptops behaves differently with Win8 OSI, e.g. no backlight control and no rfkill are available. List them in the blacklist as a workaround.

This patch tries to reduce the added items by matching "G1" suffix, e.g. machines are named like "HP ProBook 430 G1".

Quoted 8 lines

Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=856294

---

Rafael, could you check this?
If the problem were only about the backlight, we could fix differenly, but BIOS on these machines seems to switching more other functions like rfkill.

It looks like I have this patch in my linux-next branch.

Thanks!

Quoted 65 lines
 drivers/acpi/blacklist.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
drivers/acpi/blacklist.c +50 -0
index 078c4f7fe2dd..40c91f5052ef 100644
@@ -323,6 +323,56 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
 		     DMI_MATCH(DMI_PRODUCT_VERSION, "2349D15"),
 		},
 	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ProBook 2013 models",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ProBook "),
+		     DMI_MATCH(DMI_PRODUCT_NAME, " G1"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP EliteBook 2013 models",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook "),
+		     DMI_MATCH(DMI_PRODUCT_NAME, " G1"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ZBook 14",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 14"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ZBook 15",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 15"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ZBook 17",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 17"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP EliteBook 8780w",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook 8780w"),
+		},
+	},
 
 	/*
 	 * BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#2 lore raw

At Mon, 13 Jan 2014 12:46:31 +0100,

Quoted 13 lines · Rafael J. Wysocki
Quoted 11 lines · Takashi Iwai

The BIOS on recent HP laptops behaves differently with Win8 OSI, e.g. no backlight control and no rfkill are available. List them in the blacklist as a workaround.

This patch tries to reduce the added items by matching "G1" suffix, e.g. machines are named like "HP ProBook 430 G1".

Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=856294

---

Quoted 6 lines
Quoted 4 lines

Rafael, could you check this?
If the problem were only about the backlight, we could fix differenly, but BIOS on these machines seems to switching more other functions like rfkill.

It looks like I have this patch in my linux-next branch.

OK, thanks!

Takashi

Quoted 74 lines

Thanks!

Quoted 65 lines
 drivers/acpi/blacklist.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
drivers/acpi/blacklist.c +50 -0
index 078c4f7fe2dd..40c91f5052ef 100644
@@ -323,6 +323,56 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
 		     DMI_MATCH(DMI_PRODUCT_VERSION, "2349D15"),
 		},
 	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ProBook 2013 models",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ProBook "),
+		     DMI_MATCH(DMI_PRODUCT_NAME, " G1"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP EliteBook 2013 models",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook "),
+		     DMI_MATCH(DMI_PRODUCT_NAME, " G1"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ZBook 14",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 14"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ZBook 15",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 15"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP ZBook 17",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP ZBook 17"),
+		},
+	},
+	{
+	.callback = dmi_disable_osi_win8,
+	.ident = "HP EliteBook 8780w",
+	.matches = {
+		     DMI_MATCH(DMI_SYS_VENDOR, "Hewlett-Packard"),
+		     DMI_MATCH(DMI_PRODUCT_NAME, "HP EliteBook 8780w"),
+		},
+	},
 
 	/*
 	 * BIOS invocation of _OSI(Linux) is almost always a BIOS bug.
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#3 lore raw
In reply to Takashi Iwai
Quoted 3 lines · Takashi Iwai

The BIOS on recent HP laptops behaves differently with Win8 OSI, e.g. no backlight control and no rfkill are available. List them in the blacklist as a workaround.

What's the plan for fixing this properly?

Signature · 1 line
Matthew Garrett | [email protected]
#4 lore raw
Quoted 6 lines · Matthew Garrett
Quoted 3 lines · Takashi Iwai

The BIOS on recent HP laptops behaves differently with Win8 OSI, e.g. no backlight control and no rfkill are available. List them in the blacklist as a workaround.

What's the plan for fixing this properly?

What exactly do you mean by "fixing this properly"?

Rafael

#5 lore raw
Quoted 9 lines · Rafael J. Wysocki
Quoted 6 lines · Matthew Garrett
Quoted 3 lines · Takashi Iwai

The BIOS on recent HP laptops behaves differently with Win8 OSI, e.g. no backlight control and no rfkill are available. List them in the blacklist as a workaround.

What's the plan for fixing this properly?

What exactly do you mean by "fixing this properly"?

rfkill and backlight control presumably work fine under Windows 8, so there's obviously some new mechanism for doing so. HP will presumably ship more hardware that behaves this way, so if we don't add support for the new mechanisms then we'll just have to keep adding entries to the blacklist.

Signature · 1 line
Matthew Garrett | [email protected]
#6 lore raw
Quoted 9 lines · Matthew Garrett
Quoted 8 lines · Rafael J. Wysocki
Quoted 6 lines · Matthew Garrett
Quoted 3 lines · Takashi Iwai

The BIOS on recent HP laptops behaves differently with Win8 OSI, e.g. no backlight control and no rfkill are available. List them in the blacklist as a workaround.

What's the plan for fixing this properly?

Quoted 7 lines
Quoted 1 line

What exactly do you mean by "fixing this properly"?

rfkill and backlight control presumably work fine under Windows 8, so there's obviously some new mechanism for doing so. HP will presumably ship more hardware that behaves this way, so if we don't add support for the new mechanisms then we'll just have to keep adding entries to the blacklist.

Well, presumably.

To add any kind of support for anything we need to know how that thing works in the first place which we don't in this particular case, at least at the moment. I hontestly don't want the users of those systems to wait until we figure that out.

Thanks!

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#7 lore raw
Quoted 7 lines · Rafael J. Wysocki
Quoted 5 lines · Matthew Garrett

rfkill and backlight control presumably work fine under Windows 8, so there's obviously some new mechanism for doing so. HP will presumably ship more hardware that behaves this way, so if we don't add support for the new mechanisms then we'll just have to keep adding entries to the blacklist.

Quoted 6 lines

Well, presumably.

To add any kind of support for anything we need to know how that thing works in the first place which we don't in this particular case, at least at the moment. I hontestly don't want the users of those systems to wait until we figure that out.

Adding blacklist entries without making some effort to figure out what the underlying problem is doesn't provide any incentive for fixing the underlying problem. In this case Toshio has described what the problem is and it sounds like fixing the rfkill problem is straightforward, so we should just classify this in the same way as all the other backlight control issues. Perhaps we should add it to the native video blacklist rather than the OSI one?

Signature · 1 line
Matthew Garrett | [email protected]
#8 lore raw
In reply to Matthew Garrett

At Tue, 14 Jan 2014 16:12:44 +0000,

Quoted 7 lines · Matthew Garrett
Quoted 3 lines · Takashi Iwai

The BIOS on recent HP laptops behaves differently with Win8 OSI, e.g. no backlight control and no rfkill are available. List them in the blacklist as a workaround.

What's the plan for fixing this properly?

For the backlight, there have been attempts to fix (use the native backlight control primarily over ACPI), but didn't land to the mainline yet.

For the rfkill part, it depends on the user-space. Without the patch, it sends a scan code, and OS is supposed to do rfkill via each driver. The proper key mapping would be needed. Not sure about the LED state on the WiFi button, though, whether it's properly controlled by WiFi and/or BT driver. With the patch, all rfkill and LED are handled by BIOS, so it works as is.

Also I thought there are changes in some media keys by acpi_osi, but I need to double check.

Takashi

#9 lore raw
Quoted 6 lines · Takashi Iwai

For the rfkill part, it depends on the user-space. Without the patch, it sends a scan code, and OS is supposed to do rfkill via each driver. The proper key mapping would be needed. Not sure about the LED state on the WiFi button, though, whether it's properly controlled by WiFi and/or BT driver. With the patch, all rfkill and LED are handled by BIOS, so it works as is.

Ok, so userspace needs to work - there's plenty of hardware that only sends a scancode already. Let's just add the keycode and then remove this once the backlight stuff is fixed.

Signature · 1 line
Matthew Garrett | [email protected]
#10 lore raw

At Tue, 14 Jan 2014 16:36:00 +0000,

Quoted 10 lines · Matthew Garrett
Quoted 6 lines · Takashi Iwai

For the rfkill part, it depends on the user-space. Without the patch, it sends a scan code, and OS is supposed to do rfkill via each driver. The proper key mapping would be needed. Not sure about the LED state on the WiFi button, though, whether it's properly controlled by WiFi and/or BT driver. With the patch, all rfkill and LED are handled by BIOS, so it works as is.

Quoted 3 lines

Ok, so userspace needs to work - there's plenty of hardware that only sends a scancode already. Let's just add the keycode and then remove this once the backlight stuff is fixed.

Yes, sounds feasible.

Takashi

#11 lore raw
Quoted 12 lines · Takashi Iwai

At Tue, 14 Jan 2014 16:36:00 +0000,

Quoted 10 lines · Matthew Garrett
Quoted 6 lines · Takashi Iwai

For the rfkill part, it depends on the user-space. Without the patch, it sends a scan code, and OS is supposed to do rfkill via each driver. The proper key mapping would be needed. Not sure about the LED state on the WiFi button, though, whether it's properly controlled by WiFi and/or BT driver. With the patch, all rfkill and LED are handled by BIOS, so it works as is.

Quoted 5 lines
Quoted 3 lines

Ok, so userspace needs to work - there's plenty of hardware that only sends a scancode already. Let's just add the keycode and then remove this once the backlight stuff is fixed.

Yes, sounds feasible.

Oh, and once we've got the keycode in it's possible to handle this in-kernel - you just need rfkill-input.

Signature · 1 line
Matthew Garrett | [email protected]