Fix backlight control for Acer TravelMate B113
PATCH 1/1 Fix backlight control for Acer TravelMate B113
Fix backlight control for Acer TravelMate B113 Laptop by adding it to the video_dmi_table.
A workaround before that was to use acpi_osi=Linux or acpi_backlight=vendor on boot but even then, only the function- keys worked.
With this change there is no need for boot parameters and DE's controls work as well.
--- drivers/acpi/video.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/acpi/video.c +8 -0
@@ -528,6 +528,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = { }, }, { + .callback = video_set_use_native_backlight, + .ident = "Acer TravelMate B113", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), + DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate B113"), + }, + }, + { .callback = video_set_use_native_backlight, .ident = "HP ProBook 4340s", .matches = {
Signature · 1 line
1.7.10.4
Am 2014-06-23 22:30, schrieb Martin Kepplinger:
Quoted 26 lines
Fix backlight control for Acer TravelMate B113 Laptop by adding it to the
video_dmi_table.A workaround before that was to use acpi_osi=Linux or acpi_backlight=vendor on boot but even then, only the function- keys worked.
With this change there is no need for boot parameters and DE's controls work as well.
Signed-off-by Martin Kepplinger <[email protected]>Tested-by Martin Kepplinger <[email protected]>--- drivers/acpi/video.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/acpi/video.c +1
-0@@ -528,6 +528,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = { }, }, { + .callback = video_set_use_native_backlight,
drivers/acpi/video.c static struct dmi_system_id video_dmi_table[] __initdata = { · line 541
Quoted 10 lines
drivers/acpi/video.c +7
-0+ .ident = "Acer TravelMate B113", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Acer" ), + DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate B113"), + }, + }, + { .callback = video_set_use_native_backlight, .ident = "HP ProBook 4340s", .matches = {
are there objections or advice on this? this would be really good to have, even if for 3.17.
thanks.
martin
Quoted 32 lines · Martin Kepplinger
Am 2014-06-23 22:30, schrieb Martin Kepplinger:
Quoted 31 lines
Fix backlight control for Acer TravelMate B113 Laptop by adding it to the
video_dmi_table.A workaround before that was to use acpi_osi=Linux or acpi_backlight=vendor on boot but even then, only the function- keys worked.
With this change there is no need for boot parameters and DE's controls work as well.
Signed-off-by Martin Kepplinger <[email protected]>Tested-by Martin Kepplinger <[email protected]>--- drivers/acpi/video.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/acpi/video.c +7
-0@@ -528,6 +528,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = { }, }, { + .callback = video_set_use_native_backlight, + .ident = "Acer TravelMate B113", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Acer"), + DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate B113"), + }, + },
Quoted 8 lines
drivers/acpi/video.c static struct dmi_system_id video_dmi_table[] __initdata = { · line 541
Quoted 5 lines
drivers/acpi/video.c +1
-0+ { .callback = video_set_use_native_backlight, .ident = "HP ProBook 4340s", .matches = {are there objections or advice on this? this would be really good to have, even if for 3.17.
For v3.16, we already have this commit to make use_native_backlight equal to 1 by default:
commit 751109aad5834375ca9ed0dcfcd85a00cbf872b5
Author: Rafael J. Wysocki <[email protected]> Date: Thu Jun 5 22:47:35 2014 +0200
ACPI / video: Change the default for video.use_native_backlight to 1
Thanks,
Aaron
Quoted 9 lines
thanks.
martin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Am 2014-06-30 03:29, schrieb Aaron Lu:
Quoted 46 lines · Martin Kepplinger
Quoted 32 lines
Am 2014-06-23 22:30, schrieb Martin Kepplinger:
Quoted 31 lines
Fix backlight control for Acer TravelMate B113 Laptop by adding it to the
video_dmi_table.A workaround before that was to use acpi_osi=Linux or acpi_backlight=vendor on boot but even then, only the function- keys worked.
With this change there is no need for boot parameters and DE's controls work as well.
Signed-off-by Martin Kepplinger <[email protected]>Tested-by Martin Kepplinger <[email protected]>--- drivers/acpi/video.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/acpi/video.c +7
-0@@ -528,6 +528,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = { }, }, { + .callback = video_set_use_native_backlight, + .ident = "Acer TravelMate B113", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Acer"), + DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate B113"), + }, + },Quoted 8 lines
drivers/acpi/video.c static struct dmi_system_id video_dmi_table[] __initdata = { · line 541
Quoted 5 lines
drivers/acpi/video.c +1
-0+ { .callback = video_set_use_native_backlight, .ident = "HP ProBook 4340s", .matches = {are there objections or advice on this? this would be really good to have, even if for 3.17.
For v3.16, we already have this commit to make
use_native_backlightequal to 1 by default:commit
751109aad5834375ca9ed0dcfcd85a00cbf872b5
Quoted 9 lines
Author: Rafael J. Wysocki <[email protected]> Date: Thu Jun 5 22:47:35 2014 +0200ACPI / video: Change the default for video.use_native_backlight to 1
Thanks,
Aaron
thanks! That should do it and would be a better solution. I can't test it on 3.16 though, as rc3 is still broken for me, see
https://lkml.org/lkml/2014/6/30/66
Quoted 16 lines
Quoted 9 lines
thanks.
martin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Quoted 42 lines · Aaron Lu
Quoted 32 lines · Martin Kepplinger
Am 2014-06-23 22:30, schrieb Martin Kepplinger:
Quoted 31 lines
Fix backlight control for Acer TravelMate B113 Laptop by adding it to the
video_dmi_table.A workaround before that was to use acpi_osi=Linux or acpi_backlight=vendor on boot but even then, only the function- keys worked.
With this change there is no need for boot parameters and DE's controls work as well.
Signed-off-by Martin Kepplinger <[email protected]>Tested-by Martin Kepplinger <[email protected]>--- drivers/acpi/video.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/acpi/video.c +7
-0@@ -528,6 +528,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = { }, }, { + .callback = video_set_use_native_backlight, + .ident = "Acer TravelMate B113", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Acer"), + DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate B113"), + }, + },Quoted 8 lines
drivers/acpi/video.c static struct dmi_system_id video_dmi_table[] __initdata = { · line 541
Quoted 5 lines
drivers/acpi/video.c +1
-0+ { .callback = video_set_use_native_backlight, .ident = "HP ProBook 4340s", .matches = {are there objections or advice on this? this would be really good to have, even if for 3.17.
Quoted 8 lines
For v3.16, we already have this commit to make
use_native_backlightequal to 1 by default:commit
751109aad5834375ca9ed0dcfcd85a00cbf872b5Author: Rafael J. Wysocki <[email protected]> Date: Thu Jun 5 22:47:35 2014 +0200ACPI / video: Change the default for video.use_native_backlight to 1
Nevertheless, we may need the blacklist entries in case we need to revert the above commit and also in case we want them to be backported to -stable (or LTSI etc.).
Rafael