Close lid event is not handled

Hello,
I have 13.1 fresh install with Xfce on Samsung NC10 laptop.

I’m trying to set any action (suspend, lock screen) on closing the lid event and nothing happens on closing the lid. Although suspend and screen locking itself work fine. I do settings in Power Manager GUI in Settings Manager. I also checked that power mode is not Presentation.

Most of advices I found are about acpid and laptop mode tools. But ACPI events are handled by systemd in opensuse, as I understand. Other ACPI events (brightness, sound volume, touchpad disable, suspend and power buttons) works fine and out of the box.
I also tried to set HandleLidSwitch=ignore in /etc/systemd/logind.conf to prevent systemd itself to handle this event, didn’t help.

So where should I start to investigate where are closing lid events are lost and do they occur at all?

shamand wrote:

> Hello,
> I have 13.1 fresh install with Xfce on Samsung NC10 laptop.
>
> I’m trying to set any action (suspend, lock screen) on closing the lid
> event and nothing happens on closing the lid. Although suspend and
> screen locking itself work fine. I do settings in Power Manager GUI in
> Settings Manager. I also checked that power mode is not Presentation.
>
> Most of advices I found are about acpid and laptop mode tools. But ACPI
> events are handled by systemd in opensuse, as I understand. Other ACPI
> events (brightness, sound volume, touchpad disable, suspend and power
> buttons) works fine and out of the box.
> I also tried to set HandleLidSwitch=ignore in /etc/systemd/logind.conf
> to prevent systemd itself to handle this event, didn’t help.
>
> So where should I start to investigate where are closing lid events are
> lost and do they occur at all?
>

This is close to what I see on an older Toshiba Satellite. In more detail:

After a cold boot, it will sleep on the first lid close.

After any sleep/hibernate lid close response, I have to close/open/close the
lid to get any response.

This has been the case since 10.1 or so.


Will Honea

Some additional info.

Here is a part of dmesg, where it is shown that lid switch is detected

    2.423730] systemd-udevd[83]: starting version 208
    2.464260] ACPI: Requesting acpi_cpufreq
    2.469354] input: Lid Switch as /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input2
    2.479961] acpi device:04: registered as cooling_device0
    2.480252] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
    2.480427] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input3
    2.483726] ACPI: Lid Switch [LID0]
    2.483933] input: Power Button as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input4
    2.484150] ACPI: Power Button [PWRB]
    2.484344] input: Sleep Button as /devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input5
    2.484494] ACPI: Sleep Button [SLPB]
    2.484700] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input6
    2.484855] ACPI: Power Button [PWRF]
    2.492222] thermal LNXTHERM:00: registered as thermal_zone0
    2.492243] ACPI: Thermal Zone [TZ00] (48 C)
    2.494404] ACPI: Fan [FAN0] (off)


