Huawei d16 suspend to sleep

Hi all!

I have permanent problem with suspend laptop to s2idle.
So, after press “KDE sleep” or lid close, I have black screen and freeze. Fn and Cals is on. Cooling system is on.

inxi -zav7
System:
  Kernel: 6.1.38-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=0a332c60-2018-43c5-adfb-ae626f733e4c rw quiet
    cryptdevice=UUID=02399a1f-a34f-4854-9c75-8f0bdb32fdd5:luks-02399a1f-a34f-4854-9c75-8f0bdb32fdd5
    root=/dev/mapper/luks-02399a1f-a34f-4854-9c75-8f0bdb32fdd5 splash
    udev.log_priority=3 ibt=off mem_sleep_default=deep nowatchdog
  Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_x11 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HUAWEI product: RLEF-XX v: M1010 serial: <filter>
  Mobo: HUAWEI model: RLEF-XX-PCB v: M1010 serial: <filter> UEFI: HUAWEI
    v: 1.26 date: 01/30/2023
Battery:
  ID-1: BAT0 charge: 32.5 Wh (53.5%) condition: 60.8/59.4 Wh (102.3%)
    power: 33.9 W volts: 12.3 min: 11.6 model: DESAY HB5781P1EEW-31T
    type: Li-ion serial: <filter> status: charging cycles: 4
Memory:
  System RAM: total: 16 GiB available: 15.36 GiB used: 3.15 GiB (20.5%)
    igpu: 60 MiB
  Array-1: capacity: 16 GiB slots: 8 modules: 8 EC: None
    max-module-size: 2 GiB note: est.
  Device-1: Controller0-ChannelA type: LPDDR4 detail: synchronous
    size: 2 GiB speed: spec: 4267 MT/s actual: 3733 MT/s volts: curr: 0.6
    width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
    serial: N/A
  Device-2: Controller0-ChannelB type: LPDDR4 detail: synchronous
    size: 2 GiB speed: spec: 4267 MT/s actual: 3733 MT/s volts: curr: 0.6
    width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
    serial: N/A
  Device-3: Controller0-ChannelC type: LPDDR4 detail: synchronous
    size: 2 GiB speed: spec: 4267 MT/s actual: 3733 MT/s volts: curr: 0.6
    width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
    serial: N/A
  Device-4: Controller0-ChannelD type: LPDDR4 detail: synchronous
    size: 2 GiB speed: spec: 4267 MT/s actual: 3733 MT/s volts: curr: 0.6
    width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
    serial: N/A
  Device-5: Controller1-ChannelA type: LPDDR4 detail: synchronous
    size: 2 GiB speed: spec: 4267 MT/s actual: 3733 MT/s volts: curr: 0.6
    width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
    serial: N/A
  Device-6: Controller1-ChannelB type: LPDDR4 detail: synchronous
    size: 2 GiB speed: spec: 4267 MT/s actual: 3733 MT/s volts: curr: 0.6
    width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
    serial: N/A
  Device-7: Controller1-ChannelC type: LPDDR4 detail: synchronous
    size: 2 GiB speed: spec: 4267 MT/s actual: 3733 MT/s volts: curr: 0.6
    width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
    serial: N/A
  Device-8: Controller1-ChannelD type: LPDDR4 detail: synchronous
    size: 2 GiB speed: spec: 4267 MT/s actual: 3733 MT/s volts: curr: 0.6
    width (bits): data: 64 total: 64 manufacturer: N/A part-no: N/A
    serial: N/A
