No sound from laptop speakers on first cold boot, restarting the laptop works

Hello, I just installed Linux Manjaro with KDE plasma. My laptop have a problem with sound.The first time it boots(cold boot) the sound does not work at all and when I restart the laptop, the sound will appear from the laptop.My laptop model is hp envy y013cl. Please help me fix this issue. Thank you in advance.

Output from Inxi -Fazy is

System:
  Kernel: 5.8.11-1-MANJARO x86_64 bits: 64 compiler: N/A 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.8-x86_64 
  root=UUID=ff5f20e5-ad99-45fe-8caf-0b9fe422b8f5 rw 
  snd-intel-dspcfg.dsp_driver=1 quiet apparmor=1 security=apparmor 
  udev.log_priority=3 
  Desktop: KDE Plasma 5.19.5 tk: Qt 5.15.1 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Convertible System: HP product: HP ENVY x360 Convertible 13-y0XX 
  v: N/A serial: <filter> Chassis: type: 31 serial: <filter> 
  Mobo: HP model: 82B7 v: 05.11 serial: <filter> UEFI: American Megatrends 
  v: F.18 date: 06/29/2020 
Battery:
  ID-1: BAT0 charge: 48.5 Wh condition: 48.5/48.5 Wh (100%) volts: 12.6/11.4 
  model: Hewlett-Packard Primary type: Li-ion serial: N/A status: Discharging 
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse serial: <filter> 
  charge: 55% (should be ignored) rechargeable: yes status: Discharging 
