You are not logged in.

#1 2018-09-30 09:57:28

tangram
Member
From: 3City, Poland
Registered: 2013-01-21
Posts: 36

Unwanted acpid suspend mode after successfull gdm login

Hi Guys,
my laptop’s lid is all the time closed.
Laptop is connected to the external monitor.
I’ve noticed that immediately after successful login (gdm 3.30.1-1)
I was dropped out into suspend power saving mode,
every time after login, I need to manually wake up from unwanted acpid suspend mode.

The default logind setting ( /etc/systemd/logind.conf )
is HandleLidSwitchDocked=ignore.

Journalctl logs:

sep 30 10:53:36 bex kernel: input: Lid Switch as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input0
sep 30 10:53:36 bex kernel: ACPI: Lid Switch [LID]
...
sep 30 10:53:50 bex systemd-logind[474]: Watching system buttons on /dev/input/event0 (Lid Switch)
...
sep 30 10:55:02 bex kernel: ACPI: button: The lid device is not compliant to SW_LID.

Hardware: Assus K52Je

I suppose that the sentence "ACPI: button: The lid device is not compliant to SW_LID" is the key for that story.
What could I check else ?

Thank you for your help

Offline

#2 2018-10-03 19:50:21

tangram
Member
From: 3City, Poland
Registered: 2013-01-21
Posts: 36

Re: Unwanted acpid suspend mode after successfull gdm login

The so called “key message” “ACPI: button: The lid ...” comes from kernel acpi driver:
linux-4.18.11/drivers/acpi/button.c@183
from function static int acpi_lid_notify_state(struct acpi_device *device, int state).
I’ll try to understand how it works.
The entry condition for this message is:

...
	next_report = ktime_add(button->last_time,
				ms_to_ktime(lid_report_interval));
	if (button->last_state == !!state &&
	    ktime_after(ktime_get(), next_report)) {
		/* Complain the buggy firmware */
		pr_warn_once("The lid device is not compliant to SW_LID.\n");
...

BTW another qustion.
Why the kernel sources downloaded with (svn|asp) an then with “makepkg -od –noprepare” are so big ?

I noticed that with 96.55 MiB of download I had only 3% of linux 4.18.10.arch1-1 downloaded ?

Offline

#3 2018-10-03 20:34:01

tangram
Member
From: 3City, Poland
Registered: 2013-01-21
Posts: 36

Re: Unwanted acpid suspend mode after successfull gdm login

I think I've solved it.

  1. The “key message” is just a message

  2. I've changed in /etc/systemd/logind.conf
    from

    #HandleLidSwitchExternalPower=suspend

    to

    HandleLidSwitchExternalPower=ignore

It works, but I'm not sure if it's right way to do that.
I appreciate any comments.

Offline

Board footer

Powered by FluxBB