* [PATCH 1/3] acpi-video: Add use_native_backlight quirks for ThinkPad T430, T530 and Acer Aspire 5742G
@ 2014-05-05 9:38 Hans de Goede
2014-05-05 9:38 ` [PATCH 2/3] acpi-blacklist: Add dmi_enable_osi_linux quirk for Asus EEE PC 1015PX Hans de Goede
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Hans de Goede @ 2014-05-05 9:38 UTC (permalink / raw)
To: Zhang Rui, Rafael J. Wysocki, Len Brown
Cc: Aaron Lu, edm, Balint Szigeti, AnAkkk, lou.cardone, linux-acpi,
Hans de Goede, stable
ThinkPad T430: extend the T430s entry to also cover the T430 (note we also
have another entry for T430's with a different DMI_PRODUCT_VERSION).
Reported-and-tested-by: edm <fuffi.il.fuffo@gmail.com>
Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=51231
Thinkpad T530
Reported-and-tested-by: Balint Szigeti <balint.szgt@gmail.com>
Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1089545
Acer Aspire 5742G
Reported-and-tested-by: AnAkkk <anakin.cs@gmail.com>
Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=35622
Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/acpi/video.c | 20 ++++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index e7a1190..cebc74d 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -473,10 +473,10 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
},
{
.callback = video_set_use_native_backlight,
- .ident = "ThinkPad T430s",
+ .ident = "ThinkPad T430 and T430s",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
- DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T430s"),
+ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T430"),
},
},
{
@@ -512,6 +512,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
},
},
{
+ .callback = video_set_use_native_backlight,
+ .ident = "ThinkPad T530",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T530"),
+ },
+ },
+ {
.callback = video_set_use_native_backlight,
.ident = "ThinkPad X1 Carbon",
.matches = {
@@ -561,6 +569,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
},
{
.callback = video_set_use_native_backlight,
+ .ident = "Acer Aspire 5742G",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5742G"),
+ },
+ },
+ {
+ .callback = video_set_use_native_backlight,
.ident = "Acer Aspire V5-171",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
--
1.9.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCH 2/3] acpi-blacklist: Add dmi_enable_osi_linux quirk for Asus EEE PC 1015PX
2014-05-05 9:38 [PATCH 1/3] acpi-video: Add use_native_backlight quirks for ThinkPad T430, T530 and Acer Aspire 5742G Hans de Goede
@ 2014-05-05 9:38 ` Hans de Goede
2014-05-07 23:45 ` Rafael J. Wysocki
2014-05-05 9:38 ` [PATCH 3/3] acpi-video: change acpi-video brightness_switch_enabled default to 0 Hans de Goede
2014-05-07 23:45 ` [PATCH 1/3] acpi-video: Add use_native_backlight quirks for ThinkPad T430, T530 and Acer Aspire 5742G Rafael J. Wysocki
2 siblings, 1 reply; 7+ messages in thread
From: Hans de Goede @ 2014-05-05 9:38 UTC (permalink / raw)
To: Zhang Rui, Rafael J. Wysocki, Len Brown
Cc: Aaron Lu, edm, Balint Szigeti, AnAkkk, lou.cardone, linux-acpi,
Hans de Goede, stable
Without this this EEE PC exports a non working WMI interface, with this it
exports a working "good old" eeepc_laptop interface, fixing brightness control
not working as well as rfkill being stuck in a permanent wireless blocked
state.
This is not an ideal way to fix this, but various attempts to fix this
otherwise have failed, see:
https://bugzilla.redhat.com/show_bug.cgi?id=1067181
Cc: stable@vger.kernel.org
Reported-and-tested-by: lou.cardone@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/acpi/blacklist.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
index 51b8f64..b08e65a 100644
--- a/drivers/acpi/blacklist.c
+++ b/drivers/acpi/blacklist.c
@@ -299,6 +299,19 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T500"),
},
},
+ /*
+ * Without this this EEEpc exports a non working WMI interface, with
+ * this it exports a working "good old" eeepc_laptop interface, fixing
+ * both brightness control, and rfkill not working.
+ */
+ {
+ .callback = dmi_enable_osi_linux,
+ .ident = "Asus EEE PC 1015PX",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer INC."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "1015PX"),
+ },
+ },
{}
};
--
1.9.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH 2/3] acpi-blacklist: Add dmi_enable_osi_linux quirk for Asus EEE PC 1015PX
2014-05-05 9:38 ` [PATCH 2/3] acpi-blacklist: Add dmi_enable_osi_linux quirk for Asus EEE PC 1015PX Hans de Goede
@ 2014-05-07 23:45 ` Rafael J. Wysocki
0 siblings, 0 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2014-05-07 23:45 UTC (permalink / raw)
To: Hans de Goede
Cc: Zhang Rui, Len Brown, Aaron Lu, edm, Balint Szigeti, AnAkkk,
lou.cardone, linux-acpi, stable
On Monday, May 05, 2014 11:38:09 AM Hans de Goede wrote:
> Without this this EEE PC exports a non working WMI interface, with this it
> exports a working "good old" eeepc_laptop interface, fixing brightness control
> not working as well as rfkill being stuck in a permanent wireless blocked
> state.
>
> This is not an ideal way to fix this, but various attempts to fix this
> otherwise have failed, see:
> https://bugzilla.redhat.com/show_bug.cgi?id=1067181
>
> Cc: stable@vger.kernel.org
> Reported-and-tested-by: lou.cardone@gmail.com
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Queued up for 3.15 and -stable, thanks!
> ---
> drivers/acpi/blacklist.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
> index 51b8f64..b08e65a 100644
> --- a/drivers/acpi/blacklist.c
> +++ b/drivers/acpi/blacklist.c
> @@ -299,6 +299,19 @@ static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
> DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T500"),
> },
> },
> + /*
> + * Without this this EEEpc exports a non working WMI interface, with
> + * this it exports a working "good old" eeepc_laptop interface, fixing
> + * both brightness control, and rfkill not working.
> + */
> + {
> + .callback = dmi_enable_osi_linux,
> + .ident = "Asus EEE PC 1015PX",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK Computer INC."),
> + DMI_MATCH(DMI_PRODUCT_NAME, "1015PX"),
> + },
> + },
> {}
> };
>
>
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 3/3] acpi-video: change acpi-video brightness_switch_enabled default to 0
2014-05-05 9:38 [PATCH 1/3] acpi-video: Add use_native_backlight quirks for ThinkPad T430, T530 and Acer Aspire 5742G Hans de Goede
2014-05-05 9:38 ` [PATCH 2/3] acpi-blacklist: Add dmi_enable_osi_linux quirk for Asus EEE PC 1015PX Hans de Goede
@ 2014-05-05 9:38 ` Hans de Goede
2014-05-06 2:01 ` Aaron Lu
2014-05-07 23:45 ` [PATCH 1/3] acpi-video: Add use_native_backlight quirks for ThinkPad T430, T530 and Acer Aspire 5742G Rafael J. Wysocki
2 siblings, 1 reply; 7+ messages in thread
From: Hans de Goede @ 2014-05-05 9:38 UTC (permalink / raw)
To: Zhang Rui, Rafael J. Wysocki, Len Brown
Cc: Aaron Lu, edm, Balint Szigeti, AnAkkk, lou.cardone, linux-acpi,
Hans de Goede
acpi-video is unique in that it not only generates brightness up/down
keypresses, but also (sometimes) actively changes the brightness itself.
This presents an inconsistent kernel interface to userspace, basically there
are 2 different scenarios, depending on the laptop model:
1) On some laptops a brightness up/down keypress means: show a brightness osd
with the current brightness, iow it is a brightness has changed notification.
2) Where as on (a lot of) other laptops it means a brightness up/down key was
pressed, deal with it.
Most of the desktop environments interpret any press as in scenario 2, and
change the brightness up / down as a response to the key events, causing it
to be changed twice, once by acpi-video and once by the DE.
With the new default for video.use_native_backlight we will be moving even
more laptops over to behaving as in scenario 2. Making the remaining laptops
even more of a weird exception. Also note that it is hard to detect scenario
1 properly in userspace, and AFAIK none of the DE-s deals with it.
Therefor this commit changes the default of brightness_switch_enabled to 0
making its behavior consistent with all the other backlight drivers.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
drivers/acpi/video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
index cebc74d..34198b2 100644
--- a/drivers/acpi/video.c
+++ b/drivers/acpi/video.c
@@ -68,7 +68,7 @@ MODULE_AUTHOR("Bruno Ducrot");
MODULE_DESCRIPTION("ACPI Video Driver");
MODULE_LICENSE("GPL");
-static bool brightness_switch_enabled = 1;
+static bool brightness_switch_enabled;
module_param(brightness_switch_enabled, bool, 0644);
/*
--
1.9.0
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH 3/3] acpi-video: change acpi-video brightness_switch_enabled default to 0
2014-05-05 9:38 ` [PATCH 3/3] acpi-video: change acpi-video brightness_switch_enabled default to 0 Hans de Goede
@ 2014-05-06 2:01 ` Aaron Lu
2014-05-06 12:46 ` Hans de Goede
0 siblings, 1 reply; 7+ messages in thread
From: Aaron Lu @ 2014-05-06 2:01 UTC (permalink / raw)
To: Hans de Goede, Zhang Rui, Rafael J. Wysocki, Len Brown
Cc: edm, Balint Szigeti, AnAkkk, lou.cardone, linux-acpi
On 05/05/2014 05:38 PM, Hans de Goede wrote:
> acpi-video is unique in that it not only generates brightness up/down
> keypresses, but also (sometimes) actively changes the brightness itself.
>
> This presents an inconsistent kernel interface to userspace, basically there
> are 2 different scenarios, depending on the laptop model:
>
> 1) On some laptops a brightness up/down keypress means: show a brightness osd
> with the current brightness, iow it is a brightness has changed notification.
>
> 2) Where as on (a lot of) other laptops it means a brightness up/down key was
> pressed, deal with it.
>
> Most of the desktop environments interpret any press as in scenario 2, and
> change the brightness up / down as a response to the key events, causing it
> to be changed twice, once by acpi-video and once by the DE.
>
> With the new default for video.use_native_backlight we will be moving even
> more laptops over to behaving as in scenario 2. Making the remaining laptops
> even more of a weird exception. Also note that it is hard to detect scenario
> 1 properly in userspace, and AFAIK none of the DE-s deals with it.
>
> Therefor this commit changes the default of brightness_switch_enabled to 0
> making its behavior consistent with all the other backlight drivers.
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Aaron Lu <aaron.lu@intel.com>
Note that the Documentation/kernel-parameters.txt has to be modified
accordingly to change the default value for video.brightness_switch_enabled
to 0.
Thanks,
Aaron
> ---
> drivers/acpi/video.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> index cebc74d..34198b2 100644
> --- a/drivers/acpi/video.c
> +++ b/drivers/acpi/video.c
> @@ -68,7 +68,7 @@ MODULE_AUTHOR("Bruno Ducrot");
> MODULE_DESCRIPTION("ACPI Video Driver");
> MODULE_LICENSE("GPL");
>
> -static bool brightness_switch_enabled = 1;
> +static bool brightness_switch_enabled;
> module_param(brightness_switch_enabled, bool, 0644);
>
> /*
>
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH 3/3] acpi-video: change acpi-video brightness_switch_enabled default to 0
2014-05-06 2:01 ` Aaron Lu
@ 2014-05-06 12:46 ` Hans de Goede
0 siblings, 0 replies; 7+ messages in thread
From: Hans de Goede @ 2014-05-06 12:46 UTC (permalink / raw)
To: Aaron Lu, Zhang Rui, Rafael J. Wysocki, Len Brown
Cc: edm, Balint Szigeti, AnAkkk, lou.cardone, linux-acpi
Hi,
On 05/06/2014 04:01 AM, Aaron Lu wrote:
> On 05/05/2014 05:38 PM, Hans de Goede wrote:
>> acpi-video is unique in that it not only generates brightness up/down
>> keypresses, but also (sometimes) actively changes the brightness itself.
>>
>> This presents an inconsistent kernel interface to userspace, basically there
>> are 2 different scenarios, depending on the laptop model:
>>
>> 1) On some laptops a brightness up/down keypress means: show a brightness osd
>> with the current brightness, iow it is a brightness has changed notification.
>>
>> 2) Where as on (a lot of) other laptops it means a brightness up/down key was
>> pressed, deal with it.
>>
>> Most of the desktop environments interpret any press as in scenario 2, and
>> change the brightness up / down as a response to the key events, causing it
>> to be changed twice, once by acpi-video and once by the DE.
>>
>> With the new default for video.use_native_backlight we will be moving even
>> more laptops over to behaving as in scenario 2. Making the remaining laptops
>> even more of a weird exception. Also note that it is hard to detect scenario
>> 1 properly in userspace, and AFAIK none of the DE-s deals with it.
>>
>> Therefor this commit changes the default of brightness_switch_enabled to 0
>> making its behavior consistent with all the other backlight drivers.
>>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>
> Reviewed-by: Aaron Lu <aaron.lu@intel.com>
>
> Note that the Documentation/kernel-parameters.txt has to be modified
> accordingly to change the default value for video.brightness_switch_enabled
> to 0.
Good one, I'll send a v2 with this fixed.
Regards,
Hans
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] acpi-video: Add use_native_backlight quirks for ThinkPad T430, T530 and Acer Aspire 5742G
2014-05-05 9:38 [PATCH 1/3] acpi-video: Add use_native_backlight quirks for ThinkPad T430, T530 and Acer Aspire 5742G Hans de Goede
2014-05-05 9:38 ` [PATCH 2/3] acpi-blacklist: Add dmi_enable_osi_linux quirk for Asus EEE PC 1015PX Hans de Goede
2014-05-05 9:38 ` [PATCH 3/3] acpi-video: change acpi-video brightness_switch_enabled default to 0 Hans de Goede
@ 2014-05-07 23:45 ` Rafael J. Wysocki
2 siblings, 0 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2014-05-07 23:45 UTC (permalink / raw)
To: Hans de Goede
Cc: Zhang Rui, Len Brown, Aaron Lu, edm, Balint Szigeti, AnAkkk,
lou.cardone, linux-acpi, stable
On Monday, May 05, 2014 11:38:08 AM Hans de Goede wrote:
> ThinkPad T430: extend the T430s entry to also cover the T430 (note we also
> have another entry for T430's with a different DMI_PRODUCT_VERSION).
>
> Reported-and-tested-by: edm <fuffi.il.fuffo@gmail.com>
> Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=51231
>
> Thinkpad T530
> Reported-and-tested-by: Balint Szigeti <balint.szgt@gmail.com>
> Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1089545
>
> Acer Aspire 5742G
> Reported-and-tested-by: AnAkkk <anakin.cs@gmail.com>
> Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=35622
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Queued up for 3.15 and -stable, thanks!
> ---
> drivers/acpi/video.c | 20 ++++++++++++++++++--
> 1 file changed, 18 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c
> index e7a1190..cebc74d 100644
> --- a/drivers/acpi/video.c
> +++ b/drivers/acpi/video.c
> @@ -473,10 +473,10 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
> },
> {
> .callback = video_set_use_native_backlight,
> - .ident = "ThinkPad T430s",
> + .ident = "ThinkPad T430 and T430s",
> .matches = {
> DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> - DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T430s"),
> + DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T430"),
> },
> },
> {
> @@ -512,6 +512,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
> },
> },
> {
> + .callback = video_set_use_native_backlight,
> + .ident = "ThinkPad T530",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> + DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad T530"),
> + },
> + },
> + {
> .callback = video_set_use_native_backlight,
> .ident = "ThinkPad X1 Carbon",
> .matches = {
> @@ -561,6 +569,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = {
> },
> {
> .callback = video_set_use_native_backlight,
> + .ident = "Acer Aspire 5742G",
> + .matches = {
> + DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
> + DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 5742G"),
> + },
> + },
> + {
> + .callback = video_set_use_native_backlight,
> .ident = "Acer Aspire V5-171",
> .matches = {
> DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
>
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-05-07 23:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-05 9:38 [PATCH 1/3] acpi-video: Add use_native_backlight quirks for ThinkPad T430, T530 and Acer Aspire 5742G Hans de Goede
2014-05-05 9:38 ` [PATCH 2/3] acpi-blacklist: Add dmi_enable_osi_linux quirk for Asus EEE PC 1015PX Hans de Goede
2014-05-07 23:45 ` Rafael J. Wysocki
2014-05-05 9:38 ` [PATCH 3/3] acpi-video: change acpi-video brightness_switch_enabled default to 0 Hans de Goede
2014-05-06 2:01 ` Aaron Lu
2014-05-06 12:46 ` Hans de Goede
2014-05-07 23:45 ` [PATCH 1/3] acpi-video: Add use_native_backlight quirks for ThinkPad T430, T530 and Acer Aspire 5742G Rafael J. Wysocki
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.