diff mbox series

[1/1] UBUNTU: SAUCE: ACPI: video: Use native backlight on Lenovo E41-25/45

Message ID 20200114054717.30285-2-aaron.ma@canonical.com
State Accepted
Headers show
Series [1/1] UBUNTU: SAUCE: ACPI: video: Use native backlight on Lenovo E41-25/45 | expand

Commit Message

Aaron Ma Jan. 14, 2020, 5:47 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1859561

ACPI backlight control doesn't work on 2 Lenovo E41 laptops.
So force to use native backlight control on them.

(cherry picked from https://patchwork.kernel.org/patch/11293665/)
Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
---
 drivers/acpi/video_detect.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

Comments

Connor Kuehl Jan. 14, 2020, 5:33 p.m. UTC | #1
On 1/13/20 9:47 PM, Aaron Ma wrote:
> BugLink: https://bugs.launchpad.net/bugs/1859561
> 
> ACPI backlight control doesn't work on 2 Lenovo E41 laptops.
> So force to use native backlight control on them.
> 
> (cherry picked from https://patchwork.kernel.org/patch/11293665/)
> Signed-off-by: Aaron Ma <aaron.ma@canonical.com>

Ah, I see why the cherry-picked line has the patch submission link. I 
think it might be more appropriate to say have that line be something like:

	Reference: https://patchwork.kernel.org/patch/11293665/

Since it's not coming off a maintainer tree *quite* yet as it hasn't 
been yet applied (I think).

If it gets applied to that tree in time for this to be applied to ours 
it shouldn't be much trouble to add a cherry picked line with the 
maintainer's tree when we apply it to ours.

Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Aaron Ma Jan. 15, 2020, 5:34 a.m. UTC | #2
On 1/15/20 1:33 AM, Connor Kuehl wrote:
> On 1/13/20 9:47 PM, Aaron Ma wrote:
>> BugLink: https://bugs.launchpad.net/bugs/1859561
>>
>> ACPI backlight control doesn't work on 2 Lenovo E41 laptops.
>> So force to use native backlight control on them.
>>
>> (cherry picked from https://patchwork.kernel.org/patch/11293665/)
>> Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
> 
> Ah, I see why the cherry-picked line has the patch submission link. I
> think it might be more appropriate to say have that line be something like:
> 
>     Reference: https://patchwork.kernel.org/patch/11293665/
> 


Thanks, if you'd like a v2 to apply please let me know.

Regards,
Aaron


> Since it's not coming off a maintainer tree *quite* yet as it hasn't
> been yet applied (I think).
> 
> If it gets applied to that tree in time for this to be applied to ours
> it shouldn't be much trouble to add a cherry picked line with the
> maintainer's tree when we apply it to ours.
> 
> Acked-by: Connor Kuehl <connor.kuehl@canonical.com>
Connor Kuehl Jan. 16, 2020, 12:11 a.m. UTC | #3
On 1/14/20 9:34 PM, Aaron Ma wrote:
> Thanks, if you'd like a v2 to apply please let me know.

No, thank you! I don't think that's necessary :-)

Connor

> 
> Regards,
> Aaron
Stefan Bader Jan. 16, 2020, 3:01 p.m. UTC | #4
On 14.01.20 06:47, Aaron Ma wrote:
> BugLink: https://bugs.launchpad.net/bugs/1859561
> 
> ACPI backlight control doesn't work on 2 Lenovo E41 laptops.
> So force to use native backlight control on them.
> 
> (cherry picked from https://patchwork.kernel.org/patch/11293665/)
> Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
> ---

The bug report was missing most tasks and maybe I should just have ignored this
submission until that were fixed (to treat everyone with the same grumpyness).
But at the same time there are some other aspects to this which are helpful to
discuss, so I went ahead and cleaned up the bug report tasks.

I have set the disco task to "Won't Fix" because this is specific to certain
laptops and for that reason better suited to go into oem-osp1 (since Disco goes
EOL on Jan-23).

For Bionic: normally I would like to see only changes which have landed upstream
in a LTS tree. But this is just adding quirks for very specific laptop models,
so it would be too harsh to insist on that rule. But generally I think we should
be more conservative with those long term trees.

-Stefan

>  drivers/acpi/video_detect.c | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
> 
> diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
> index 43587ac680e4..f6add9d82fa9 100644
> --- a/drivers/acpi/video_detect.c
> +++ b/drivers/acpi/video_detect.c
> @@ -294,6 +294,22 @@ static const struct dmi_system_id video_detect_dmi_table[] = {
>  		DMI_MATCH(DMI_PRODUCT_NAME, "102434U"),
>  		},
>  	},
> +	{
> +	 .callback = video_detect_force_native,
> +	 .ident = "Lenovo E41-25",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +		DMI_MATCH(DMI_PRODUCT_NAME, "81FS"),
> +		},
> +	},
> +	{
> +	 .callback = video_detect_force_native,
> +	 .ident = "Lenovo E41-45",
> +	 .matches = {
> +		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> +		DMI_MATCH(DMI_PRODUCT_NAME, "82BK"),
> +		},
> +	},
>  	{
>  	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */
>  	 .callback = video_detect_force_native,
>
diff mbox series

Patch

diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c
index 43587ac680e4..f6add9d82fa9 100644
--- a/drivers/acpi/video_detect.c
+++ b/drivers/acpi/video_detect.c
@@ -294,6 +294,22 @@  static const struct dmi_system_id video_detect_dmi_table[] = {
 		DMI_MATCH(DMI_PRODUCT_NAME, "102434U"),
 		},
 	},
+	{
+	 .callback = video_detect_force_native,
+	 .ident = "Lenovo E41-25",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		DMI_MATCH(DMI_PRODUCT_NAME, "81FS"),
+		},
+	},
+	{
+	 .callback = video_detect_force_native,
+	 .ident = "Lenovo E41-45",
+	 .matches = {
+		DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		DMI_MATCH(DMI_PRODUCT_NAME, "82BK"),
+		},
+	},
 	{
 	 /* https://bugzilla.redhat.com/show_bug.cgi?id=1217249 */
 	 .callback = video_detect_force_native,