Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Samsung Galaxy Book4 Pro 14" (NP940XGK) - speakers do not work #5002

Open
dgunay opened this issue May 17, 2024 · 30 comments
Open

Samsung Galaxy Book4 Pro 14" (NP940XGK) - speakers do not work #5002

dgunay opened this issue May 17, 2024 · 30 comments
Labels
HDA Applies to HD-Audio bus for codec connection I2S amplifier connected to HDA codec MTL Applies to Meteor Lake platform.

Comments

@dgunay
Copy link

dgunay commented May 17, 2024

EDIT: for anyone coming across this, here is the outcome of my attempt to reverse engineer the codec configuration: https://github.com/dgunay/galaxy-book4-pro-reverse-engineering

The speakers on the Galaxy Book4 Pro 14" NP940XGK don't work out of the box on Linux. The issue seems very similar to previously reported issues with Galaxy Book2 and Book3 laptop speakers not producing sound despite seeing the volume meter move when sound is being output. #4055

I tried using many of the provided hda-verb scripts but they don't fix the problem - still no sound output.

Bluetooth headphones do work. I haven't tried using the onboard headphone jack yet.

My hunch is that the HDA verb sequence is different and needs to be recaptured for this specific device. I might give this a shot while I'm still in the return window, but it's my first time doing something like this so no promises.

@plbossart
Copy link
Member

I presume you've looked at https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html for the verb tables?

@plbossart plbossart added HDA Applies to HD-Audio bus for codec connection I2S amplifier connected to HDA codec labels May 17, 2024
@dgunay
Copy link
Author

dgunay commented May 17, 2024

I presume you've looked at https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html for the verb tables?

I looked at the Reverse-engineer the Windows audio driver section yesterday while rabbit-holing in that direction but not the rest of it. I'll go through it step by step tonight.

Thank you for the very prompt response.

@dgunay
Copy link
Author

dgunay commented May 18, 2024

@dgunay
Copy link
Author

dgunay commented May 18, 2024

I followed the steps outlined in Disable SOF on PCI/HDaudio devices to test audio playback. No sounds were produced, again despite the volume monitor showing movement on the output device:

image

@dgunay
Copy link
Author

dgunay commented May 18, 2024

Followed the Try booting into Windows first, then reboot into Linux step. No dice. Sound works in Windows, continues to not work in Linux. I didn't expect this to work since I booted to Windows quite a bit at first to get firmware updates, but worth a shot.

@dgunay
Copy link
Author

dgunay commented May 18, 2024

I'm going to save the reverse engineering step for later since the other steps look like much lower hanging fruit.

@dgunay
Copy link
Author

dgunay commented May 18, 2024

For Make sure the ME is enabled - I'm not seeing any way of configuring ME in the BIOS for this laptop, and I think I remember Windows Update downloading drivers for Intel ME when I first booted the thing, so I'm going to just assume for now that I have ME and it is enabled.

@dgunay
Copy link
Author

dgunay commented May 18, 2024

Tried Test at the ALSA ‘hw’ device level

I'm not totally sure what to make of the commands mentioned in the guide.

Installing the suggested packages didn't do anything. When I enabled pulseaudio, it actually broke audio in a different way (YouTube videos would no longer play in Firefox until I disabled it). Installing pulseaudio-alsa fixed that, but did not result in sound coming out of the speakers.

@dgunay
Copy link
Author

dgunay commented May 18, 2024

I've done Verify mixer settings multiple times now so I'm pretty sure the mixer isn't muting my speakers.

@dgunay
Copy link
Author

dgunay commented May 18, 2024

Enabled dynamic debugging and ran sudo dmesg | rg -i 'snd|sof|pci'

Maybe someone more knowledgeable than me can glean something from this: https://gist.github.com/dgunay/0eea4dc528c55d30906429e9419d8264

@dgunay
Copy link
Author

dgunay commented May 18, 2024

I'm not really qualified to tell whether the SOF tracing step is necessary yet, but I have sof-logger installed now.

@dgunay
Copy link
Author

dgunay commented May 18, 2024

I don't think Digital mic issues applies to me, so I'm skipping that step.

@dgunay
Copy link
Author

dgunay commented May 18, 2024

Looks like my system does not have ES8336 support according to the output of alsa-info - skipping that step.

@dgunay
Copy link
Author

dgunay commented May 18, 2024

I've now tried everything in the suggestions article to the best of my ability, except for the reverse engineering step. Don't know if I'll have the time to attempt that tonight, we'll see.

@dgunay
Copy link
Author

