Sorry for the late reply. The e-mail got filtered and I didn't see it until now. :-(
On Sun, Dec 8, 2019 at 8:05 AM Hans de Goede <hdegoede@xxxxxxxxxx <mailto:hdegoede@xxxxxxxxxx>> wrote:
Hi,
On 06-12-2019 18:54, Jason Ekstrand wrote:
> Running evemu-record on the lid switch event shows that the lid reports
> the first close but then never reports an open. This causes systemd to
> continuously re-suspend the laptop every 30s. Resetting the _LID to
> open fixes the issue.
Sorry to be a bit nitpicky here, but the LID does work normally right,
so it does signal an event when it gets closed a second time right.
What I observed with evemu-record is exactly what I wrote above. Without this patch, I see one LID event when I close the laptop lid the first time and never see another LID event again, either open or close.
Your current commit message and comment suggest closing the LID only
works once. So perhaps something like this for the comment:
The commit message and comment are different from our IRC conversations because I updated them after running evemu-record and seeing slightly different behavior than we discussed on IRC. Our earlier conversations were based mostly on guesses from me seeing spurious suspend issues and looking at the types of ACPI bugs I'd seen reported for other machines.
--Jason
/*
 * Razer Blade Stealth 13 late 2019, _LID always reports closed,
 * even when opened.
 */
And adjust the comment accordingly.
Regards,
Hans
> Signed-off-by: Jason Ekstrand <jason@xxxxxxxxxxxxxx <mailto:jason@xxxxxxxxxxxxxx>>
> ---
>
> Re-sending due to a typo in my own e-mail address. :(
>
>Â Âdrivers/acpi/button.c | 11 +++++++++++
>Â Â1 file changed, 11 insertions(+)
>
> diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
> index 662e07afe9a1..f7ca94e41c48 100644
> --- a/drivers/acpi/button.c
> +++ b/drivers/acpi/button.c
> @@ -122,6 +122,17 @@ static const struct dmi_system_id dmi_lid_quirks[] = {
>Â Â Â Â Â Â Â Â},
>Â Â Â Â Â Â Â Â.driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,
>Â Â Â Â},
> +Â Â Â{
> +Â Â Â Â Â Â Â/*
> +Â Â Â Â Â Â Â * Razer Blade Stealth 13 late 2019, _LID reports the first
> +Â Â Â Â Â Â Â * close but never resets to open.
> +Â Â Â Â Â Â Â */
> +Â Â Â Â Â Â Â.matches = {
> +Â Â Â Â Â Â Â Â Â Â ÂDMI_MATCH(DMI_SYS_VENDOR, "Razer"),
> +Â Â Â Â Â Â Â Â Â Â ÂDMI_MATCH(DMI_PRODUCT_NAME, "Razer Blade Stealth 13 Late 2019"),
> +Â Â Â Â Â Â Â},
> +Â Â Â Â Â Â Â.driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,
> +Â Â Â},
>Â Â Â Â{}
>Â Â};
>
>