CPU:
  Topology: Dual Core model: Intel Core i7-7500U bits: 64 type: MT MCP 
  arch: Amber Lake family: 6 model-id: 8E (142) stepping: 9 microcode: D6 
  L2 cache: 4096 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 23209 
  Speed: 921 MHz min/max: 400/3500 MHz Core speeds (MHz): 1: 900 2: 900 3: 900 
  4: 900 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel HD Graphics 620 vendor: Hewlett-Packard driver: i915 
  v: kernel bus ID: 00:02.0 chip ID: 8086:5916 
  Device-2: Chicony HP Truevision HD type: USB driver: uvcvideo bus ID: 1-6:3 
  chip ID: 04f2:b50c 
  Display: x11 server: X.Org 1.20.9 compositor: kwin_x11 driver: intel 
  unloaded: modesetting alternate: fbdev,vesa display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 507x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP1 res: 1920x1080 hz: 60 dpi: 168 size: 290x160mm (11.4x6.3") 
  diag: 331mm (13") 
  OpenGL: renderer: Mesa Intel HD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.1.8 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus ID: 00:1f.3 
  chip ID: 8086:9d71 
  Sound Server: ALSA v: k5.8.11-1-MANJARO 
Network:
  Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel port: f040 
  bus ID: 02:00.0 chip ID: 8086:095a 
  IF: wlo1 state: up mac: <filter> 
Drives:
  Local Storage: total: 238.47 GiB used: 8.05 GiB (3.4%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLV256HCHP-000H1 
  size: 238.47 GiB block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 serial: <filter> rev: BXV72H0Q scheme: GPT 
Partition:
  ID-1: / raw size: 24.47 GiB size: 23.96 GiB (97.92%) used: 8.05 GiB (33.6%) 
  fs: ext4 dev: /dev/nvme0n1p6 
Swap:
  Alert: No Swap data was found. 
Sensors:
  System Temperatures: cpu: 37.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 187 Uptime: 3m Memory: 15.52 GiB used: 1.28 GiB (8.2%) 
  Init: systemd v: 246 Compilers: gcc: N/A Packages: pacman: 1190 lib: 343 
  flatpak: 0 Shell: Bash v: 5.0.18 running in: konsole inxi: 3.1.05

Hello,

Could it be that is the same issue as for this model since both appear to have the same ?

https://wiki.archlinux.org/index.php/HP_Envy_x360_13z-ag000#Audio

Hello, Just looked at the bug report and installed hdajackretask on my laptop. Well I could not find those pins available in my laptop.What should i do?

did you turn on the setting Show unconnected pins?

you can check for the presence of audio codec pins 0x14 and 0x17 with this

cat /proc/asound/card*/codec\#*

Hello, I selected the Show unconnected pins but there were no 0x14 pin in the list.

Output from
cat /proc/asound/card*/codec#*
yeilds

Codec: Conexant CX8200
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x14f12008
Subsystem Id: 0x103c82b7
Revision Id: 0x100101
No Modem Function Group found
Default PCM:
rates [0x140]: 48000 96000
bits [0xa]: 16 24
formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
Power states: D0 D1 D2 D3 D3cold S3D3cold CLKSTOP EPSS
Power: setting=D0, actual=D0
GPIO: io=7, o=0, i=0, unsolicited=1, wake=1
IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[3]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[4]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[5]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
IO[6]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x10 [Audio Output] wcaps 0xc1d: Stereo Amp-Out R/L
Control: name=“Headphone Playback Volume”, index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name=“Headphone Playback Switch”, index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Device: name=“CX8200 Analog”, type=“Audio”, device=0
Amp-Out caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
Amp-Out vals: [0x80 0x80]
Converter: stream=0, channel=0
PCM:
rates [0x540]: 48000 96000 192000
bits [0xa]: 16 24
formats [0x1]: PCM
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x11 [Audio Output] wcaps 0xc1d: Stereo Amp-Out R/L
Control: name=“Speaker Playback Volume”, index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name=“Speaker Playback Switch”, index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
Amp-Out vals: [0x4a 0x4a]
Converter: stream=0, channel=0
PCM:
rates [0x540]: 48000 96000 192000
bits [0xa]: 16 24
formats [0x1]: PCM
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x12 [Beep Generator Widget] wcaps 0x70000c: Mono Amp-Out
Control: name=“Beep Playback Volume”, index=0, device=0
ControlAmp: chs=1, dir=Out, idx=0, ofs=0
Control: name=“Beep Playback Switch”, index=0, device=0
ControlAmp: chs=1, dir=Out, idx=0, ofs=0
Amp-Out caps: ofs=0x07, nsteps=0x07, stepsize=0x0f, mute=0
Amp-Out vals: [0x03]
Node 0x13 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
Control: name=“Capture Volume”, index=0, device=0
ControlAmp: chs=3, dir=In, idx=1, ofs=0
Control: name=“Capture Switch”, index=0, device=0
ControlAmp: chs=3, dir=In, idx=1, ofs=0
Device: name=“CX8200 Analog”, type=“Audio”, device=0
Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=1
Amp-In vals: [0x80 0x80] [0x50 0x50] [0x50 0x50] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x140]: 48000 96000
bits [0xa]: 16 24
formats [0x1]: PCM
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 7
0x18 0x19 0x1a* 0x15 0x1d 0x1e 0x1f
Node 0x14 [Audio Input] wcaps 0x100d1b: Stereo Amp-In R/L
Amp-In caps: ofs=0x4a, nsteps=0x50, stepsize=0x03, mute=1
Amp-In vals: [0x4a 0x4a] [0x4a 0x4a] [0x4a 0x4a]
Converter: stream=0, channel=0
SDI-Select: 0
PCM:
rates [0x140]: 48000 96000
bits [0xa]: 16 24
formats [0x1]: PCM
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 3
0x1a* 0x15 0x1f
Node 0x15 [Vendor Defined Widget] wcaps 0xf0050b: Stereo Amp-In
Amp-In caps: ofs=0x4a, nsteps=0x4a, stepsize=0x03, mute=1
Amp-In vals: [0x4a 0x4a] [0x4a 0x4a]
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 2
0x10* 0x11
Node 0x16 [Pin Complex] wcaps 0x400581: Stereo
Pincap 0x0001001c: OUT HP EAPD Detect
EAPD 0x2: EAPD
Pin Default 0x04211040: [Jack] HP Out at Ext Right
Conn = 1/8, Color = Black
DefAssociation = 0x4, Sequence = 0x0
Pin-ctls: 0xc0: OUT HP
Unsolicited: tag=01, enabled=1
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 2
0x10* 0x11
Node 0x17 [Pin Complex] wcaps 0x400501: Stereo
Pincap 0x00010010: OUT EAPD
EAPD 0x2: EAPD
Pin Default 0x91170110: [Fixed] Speaker at Int Rear
Conn = Analog, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 2
0x10 0x11*
Node 0x18 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals: [0x00 0x00]
Pincap 0x00001324: IN Detect
Vref caps: HIZ 50 80
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00: VREF_HIZ
Unsolicited: tag=00, enabled=0
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x19 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
Control: name=“Mic Boost Volume”, index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals: [0x00 0x00]
Pincap 0x00001324: IN Detect
Vref caps: HIZ 50 80
Pin Default 0x04a11030: [Jack] Mic at Ext Right
Conn = 1/8, Color = Black
DefAssociation = 0x3, Sequence = 0x0
Pin-ctls: 0x24: IN VREF_80
Unsolicited: tag=02, enabled=1
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x1a [Pin Complex] wcaps 0x40040b: Stereo Amp-In
Control: name=“Internal Mic Boost Volume”, index=0, device=0
ControlAmp: chs=3, dir=In, idx=0, ofs=0
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals: [0x01 0x01]
Pincap 0x00000020: IN
Pin Default 0x95a60120: [Fixed] Mic at Int Top
Conn = Digital, Color = Unknown
DefAssociation = 0x2, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x20: IN
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x1b [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1d [Pin Complex] wcaps 0x40058b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals: [0x00 0x00]
Pincap 0x00011334: IN OUT EAPD Detect
Vref caps: HIZ 50 80
EAPD 0x2: EAPD
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x40: OUT VREF_HIZ
Unsolicited: tag=00, enabled=0
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 2
0x10* 0x11
Node 0x1e [Pin Complex] wcaps 0x40048b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals: [0x00 0x00]
Pincap 0x00000024: IN Detect
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x1f [Pin Complex] wcaps 0x40040b: Stereo Amp-In
Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x2f, mute=0
Amp-In vals: [0x00 0x00]
Pincap 0x00000020: IN
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x20 [Audio Output] wcaps 0x611: Stereo Digital
Converter: stream=0, channel=0
Digital:
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
rates [0x540]: 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x5]: PCM AC3
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Node 0x21 [Pin Complex] wcaps 0x400701: Stereo Digital
Pincap 0x00000010: OUT
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 1
0x20
Node 0x22 [Pin Complex] wcaps 0x400501: Stereo
Pincap 0x00010010: OUT EAPD
EAPD 0x2: EAPD
Pin Default 0x40f001f0: [N/A] Other at Ext N/A
Conn = Unknown, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
Pin-ctls: 0x00:
Power states: D0 D1 D2 D3 EPSS
Power: setting=D0, actual=D0
Connection: 2
0x10* 0x11
Codec: Intel Kabylake HDMI
Address: 2
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x8086280b
Subsystem Id: 0x80860101
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
rates [0x0]:
bits [0x0]:
formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
Power states: D0 D3 CLKSTOP EPSS
Power: setting=D0, actual=D0, Clock-stop-OK
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled KAE
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1a]: 16 24 32
formats [0x5]: PCM AC3
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled KAE
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1a]: 16 24 32
formats [0x5]: PCM AC3
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x6611: 8-Channels Digital
Converter: stream=0, channel=0
Digital: Enabled KAE
Digital category: 0x0
IEC Coding Type: 0x0
PCM:
rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
bits [0x1a]: 16 24 32
formats [0x5]: PCM AC3
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x0b000094: OUT Detect HBR HDMI DP
Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Devices: 0
Connection: 0
Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x0b000094: OUT Detect HBR HDMI DP
Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Devices: 0
Connection: 0
Node 0x07 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
Amp-Out vals: [0x00 0x00]
Pincap 0x0b000094: OUT Detect HBR HDMI DP
Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
Conn = Digital, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Pin-ctls: 0x00:
Unsolicited: tag=00, enabled=0
Power states: D0 D3 EPSS
Power: setting=D0, actual=D0
Devices: 0
Connection: 0
Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono

