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