* [PATCH] Fix backlight control for Acer TravelMate B113
@ 2014-06-23 20:30 Martin Kepplinger
2014-06-29 8:42 ` Martin Kepplinger
0 siblings, 1 reply; 5+ messages in thread
From: Martin Kepplinger @ 2014-06-23 20:30 UTC (permalink / raw)
To: rui.zhang; +Cc: rjw, lenb, linux-acpi, linux-kernel, Martin Kepplinger
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 <martink@posteo.de>
Tested-by: Martin Kepplinger <martink@posteo.de>
---
drivers/acpi/video.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index f8bc5a7..acb0670 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -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 = {
--
1.7.10.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix backlight control for Acer TravelMate B113
2014-06-23 20:30 [PATCH] Fix backlight control for Acer TravelMate B113 Martin Kepplinger
@ 2014-06-29 8:42 ` Martin Kepplinger
2014-06-30 1:29 ` Aaron Lu
0 siblings, 1 reply; 5+ messages in thread
From: Martin Kepplinger @ 2014-06-29 8:42 UTC (permalink / raw)
To: rui.zhang; +Cc: rjw, lenb, linux-acpi, linux-kernel
Am 2014-06-23 22:30, schrieb Martin Kepplinger:
> 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 <martink@posteo.de>
> Tested-by: Martin Kepplinger <martink@posteo.de>
> ---
> drivers/acpi/video.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> index f8bc5a7..acb0670 100644
> --- a/drivers/acpi/video.c
> +++ b/drivers/acpi/video.c
> @@ -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 = {
>
are there objections or advice on this? this would be really good to
have, even if for 3.17.
thanks.
martin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix backlight control for Acer TravelMate B113
2014-06-29 8:42 ` Martin Kepplinger
@ 2014-06-30 1:29 ` Aaron Lu
2014-06-30 8:00 ` Martin Kepplinger
2014-07-07 12:55 ` Rafael J. Wysocki
0 siblings, 2 replies; 5+ messages in thread
From: Aaron Lu @ 2014-06-30 1:29 UTC (permalink / raw)
To: Martin Kepplinger, rui.zhang; +Cc: rjw, lenb, linux-acpi, linux-kernel
On 06/29/2014 04:42 PM, Martin Kepplinger wrote:
> Am 2014-06-23 22:30, schrieb Martin Kepplinger:
>> 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 <martink@posteo.de>
>> Tested-by: Martin Kepplinger <martink@posteo.de>
>> ---
>> drivers/acpi/video.c | 8 ++++++++
>> 1 file changed, 8 insertions(+)
>>
>> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
>> index f8bc5a7..acb0670 100644
>> --- a/drivers/acpi/video.c
>> +++ b/drivers/acpi/video.c
>> @@ -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 = {
>>
>
> 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 <rafael.j.wysocki@intel.com>
Date: Thu Jun 5 22:47:35 2014 +0200
ACPI / video: Change the default for video.use_native_backlight to 1
Thanks,
Aaron
>
> thanks.
> martin
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix backlight control for Acer TravelMate B113
2014-06-30 1:29 ` Aaron Lu
@ 2014-06-30 8:00 ` Martin Kepplinger
2014-07-07 12:55 ` Rafael J. Wysocki
1 sibling, 0 replies; 5+ messages in thread
From: Martin Kepplinger @ 2014-06-30 8:00 UTC (permalink / raw)
To: Aaron Lu, rui.zhang; +Cc: rjw, lenb, linux-acpi, linux-kernel
Am 2014-06-30 03:29, schrieb Aaron Lu:
> On 06/29/2014 04:42 PM, Martin Kepplinger wrote:
>> Am 2014-06-23 22:30, schrieb Martin Kepplinger:
>>> 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 <martink@posteo.de>
>>> Tested-by: Martin Kepplinger <martink@posteo.de>
>>> ---
>>> drivers/acpi/video.c | 8 ++++++++
>>> 1 file changed, 8 insertions(+)
>>>
>>> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
>>> index f8bc5a7..acb0670 100644
>>> --- a/drivers/acpi/video.c
>>> +++ b/drivers/acpi/video.c
>>> @@ -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 = {
>>>
>>
>> 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 <rafael.j.wysocki@intel.com>
> Date: Thu Jun 5 22:47:35 2014 +0200
>
> ACPI / 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
>>
>> thanks.
>> martin
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> 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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Fix backlight control for Acer TravelMate B113
2014-06-30 1:29 ` Aaron Lu
2014-06-30 8:00 ` Martin Kepplinger
@ 2014-07-07 12:55 ` Rafael J. Wysocki
1 sibling, 0 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2014-07-07 12:55 UTC (permalink / raw)
To: Aaron Lu; +Cc: Martin Kepplinger, rui.zhang, lenb, linux-acpi, linux-kernel
On Monday, June 30, 2014 09:29:54 AM Aaron Lu wrote:
> On 06/29/2014 04:42 PM, Martin Kepplinger wrote:
> > Am 2014-06-23 22:30, schrieb Martin Kepplinger:
> >> 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 <martink@posteo.de>
> >> Tested-by: Martin Kepplinger <martink@posteo.de>
> >> ---
> >> drivers/acpi/video.c | 8 ++++++++
> >> 1 file changed, 8 insertions(+)
> >>
> >> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> >> index f8bc5a7..acb0670 100644
> >> --- a/drivers/acpi/video.c
> >> +++ b/drivers/acpi/video.c
> >> @@ -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 = {
> >>
> >
> > 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 <rafael.j.wysocki@intel.com>
> Date: Thu Jun 5 22:47:35 2014 +0200
>
> ACPI / 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-07-07 12:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-23 20:30 [PATCH] Fix backlight control for Acer TravelMate B113 Martin Kepplinger
2014-06-29 8:42 ` Martin Kepplinger
2014-06-30 1:29 ` Aaron Lu
2014-06-30 8:00 ` Martin Kepplinger
2014-07-07 12:55 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).