What might be the problem?

It seems that HP have a different audio codec hidden behind the “Bang & Olufsen”
Codec: Conexant CX8200

This is not the same audio codec as the HP model in Archwiki.
The screenshot of hdajackretask posted to bugzilla report shows that HP Envy x360 13-ag0xxx has a Realtek ALC285 audio codec

And the other variations of HP x360 model mentioned in the bugzilla report

HP Spectre x360 Convertible 13-w0XX - Realtek ALC295
HP ENVY Laptop 13-ad1xx - Realtek ALC295
HP Spectre x360 13t-ap000 (Whiskey Lake) - ALC285
HP Envy 13-ad059na - ALC295

I suggest you cold boot system and get ALSA information for non-working audio

sudo alsa-info.sh --upload

then reboot and get ALSA information for working audio with the same command
and compare the 2 sets of data to find any differences

I have attacted the alsa info links for audio working and not working both.Please find the link below.

Sound not Working.
http://alsa-project.org/db/?f=84fcc9aa16959cbe4699a883f9f939a69bd3e9d6

Sound Working

http://alsa-project.org/db/?f=9c4ac164be0284815b06db8474a527a5e8125118

I can see no major differences between both sets of data

but the data is showing something has been changed by hdajackretask

!!Modprobe options (Sound related)
!!--------------------------------

