Weird sleep issue: laptop powers off if lid is close when sleeping

I recently got a Lenovo slim 7 gen 8 and installed manjaro i3 on it.

I am having a weird issue. The computer goes to sleep properly either when I execute systemctl suspend or when I close the lid. However, if I suspend and then close the lid it immediately powers off. It also powers off if I plug or unplug the charger while sleeping.
In both cases, immediately before it powers off, I think it momentarily tries to power on (at least the lights in the back turn on for a second or two as if the computer was on; they are off when the computer is suspended).

Besides this, I have had no issues. Everything else seems to be working fine.

This is the journalctl for one of these events. The computer seems to properly go to sleep and then I just have the next boot after shutting down.

dez 27 01:00:50 laptop wpa_supplicant[1191]: wlo1: CTRL-EVENT-DSCP-POLICY clear_all
dez 27 01:00:50 laptop systemd[1]: Reached target Sleep.
dez 27 01:00:50 laptop systemd[1]: Starting System Suspend...
dez 27 01:00:50 laptop wpa_supplicant[1191]: wlo1: CTRL-EVENT-DSCP-POLICY clear_all
dez 27 01:00:50 laptop wpa_supplicant[1191]: nl80211: deinit ifname=wlo1 disabled_11b_rates=0
dez 27 01:00:50 laptop systemd-sleep[398955]: Entering sleep state 'suspend'...
dez 27 01:00:50 laptop kernel: PM: suspend entry (s2idle)
-- Boot ed2f7b66970649bab7ba0ea74e423116 --

I couldn’t find anything relevant with dmesg --level=emerg,alert,crit,err :

[    0.292605] ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GP18.SATA], AE_NOT_FOUND (20230331/dswload2-162)
[    0.292612] ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20230331/psobject-220)
[    0.302003] ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.GPP6.WLAN._S0W], AE_ALREADY_EXISTS (20230331/dswload2-326)
[    0.302008] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20230331/psobject-220)
[    0.302021] ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.GPP7.DEV0._S0W], AE_ALREADY_EXISTS (20230331/dswload2-326)
[    0.302025] ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20230331/psobject-220)
[    8.277738] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed property cirrus,dev-index: -22
[    8.277743] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: error -EINVAL: Platform not supported
[    8.295792] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: Failed property cirrus,dev-index: -22
[    8.295797] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: error -EINVAL: Platform not supported

I have some experience with Linux but I don’t even know how to start debugging this. At this stage I would be happy if you could help me pinpoint at which level the issue is (BIOS, firmware, kernel, …). My main question is if this is a hardware issue and if I should return the laptop.

Besides the basic manjaro i3 install I used envycontrol to turn off the discrete GPU and I am using tlp to impose battery care limits and manage power modes. This is the tlp status:

--- TLP 1.6.1 --------------------------------------------

