You are not logged in.

#1 2020-04-17 14:04:28

rosseba
Member
Registered: 2019-09-13
Posts: 13

ThinkPad X1 Carbon Gen 7 - Suspend and hibernate broken on latest kern

Latest kernels (5.6.3 and 5.6.4 for sure, maybe other also) have issues with suspension or hibernation. I'm not sure which package version introduced the issue.
When I force suspend or hibernate (the behaviours seem the same) the notebook is freezed, screen is on, ssh session to the notebook hang, fan is working, nothing helpful on screen.
Some data about last boot before the freeze:

$ journalctl -b -1
...
Apr 17 15:14:47 x1c7 systemd[1]: Reached target Sleep.
Apr 17 15:14:47 x1c7 systemd[1]: Starting Hibernate...
Apr 17 15:14:47 x1c7 systemd-sleep[1777]: perl: warning: Setting locale failed.
Apr 17 15:14:47 x1c7 systemd-sleep[1777]: perl: warning: Please check that your locale settings:
Apr 17 15:14:47 x1c7 systemd-sleep[1777]:         LANGUAGE = "en_US",
Apr 17 15:14:47 x1c7 systemd-sleep[1777]:         LC_ALL = (unset),
Apr 17 15:14:47 x1c7 systemd-sleep[1777]:         LANG = "en_US.UTF-8"
Apr 17 15:14:47 x1c7 systemd-sleep[1777]:     are supported and installed on your system.
Apr 17 15:14:47 x1c7 systemd-sleep[1777]: perl: warning: Falling back to the standard locale ("C").
Apr 17 15:14:47 x1c7 systemd-sleep[1771]: Suspending system...
Apr 17 15:14:47 x1c7 kernel: PM: hibernation: hibernation entry

I checked again Arch Power Management wiki article, configs seem applied to me:

# dmesg | grep resume
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/vg0-root rw cryptdevice=/dev/nvme0n1p3:luks:allow-discards i915.enable_gvt=1 snd_hda_intel.dmic_detect=0 resume=/dev/vg0/swap loglevel=3 quiet
[    0.124097] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=/dev/mapper/vg0-root rw cryptdevice=/dev/nvme0n1p3:luks:allow-discards i915.enable_gvt=1 snd_hda_intel.dmic_detect=0 resume=/dev/vg0/swap loglevel=3 quiet
# dmesg | grep -i s3
[    0.843605] ACPI: (supports S0 S3 S4 S5)
# cat /etc/default/grub | grep CMD
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="cryptdevice=/dev/nvme0n1p3:luks:allow-discards i915.enable_gvt=1 snd_hda_intel.dmic_detect=0 resume=/dev/vg0/swap"
# cat /etc/mkinitcpio.conf | grep -v ^#
MODULES=(ext4 kvmgt vfio vfio-pci vfio-iommu-type1 vfio-mdev vfio-virqfd)
BINARIES=()
FILES=()
HOOKS=(base udev autodetect modconf block encrypt lvm2 filesystems resume keyboard fsck)
# dmesg  | grep DSD
[    0.015484] ACPI: DSDT 0x000000006DC34000 0292F1 (v02 LENOVO CFL      20170001 INTL 20160422)
[    0.967094] ACPI: \_SB_.PCI0.LPCB.EC__: Boot DSDT EC used to handle transactions and events
# dmidecode -s system-version
ThinkPad X1 Carbon 7th
# dmidecode -s bios-version
N2HET47W (1.30 )

What's wrong or missed?
Thanks for any help,
-f

Offline

#2 2020-05-07 19:47:07

Jacques Gaudin
Member
Registered: 2016-11-05
Posts: 3

Re: ThinkPad X1 Carbon Gen 7 - Suspend and hibernate broken on latest kern

My machine was not able to go on suspend / hibernate due to `i915.enable_gvt=1`. I removed the option and I can now suspend / hibernate.

Offline

#3 2020-05-08 06:27:23

rosseba
Member
Registered: 2019-09-13
Posts: 13

Re: ThinkPad X1 Carbon Gen 7 - Suspend and hibernate broken on latest kern

Jacques Gaudin wrote:

My machine was not able to go on suspend / hibernate due to `i915.enable_gvt=1`. I removed the option and I can now suspend / hibernate.

I'm using QEMU with GVT enabled on this machine, for this reason it's enabled in my config.
Wiki page was recently modified:
https://wiki.archlinux.org/index.php/Le … on_(Gen_7)

talking about a freeze caused by an audio issue...

Offline

#4 2020-05-09 08:41:31

rosseba
Member
Registered: 2019-09-13
Posts: 13

Re: ThinkPad X1 Carbon Gen 7 - Suspend and hibernate broken on latest kern

Tried a full packages upgrade (now kernel running is v5.6.11), the issue persists.
This last upgrade broked audio (again) - I restored audio removing

snd_hda_intel.dmic_detect=0

from startup.
As confirmed by Jacques, removing:

i915.enable_gvt=1

option restore the suspend/hibernate as well as disable GVTg support in QEMU/KVM.

Offline

#5 2020-05-12 14:19:15

Jacques Gaudin
Member
Registered: 2016-11-05
Posts: 3

Re: ThinkPad X1 Carbon Gen 7 - Suspend and hibernate broken on latest kern

I had a look around to find something about the issue but found absolutely no information whatsoever.

For reference, I have a Dell XPS 15 9560 with the vanilla 5.6.8 kernel.

Offline

Board footer

Powered by FluxBB