Suspend problems, broken dsdt table

I tried all the kernels from 515LTS up to the newest experimental one and the suspend problems are all the same.

Here is the inxi output:

inxi -zav7
                                                                                                                                                                                     
System:
  Kernel: 6.3.5-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.3-x86_64
    root=UUID=0fae45e7-a05d-4151-bd5b-9720ebc67797 rw quiet splash apparmor=1
    security=apparmor resume=UUID=e6409053-0f84-4a27-80f7-ba2108682f0a
    udev.log_priority=3
  Desktop: GNOME v: 44.1 tk: GTK v: 3.24.37 wm: gnome-shell dm: GDM v: 44.1
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP EliteBook 840 14 inch G9 Notebook PC
    v: N/A serial: <superuser required> Chassis: type: 10
    serial: <superuser required>
  Mobo: HP model: 8ABB v: KBC Version 20.5E.00 serial: <superuser required>
    UEFI: HP v: U71 Ver. 01.05.00 date: 01/04/2023
Battery:
  ID-1: BAT0 charge: 27.4 Wh (69.0%) condition: 39.7/51.3 Wh (77.5%)
    volts: 12.5 min: 11.6 model: Hewlett-Packard Primary type: Li-ion
    serial: <filter> status: charging cycles: 80
Memory:
  System RAM: available: 14.88 GiB used: 5.29 GiB (35.6%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges
    required.
CPU:
  Info: model: 12th Gen Intel Core i5-1235U bits: 64 type: MST AMCP
    arch: Alder Lake level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 4
    microcode: 0x42A
  Topology: cpus: 1x cores: 10 mt: 2 tpc: 2 st: 8 threads: 12 smt: enabled
    cache: L1: 1.1 MiB desc: d-8x32 KiB, 4x48 KiB; i-4x32 KiB, 8x64 KiB
    L2: 21 MiB desc: 4x1.2 MiB, 8x2 MiB L3: 144 MiB desc: 12x12 MiB
  Speed (MHz): avg: 2500 min/max: 400/4400:3300 scaling:
    driver: intel_pstate governor: performance cores: 1: 2500 2: 2500 3: 2500
    4: 2500 5: 2500 6: 2500 7: 2500 8: 2500 9: 2500 10: 2500 11: 2500 12: 2500
    bogomips: 59916
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_lbr arch_perfmon art avx avx2 avx_vnni bmi1 bmi2
    bts clflush clflushopt clwb cmov constant_tsc cpuid cpuid_fault cx16 cx8
    de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est f16c flexpriority
    flush_l1d fma fpu fsgsbase fsrm fxsr gfni hfi ht hwp hwp_act_window
    hwp_epp hwp_notify hwp_pkg_req ibpb ibrs ibrs_enhanced ibt ida intel_pt
    invpcid lahf_lm lm mca mce md_clear mmx monitor movbe movdir64b movdiri
    msr mtrr nonstop_tsc nopl nx ospke pae pat pbe pclmulqdq pdcm pdpe1gb
    pebs pge pku pln pni popcnt pse pse36 pts rdpid rdrand rdseed rdtscp
    rep_good sdbg sep serialize sha_ni smap smep smx split_lock_detect ss
    ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc
    tsc_adjust tsc_deadline_timer tsc_known_freq umip vaes vme vmx vnmi
    vpclmulqdq vpid waitpkg x2apic xgetbv1 xsave xsavec xsaveopt xsaves
    xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced / Automatic IBRS, IBPB:
    conditional, RSB filling, PBRSB-eIBRS: SW sequence
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel Alder Lake-UP3 GT2 [Iris Xe Graphics]
    vendor: Hewlett-Packard driver: i915 v: kernel arch: Gen-12.2
    process: Intel 10nm built: 2021-22+ ports: active: eDP-1 empty: DP-1,
    DP-2, DP-3, DP-4, HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:46a8
    class-ID: 0300
  Device-2: Quanta HP 5MP Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-1:2 chip-ID: 0408:545b
    class-ID: 0e02 serial: <filter>
  Display: x11 server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
    compositor: gnome-shell driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: iris gpu: i915 display-ID: :1 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-size: <missing: xdpyinfo>
  Monitor-1: eDP-1 model: LG Display 0x06df built: 2021 res: 1920x1200
    hz: 60 dpi: 161 gamma: 1.2 size: 302x188mm (11.89x7.4") diag: 356mm (14")
    ratio: 16:10 modes: 1920x1200
  API: OpenGL v: 4.6 Mesa 23.0.4 renderer: Mesa Intel Graphics (ADL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio
    vendor: Hewlett-Packard driver: sof-audio-pci-intel-tgl
    alternate: snd_hda_intel,snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8 class-ID: 0401
  API: ALSA v: k6.3.5-2-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: JACK v: 1.9.22 status: off tools: N/A
  Server-3: PipeWire v: 0.3.70 status: off tools: pw-cli
  Server-4: PulseAudio v: 16.1 status: active with: pulseaudio-alsa
    type: plugin tools: pacat,pactl,pavucontrol
Network:
  Device-1: Intel Alder Lake-P PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:51f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  IF-ID-1: wwan0 state: down mac: N/A
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel driver: btusb v: 0.8 type: USB rev: 2.0 speed: 12 Mb/s
    lanes: 1 mode: 1.1 bus-ID: 3-10:4 chip-ID: 8087:0033 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 6 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 476.94 GiB used: 40.06 GiB (8.4%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung
    model: MZVLQ512HBLU-00BH1 size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: HPS1NFAV temp: 32.9 C scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 459.85 GiB size: 451.56 GiB (98.20%)
    used: 38.78 GiB (8.6%) fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2
    label: N/A uuid: 0fae45e7-a05d-4151-bd5b-9720ebc67797
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 58.4 MiB (19.5%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
    label: NO_LABEL uuid: 408B-0094
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 16.8 GiB used: 1.22 GiB (7.3%)
    priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3 label: swap
    uuid: e6409053-0f84-4a27-80f7-ba2108682f0a
Unmounted:
  Message: No unmounted partitions found.
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 1 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Hub-2: 2-0:1 info: super-speed hub ports: 3 rev: 3.1
    speed: 20 Gb/s (2.33 GiB/s) lanes: 2 mode: 3.2 gen-2x2 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 12 rev: 2.0
    speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0 chip-ID: 1d6b:0002
    class-ID: 0900
  Device-1: 3-1:2 info: Quanta HP 5MP Camera type: video driver: uvcvideo
    interfaces: 4 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0
    power: 500mA chip-ID: 0408:545b class-ID: 0e02 serial: <filter>
  Device-2: 3-7:10 info: Synaptics type: <vendor specific> driver: N/A
    interfaces: 1 rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1
    power: 100mA chip-ID: 06cb:00f0 class-ID: ff00 serial: <filter>
  Device-3: 3-10:4 info: Intel type: bluetooth driver: btusb interfaces: 2
    rev: 2.0 speed: 12 Mb/s (1.4 MiB/s) lanes: 1 mode: 1.1 power: 100mA
    chip-ID: 8087:0033 class-ID: e001
  Hub-4: 4-0:1 info: super-speed hub ports: 4 rev: 3.1
    speed: 10 Gb/s (1.16 GiB/s) lanes: 1 mode: 3.2 gen-2x1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 50.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 329 Uptime: 3d 22h 37m wakeups: 60189 Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7
  Packages: 1741 pm: pacman pkgs: 1716 libs: 362 tools: gnome-software,pamac
  pm: flatpak pkgs: 18 pm: snap pkgs: 7 Shell: Zsh v: 5.9
  running-in: gnome-terminal inxi: 3.3.27

you can try add some acpi parameters, so first check:
first check:

sudo strings /sys/firmware/acpi/tables/DSDT | grep -i 'windows ' | sort | tail -1

it will output some windows version, and now add it to grub:
/etc/default/grub
and in this line: GRUB_CMDLINE_LINUX_DEFAULT inside the quotes add these parameters:

acpi_osi=! acpi_osi='Windows 2015'

where Windows 2015 will be replaced with the output from the sudo strings commandā€¦
dont remove any parameters, add them to existing ones;
save the file and update grub:
sudo update-grub
reboot and test

if the sudo strings version doesnt work, try with different one:

acpi_osi=! acpi_osi='Windows 2012'

save grub, update grub, reboot and testā€¦


did you tried suspending with unplugged keyboard?

I tried a couple strings that I found in the dsdt file, the ones that represent the systems this laptop comes with, and nothing changed with the suspend issue.

Its a laptop so I canā€™t really do that

check in bios:
if fast boot is disabled, you may not have this option;
and if you are using windows, check if fast startup is disabled;
also in bios check if you have enabled this setting:
Advanced Options > Built-in device options > Wake unit from sleep when lid is opened

also do you have tlp installed? check with:
pacman -Qs tlp
if yes, remove it:
sudo pacman -Rcns tlp
reboot and testā€¦

if it still happens, boot into manjaro live usb, and test suspending there

Iā€™m using manjaro, I tired to suspend with fast boot disabled in the bios and nothing changed (keyboard still doesnā€™t work)

The only option I have in BIOS regarding the lid is Turn on when lid is opened, my laptop wakes up normally when opening the lid while in s2idle sleep so I guess its on by default and unchangable.
(s2idle also has issues as when using it sometimes the computer will not wake up at all, the fans are running but screen is black)
Also when waking up from deep sleep I do it by pressing the powerbutton so I donā€™t think lid is related to the issue.

Yes I have it, turned it off rebooted and nothing changed

I tested many live usb distros and all of them face the same issues (ubuntu, manjaro, endeavour)

Hello @Siema :wink:

Before fiddling hereā€¦ could you test if suspend-to-ram (S3) (linux: deep) works on Windows? Since this laptop has only support for Windows it would be a better idea to test first there. If only suspend-to-idle (S0) (linux: s2idle) works, then there is actually no chance to use S3. Some Vendors already removed S3 completely from the firmware, not only hiding it. And the errors could be a sign of it.

Beside thatā€¦

There seems to be a newer firmware available: 01.07.00 Rev.A

https://support.hp.com/us-en/drivers/selfservice/swdetails/hp-elitebook-840-14-inch-g9-notebook-pc/2101000805/swItemId/ob-309757-1

Possibly that could fix it. Give it a try :man_shrugging:

Could I do that with a bootable usb? Or do I need to uninstall my whole system?

The problem for me is that neither of the suspends work correctly, Iā€™ll be fine using either one and just hibernating my laptop for the long periods but the s2idle likes to randomly break and just not wake back up and the deep one wakes up every time but without the keyboard.

Thats a wierd one, I tried to update my laptop bios after 1.07 released and I thought I had it downloaded but it seems that something went wrong.
Iā€™ll try to get this new version and will report back.

Edit:
Updated my BIOS, thanks for noticing, the deep sleep issue hasnā€™t changed but I will try to test s2idle to chceck if it still randomly breaks.
I canā€™t test the suspend on windows as I will need to get a bigger USB so Iā€™ll test it tommorow.

No idea. Maybe a WinPE live session could work. I donā€™t know.

Yes I understand the dilemma. I generally donā€™t use s2idle whenever possible, but I can use it.

Meanwhile, I have tested s2idle on a ā€œHP EliteDesk 800 G4 miniā€. deep and s2idle works as expected.

s2idle

Jul 12 23:00:56 Elitedesk systemd[1]: Starting System Suspend...
Jul 12 23:00:57 Elitedesk systemd-sleep[59787]: Entering sleep state 'suspend'...
Jul 12 23:00:57 Elitedesk kernel: PM: suspend entry (s2idle)
Jul 12 23:01:06 Elitedesk kernel: Filesystems sync: 0.909 seconds
Jul 12 23:01:06 Elitedesk kernel: Freezing user space processes
Jul 12 23:01:06 Elitedesk kernel: Freezing user space processes completed (elapsed 0.002 seconds)
Jul 12 23:01:06 Elitedesk kernel: OOM killer disabled.
Jul 12 23:01:06 Elitedesk kernel: Freezing remaining freezable tasks
Jul 12 23:01:06 Elitedesk kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
Jul 12 23:01:06 Elitedesk kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Jul 12 23:01:06 Elitedesk kernel: e1000e: EEE TX LPI TIMER: 00000011
Jul 12 23:01:06 Elitedesk kernel: ACPI: EC: interrupt blocked
Jul 12 23:01:06 Elitedesk kernel: intel_pch_thermal 0000:00:12.0: CPU-PCH is cool [45C]
Jul 12 23:01:06 Elitedesk kernel: ACPI: EC: interrupt unblocked
Jul 12 23:01:06 Elitedesk kernel: usb 1-5: reset high-speed USB device number 2 using xhci_hcd
Jul 12 23:01:06 Elitedesk kernel: ata2: SATA link down (SStatus 4 SControl 300)
Jul 12 23:01:06 Elitedesk kernel: OOM killer enabled.
Jul 12 23:01:06 Elitedesk systemd-sleep[59787]: System returned from sleep state.
Jul 12 23:01:06 Elitedesk kernel: Restarting tasks ... done.
Jul 12 23:01:06 Elitedesk kernel: random: crng reseeded on system resumption
Jul 12 23:01:06 Elitedesk kernel: PM: suspend exit
Jul 12 23:01:06 Elitedesk NetworkManager[1112]: <info>  [1689195666.4761] device (eno1): state change: disconnected -> unavailable (reason 'carrier-changed', sys-iface-state: 'managed')
Jul 12 23:01:06 Elitedesk systemd[1]: systemd-suspend.service: Deactivated successfully.
Jul 12 23:01:06 Elitedesk systemd[1]: Finished System Suspend.

deep

Jul 12 19:21:43 Elitedesk systemd[1]: Starting System Suspend...
Jul 12 19:21:43 Elitedesk systemd-sleep[35721]: Entering sleep state 'suspend'...
Jul 12 19:21:43 Elitedesk kernel: PM: suspend entry (deep)
Jul 12 19:32:09 Elitedesk kernel: Filesystems sync: 0.033 seconds
Jul 12 19:32:09 Elitedesk kernel: Freezing user space processes
Jul 12 19:32:09 Elitedesk kernel: Freezing user space processes completed (elapsed 0.003 seconds)
Jul 12 19:32:09 Elitedesk kernel: OOM killer disabled.
Jul 12 19:32:09 Elitedesk kernel: Freezing remaining freezable tasks
Jul 12 19:32:09 Elitedesk kernel: Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
Jul 12 19:32:09 Elitedesk kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Jul 12 19:32:09 Elitedesk kernel: e1000e: EEE TX LPI TIMER: 00000011
Jul 12 19:32:09 Elitedesk kernel: ACPI: EC: interrupt blocked
Jul 12 19:32:09 Elitedesk kernel: ACPI: PM: Preparing to enter system sleep state S3
Jul 12 19:32:09 Elitedesk kernel: ACPI: EC: event blocked
Jul 12 19:32:09 Elitedesk kernel: ACPI: EC: EC stopped
Jul 12 19:32:09 Elitedesk kernel: ACPI: PM: Saving platform NVS memory
Jul 12 19:32:09 Elitedesk kernel: Disabling non-boot CPUs ...
Jul 12 19:32:09 Elitedesk kernel: smpboot: CPU 1 is now offline
Jul 12 19:32:09 Elitedesk kernel: smpboot: CPU 2 is now offline
Jul 12 19:32:09 Elitedesk kernel: smpboot: CPU 3 is now offline
Jul 12 19:32:09 Elitedesk kernel: smpboot: CPU 4 is now offline
Jul 12 19:32:09 Elitedesk kernel: smpboot: CPU 5 is now offline
Jul 12 19:32:09 Elitedesk kernel: ACPI: PM: Low-level resume complete
Jul 12 19:32:09 Elitedesk kernel: ACPI: EC: EC started
Jul 12 19:32:09 Elitedesk kernel: ACPI: PM: Restoring platform NVS memory
Jul 12 19:32:09 Elitedesk kernel: Enabling non-boot CPUs ...
Jul 12 19:32:09 Elitedesk kernel: x86: Booting SMP configuration:
Jul 12 19:32:09 Elitedesk kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
Jul 12 19:32:09 Elitedesk kernel: CPU1 is up
Jul 12 19:32:09 Elitedesk kernel: smpboot: Booting Node 0 Processor 2 APIC 0x4
Jul 12 19:32:09 Elitedesk kernel: CPU2 is up
Jul 12 19:32:09 Elitedesk kernel: smpboot: Booting Node 0 Processor 3 APIC 0x6
Jul 12 19:32:09 Elitedesk kernel: CPU3 is up
Jul 12 19:32:09 Elitedesk kernel: smpboot: Booting Node 0 Processor 4 APIC 0x8
Jul 12 19:32:09 Elitedesk kernel: CPU4 is up
Jul 12 19:32:09 Elitedesk kernel: smpboot: Booting Node 0 Processor 5 APIC 0xa
Jul 12 19:32:09 Elitedesk kernel: CPU5 is up
Jul 12 19:32:09 Elitedesk kernel: ACPI: PM: Waking up from system sleep state S3
Jul 12 19:32:09 Elitedesk kernel: ACPI: EC: interrupt unblocked
Jul 12 19:32:09 Elitedesk kernel: ACPI: EC: event unblocked
Jul 12 19:32:09 Elitedesk kernel: i915 0000:00:02.0: [drm] [ENCODER:94:DDI B/PHY B] is disabled/in DSI mode with an ungated DDI clock, gate it
Jul 12 19:32:09 Elitedesk kernel: i915 0000:00:02.0: [drm] [ENCODER:111:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it
Jul 12 19:32:09 Elitedesk kernel: i915 0000:00:02.0: [drm] [ENCODER:121:DDI D/PHY D] is disabled/in DSI mode with an ungated DDI clock, gate it
Jul 12 19:32:09 Elitedesk kernel: nvme nvme0: 6/0/0 default/read/poll queues
Jul 12 19:32:09 Elitedesk kernel: nvme nvme0: Ignoring bogus Namespace Identifiers
Jul 12 19:32:09 Elitedesk kernel: usb 1-5: reset high-speed USB device number 2 using xhci_hcd
Jul 12 19:32:09 Elitedesk kernel: ata2: SATA link down (SStatus 4 SControl 300)
Jul 12 19:32:09 Elitedesk kernel: OOM killer enabled.
Jul 12 19:32:09 Elitedesk kernel: Restarting tasks ... done.
Jul 12 19:32:09 Elitedesk kernel: random: crng reseeded on system resumption
Jul 12 19:32:09 Elitedesk kernel: PM: suspend exit
Jul 12 19:32:09 Elitedesk systemd-sleep[35721]: System returned from sleep state.
Jul 12 19:32:09 Elitedesk NetworkManager[1112]: <info>  [1689183129.3564] device (eno1): state change: disconnected -> unavailable (reason 'carrier-changed', sys-iface-state: 'managed')
Jul 12 19:32:09 Elitedesk systemd[1]: systemd-suspend.service: Deactivated successfully.
Jul 12 19:32:09 Elitedesk systemd[1]: Finished System Suspend.

Maybe that doesnā€™t help. But at least I can say, that it generally works, when the firmware is not broken.

Thanks for the effort,

Reading your deep logs it looks generally the same (except for all the erros ā€¦), but I noticed that i8042 fails for some reason in my logs and as far as Iā€™m aware toghether with i915 it is responsible for keyboard and touchpad control.
i915 seems to be working fine while i8042 gives me a error of -19

lip 12 22:53:48 siema kernel: i8042: i8042 controller selftest timeout
lip 12 22:53:48 siema kernel: i8042 i8042: PM: dpm_run_callback(): platform_pm_resume+0x0/0x50 returns -19
lip 12 22:53:48 siema kernel: i8042 i8042: PM: failed to resume: error -19

I feel like this is the part that causes the keyboard to not work. Iā€™m just not able to find anything about error -19 on the internet so I donā€™t even know what could casue it.

Simply look it up:

$ errno 19 
ENODEV 19 No such device

It seems not be able to find the device, which were known before. But that is firmware related and probably a bug. You could try to disable ASPM, since touchpads and keyboards are connected via PCIE on notebooks.

This kernel parameter disables it completely: pcie_aspm=off

Thanks for the lessons, I didnā€™t know such a thing exsisted.

I added this parameter to my grub boot parameters and tried to do the suspend in the isolated env and nothing changed regarding the i8042 error

Edit:
Also offtopic but I find it suspicous that this exists:
https://ubuntu.com/certified/202203-30041

And in the notes section the only thing that is mentioned is this:

Notes
WWAN device is not supported on this machine

Which makes it look like the suspend thereticly should work on ubuntu? But I tested it on the live env ubuntu and it didnā€™t work
I donā€™t know how trustable the ubuntu certification is

if this is the issue, you can try the following kernel parameters:
i8042.nomux i8042.reset
update grub, reboot and testā€¦

if you still have issue, try also adding this parameter:
atkbd.reset
update grub, reboot and test

Well, it is not really off-topic. There is the HWE kernel, which comes with LTS releases and OEM Kernels, which were patched for very specific hardware, especially for new hardware, which has no support in the mainline kernel yet. So I guess they patched it in their kernel. You can install the OEM kernel in Ubuntu. :man_shrugging:

https://wiki.ubuntu.com/Kernel/OEMKernel

1 Like

Added this in the grub editor while booting the pc (coz I feared adding it in permanently would cause hard to fix problems without additional keyboard) and the error didnā€™t change.

Is it aviable only in ubuntu and I cannot try it in manjaro?
If so could I just test it in the bootable env?

Only Ubuntu.

Noā€¦ at least only if the kernel is the OEM one, what is in general not the case.

So at the end I think deep sleep is unsupported.

I looked at the OEM kernel changes and saw some s2idle related fixes for HP laptops and none for deep sleep so its seems that if the OEM kernel devs are not doing anything about it the s2idle is the only option accessible. (or Iā€™m bad at searching for things which is also likely)

I made a live usb with ubuntu with OEM kernel installed using Cubic (btw uname -r showed me the oem kernel in the laptop so I assume that it worked) and I tried out deep sleep with it and it still had the same issues, specifically the keyboard not working and the whole system in general seemed to be more crash prone after deep sleep.

Do you perhaps know if the changes made in this kernel go into the mainline and if so how long it takes?
I had some other kernel related issues that I saw were fixed on the OEM and later I got the fixes in the main kernel that I have on my laptop so I assume that the main kernel takes some bits from them?

Also I was unable to test s2idle correctly in the live env as I still donā€™t know what causes it to fail, it can sit for 40 minutes untouched one time and not break and other times it will break with the same apps open.

do you have actually the deep sleep available? check if deep is listed:
cat /sys/power/mem_sleep

if yes, you can try also these parameters:
i8042.nomux=1 i8042.reset=1 atkbd.reset=1

also you can try modprobe the module during suspend;
create this script:
sudo nano /usr/lib/systemd/system-sleep/fix_i8042.sh
and put there this:

#!/bin/sh
case $1/$2 in
  pre/*)
    echo "Removing 'i8042' for $2..."
    modprobe -r i8042
    ;;
  post/* )
    echo "Waking up from $2 , adding 'i8042' ..."
    modprobe i8042
    ;;
esac

save it with ctrl+x, press ā€˜yā€™, then enter;
then navigate to the folder and open terminal in the system-sleep folder and run:
chmod a+x fix_i8042.sh
./fix_i8042.sh
reboot and check

No, sorry. It takes how long it takes. Canonical is not one of the top contributor of the kernel. Maybe some patches, they made to the OEM kernel, can be decline. :man_shrugging:

Yes, it is avialbe here:

cat /sys/power/mem_sleep                                       
[s2idle] deep

(I knotw currently s2 is enabled but every time Iā€™m testing I change it temporarly)

Are they diffrent in anyway from the ones before?
Update: Tried it, keyboard issue still present

Did that, the issue with the keyboard wasnā€™t fix but the errors changed:

lip 13 18:00:22 siema systemd-sleep[2904]: Waking up from suspend , adding 'i8042' ...
lip 13 18:00:22 siema systemd-sleep[2906]: Error: TLP power save is disabled. Set TLP_ENABLE=1 in /etc/tlp.conf.
lip 13 18:00:22 siema (sd-executor)[2903]: /usr/lib/systemd/system-sleep/tlp failed with exit status 1.
lip 13 18:00:25 siema kernel: i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
lip 13 18:00:25 siema kernel: i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
lip 13 18:00:25 siema kernel: i8042: Can't read CTR while initializing i8042
lip 13 18:00:25 siema kernel: i8042: probe of i8042 failed with error -5

there are these logs related to tlpā€¦


and you have this:

so test it with the mentioned parameter:
i8042.nopnp


and what exact modules are depending on the i8042 module:
lsmod | grep i8042


also check dmesg after suspend:
sudo dmesg -l warn+