+++ Configured Settings:
defaults.conf L0006: TLP_ENABLE="1"
defaults.conf L0007: TLP_WARN_LEVEL="3"
defaults.conf L0008: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0009: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0010: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0011: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0012: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0013: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0014: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0015: NMI_WATCHDOG="0"
defaults.conf L0016: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0017: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0018: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0019: DISK_APM_CLASS_DENYLIST="usb ieee1394"
defaults.conf L0020: DISK_IOSCHED="keep keep"
defaults.conf L0021: SATA_LINKPWR_ON_AC="med_power_with_dipm"
defaults.conf L0022: SATA_LINKPWR_ON_BAT="med_power_with_dipm"
defaults.conf L0023: AHCI_RUNTIME_PM_ON_AC="on"
defaults.conf L0024: AHCI_RUNTIME_PM_ON_BAT="auto"
defaults.conf L0025: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0026: PCIE_ASPM_ON_AC="default"
defaults.conf L0027: PCIE_ASPM_ON_BAT="default"
/etc/tlp.conf L0322: RADEON_DPM_PERF_LEVEL_ON_AC="performance"
/etc/tlp.conf L0323: RADEON_DPM_PERF_LEVEL_ON_BAT="battery"
defaults.conf L0030: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0031: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0032: WIFI_PWR_ON_AC="off"
defaults.conf L0033: WIFI_PWR_ON_BAT="on"
defaults.conf L0034: WOL_DISABLE="Y"
defaults.conf L0035: SOUND_POWER_SAVE_ON_AC="1"
defaults.conf L0036: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0037: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0038: BAY_POWEROFF_ON_AC="0"
defaults.conf L0039: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0040: BAY_DEVICE="sr0"
defaults.conf L0041: RUNTIME_PM_ON_AC="on"
defaults.conf L0042: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0043: RUNTIME_PM_DRIVER_DENYLIST="mei_me nouveau radeon"
defaults.conf L0044: USB_AUTOSUSPEND="1"
defaults.conf L0045: USB_EXCLUDE_AUDIO="1"
defaults.conf L0046: USB_EXCLUDE_BTUSB="0"
defaults.conf L0047: USB_EXCLUDE_PHONE="0"
defaults.conf L0048: USB_EXCLUDE_PRINTER="1"
defaults.conf L0049: USB_EXCLUDE_WWAN="0"
defaults.conf L0050: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0051: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0052: NATACPI_ENABLE="1"
defaults.conf L0053: TPACPI_ENABLE="1"
defaults.conf L0054: TPSMAPI_ENABLE="1"
/etc/tlp.conf L0103: CPU_SCALING_GOVERNOR_ON_AC="performance"
/etc/tlp.conf L0104: CPU_SCALING_GOVERNOR_ON_BAT="powersave"
/etc/tlp.conf L0533: START_CHARGE_THRESH_BAT0="0"
/etc/tlp.conf L0534: START_CHARGE_THRESH_BAT1="0"
/etc/tlp.conf L0538: STOP_CHARGE_THRESH_BAT0="1"
/etc/tlp.conf L0539: STOP_CHARGE_THRESH_BAT1="1"

+++ System Info
System         = LENOVO Legion Slim 7 16APH8 82Y4
BIOS           = M1CN36WW
EC Firmware    = 1.36
OS Release     = Manjaro Linux
Kernel         = 6.5.13-7-MANJARO #1 SMP PREEMPT_DYNAMIC Wed Dec 20 07:15:58 UTC 2023 x86_64
/proc/cmdline  = BOOT_IMAGE=/boot/vmlinuz-6.5-x86_64 root=UUID=f05dd875-f7f0-4e0c-bfed-5b15b41560bc rw quiet apparmor=1 security=apparmor resume=UUID=ee37b027-83a7-471b-8b78-5dc45225b089 udev.log_priority=3
Init system    = systemd 
Boot mode      = UEFI
Suspend mode   = [s2idle]

+++ TLP Status
State          = enabled
RDW state      = not installed
Last run       = 14:22:37, 852 sec(s) ago
Mode           = battery
Power source   = battery

+++ Processor
CPU model      = AMD Ryzen 7 7840HS w/ Radeon 780M Graphics

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver    = amd-pstate-epp
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq  =   400000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq  =  5137000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq  =   400000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq  =  5137000 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference = balance_power [EPP]
/sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences = default performance balance_performance balance_power power 

/sys/devices/system/cpu/cpu1..cpu15: omitted for clarity, use -v to show all

/sys/devices/system/cpu/amd_pstate/status              = active
/sys/devices/system/cpu/amd_pstate/cppc_dynamic_boost  = (not available)
/sys/module/workqueue/parameters/power_efficient       = Y
/proc/sys/kernel/nmi_watchdog                          = 0

+++ Platform Profile
/sys/firmware/acpi/platform_profile                    = (not available)
/sys/firmware/acpi/platform_profile_choices            = (not available)

+++ Temperatures
Fan speed              = (not available)

+++ File System
/proc/sys/vm/laptop_mode               =     2
/proc/sys/vm/dirty_writeback_centisecs =  6000
/proc/sys/vm/dirty_expire_centisecs    =  6000
/proc/sys/vm/dirty_ratio               =    20
/proc/sys/vm/dirty_background_ratio    =    10

