HP x2 Notebook wakes from suspend soon after closing the lid

I have an HP x2 Notebook with a detachable keyboard (model 10-p018wm) on which I’ve installed Fedora 29. Pretty much everything about the notebook works: the touchscreen is recognized, the WiFi works, and the media keys work. However, I can’t get it to properly suspend to RAM when the lid is closed. I have configured in KDE to have it suspend when the power button is pushed, and when the lid is closed. Yet after about a minute, the screen lights up, and it awakens. I have tried changing the configurations in /etc/systemd/logind.conf to handle the lid (i.e. setting HandleLidSwitch=suspend and HandleLidSwitchDocked=suspend ), but that doesn’t work.

Interestingly, when I boot up the notebook, log in to KDE, and press the power button, it seems to suspend correctly. Yet when I try closing the lid, it will wake up after about a minute.

After some research, I thought that the WiFI was interfering with the suspend and wakeup cycles. I tried disabling the 'iwlmvmandiwlwifi` modules, but that no impact (it still woke up after about 12 seconds).

The current situation of the install

  • Motherboard is UEFI-based

  • Kernel 5.0.8-200.fc29. Tried going to the 4.18 kernel, but that didn’t change anything.

  • I have ACPI installed.

  • The cat /pro/acpi/wakeup command only gives the output Device S-state Status Sysfs node.

  • Output of lsusb:

    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 005: ID 04f2:b5a9 Chicony Electronics Co., Ltd 
    Bus 001 Device 004: ID 8087:0a2a Intel Corp. 
    Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
    Bus 001 Device 002: ID 04f3:0755 Elan Microelectronics Corp. 
    Bus 001 Device 006: ID 05dc:c75d Lexar Media, Inc. 
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    
  • Output of lspci:

     00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 36)
         Subsystem: Hewlett-Packard Company Device 827c
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
         Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
         Latency: 0
         Kernel driver in use: iosf_mbi_pci
     
     00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers (rev 36) (prog-if 00 [VGA controller])
         DeviceName:  Onboard IGD
         Subsystem: Hewlett-Packard Company Device 827c
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
         Latency: 0
         Interrupt: pin A routed to IRQ 120
         Region 0: Memory at 90000000 (64-bit, non-prefetchable) [size=16M]
         Region 2: Memory at 80000000 (64-bit, prefetchable) [size=256M]
         Region 4: I/O ports at f000 [size=64]
         [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
         Capabilities: [d0] Power Management version 2
             Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
             Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
         Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
             Address: fee02004  Data: 4029
         Capabilities: [b0] Vendor Specific Information: Len=07 <?>
         Kernel driver in use: i915
         Kernel modules: i915
     
     00:03.0 Multimedia controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit (rev 36)
         Subsystem: Hewlett-Packard Company Device 827c
         Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
         Interrupt: pin A routed to IRQ 255
         Region 0: [virtual] Memory at 91000000 (32-bit, non-prefetchable) [size=4M]
         Capabilities: [80] Power Management version 2
             Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
             Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
         Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
             Address: 00000000  Data: 0000
         Kernel driver in use: intel_atomisp2_pm
         Kernel modules: intel_atomisp2_pm
     
     00:0a.0 Non-VGA unclassified device: Intel Corporation Device 22d8 (rev 36)
         Subsystem: Hewlett-Packard Company Device 827c
         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
         Latency: 0, Cache Line Size: 64 bytes
         Interrupt: pin A routed to IRQ 20
         Region 0: Memory at 9193c000 (32-bit, non-prefetchable) [size=4K]
         Capabilities: [80] Power Management version 3
             Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
             Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
         Kernel driver in use: intel_ish_ipc
         Kernel modules: intel_ish_ipc
     
     00:0b.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller (rev 36)
         Subsystem: Hewlett-Packard Company Device 827c
         Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
         Interrupt: pin A routed to IRQ 130
         Region 0: Memory at 9193b000 (64-bit, non-prefetchable) [size=4K]
         Capabilities: [40] MSI: Enable+ Count=1/1 Maskable- 64bit-
             Address: fee04004  Data: 4027
         Capabilities: [50] Power Management version 3
             Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
             Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
         Kernel driver in use: proc_thermal
         Kernel modules: processor_thermal_device
     
     00:14.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller (rev 36) (prog-if 30 [XHCI])
         Subsystem: Hewlett-Packard Company Device 827c
         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
         Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
         Latency: 0
         Interrupt: pin A routed to IRQ 117
         Region 0: Memory at 91900000 (64-bit, non-prefetchable) [size=64K]
         Capabilities: [70] Power Management version 2
             Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot+,D3cold+)
             Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
         Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
             Address: 00000000fee04004  Data: 4028
         Kernel driver in use: xhci_hcd
     
     00:1a.0 Encryption controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine (rev 36)
         Subsystem: Hewlett-Packard Company Device 827c
         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
         Latency: 0, Cache Line Size: 64 bytes
         Interrupt: pin A routed to IRQ 131
         Region 0: Memory at 91700000 (32-bit, non-prefetchable) [size=1M]
         Region 1: Memory at 91600000 (32-bit, non-prefetchable) [size=1M]
         Capabilities: [80] Power Management version 3
             Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold-)
             Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
         Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit-
             Address: fee08004  Data: 4027
         Kernel driver in use: mei_txe
         Kernel modules: mei_txe
     
     00:1c.0 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 (rev 36) (prog-if 00 [Normal decode])
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
         Latency: 0, Cache Line Size: 64 bytes
         Interrupt: pin A routed to IRQ 116
         Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
         I/O behind bridge: None
         Memory behind bridge: 91800000-918fffff [size=1M]
         Prefetchable memory behind bridge: None
         Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
         BridgeCtl: Parity- SERR- NoISA- VGA- VGA16+ MAbort- >Reset- FastB2B-
             PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
         Capabilities: [40] Express (v2) Root Port (Slot+), MSI 00
             DevCap:	MaxPayload 128 bytes, PhantFunc 0
                 ExtTag- RBE+
             DevCtl:	CorrErr- NonFatalErr- FatalErr- UnsupReq-
                 RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
                 MaxPayload 128 bytes, MaxReadReq 128 bytes
             DevSta:	CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr+ TransPend-
             LnkCap:	Port #1, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <512ns, L1 <16us
                 ClockPM- Surprise- LLActRep+ BwNot+ ASPMOptComp-
             LnkCtl:	ASPM Disabled; RCB 64 bytes Disabled- CommClk+
                 ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
             LnkSta:	Speed 2.5GT/s (downgraded), Width x1 (ok)
                 TrErr- Train- SlotClk+ DLActive+ BWMgmt+ ABWMgmt-
             SltCap:	AttnBtn- PwrCtrl- MRL- AttnInd- PwrInd- HotPlug- Surprise-
                 Slot #0, PowerLimit 10.000W; Interlock- NoCompl+
             SltCtl:	Enable: AttnBtn- PwrFlt- MRL- PresDet- CmdCplt- HPIrq- LinkChg-
                 Control: AttnInd Unknown, PwrInd Unknown, Power- Interlock-
             SltSta:	Status: AttnBtn- PowerFlt- MRL- CmdCplt- PresDet+ Interlock-
                 Changed: MRL- PresDet- LinkState-
             RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna+ CRSVisible-
             RootCap: CRSVisible-
             RootSta: PME ReqID 0000, PMEStatus- PMEPending-
             DevCap2: Completion Timeout: Range ABC, TimeoutDis+, LTR+, OBFF Not Supported ARIFwd-
                  AtomicOpsCap: Routing- 32bit- 64bit- 128bitCAS-
             DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis+, LTR+, OBFF Disabled ARIFwd-
                  AtomicOpsCtl: ReqEn- EgressBlck-
             LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
                  Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                  Compliance De-emphasis: -6dB
             LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
                  EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
         Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
             Address: fee01004  Data: 4023
         Capabilities: [90] Subsystem: Hewlett-Packard Company Device 827c
         Capabilities: [a0] Power Management version 3
             Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
             Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
         Kernel driver in use: pcieport
     
     00:1f.0 ISA bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU (rev 36)
         Subsystem: Hewlett-Packard Company Device 827c
         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
         Latency: 0
         Capabilities: [e0] Vendor Specific Information: Len=0c <?>
         Kernel driver in use: lpc_ich
         Kernel modules: lpc_ich
     
     01:00.0 Network controller: Intel Corporation Wireless 3165 (rev 81)
         DeviceName: Intel Stone Peak I
         Subsystem: Intel Corporation Device 8010
         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
         Latency: 0, Cache Line Size: 64 bytes
         Interrupt: pin A routed to IRQ 143
         Region 0: Memory at 91800000 (64-bit, non-prefetchable) [size=8K]
         Capabilities: [c8] Power Management version 3
             Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
             Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
         Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
             Address: 00000000fee08004  Data: 4028
         Capabilities: [40] Express (v2) Endpoint, MSI 00
             DevCap:	MaxPayload 128 bytes, PhantFunc 0, Latency L0s <512ns, L1 unlimited
                 ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ SlotPowerLimit 0.000W
             DevCtl:	CorrErr- NonFatalErr- FatalErr- UnsupReq-
                 RlxdOrd- ExtTag- PhantFunc- AuxPwr+ NoSnoop+ FLReset-
                 MaxPayload 128 bytes, MaxReadReq 128 bytes
             DevSta:	CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr+ TransPend-
             LnkCap:	Port #0, Speed 2.5GT/s, Width x1, ASPM L1, Exit Latency L1 <32us
                 ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
             LnkCtl:	ASPM Disabled; RCB 64 bytes Disabled- CommClk+
                 ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
             LnkSta:	Speed 2.5GT/s (ok), Width x1 (ok)
                 TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
             DevCap2: Completion Timeout: Range B, TimeoutDis+, LTR+, OBFF Via WAKE#
                  AtomicOpsCap: 32bit- 64bit- 128bitCAS-
             DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis+, LTR+, OBFF Disabled
                  AtomicOpsCtl: ReqEn-
             LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
                  Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                  Compliance De-emphasis: -6dB
             LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
                  EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
         Capabilities: [100 v1] Advanced Error Reporting
             UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
             UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
             UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
             CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
             CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
             AERCap:	First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
                 MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
             HeaderLog: 00000000 00000000 00000000 00000000
         Capabilities: [140 v1] Device Serial Number b4-69-21-ff-ff-e8-c9-d9
         Capabilities: [14c v1] Latency Tolerance Reporting
             Max snoop latency: 15360ns
             Max no snoop latency: 15360ns
         Capabilities: [154 v1] L1 PM Substates
             L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
                   PortCommonModeRestoreTime=30us PortTPowerOnTime=60us
             L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
                    T_CommonMode=0us LTR1.2_Threshold=0ns
             L1SubCtl2: T_PwrOn=10us
         Kernel driver in use: iwlwifi
         Kernel modules: iwlwifi
