You are not logged in.
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
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
I think I've solved it.
The “key message” is just a message
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