+++ Disks
Devices = nvme0n1 sda

/dev/nvme0n1:
  Type       = NVMe
  Disk ID    = nvme-KXG80ZNV1T02_LS_KIOXIA_X3BC11E7EV4U
  Model      = KXG80ZNV1T02 LS KIOXIA                  
  Firmware   = 4106APLS
  Temp       = 33 °C
  Scheduler  = [none] mq-deadline kyber bfq (multi queue)

  Runtime PM:
    /sys/block/nvme0n1/device/power/control = auto, autosuspend_delay_ms = (not available)

/dev/sda: not present.

+++ AMD Radeon Graphics
/sys/class/drm/card1/device/driver                                = amdgpu

/sys/class/drm/card1/device/power_dpm_force_performance_level     = auto

+++ Wireless
bluetooth = on
nfc       = none (no device)
wifi      = on
wwan      = none (no device)

hci0(btusb)                   : bluetooth, not connected
wlo1(mt7921e)                 : wifi, connected, power management = on

+++ Audio
/sys/module/snd_hda_intel/parameters/power_save            = 1
/sys/module/snd_hda_intel/parameters/power_save_controller = Y

+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = [default] performance powersave powersupersave

+++ PCIe Runtime Power Management
Enable devices    = (disabled)
Disable devices   = (disabled)
Device denylist   = (disabled)
Driver denylist   = mei_me nouveau radeon

/sys/bus/pci/devices/0000:00:00.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:00.2/power/control = auto (0x080600, IOMMU, no driver)
/sys/bus/pci/devices/0000:00:01.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:01.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:01.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:02.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:02.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:02.3/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:02.4/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:03.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:03.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:04.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:08.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:08.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:08.3/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:14.0/power/control = auto (0x0c0500, SMBus, piix4_smbus)
/sys/bus/pci/devices/0000:00:14.3/power/control = auto (0x060100, ISA bridge, no driver)
/sys/bus/pci/devices/0000:00:18.0/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.1/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.2/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.3/power/control = auto (0x060000, Host bridge, k10temp)
/sys/bus/pci/devices/0000:00:18.4/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.5/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.6/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:00:18.7/power/control = auto (0x060000, Host bridge, no driver)
/sys/bus/pci/devices/0000:02:00.0/power/control = auto (0x010802, Non-Volatile memory controller, nvme)
/sys/bus/pci/devices/0000:03:00.0/power/control = auto (0x028000, Network controller, mt7921e)
/sys/bus/pci/devices/0000:04:00.0/power/control = auto (0x080501, SD Host controller, sdhci-pci)
/sys/bus/pci/devices/0000:05:00.0/power/control = auto (0x010802, Non-Volatile memory controller, nvme)
/sys/bus/pci/devices/0000:65:00.0/power/control = auto (0x030000, VGA compatible controller, amdgpu)
/sys/bus/pci/devices/0000:65:00.1/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:65:00.2/power/control = auto (0x108000, Encryption controller, ccp)
/sys/bus/pci/devices/0000:65:00.3/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:65:00.4/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:65:00.5/power/control = auto (0x048000, Multimedia controller, snd_pci_ps)
/sys/bus/pci/devices/0000:65:00.6/power/control = auto (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:66:00.0/power/control = auto (0x130000, Non-Essential Instrumentation [1300], no driver)
/sys/bus/pci/devices/0000:67:00.0/power/control = auto (0x130000, Non-Essential Instrumentation [1300], no driver)
/sys/bus/pci/devices/0000:67:00.3/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:67:00.4/power/control = auto (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:67:00.5/power/control = auto (0x0c0340, USB controller, thunderbolt)

+++ USB
Autosuspend       = enabled
Device allowlist  = (not configured)
Device denylist   = (not configured)
Exclude audio     = enabled
Exclude bluetooth = disabled
Exclude phones    = disabled
Exclude printers  = enabled
Exclude WWAN      = disabled

Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)
Bus 001 Device 002 ID 0bda:5411 control = auto, autosuspend_delay_ms =    0 -- Realtek Semiconductor Corp. RTS5411 Hub (hub)
Bus 001 Device 003 ID 04f2:b7b6 control = auto, autosuspend_delay_ms = 2000 -- Chicony Electronics Co., Ltd Integrated Camera (uvcvideo)
Bus 001 Device 004 ID 0489:e0d8 control = auto, autosuspend_delay_ms = 2000 -- Foxconn / Hon Hai Bluetooth Adapter (btusb)
Bus 001 Device 005 ID 048d:c987 control = on,   autosuspend_delay_ms = 2000 -- Integrated Technology Express, Inc. ITE Device(8258) (usbhid)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 002 Device 002 ID 0bda:0411 control = auto, autosuspend_delay_ms =    0 -- Realtek Semiconductor Corp. Hub (hub)
Bus 003 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)
Bus 003 Device 002 ID 04f3:0c4b control = auto, autosuspend_delay_ms = 2000 -- Elan Microelectronics Corp. ELAN:Fingerprint (no driver)
Bus 004 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 005 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)
Bus 006 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 007 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)
Bus 008 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)

