I'm running Arch (5.11.5-arch1-1) on a Lenovo Yoga 7i and I managed to get audio to work with Realtek ALC287 under certain circumstances. It works only after I suspend to RAM, and it disappears within around 7 seconds of not playing any audio (playing it muted is enough to keep it alive). I also have to start the playback within 7 seconds of resuming from suspend, or alternatively keep it running when suspending. It does not work after suspending to disk, suspending to idle, or rebooting, but hybrid-sleep works. I did not have to blacklist or otherwise configure related kernel modules in /etc/modprobe.d, but I did have to enable S3 sleep by manipulating the DSDT table following https://wiki.archlinux.org/index.php/DSDT. Now I did not really know what I was doing because the patch in the article did not apply to the table on my system; I only changed a line reading "Name (SS3, Zero)" into "Name (SS3, One)", but it worked. Incidentally my brightness keys are only recognized when suspending to RAM or disk, so it seems like there is some necessary initialization going on that are only correctly carried out during certain sleep states. Here is a dmesg log, where I did the following: start playing some audio (no sound) # echo s2idle > /sys/power/mem_sleep # echo mem > /sys/power/state waking up (no sound) # echo deep > /sys/power/mem_sleep # echo mem > /sys/power/state waking up (audio starts playing) pausing and resuming after 7 seconds (no sound) [ 2694.326411] PM: suspend entry (s2idle) [ 2694.327335] Filesystems sync: 0.000 seconds [ 2694.328229] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 2694.330054] OOM killer disabled. [ 2694.330055] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 2694.331250] printk: Suspending console(s) (use no_console_suspend to debug) [ 2695.134660] ACPI: EC: interrupt blocked [ 2697.927155] ACPI: EC: interrupt unblocked [ 2698.778671] pcieport 10000:e0:1d.0: can't derive routing for PCI INT A [ 2698.778677] nvme 10000:e1:00.0: PCI INT A: no GSI [ 2698.784394] nvme nvme0: 8/0/0 default/read/poll queues [ 2699.383146] OOM killer enabled. [ 2699.383149] Restarting tasks ... [ 2699.384141] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915]) [ 2699.385242] done. [ 2699.581393] thermal thermal_zone6: failed to read out thermal zone (-61) [ 2699.582054] PM: suspend exit [ 2716.865106] PM: suspend entry (deep) [ 2716.866184] Filesystems sync: 0.001 seconds [ 2716.866842] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 2716.868785] OOM killer disabled. [ 2716.868786] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 2716.870059] printk: Suspending console(s) (use no_console_suspend to debug) [ 2717.755405] ACPI: EC: interrupt blocked [ 2717.793696] ACPI: Preparing to enter system sleep state S3 [ 2717.807740] ACPI: EC: event blocked [ 2717.807741] ACPI: EC: EC stopped [ 2717.807742] PM: Saving platform NVS memory [ 2717.807869] Disabling non-boot CPUs ... [ 2717.808450] migrate_one_irq: 4 callbacks suppressed [ 2717.808454] IRQ149: set affinity failed(-22). [ 2717.809504] smpboot: CPU 1 is now offline [ 2717.811931] IRQ149: set affinity failed(-22). [ 2717.812998] smpboot: CPU 2 is now offline [ 2717.814258] IRQ149: set affinity failed(-22). [ 2717.815316] smpboot: CPU 3 is now offline [ 2717.817558] IRQ149: set affinity failed(-22). [ 2717.818601] smpboot: CPU 4 is now offline [ 2717.820319] IRQ149: set affinity failed(-22). [ 2717.821351] smpboot: CPU 5 is now offline [ 2717.823171] IRQ149: set affinity failed(-22). [ 2717.824199] smpboot: CPU 6 is now offline [ 2717.824753] IRQ149: set affinity failed(-22). [ 2717.825784] smpboot: CPU 7 is now offline [ 2717.832642] ACPI: Low-level resume complete [ 2717.832773] ACPI: EC: EC started [ 2717.832774] PM: Restoring platform NVS memory [ 2717.833866] Enabling non-boot CPUs ... [ 2717.833920] x86: Booting SMP configuration: [ 2717.833921] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 2717.834897] CPU1 is up [ 2717.834930] smpboot: Booting Node 0 Processor 2 APIC 0x4 [ 2717.836021] CPU2 is up [ 2717.836051] smpboot: Booting Node 0 Processor 3 APIC 0x6 [ 2717.837138] CPU3 is up [ 2717.837169] smpboot: Booting Node 0 Processor 4 APIC 0x1 [ 2717.838265] CPU4 is up [ 2717.838287] smpboot: Booting Node 0 Processor 5 APIC 0x3 [ 2717.839239] CPU5 is up [ 2717.839269] smpboot: Booting Node 0 Processor 6 APIC 0x5 [ 2717.840327] CPU6 is up [ 2717.840348] smpboot: Booting Node 0 Processor 7 APIC 0x7 [ 2717.841434] CPU7 is up [ 2717.843982] ACPI: Waking up from system sleep state S3 [ 2717.847213] ACPI: EC: interrupt unblocked [ 2718.095228] ACPI: EC: event unblocked [ 2718.095906] pcieport 10000:e0:1d.0: can't derive routing for PCI INT A [ 2718.095911] nvme 10000:e1:00.0: PCI INT A: no GSI [ 2718.108513] usb usb1: root hub lost power or was reset [ 2718.108526] usb usb2: root hub lost power or was reset [ 2718.166723] nvme nvme0: 8/0/0 default/read/poll queues [ 2718.348451] usb 3-9: reset high-speed USB device number 3 using xhci_hcd [ 2718.611863] usb 3-10: reset full-speed USB device number 4 using xhci_hcd [ 2718.660745] ish-hid {33AECD58-B679-4E54-9BD9-A04D34F0C226}: [hid-ish]: enum_devices_done OK, num_hid_devices=2 [ 2718.875230] usb 3-8: reset high-speed USB device number 2 using xhci_hcd [ 2719.032790] acpi LNXPOWER:06: Turning OFF [ 2719.034182] OOM killer enabled. [ 2719.034184] Restarting tasks ... done. [ 2719.035966] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915]) [ 2719.036941] thermal thermal_zone6: failed to read out thermal zone (-61) [ 2719.081890] audit: type=1130 audit(1615728121.246:123): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 2719.131666] PM: suspend exit [ 2719.132650] Bluetooth: hci0: Bootloader revision 0.4 build 0 week 30 2018 [ 2719.133690] Bluetooth: hci0: Device revision is 2 [ 2719.133696] Bluetooth: hci0: Secure boot is enabled [ 2719.133698] Bluetooth: hci0: OTP lock is enabled [ 2719.133700] Bluetooth: hci0: API lock is enabled [ 2719.133701] Bluetooth: hci0: Debug lock is disabled [ 2719.133702] Bluetooth: hci0: Minimum firmware build 1 week 10 2014 [ 2719.133986] Bluetooth: hci0: Found device firmware: intel/ibt-19-0-4.sfi [ 2720.728153] Bluetooth: hci0: Waiting for firmware download to complete [ 2720.728635] Bluetooth: hci0: Firmware loaded in 1559382 usecs [ 2720.728662] Bluetooth: hci0: Waiting for device to boot [ 2720.746620] Bluetooth: hci0: Device booted in 17562 usecs [ 2720.746648] Bluetooth: hci0: Found Intel DDC parameters: intel/ibt-19-0-4.ddc [ 2720.748628] Bluetooth: hci0: Applying Intel DDC parameters completed [ 2720.751627] Bluetooth: hci0: Firmware revision 0.0 build 26 week 3 2021 [ 2724.086521] audit: type=1131 audit(1615728126.250:124): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' [ 2750.480471] audit: type=1101 audit(1615728152.643:125): pid=66993 uid=1000 auid=1000 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="p" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/5 res=success' [ 2750.481116] audit: type=1110 audit(1615728152.643:126): pid=66993 uid=1000 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/5 res=success' [ 2750.481311] audit: type=1105 audit(1615728152.646:127): pid=66993 uid=1000 auid=1000 ses=1 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/5 res=success' alsa-info.sh: http://alsa-project.org/db/?f=301a28d975ddbb2e2ea6631dcf59a236db05467d