CPU:
  Info: model: 12th Gen Intel Core i5-12450H bits: 64 type: MST AMCP
    arch: Alder Lake gen: core 12 level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
    microcode: 0x42A
  Topology: cpus: 1x cores: 8 mt: 4 tpc: 2 st: 4 threads: 12 smt: enabled
    cache: L1: 704 KiB desc: d-4x32 KiB, 4x48 KiB; i-4x32 KiB, 4x64 KiB
    L2: 7 MiB desc: 4x1.2 MiB, 1x2 MiB L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 1099 high: 2500 min/max: 400/4400:3300
    base/boost: 4059/4400 scaling: driver: intel_pstate governor: powersave
    volts: 1.2 V ext-clock: 100 MHz cores: 1: 778 2: 627 3: 777 4: 2500 5: 574
    6: 2500 7: 564 8: 2500 9: 559 10: 630 11: 619 12: 569 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 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 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-P GT1 [UHD Graphics] vendor: Huawei driver: i915
    v: kernel arch: Gen-12.2 process: Intel 10nm built: 2021-22+ ports:
    active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2 bus-ID: 00:02.0
    chip-ID: 8086:46a3 class-ID: 0300
  Device-2: Quanta FHD Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-7:2 chip-ID: 0408:1060
    class-ID: fe01 serial: <filter>
  Display: server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
    compositor: kwin_x11 driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96 s-size: 508x317mm (20.00x12.48")
    s-diag: 599mm (23.57")
  Monitor-1: eDP-1 model: BOE Display 0x0a74 built: 2021 res: 1920x1200
    hz: 60 dpi: 141 gamma: 1.2 size: 345x215mm (13.58x8.46") diag: 407mm (16")
    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: Huawei
    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.1.38-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 0.3.74 status: n/a (root, process) with: wireplumber
    status: active tools: pw-cli,wpctl
  Server-3: PulseAudio v: 16.1 status: active (root, process)
    with: pulseaudio-alsa type: plugin tools: pacat,pactl
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
  WAN IP: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-10:3 chip-ID: 8087:0026
    class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
  Device-1: luks-02399a1f-a34f-4854-9c75-8f0bdb32fdd5 maj-min: 254:0
    type: LUKS dm: dm-0 size: 476.64 GiB
  Components:
  p-1: nvme0n1p2 maj-min: 259:2 size: 476.64 GiB
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 476.94 GiB used: 240.82 GiB (50.5%)
  ID-1: /dev/nvme0n1 maj-min: 259:0 model: PCIe-8 SSD 512GB 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: YM00D216 temp: 37.9 C scheme: GPT
  SMART: yes health: PASSED on: 61 hrs cycles: 73
    read-units: 2,969,865 [1.52 TB] written-units: 1,712,265 [876 GB]
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%)
    used: 240.81 GiB (51.4%) fs: ext4 block-size: 4096 B dev: /dev/dm-0
    maj-min: 254:0 mapped: luks-02399a1f-a34f-4854-9c75-8f0bdb32fdd5
    label: N/A uuid: 0a332c60-2018-43c5-adfb-ae626f733e4c
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 11.4 MiB (3.8%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
    maj-min: 259:1 label: N/A uuid: 5529-4233
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 20 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
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-7:2 info: Quanta FHD Camera type: video driver: uvcvideo
    interfaces: 3 rev: 2.0 speed: 480 Mb/s (57.2 MiB/s) lanes: 1 mode: 2.0
    power: 500mA chip-ID: 0408:1060 class-ID: fe01 serial: <filter>
  Device-2: 3-10:3 info: Intel AX201 Bluetooth 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:0026 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: 40.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 284 Uptime: 12m wakeups: 1 Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7
  Packages: pm: pacman pkgs: 1260 libs: 372 tools: pamac Shell: Bash (sudo)
  v: 5.1.16 running-in: konsole inxi: 3.3.28
journalctl --boot -2 | sed -n -r "/Starting.+Suspend/,/Finished.+Suspend/p"
июл 22 09:22:03 apanyovin-hw systemd[1]: Starting System Suspend...
июл 22 09:22:03 apanyovin-hw wpa_supplicant[1082]: p2p-dev-wlp0s20: CTRL-EVENT-DSCP-POLICY clear_all
июл 22 09:22:03 apanyovin-hw wpa_supplicant[1082]: p2p-dev-wlp0s20: CTRL-EVENT-DSCP-POLICY clear_all
июл 22 09:22:03 apanyovin-hw wpa_supplicant[1082]: nl80211: deinit ifname=p2p-dev-wlp0s20 disabled_11b_rates=0
июл 22 09:22:03 apanyovin-hw wpa_supplicant[1082]: wlp0s20f3: CTRL-EVENT-DSCP-POLICY clear_all
июл 22 09:22:03 apanyovin-hw systemd-sleep[6218]: Entering sleep state 'suspend'...
июл 22 09:22:03 apanyovin-hw kernel: PM: suspend entry (deep)

Thanks!

Have you tried switching between s2idle and deep sleep?

Yes, I have tried s2idle and sleep.

After switch to s2idle and comment all lines in sleep.conf suspend is success.

Now wake up issue.
Error in journal on wake up. Is not saved after rebool.
error: nvme unable to change power state from d3cold to d0 device inaccessible
and the
error: boot-efi.mount: Failed to execute /usr/bin/umount: Input Output error

Hi all!

Sleep/wake up success!

/etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT = ... ibt=off mem_sleep_default=s2idle nvme_core.default_ps_max_latency_us=0

Then update-grub

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.