+++ Battery Care
Plugin: lenovo
Supported features: charge threshold
Driver usage:
* vendor (ideapad_laptop) = active (charge threshold)
Parameter value range:
* STOP_CHARGE_THRESH_BAT0: 0(off), 1(on) -- battery conservation mode

/sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode = 1 (60%)

+++ Battery Status: BAT1
/sys/class/power_supply/BAT1/manufacturer                   = Sunwoda
/sys/class/power_supply/BAT1/model_name                     = L22D4PC3
/sys/class/power_supply/BAT1/cycle_count                    =      9
/sys/class/power_supply/BAT1/energy_full_design             =  99900 [mWh]
/sys/class/power_supply/BAT1/energy_full                    = 101670 [mWh]
/sys/class/power_supply/BAT1/energy_now                     =  75360 [mWh]
/sys/class/power_supply/BAT1/power_now                      =  24952 [mW]
/sys/class/power_supply/BAT1/status                         = Discharging

Charge                                                      =   74.1 [%]
Capacity                                                    =  101.8 [%]

+++ Recommendations
* Install ethtool to disable Wake-on-LAN
* Install smartmontools for disk drive health info

This might not depend on Linux but on your computer firmware.

Do you have the same issue with Windows?

It is useful to have bi-boot to sort things.

My computer (a Mac) has a special command to restore energy settings (“restore the SMC”) by pressing some keys during startup. Yours may have similar.

Take a look here: [PATCH 1/2] ALSA: hda: cs35l41: Add fixups for machines without a valid ACPI _DSD
Seems firmware related.

Only s2idle possible. Not a good situation, since this is purely software suspend in S0 (so called Modern Suspend), not S3 (deep suspend) what is mostly preferred. Similar to smartphone suspend. So actually, it should work, but s2idle is still not very stable on every system in my experience.

Sounds to me like LID switch, which doesn’t report “lid close” and “lid open” explicitly. Without that it doesn’t work properly on Linux:

So you suspend and then close the lid, it thinks you opened it, because was suspended. Just a thought.

sudo libinput list-devices

Example (choose another device if needed):

sudo libinput debug-events /dev/input/event0

The close the lid and open it.

It could also be, that suspend-then-hibernate is enabled by default here. It tries to hibernate, but actually no valid swap device was found, therefore it shutdowns.

However that are all assumptions.

Currently, I don’t. I was not thinking about dual-booting on this machine, but I may eventually do it if there is a change it might fix this issue.

Thanks for the hints. I haven’t been able to solve it yet, but at least now I have some ideas.

Indeed, that is related with the firmware for the amplifiers. Is your point that this may be preventing the laptop from properly going to sleep?

I updated the kernel to the experimental version 6.7.0 and this amplifier issue still exists. It was not clear for me, from the link you sent, if this fix will eventually make it into the kernel or if I will have to patch it on my own.

I searched a bit and this is a hardware/firmware constrain, right? Can I try to force it to go to deep sleep, even if it doesn’t seem to be available?