and here is dmesg | grep ACPI

    0.000000] BIOS-e820: [mem 0x000000003f6d0000-0x000000003f6e1fff] ACPI data
    0.000000] BIOS-e820: [mem 0x000000003f6e2000-0x000000003f6e2fff] ACPI NVS
    0.000000] ACPI: RSDP 000f71e0 00024 (v02 PTLTD )
    0.000000] ACPI: XSDT 3f6db5bf 00084 (v01 SECCSD LH43STAR 06040000  LTP 00000000)
    0.000000] ACPI: FACP 3f6e1bd2 000F4 (v03 INTEL  CALISTGA 06040000 ALAN 00000001)
    0.000000] ACPI: DSDT 3f6dd267 048F7 (v01 INTEL  CALISTGA 06040000 INTL 20050624)
    0.000000] ACPI: FACS 3f6e2fc0 00040
    0.000000] ACPI: APIC 3f6e1cc6 00068 (v01 INTEL  CALISTGA 06040000 LOHR 0000005A)
    0.000000] ACPI: HPET 3f6e1d2e 00038 (v01 INTEL  CALISTGA 06040000 LOHR 0000005A)
    0.000000] ACPI: MCFG 3f6e1d66 0003C (v01 INTEL  CALISTGA 06040000 LOHR 0000005A)
    0.000000] ACPI: TCPA 3f6e1da2 00032 (v01 PTLTD  CALISTGA 06040000  PTL 00000001)
    0.000000] ACPI: TMOR 3f6e1dd4 00026 (v01 PTLTD           06040000 PTL  00000003)
    0.000000] ACPI: APIC 3f6e1dfa 00068 (v01 PTLTD  ? APIC   06040000  LTP 00000000)
    0.000000] ACPI: BOOT 3f6e1e62 00028 (v01 PTLTD  $SBFTBL$ 06040000  LTP 00000001)
    0.000000] ACPI: SLIC 3f6e1e8a 00176 (v01 SECCSD LH43STAR 06040000  LTP 00000000)
    0.000000] ACPI: SSDT 3f6dcc18 0064F (v01 SataRe  SataPri 00001000 INTL 20050624)
    0.000000] ACPI: SSDT 3f6dc57c 0069C (v01 SataRe  SataSec 00001000 INTL 20050624)
    0.000000] ACPI: SSDT 3f6db643 004F6 (v02  PmRef    CpuPm 00003000 INTL 20050624)
    0.000000] ACPI: BIOS bug: multiple APIC/MADT found, using 0
    0.000000] ACPI: If "acpi_apic_instance=2" works better, notify linux-acpi@vger.kernel.org
    0.000000] ACPI: Local APIC address 0xfee00000
    0.000000] ACPI: PM-Timer IO Port: 0x1008
    0.000000] ACPI: Local APIC address 0xfee00000
    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
    0.000000] ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
    0.000000] ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
    0.000000] ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
    0.000000] ACPI: IRQ0 used by override.
    0.000000] ACPI: IRQ2 used by override.
    0.000000] ACPI: IRQ9 used by override.
    0.000000] Using ACPI (MADT) for SMP configuration information
    0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
    0.008766] ACPI: Core revision 20130517
    0.018095] ACPI: All ACPI Tables successfully acquired
    0.076092] PM: Registering ACPI NVS region [mem 0x3f6e2000-0x3f6e2fff] (4096 bytes)
    0.076956] ACPI: bus type PCI registered
    0.076964] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
    0.080136] ACPI: Added _OSI(Module Device)
    0.080143] ACPI: Added _OSI(Processor Device)
    0.080148] ACPI: Added _OSI(3.0 _SCP Extensions)
    0.080153] ACPI: Added _OSI(Processor Aggregator Device)
    0.082265] ACPI: EC: Look up EC in DSDT
    0.085789] [Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
    0.089717] ACPI: SSDT 3f6dc263 00245 (v02  PmRef  Cpu0Ist 00003000 INTL 20050624)
    0.090316] ACPI: Dynamic OEM Table Load:
    0.090324] ACPI: SSDT   (null) 00245 (v02  PmRef  Cpu0Ist 00003000 INTL 20050624)
    0.090928] ACPI: SSDT 3f6dbb39 006A5 (v02  PmRef  Cpu0Cst 00003001 INTL 20050624)
    0.091441] ACPI: Dynamic OEM Table Load:
    0.091449] ACPI: SSDT   (null) 006A5 (v02  PmRef  Cpu0Cst 00003001 INTL 20050624)
    0.092579] ACPI: SSDT 3f6dc4a8 000D4 (v02  PmRef  Cpu1Ist 00003000 INTL 20050624)
    0.093132] ACPI: Dynamic OEM Table Load:
    0.093139] ACPI: SSDT   (null) 000D4 (v02  PmRef  Cpu1Ist 00003000 INTL 20050624)
    0.093444] ACPI: SSDT 3f6dc1de 00085 (v02  PmRef  Cpu1Cst 00003000 INTL 20050624)
    0.093960] ACPI: Dynamic OEM Table Load:
    0.093967] ACPI: SSDT   (null) 00085 (v02  PmRef  Cpu1Cst 00003000 INTL 20050624)
    0.096152] ACPI: Interpreter enabled
    0.096188] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State \_S1_] (20130517/hwxface-571)
    0.096200] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State \_S2_] (20130517/hwxface-571)
    0.096243] ACPI: (supports S0 S3 S4 S5)
    0.096248] ACPI: Using IOAPIC for interrupt routing
    0.096347] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
    0.096676] ACPI: No dock devices found.
    0.116891] ACPI: Power Resource [FN00] (off)
    0.119200] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
    0.119220] acpi PNP0A08:00: ACPI _OSC support notification failed, disabling PCIe ASPM
    0.123669] pci 0000:00:1b.0: System wakeup disabled by ACPI
    0.126537] pci 0000:00:1f.0: address space collision: [io  0x1000-0x107f] conflicts with ACPI CPU throttle ??? 0x00001010-0x00001015 flags 0x80000000]
    0.127952] pci 0000:02:00.0: System wakeup disabled by ACPI
    0.129503] pci 0000:03:00.0: System wakeup disabled by ACPI
    0.130689] ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 7 10 12 14 15) *11
    0.130964] ACPI: PCI Interrupt Link [LNKB] (IRQs 1 3 4 5 6 7 11 12 14 15) *10
    0.131235] ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 *5 6 7 10 12 14 15)
    0.131504] ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 *5 6 7 11 12 14 15)
    0.131771] ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 7 10 12 14 15) *0, disabled.
    0.132053] ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 4 5 6 7 11 12 14 15) *0, disabled.
    0.132324] ACPI: PCI Interrupt Link [LNKG] (IRQs 1 3 4 *5 6 7 10 12 14 15)
    0.132593] ACPI: PCI Interrupt Link [LNKH] (IRQs 1 3 4 *5 6 7 11 12 14 15)
    0.132778] ACPI: Enabled 1 GPEs in block 00 to 1F
    0.132778] ACPI: \_SB_.PCI0: notify handler is installed
    0.132778] ACPI: EC: GPE = 0x17, I/O: command/status = 0x66, data = 0x62
    0.132910] PCI: Using ACPI for IRQ routing
    0.153162] pnp: PnP ACPI init
    0.153205] ACPI: bus type PNP registered
    0.153557] system 00:00: Plug and Play ACPI device, IDs PNP0c02 (active)
    0.154628] pnp 00:01: Plug and Play ACPI device, IDs PNP0200 (active)
    0.154736] pnp 00:02: Plug and Play ACPI device, IDs INT0800 (active)
    0.155132] system 00:03: Plug and Play ACPI device, IDs PNP0103 PNP0c01 (active)
    0.155263] pnp 00:04: Plug and Play ACPI device, IDs PNP0c04 (active)
    0.155451] system 00:05: Plug and Play ACPI device, IDs PNP0c02 (active)
    0.155660] system 00:06: Plug and Play ACPI device, IDs PNP0c02 (active)
    0.155763] pnp 00:07: Plug and Play ACPI device, IDs PNP0b00 (active)
    0.155934] pnp 00:08: Plug and Play ACPI device, IDs PNP0303 (active)
    0.156069] pnp 00:09: Plug and Play ACPI device, IDs PNP0f13 (active)
    0.156422] pnp: PnP ACPI: found 10 devices
    0.156428] ACPI: bus type PNP unregistered
    0.156436] PnPBIOS: Disabled by ACPI PNP
    2.464260] ACPI: Requesting acpi_cpufreq
    2.480252] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
    2.483726] ACPI: Lid Switch [LID0]
    2.484150] ACPI: Power Button [PWRB]
    2.484494] ACPI: Sleep Button [SLPB]
    2.484855] ACPI: Power Button [PWRF]
    2.492243] ACPI: Thermal Zone [TZ00] (48 C)
    2.494404] ACPI: Fan [FAN0] (off)
    2.546209] ACPI: bus type USB registered
    2.562016] ACPI: bus type ATA registered
   12.159243] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
   12.159732] ACPI: AC Adapter [ADP1] (on-line)
   12.228960] ACPI: Deprecated procfs I/F for battery is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
   12.228992] ACPI: Battery Slot [BAT1] (battery present)
   12.378017] ACPI Warning: 0x00001028-0x0000102f SystemIO conflicts with Region \PMIO 1 (20130517/utaddress-251)
   12.378039] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
   12.378049] ACPI Warning: 0x000011b0-0x000011bf SystemIO conflicts with Region \GPIO 1 (20130517/utaddress-251)
   12.378064] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
   12.378071] ACPI Warning: 0x00001180-0x000011af SystemIO conflicts with Region \GPIO 1 (20130517/utaddress-251)
   12.378084] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
   12.431896] ACPI Warning: 0x000018a0-0x000018bf SystemIO conflicts with Region \_SB_.PCI0.SBUS.SMBI 1 (20130517/utaddress-251)
   12.431920] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
   12.857877] samsung_laptop: Backlight controlled by ACPI video driver
   88.029531] ACPI: Preparing to enter system sleep state S4
   88.046266] ACPI: Waking up from system sleep state S4
   88.520326] ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
   88.520332] ata1.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
  123.437327] ACPI: Preparing to enter system sleep state S4
  123.454193] ACPI: Waking up from system sleep state S4
  123.932343] ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
  123.932349] ata1.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
  241.437340] ACPI: Preparing to enter system sleep state S4
  241.454234] ACPI: Waking up from system sleep state S4
  241.932338] ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
  241.932344] ata1.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
 3340.304372] ACPI: Preparing to enter system sleep state S3
 3340.308041] ACPI: Low-level resume complete
 3340.321370] ACPI: Waking up from system sleep state S3
 3341.952593] ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
 3341.952599] ata1.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out
 3371.316373] ACPI: Preparing to enter system sleep state S3
 3371.420563] ACPI: Low-level resume complete
 3371.433510] ACPI: Waking up from system sleep state S3
 3373.116615] ata1.00: ACPI cmd ef/03:0c:00:00:00:a0 (SET FEATURES) filtered out
 3373.116627] ata1.00: ACPI cmd ef/03:45:00:00:00:a0 (SET FEATURES) filtered out


and here is **udevadm info /sys/class/input/input2
**

P: /devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input2
E: DEVPATH=/devices/LNXSYSTM:00/device:00/PNP0C0D:00/input/input2
E: EV=21
E: ID_FOR_SEAT=input-acpi-PNP0C0D_00
E: ID_INPUT=1
E: ID_PATH=acpi-PNP0C0D:00
E: ID_PATH_TAG=acpi-PNP0C0D_00
E: MODALIAS=input:b0019v0000p0005e0000-e0,5,kramlsfw0,
E: NAME="Lid Switch"
E: PHYS="PNP0C0D/button/input0"
E: PRODUCT=19/0/5/0
E: PROP=0
E: SUBSYSTEM=input
E: SW=1
E: TAGS=:seat:
E: USEC_INITIALIZED=58851


Everything looks fine. Any ideas?

Turned out lid close action, which I set in xfce power manager settings, occurs but only about 15 seconds later if the lid is still closed.
I found mention of similar issue on samsung laptop on arch linux forums.
https://bbs.archlinux.org/viewtopic.php?id=153529
https://bbs.archlinux.org/viewtopic.php?pid=885705

Seems like kernel bug, but hasn’t been fixed for a year to this moment.