snd_intel_dspcfg: dsp_driver=1
snd_hda_intel: patch=hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw

I suggest you use hdajackrestask and click Remove boot override

and also remove the GRUB boot option snd-intel-dspcfg.dsp_driver=1
and update GRUB before rebooting

If audio is still not working, get ‘alsa-info.sh’ data for an unmodified system

I have made a fresh install of manjaro and collected alsa info logs.Please check the following cases.

1.First install with sound from internal speakers working properly.
http://alsa-project.org/db/?f=59fec173a02b41ae096b7fd9e6f7bc08937e0ce7

2.Cold boot with no sound
http://alsa-project.org/db/?f=267e97cc1feb5900429e8ee475a055d62c6d2d4c

3.After restart and booting into manjaro and sound working.
http://alsa-project.org/db/?f=a7a13d4eb31fe416dd067a351fc2381ad39f5501

4.No sound after resuming laptop from sleep.
http://alsa-project.org/db/?f=60be4f1d04f9f910c5f36a80a6daab8b3458f7f3

There are only 2 significant differences from data in first install compared to other sets of data

data from 1:

!!ALSA Version
Driver version:     k5.8.16-2-MANJARO
Library version:    1.2.3.2
Utilities version:  1.2.3
!!Loaded sound module options
	power_save : 0
	power_save_controller : N

data from 2-4:

!!ALSA Version
Driver version:     k5.8.18-1-MANJARO
Library version:    1.2.4
Utilities version:  1.2.4
!!Loaded sound module options
	power_save : 1
	power_save_controller : Y

I suggest you try this

echo 'options snd_hda_intel power_save=0 power_save_controller=N' | sudo tee -a /etc/modprobe.d/alsa-power.conf

(Advanced Linux Sound Architecture/Troubleshooting - ArchWiki)

Okay will try and let you if this fixes the issue.

The above code fixed the sound not working after waking up from sleep. But booting the laptop from cold boot, the sound still doesn’t work. Have to restart for the sound to work.