1 Like

If it helps, here’s some more information.

Output of lshw

eitri
    description: Detachable
    product: HP x2 Detachable 10-p0XX (X7U47UA#ABA)
    vendor: HP
    version: Chassis Version
    serial: 5CD84781LD
    width: 64 bits
    capabilities: smbios-3.0.0 dmi-3.0.0 smp vsyscall32
    configuration: boot=normal chassis=detachable family=103C_5335KV HP X2 sku=X7U47UA#ABA uuid=35434438-3437-3831-4C44-443137344435
  *-core
       description: Motherboard
       product: 827C
       vendor: HP
       physical id: 0
       version: 93.23
       serial: PGBVE058JBJ27R
       slot: Base Board Chassis Location
     *-firmware
          description: BIOS
          vendor: American Megatrends Inc.
          physical id: 0
          version: F.32
          date: 05/21/2018
          size: 64KiB
          capacity: 6MiB
          capabilities: pci upgrade shadowing cdboot bootselect edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int14serial int17printer acpi usb smartbattery biosbootspecification netboot uefi
     *-memory
          description: System Memory
          physical id: 11
          slot: System board or motherboard
          size: 4GiB
        *-bank:0
             description: DIMM DDR3 Synchronous 1600 MHz (0.6 ns)
             product: K4E6E304EB-EGCF
             vendor: Samsung
             physical id: 0
             serial: Not Available
             slot: Bottom - on board
             size: 4GiB
             width: 32 bits
             clock: 1600MHz (0.6ns)
        *-bank:1
             description: DIMM Synchronous [empty]
             product: H9CCNNNBPTBLBR-NUD
             vendor: Hynix
             physical id: 1
             serial: Not Available
             slot: Bottom - on board
     *-cache:0
          description: L1 cache
          physical id: 1a
          slot: CPU Internal L1
          size: 224KiB
          capacity: 224KiB
          capabilities: internal write-back
          configuration: level=1
     *-cache:1
          description: L2 cache
          physical id: 1b
          slot: CPU Internal L2
          size: 2MiB
          capacity: 2MiB
          capabilities: internal write-back unified
          configuration: level=2
     *-cpu
          description: CPU
          product: Intel(R) Atom(TM) x5-Z8350  CPU @ 1.44GHz
          vendor: Intel Corp.
          physical id: 1c
          bus info: cpu@0
          version: Intel(R) Atom(TM) x5-Z8350 CPU @ 1.44GHz
          slot: SOCKET 0
          size: 763MHz
          capacity: 2400MHz
          width: 64 bits
          clock: 80MHz
          capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl xtopology tsc_reliable nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes rdrand lahf_lm 3dnowprefetch epb pti ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid tsc_adjust smep erms dtherm ida arat cpufreq
          configuration: cores=4 enabledcores=4 threads=4
     *-pci
          description: Host bridge
          product: Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 36
          width: 32 bits
          clock: 33MHz
          configuration: driver=iosf_mbi_pci
          resources: irq:0
        *-display
             description: VGA compatible controller
             product: Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 36
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi vga_controller bus_master cap_list rom
             configuration: driver=i915 latency=0
             resources: irq:120 memory:90000000-90ffffff memory:80000000-8fffffff ioport:f000(size=64) memory:c0000-dffff
        *-multimedia
             description: Multimedia controller
             product: Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit
             vendor: Intel Corporation
             physical id: 3
             bus info: pci@0000:00:03.0
             version: 36
             width: 32 bits
             clock: 33MHz
             capabilities: pm msi cap_list
             configuration: driver=intel_atomisp2_pm latency=0
             resources: irq:255 memory:91000000-913fffff
        *-generic:0
             description: Non-VGA unclassified device
             product: Intel Corporation
             vendor: Intel Corporation
             physical id: a
             bus info: pci@0000:00:0a.0
             version: 36
             width: 32 bits
             clock: 33MHz
             capabilities: pm bus_master cap_list
             configuration: driver=intel_ish_ipc latency=0
             resources: irq:20 memory:9193c000-9193cfff
        *-generic:1
             description: Signal processing controller
             product: Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller
             vendor: Intel Corporation
             physical id: b
             bus info: pci@0000:00:0b.0
             version: 36
             width: 64 bits
             clock: 33MHz
             capabilities: msi pm cap_list
             configuration: driver=proc_thermal latency=0
             resources: irq:130 memory:9193b000-9193bfff
        *-usb
             description: USB controller
             product: Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller
             vendor: Intel Corporation
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 36
             width: 64 bits
             clock: 33MHz
             capabilities: pm msi xhci bus_master cap_list
             configuration: driver=xhci_hcd latency=0
             resources: irq:117 memory:91900000-9190ffff
           *-usbhost:0
                product: xHCI Host Controller
                vendor: Linux 5.0.9-200.fc29.x86_64 xhci-hcd
                physical id: 0
                bus info: usb@1
                logical name: usb1
                version: 5.00
                capabilities: usb-2.00
                configuration: driver=hub slots=7 speed=480Mbit/s
              *-usb:0
                   description: Mass storage device
                   product: USB Flash Drive
                   vendor: Lexar
                   physical id: 2
                   bus info: usb@1:2
                   logical name: scsi0
                   version: 1.00
                   serial: A379067C3239
                   capabilities: usb-2.00 scsi emulated scsi-host
                   configuration: driver=usb-storage maxpower=200mA speed=480Mbit/s
                 *-disk
                      description: SCSI Disk
                      product: USB Flash Drive
                      vendor: Lexar
                      physical id: 0.0.0
                      bus info: scsi@0:0.0.0
                      logical name: /dev/sda
                      version: PMAP
                      serial: A03070900060
                      size: 14GiB (16GB)
                      capabilities: removable
                      configuration: ansiversion=6 logicalsectorsize=512 sectorsize=512
                    *-medium
                         physical id: 0
                         logical name: /dev/sda
                         size: 14GiB (16GB)
                         capabilities: partitioned partitioned:dos
                         configuration: signature=632d2595
                       *-volume
                            description: Windows FAT volume
                            vendor: mkfs.fat
                            physical id: 1
                            logical name: /dev/sda1
                            logical name: /run/media/jason/THUMBDRIVE1
                            version: FAT32
                            serial: 37c4-40ae
                            size: 9039MiB
                            capacity: 9041MiB
                            capabilities: primary fat initialized
                            configuration: FATs=2 filesystem=fat label=THUMBDRIVE1 mount.fstype=vfat mount.options=rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,showexec,utf8,flush,errors=remount-ro state=mounted
              *-usb:1
                   description: Keyboard
                   vendor: Elan Microelectronics Corp.
                   physical id: 3
                   bus info: usb@1:3
                   version: 1.17
                   capabilities: usb-2.00
                   configuration: driver=usbhid maxpower=100mA speed=2Mbit/s
              *-usb:2
                   description: USB hub
                   product: USB2.0 Hub
                   vendor: Genesys Logic, Inc.
                   physical id: 4
                   bus info: usb@1:4
                   version: 88.32
                   capabilities: usb-2.00
                   configuration: driver=hub maxpower=100mA slots=4 speed=480Mbit/s
                 *-usb:0
                      description: Bluetooth wireless interface
                      vendor: Intel Corp.
                      physical id: 1
                      bus info: usb@1:4.1
                      version: 0.01
                      capabilities: bluetooth usb-2.00
                      configuration: driver=btusb maxpower=100mA speed=12Mbit/s
                 *-usb:1
                      description: Video
                      product: HP TrueVision HD
                      vendor: Generic
                      physical id: 2
                      bus info: usb@1:4.2
                      version: 88.04
                      serial: 200901010001
                      capabilities: usb-2.00
                      configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
           *-usbhost:1
                product: xHCI Host Controller
                vendor: Linux 5.0.9-200.fc29.x86_64 xhci-hcd
                physical id: 1
                bus info: usb@2
                logical name: usb2
                version: 5.00
                capabilities: usb-3.00
                configuration: driver=hub slots=6 speed=5000Mbit/s
        *-generic:2
             description: Encryption controller
             product: Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine
             vendor: Intel Corporation
             physical id: 1a
             bus info: pci@0000:00:1a.0
             version: 36
             width: 32 bits
             clock: 33MHz
             capabilities: pm msi bus_master cap_list
             configuration: driver=mei_txe latency=0
             resources: irq:131 memory:91700000-917fffff memory:91600000-916fffff
        *-pci
             description: PCI bridge
             product: Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1
             vendor: Intel Corporation
             physical id: 1c
             bus info: pci@0000:00:1c.0
             version: 36
             width: 32 bits
             clock: 33MHz
             capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:116 memory:91800000-918fffff
           *-network
                description: Wireless interface
                product: Wireless 3165
                vendor: Intel Corporation
                physical id: 0
                bus info: pci@0000:01:00.0
                logical name: wlo1
                version: 81
                serial: b4:69:21:e8:c9:d9
                width: 64 bits
                clock: 33MHz
                capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
                configuration: broadcast=yes driver=iwlwifi driverversion=5.0.9-200.fc29.x86_64 firmware=29.1044073957.0 ip=192.168.1.179 latency=0 link=yes multicast=yes wireless=IEEE 802.11
                resources: irq:143 memory:91800000-91801fff
        *-isa
             description: ISA bridge
             product: Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 36
             width: 32 bits
             clock: 33MHz
             capabilities: isa bus_master cap_list
             configuration: driver=lpc_ich latency=0
             resources: irq:0
     *-pnp00:00
          product: PnP device PNP0c02
          physical id: 1
          capabilities: pnp
          configuration: driver=system
     *-pnp00:01
          product: PnP device PNP0c02
          physical id: 2
          capabilities: pnp
          configuration: driver=system
     *-pnp00:02
          product: PnP device PNP0c02
          physical id: 3
          capabilities: pnp
          configuration: driver=system
     *-pnp00:03
          product: PnP device PNP0b00
          physical id: 4
          capabilities: pnp
          configuration: driver=rtc_cmos
  *-battery
       product: SW02032XL
       vendor: 333-1B-24-A
       physical id: 1
       slot: Primary
       capacity: 32570mWh
       configuration: voltage=7.7V

Output of lsmod | sort:

ac97_bus               16384  1 snd_soc_core
acpi_pad               36864  0
acpi_thermal_rel       16384  1 int3400_thermal
arc4                   16384  2
bluetooth             610304  5 btrtl,btintel,btbcm,btusb
btbcm                  16384  1 btusb
btintel                28672  1 btusb
btrtl                  20480  1 btusb
btusb                  57344  0
ccm                    20480  6
cfg80211              790528  3 iwlmvm,iwlwifi,mac80211
coretemp               20480  0
crc32c_intel           24576  5
crc32_pclmul           16384  0
crct10dif_pclmul       16384  1
drm                   495616  14 drm_kms_helper,i915
drm_kms_helper        208896  1 i915
dw_dmac                16384  0
ebtable_filter         16384  1
ebtable_nat            16384  1
ebtables               40960  2 ebtable_nat,ebtable_filter
ecdh_generic           24576  1 bluetooth
fat                    86016  1 vfat
fuse                  135168  3
ghash_clmulni_intel    16384  0
gpio_keys              20480  0
hid_elan               16384  0
hid_multitouch         28672  0
hid_sensor_accel_3d    20480  1
hid_sensor_gyro_3d     20480  0
hid_sensor_hub         24576  7 hid_sensor_gyro_3d,hid_sensor_trigger,hid_sensor_iio_common,hid_sensor_incl_3d,hid_sensor_accel_3d,hid_sensor_magn_3d,hid_sensor_rotation
hid_sensor_iio_common    20480  6 hid_sensor_gyro_3d,hid_sensor_trigger,hid_sensor_incl_3d,hid_sensor_accel_3d,hid_sensor_magn_3d,hid_sensor_rotation
hid_sensor_incl_3d     20480  0
hid_sensor_magn_3d     20480  1
hid_sensor_rotation    20480  0
hid_sensor_trigger     20480  10 hid_sensor_gyro_3d,hid_sensor_incl_3d,hid_sensor_accel_3d,hid_sensor_magn_3d,hid_sensor_rotation
hp_wmi                 16384  0
i2c_algo_bit           16384  1 i915
i2c_hid                32768  0
i915                 2174976  30
industrialio           86016  10 industrialio_triggered_buffer,hid_sensor_gyro_3d,hid_sensor_trigger,hid_sensor_incl_3d,kfifo_buf,hid_sensor_accel_3d,hid_sensor_magn_3d,hid_sensor_rotation
industrialio_triggered_buffer    16384  5 hid_sensor_gyro_3d,hid_sensor_incl_3d,hid_sensor_accel_3d,hid_sensor_magn_3d,hid_sensor_rotation
int3400_thermal        20480  0
int3403_thermal        16384  0
int340x_thermal_zone    16384  2 int3403_thermal,processor_thermal_device
intel_atomisp2_pm      16384  0
intel_chtdc_ti_pwrbtn    20480  0
intel_cstate           16384  0
intel_int0002_vgpio    16384  1
intel_ish_ipc          28672  0
intel_ishtp            49152  2 intel_ishtp_hid,intel_ish_ipc
intel_ishtp_hid        28672  0
intel_powerclamp       20480  0
intel_rapl             28672  0
intel_soc_dts_iosf     20480  1 processor_thermal_device
intel_soc_pmic_chtdc_ti    16384  0
intel_vbtn             20480  0
intel_xhci_usb_role_switch    16384  0
ip6table_filter        16384  1
ip6table_mangle        16384  1
ip6table_nat           16384  1
ip6table_raw           16384  1
ip6_tables             36864  7 ip6table_filter,ip6table_raw,ip6table_nat,ip6table_mangle,ip6table_security
ip6table_security      16384  1
ip6t_REJECT            16384  2
ip6t_rpfilter          16384  1
ip_set                 53248  0
iptable_mangle         16384  1
iptable_nat            16384  1
iptable_raw            16384  1
iptable_security       16384  1
irqbypass              16384  1 kvm
iwlmvm                442368  0
iwlwifi               290816  1 iwlmvm
joydev                 28672  0
kfifo_buf              16384  1 industrialio_triggered_buffer
kvm                   745472  1 kvmgt
kvmgt                  32768  0
libcrc32c              16384  2 nf_conntrack,nf_nat
lpc_ich                28672  0
mac80211              937984  1 iwlmvm
mdev                   24576  1 kvmgt
media                  57344  4 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
mei                   118784  1 mei_txe
mei_txe                28672  0
mmc_block              53248  4
mmc_core              176128  3 sdhci,mmc_block,sdhci_acpi
Module                  Size  Used by
nf_conntrack          151552  7 xt_conntrack,nf_nat,nf_nat_ipv6,nf_conntrack_netbios_ns,nf_nat_ipv4,nf_conntrack_broadcast,xt_CT
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nf_conntrack_netbios_ns    16384  1
nf_defrag_ipv4         16384  1 nf_conntrack
nf_defrag_ipv6         24576  1 nf_conntrack
nf_nat                 40960  2 nf_nat_ipv6,nf_nat_ipv4
nf_nat_ipv4            16384  1 iptable_nat
nf_nat_ipv6            16384  1 ip6table_nat
nfnetlink              16384  1 ip_set
nf_reject_ipv6         20480  1 ip6t_REJECT
pcc_cpufreq            20480  0
processor_thermal_device    16384  0
pwm_lpss               16384  1 pwm_lpss_platform
pwm_lpss_platform      16384  0
rfkill                 28672  7 hp_wmi,bluetooth,cfg80211
roles                  16384  1 intel_xhci_usb_role_switch
sdhci                  65536  1 sdhci_acpi
sdhci_acpi             24576  0
snd                    94208  19 snd_seq,snd_soc_sst_bytcr_rt5640,snd_seq_device,snd_timer,snd_compress,snd_hdmi_lpe_audio,snd_soc_sst_atom_hifi2_platform,snd_soc_core,snd_pcm
snd_compress           28672  1 snd_soc_core
snd_hdmi_lpe_audio     32768  2
snd_intel_sst_acpi     20480  1
snd_intel_sst_core     65536  1 snd_intel_sst_acpi
snd_pcm               118784  6 snd_soc_sst_bytcr_rt5640,snd_soc_rt5640,snd_hdmi_lpe_audio,snd_soc_sst_atom_hifi2_platform,snd_soc_core,snd_pcm_dmaengine
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_seq                86016  0
snd_seq_device         16384  1 snd_seq
snd_soc_acpi           16384  3 snd_soc_sst_bytcr_rt5640,snd_soc_acpi_intel_match,snd_intel_sst_acpi
snd_soc_acpi_intel_match    28672  1 snd_intel_sst_acpi
snd_soc_core          274432  3 snd_soc_sst_bytcr_rt5640,snd_soc_rt5640,snd_soc_sst_atom_hifi2_platform
snd_soc_rl6231         20480  1 snd_soc_rt5640
snd_soc_rt5640        126976  2 snd_soc_sst_bytcr_rt5640
snd_soc_sst_atom_hifi2_platform   106496  2 snd_intel_sst_core
snd_soc_sst_bytcr_rt5640    40960  3
snd_timer              40960  2 snd_seq,snd_pcm
soc_button_array       20480  0
soundcore              16384  1 snd
sparse_keymap          16384  2 hp_wmi,intel_vbtn
spi_pxa2xx_platform    32768  0
sunrpc                430080  1
uas                    28672  0
usb_storage            73728  2 uas
uvcvideo              114688  0
vfat                   20480  2
vfio                   36864  1 kvmgt
video                  49152  1 i915
videobuf2_common       57344  2 videobuf2_v4l2,uvcvideo
videobuf2_memops       20480  1 videobuf2_vmalloc
videobuf2_v4l2         28672  1 uvcvideo
videobuf2_vmalloc      20480  1 uvcvideo
videodev              229376  3 videobuf2_v4l2,uvcvideo,videobuf2_common
wdat_wdt               20480  0
wmi                    32768  2 hp_wmi,wmi_bmof
wmi_bmof               16384  0
xt_conntrack           16384  21
xt_CT                  16384  1

As an experiment, have you tried setting logind.conf parameters to “ignore” then putting the notebook into suspend manually and then closing the lid?

I ask this since I had a notebook with a “jumpy” lid switch and that is what I ended up having to do.

@egreshko “jumpy” switch, huh? Setting “ignore”? I shall try that.

Tries that

Didn’t work. I pressed the power button to suspend the notebook, and then closed the lid. From the looks of the output from a script I placed in /etc/systemd/system-sleep, the system slept for about 12 seconds, woke up for a few seconds, then went to sleep, and woke up again after about 10 seconds.

May as well mention that the dmesg output mentions the following line: ACPI: button: the lid device is not compliant to SW_LID.