I also searched the bios for any option related with sleep, without success. However, I found some options about being able to charge through USB while the device is powered off, and about power on when the lid is open (from a fully powered off state), which is described as similar to pressing the power button. Both of them were disabled. It made me wonder if there might be some bug in the bios in which the last config is not being properly applied.

The output of sudo libinput debug-events /dev/input/event0 is

-event1 DEVICE_ADDED Lid Switch seat0 default group1 cap:S
event1 SWITCH_TOGGLE +0.000s switch lid state 1
event1 SWITCH_TOGGLE +1.653s switch lid state 0
event1 SWITCH_TOGGLE +253.380s switch lid state 1
event1 SWITCH_TOGGLE +255.014s switch lid state 0

Hibernating seems to work, but since my typical ram usage is 10+GB, it is a bit cumbersome. I have a 34GB swap partition and 32GB of RAM.

Any thoughts?

Hello guys I know this is old thread but I have a Legion Slim 5 16APH8 with the same issue. You’ve discussed that only s2idle ( Modern Standby ) is available but I’ve found a way to switch that in the bios. While diggin’ in some Lenovo support threads I found a way to boot InSydeH20 bios in extended configuration. There I found an option to switch between different Modern Standby options as long with the good old S3.

So without further ado to boot to the advanced bios…

  1. restart and enter bios with F2

  2. Pres Ctrl+Alt+Del

  3. (You need two hands for this one ) Immediately after start pressing Fn+R+N in equal intervals not very fast and with the other hand press F2 between that intervals. This will boot to BIOS but when you click on the More (Advanced options) button in the lower right corner there will be a lot more options for settings.

  4. You need to navigate then to the first of three options with 3 letters PBS or something like that. Under that there is an option for Power Saving and there is the Modern StandBy setting.

Unfortunately even with that enabled I couldn’t make that work.

If you then press F10 and boot, when you run
sudo dmesg | grep 'ACPI: PM'

S3 should be in the list of supported options.

There are more options there Modern StandBy + S0i2x and a few more. I couldn’t get it work with any of that. At some point I thought to change it to S3 and reinstall but I am not sure that will help also.

I do not have the errors you have though… the ones for the i2c devices but the problem with the power cord and lid while sleeping still persist and is very annoying.

If you decide to play with the options anywhere else there is a chance to block your further access to BIOS. To Fix that you need to upgrade the BIOS to next available version or before making any other changes enable the Allow BIOS Back flash option before save. If you forgot and make it inaccessible there is still a way to back flash it through windows. Let’s hope you will not need that, but if you do ping me I will share the steps with you.

@megavolt, @Droses if you guys find any way to work around that issue it will be greatly appreciated to share with me. I am using this as my daily driver and not able to sleep it without worrying if it is going to wake is not OK.

Because of that issue my LUKS partition got broke once and It took me 3-4 days to recover it without any data loss.

Now I am shutting down every time I need to go from home to office and vice versa.

But on every shut down I need to wait for 2 minutes to start because of the Mediatek mt7922 module which is not started properly on boot.

This sounds pretty similar to the issue I had which was solved by a thread on the arch linux forums titled “Lenovo notebook uses function keys to cause system shutdown”

Summary of that thread: blacklist ideapad_laptop. This should fix the sleep issue but it will cause some fn keys to not work, including the brightness keys. To at least get the brightness keys working, boot with the dedicated graphics card enabled once. You can disable it again after that if you want.

1 Like

Wow blacklisting ideapad_laptop actually solved my power issues. I had no problem with the Fn keys. I do have another module called legion_laptop which I am not sure where it came from. I’ve installed a 3rd party package lenovolegionlinux that adds some fan control and fine tunings, maybe this is its source. I hadn’t checked that. Thanks for the hint that saved me.

Thank you for your suggestion. These days I have been overwhelmed with work, but I will try it when I can afford to tinker with it (meaning if I have time to repair any mistake I may make).

Thanks! It worked for me. One down, two, to go (the audio issue that should be fixed in the next kernel update and the absence of S3 state which might be solved by @yaggul suggestion), and then I might have a fully working laptop.

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