dgunay commented May 20, 2024

I've run through the reverse engineering steps from https://asus-linux.org/blog/sound-2021-01-11/ now but haven't had any luck. Here are my realtek driver dumps from both windows and linux: https://gist.github.com/dgunay/3c9a326e7f653a6cb1c7d282bb41853f

I ultimately intend to return the laptop so I'm not going to be able to keep grinding this problem down. I'm hoping this at least saves someone some time down the road, or perhaps someone more knowledgeable can use this to make a patch.

Wasn't able to figure out how to reconfigure the pins and HDA verbs. I'll be cleaning up my work and pushing up a repository soon.

@dgunay
Copy link
Author

dgunay commented May 20, 2024

Repository with all the dumps and some accompanying information: https://github.com/dgunay/galaxy-book4-pro-reverse-engineering

@plbossart plbossart added the MTL Applies to Meteor Lake platform. label May 20, 2024
@mjkim0727
Copy link

Is this verb work on NT961XGK-K02/C?

I use Galaxy Book 4 Pro 16" South Korea Domestic model.

@dgunay
Copy link
Author

dgunay commented May 23, 2024

Is this verb work on NT961XGK-K02/C?

I use Galaxy Book 4 Pro 16" South Korea Domestic model.

I wasn't able to get it to work for me and I don't have the 16", but you're welcome to try it out.

@mayanksingh2298
Copy link

I use Galaxy book 3 pro 14"

I also can't get it to work using any list. Any help?

@mixim-mixim
Copy link

I also use Galaxy Book 4 Pro 16" (Europe version)
Tried everything mentioned here (all hadd-verb scripts)
nothing fixed, speakers always no sound, jack is ok

Please help !

@olwe1
Copy link

olwe1 commented Jul 7, 2024

I have the same issue on Galaxy Book 4 Pro 14" (Europe version)

@mayanksingh2298
Copy link

mayanksingh2298 commented Jul 8, 2024

Hey @mixim-mixim and @olwe1,

I can confirm this list works for me: https://github.com/joshuagrisham/galaxy-book2-pro-linux/blob/main/sound/necessary-verbs.sh

I just tried this today.

Make sure your volume control looks something like this in your PulseAudioControl:
image
(I was setting this to ProAudio and it didn't work then)

I'm on Galaxy Book 3 Pro 14":
image

@mixim-mixim
Copy link

Hey @mixim-mixim and @olwe1,

I can confirm this list works for me: https://github.com/joshuagrisham/galaxy-book2-pro-linux/blob/main/sound/necessary-verbs.sh

Unfortunatly this does not work on a galaxy book4 ... at least not for mine :(

@PowerKiKi
Copy link

@mjkim0727 does your webcam work on your Galaxy Book 4 Pro 16" ? What linux are you using, Ubuntu ?

@mixim-mixim, what about your webcam, is it working ? which model of Galaxy Book 4 do you have ? pro/ultra 14"/16" ?

@mixim-mixim
Copy link

mixim-mixim commented Jul 9, 2024

@PowerKiKi
my webcam is also NOT working and my model is Galaxy Book 4 Pro 360 ... Fedora 40 (latest release) ... Kernel is 6.9.x

@PowerKiKi
Copy link

@mixim-mixim, thanks for the info. The webcam has been fixed very recently, according to intel/ipu6-drivers#230. You might want to try that out...

@mjkim0727
Copy link

@PowerKiKi

Webcam isn't working at Galaxy Book 4 Pro 16"

@PowerKiKi
Copy link

@mjkim0727, it should work now if you can use intel/ipu6-drivers#230

@joshuagrisham
Copy link

Just realized maybe I should cross-post this here... I took a look at the RtHDDump file provided by @dgunay ..
If you want I can try to help you get this working. We just finished submitting a patch that should be working for many GB2 and GB3 models and my guess is that it is quite similar for the GB4.
However based on the RtHDDump files it does not seem exactly the same (different coef indexes and possibly even different speaker amp IDs ??).

Is it possible for someone to run a trace using my version of QEMU from here?
https://github.com/joshuagrisham/galaxy-book2-pro-linux/tree/main/sound/qemu

(more info here: #4055 (comment))

@mixim-mixim
Copy link

i took a look to ur script startvm.sh ... but i miss the

qemu-system-x86_64

file ... where to get it from ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HDA Applies to HD-Audio bus for codec connection I2S amplifier connected to HDA codec MTL Applies to Meteor Lake platform.
Projects
None yet
Development

No branches or pull requests

8 participants