You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Samsung Galaxy Book2 Pro 360 no sound through speaker #4055
Describe the bug
On my Galaxy Book2 Pro 360, there is no audio output through the internal speakers. Audio works fine with headphones (wired as well as bluetooth), could not test over usbc - displayport cable yet, but guessing this works too. If I play some test sound through speaker-test, I can see the indicator in the plasma-pa applet moving.
I tested the internal microphone with arecord, it works as well.
What have you tried to diagnose or workaround this issue?
Installed mainline kernel (5.19-rc5) and sof-firmware 2.2 with no effect.
To Reproduce
Installed / booted various Linux derivates (Gentoo, Arch, Void, Ubuntu, Fedora) with the same outcome.
Reproduction Rate
100% of the time.
Expected behavior
Sound is playing through internal speakers
Impact
deal breaker, no sound on the go
Environment
Branch name and commit hash of the 2 repositories: sof (firmware/topology) and linux (kernel driver).
I have to rerun the script every time I restart/wake the PC from sleep.
What would be the appropriate place to get this script implemented into the kernel/driver/firmware, so that this hack does not have to be used?
Reacted by Min Xu, Howard M Chen, João Paulo Albuquerque and Charles Kolb
@datmischa thanks for posting the script, GH has mangled the URL but it works if copy and pasted.
I've pasted the top of the script below and it looks like its the same verbs being modified over and over. Are you able to reduce this script to a minimum set of verb writes ? Once the minimum verbs are known it should be possible to patch the drivers.
I'm able to replicate the verbs working on the Galaxy Book 2 Pro 360.
Since the original Author is not replying I might be able to assist with getting the minimal verb list to get it working.
What is the best approach to get this minimum set of verbs?
I have the Galaxy Book2 Pro (non-360) and have similar sound issues in Linux (multiple kernels and versions of SOF).
Maybe the 360 and non-360 have some kind of difference because the verb list from that Manjaro forum post never worked for me.
However I have succeeded in using QemuHDADump to get a (very long) list of verbs that actually do work -- now I can get sound on my Book2 Pro, but I would like that we can try to fix whatever is needed in the driver/upstream to remove these little workarounds :)
@lgirdwood I don't think its an issue to get the verbs again (they are already in the file and if they are working then that is all that this script/process would get out too from what I understand) but the issue is more about trying to narrow down exactly which verbs are actually "needed".
For example the smallest I have gotten my list down to is around 1,500 lines (yikes) but have a bit of a tough time trying to narrow it down at it seems there is some kind of cache which "holds on" to the settings for a while, even after restarts. Basically once I send in the verbs that work, the sound keeps "working" even after restarts and then after several hours or a day later I find that it seems to not be working anymore.
So my question is actually now, is there an easy way to "reset" the driver/hardware cache so that I can get a faster cycle to trial-and-error which verbs are really needed and then narrow the list down? Some kind of command or anything which I can run to clear this "cache" that appears to be there?
Thank you!
Reacted by Mathieu Tarral, Alek Fröhlich and John Chijioke
Once the right set of verbs identified for the device they can be integrated to sound/pci/hda/patch_realtek.c as quirk or fixup.
After that there will be no need for the script in user space.
Once the right set of verbs identified for the device they can be integrated to sound/pci/hda/patch_realtek.c as quirk or fixup. After that there will be no need for the script in user space.
Hi @ujfalusi this sounds great to me but still having a bit of trouble with being able to quickly test which verbs are really needed vs not. The issue is it takes some time for the cache to reset/clear so trying to narrow down 1500 verbs to just a few (5-10??) with only one attempt per day is a bit tricky 😆
But then again maybe I am trying to go about this totally wrong. 😆 So I guess back to my earlier question, is there a (relatively) easy way to reset the HDA verbs so that I can try to test different sets of verbs and narrow down the list so we can figure out what needs to be included in the fixup?
Hi @ujfalusi this sounds great to me but still having a bit of trouble with being able to quickly test which verbs are really needed vs not. The issue is it takes some time for the cache to reset/clear so trying to narrow down 1500 verbs to just a few (5-10??) with only one attempt per day is a bit tricky
Yeah, this sounds painful. Fwiw a lot of these 1500 could be volume ramps i.e. to prevent loud pops. I would check the verb list for writes of increasing values to the same verb ID and just use the last write for that verb. This should speed things up (but will pop atm). There may be increasing value writes to multiple verb IDs (e.g. for L/R spk or HP).
Unfortunately, there is multiple issues like the big quantity of verbs needed to make it work, being unable to use snd-hda-intel early patching and even then, only the left speaker works. Only both work if you try initialize from windows and reset to linux.
The audio configuration carries until the computer is fully shutdown, reset isn't enough to clean state of audio card
Just to state again, this list I got by using the QEMU method to actually run a new Windows instance using QEMU from within Linux, then inside of Windows, installing the soundcard drivers, playing audio from the virtual Windows environment (which worked!), and capturing the verbs using some combination of tools and processes that were linked in some of the other threads.
I have done some debugging the last few days with adding a sleep delay to each line with this file and found that the exact line which "turns on" left speaker is line 2249 and then the right speaker "turns on" at line 3857
Both happen exactly when this value is sent:
hda-verb /dev/snd/hwC0D0 0x20 0x4b0 0x11
But it is a bit strange, it seems almost like a sequence which needs to be preceded by something else. I have looked a bit to see what patterns seem to exist and have used meld to try and find what is really "different" between when the left speaker turns on and the right speaker turns on, and the best I could find is this:
At the beginning of the file seem to be some kind of ramps and other things happening which I have not quite fully figured out, but once you get somewhere past line 500-600 or so then there seems to be basically a "left speaker" sequence which turns the left on, followed by a "right speaker" sequence which turns the right on. These two "sides" (approx. 1600 lines each) seem to be almost exactly identical except I found a small sequence that seems to be unique for each one.
For the "left side" it happens between line 2173 and line 2182 in my file
I have tried to do a bit what @lgirdwood suggested and try to take the max value from what seem like various ramps, then take these two different sequences plus some group of the sequence before the speakers "turns on" -- few attempts so far but still no dice as of yet. If I push the whole file in, then I have sound and that is great! But does not feel super close yet to identifying actually which verb values are needed, and to pinpoint what would need to be fixed in the kernel...
Also as a small aside, my perception is that even after all of this, the right side speaker is slightly quieter than the left side.. if I drag the balance slider a bit towards the right then I feel like I get a bit more "balanced" sound.
Since this is a very part-time "hobby" for me (meaning that my time is usually a bit limited!), my hope is that someone can maybe pick up from what I have here and we can find a way forward together somehow! 😎
Reacted by Moritz Mechelk, TompeHarshavardhan, archdsp, gchmargo, Pierre, Vicente Cordero, John Chijioke, jonoillar and Na Renfu
Reacted by Moritz Mechelk, TompeHarshavardhan, Wesley Cota, Tarek Dakhran, archdsp, gchmargo, Alek Fröhlich, John Chijioke, Matias B and Na Renfu
Any Samsung customer support will tell this (only Windows is supported). The driver support or the spec documentation needs to come from the manufacturer.
So today the 6.15.x Kernel released on Fedora, this Kernel version includes firmware support for the Galaxy Book series,I saw a little improvement (keyboard lighting now works and it is adjustable) but the audio still dosen't work, did anyone managed to get the audio to work with Kernel 6.15 on other Galaxy Books?
What is strange is that the kernel have a quirk for this specific device: bd401fd ("ALSA: hda/realtek: Fix the speaker output on Samsung Galaxy Book2 Pro 360")
SND_PCI_QUIRK(0x144d, 0xca03, "Samsung Galaxy Book2 Pro 360 (NP930QED)", ALC298_FIXUP_SAMSUNG_AMP),
It is for the same ID, but the patch notes slightly different revision NP930QED-KA1FR vs NP930QED-KA1DE
The kernel have quirks for up to Book3:
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc18a, "Samsung Galaxy Book Ion (NP930XCJ-K01US)", ALC298_FIXUP_SAMSUNG_AMP),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc1a3, "Samsung Galaxy Book Pro (NP935XDB-KC1SE)", ALC298_FIXUP_SAMSUNG_AMP),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc1a4, "Samsung Galaxy Book Pro 360 (NT935QBD)", ALC298_FIXUP_SAMSUNG_AMP),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc1a6, "Samsung Galaxy Book Pro 360 (NP930QBD)", ALC298_FIXUP_SAMSUNG_AMP),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc830, "Samsung Galaxy Book Ion (NT950XCJ-X716A)", ALC298_FIXUP_SAMSUNG_AMP),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc832, "Samsung Galaxy Book Flex Alpha (NP730QCJ)", ALC256_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xca03, "Samsung Galaxy Book2 Pro 360 (NP930QED)", ALC298_FIXUP_SAMSUNG_AMP),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xca06, "Samsung Galaxy Book3 360 (NP730QFG)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc868, "Samsung Galaxy Book2 Pro (NP930XED)", ALC298_FIXUP_SAMSUNG_AMP),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc870, "Samsung Galaxy Book2 Pro (NP950XED)", ALC298_FIXUP_SAMSUNG_AMP_V2_2_AMPS),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc872, "Samsung Galaxy Book2 Pro (NP950XEE)", ALC298_FIXUP_SAMSUNG_AMP_V2_2_AMPS),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc886, "Samsung Galaxy Book3 Pro (NP964XFG)", ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc1ca, "Samsung Galaxy Book3 Pro 360 (NP960QFG)", ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS),
sound/pci/hda/patch_realtek.c: SND_PCI_QUIRK(0x144d, 0xc1cc, "Samsung Galaxy Book3 Ultra (NT960XFH)", ALC298_FIXUP_SAMSUNG_AMP_V2_4_AMPS),
If the original problem is now fixed (Book2 Pro 360) then I propose to close the issue and open new one(s) for the different versions for tracking. @datmischa can you confirm if audio works or not on your device?
On my Galaxy Book 4 Ultra w/ the Core Ultra 9 185H the speakers are working when running Ubuntu 24.04.1 LTS w/ kernel 6.8.0-49 in a VM within Windows 11. I'm assuming it's because the hardware translation layer between Windows and Ubuntu. The audio device is named Analog Output = ES1371/ES1373 / Creative Labs CT2518 (Audio PCI 64V/128/5200 / Creative CT4810/CT5803/CT5806 [Sound Blaster PCI]). I haven't had any luck getting it to run within any Linux distro outside of a VM.
Activity
plbossart commentedon Jul 6, 2022
This is likely a codec and amplifier issue, see suggestions to double-check if this also happens with the legacy HDaudio driver.
https://thesofproject.github.io/latest/getting_started/intel_debug/suggestions.html#disable-sof-on-pci-hdaudio-devices-to-test-audio-playback
datmischa commentedon Jul 10, 2022
I finally got my speakers working.
Steps to reproduce
/etc/pulse/default.pa#load-module module-suspend-on-idleand run the script (credits to drlucas from manjaro.org)
https://pastebin.com/raw/zsXp2vz6
I have to rerun the script every time I restart/wake the PC from sleep.
What would be the appropriate place to get this script implemented into the kernel/driver/firmware, so that this hack does not have to be used?
lgirdwood commentedon Jul 11, 2022
@datmischa thanks for posting the script, GH has mangled the URL but it works if copy and pasted.
I've pasted the top of the script below and it looks like its the same verbs being modified over and over. Are you able to reduce this script to a minimum set of verb writes ? Once the minimum verbs are known it should be possible to patch the drivers.
#!/bin/bash sudo hda-verb /dev/snd/hwC0D0 0x1a SET_PIN_WIDGET_CONTROL 0x5 sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x2b sudo hda-verb /dev/snd/hwC0D0 0x20 0xc00 0x0 sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x2b sudo hda-verb /dev/snd/hwC0D0 0x20 0x40c 0x10 sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x3 sudo hda-verb /dev/snd/hwC0D0 0x20 0x400 0x42 sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x5 sudo hda-verb /dev/snd/hwC0D0 0x20 0x42b 0xe0 sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x8 sudo hda-verb /dev/snd/hwC0D0 0x20 0x42f 0xcf sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0xe sudo hda-verb /dev/snd/hwC0D0 0x20 0x46f 0x80 sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0xf sudo hda-verb /dev/snd/hwC0D0 0x20 0x400 0x62 sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x10 sudo hda-verb /dev/snd/hwC0D0 0x20 0x40e 0x21 sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x11 sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x19 sudo hda-verb /dev/snd/hwC0D0 0x20 0x400 0x17 sudo hda-verb /dev/snd/hwC0D0 0x20 0x500 0x2b sudo hda-verb /dev/snd/hwC0D0 0x20 0x40c 0x10Fwiw verb 0x500 looks like it could be a volume ramp (and maybe some others could be too).
F0xedb commentedon Aug 21, 2022
Hi @lgirdwood,
I'm able to replicate the verbs working on the Galaxy Book 2 Pro 360.
Since the original Author is not replying I might be able to assist with getting the minimal verb list to get it working.
What is the best approach to get this minimum set of verbs?
lgirdwood commentedon Aug 22, 2022
@F0xedb I think you have to use this tool to dump the needed verbs https://github.com/Conmanx360/QemuHDADump, once known they can then be upstreamed to the Linux codec driver.
@plbossart @ujfalusi @bardliao please correct me if I'm wrong.
joshuagrisham commentedon Sep 3, 2022
Hi!
I have the Galaxy Book2 Pro (non-360) and have similar sound issues in Linux (multiple kernels and versions of SOF).
Maybe the 360 and non-360 have some kind of difference because the verb list from that Manjaro forum post never worked for me.
However I have succeeded in using QemuHDADump to get a (very long) list of verbs that actually do work -- now I can get sound on my Book2 Pro, but I would like that we can try to fix whatever is needed in the driver/upstream to remove these little workarounds :)
@lgirdwood I don't think its an issue to get the verbs again (they are already in the file and if they are working then that is all that this script/process would get out too from what I understand) but the issue is more about trying to narrow down exactly which verbs are actually "needed".
For example the smallest I have gotten my list down to is around 1,500 lines (yikes) but have a bit of a tough time trying to narrow it down at it seems there is some kind of cache which "holds on" to the settings for a while, even after restarts. Basically once I send in the verbs that work, the sound keeps "working" even after restarts and then after several hours or a day later I find that it seems to not be working anymore.
So my question is actually now, is there an easy way to "reset" the driver/hardware cache so that I can get a faster cycle to trial-and-error which verbs are really needed and then narrow the list down? Some kind of command or anything which I can run to clear this "cache" that appears to be there?
Thank you!
lgirdwood commentedon Sep 6, 2022
@ujfalusi @bardliao any idea how to reset the HDA register cache here ?
ujfalusi commentedon Sep 7, 2022
Once the right set of verbs identified for the device they can be integrated to
sound/pci/hda/patch_realtek.cas quirk or fixup.After that there will be no need for the script in user space.
joshuagrisham commentedon Sep 19, 2022
Hi @ujfalusi this sounds great to me but still having a bit of trouble with being able to quickly test which verbs are really needed vs not. The issue is it takes some time for the cache to reset/clear so trying to narrow down 1500 verbs to just a few (5-10??) with only one attempt per day is a bit tricky 😆
I have tried a bit with using some of the sysfs files (https://www.kernel.org/doc/html/latest/sound/hd-audio/notes.html#hd-audio-reconfiguration) a bit like this:
Every time I try to update /reconfig or /clear then everything just "freezes" and it never seems to finish.
After a while in the journal (
dmesgorjournalctl) I can see something like this:But then again maybe I am trying to go about this totally wrong. 😆 So I guess back to my earlier question, is there a (relatively) easy way to reset the HDA verbs so that I can try to test different sets of verbs and narrow down the list so we can figure out what needs to be included in the fixup?
Thanks again!
lgirdwood commentedon Sep 26, 2022
Yeah, this sounds painful. Fwiw a lot of these 1500 could be volume ramps i.e. to prevent loud pops. I would check the verb list for writes of increasing values to the same verb ID and just use the last write for that verb. This should speed things up (but will pop atm). There may be increasing value writes to multiple verb IDs (e.g. for L/R spk or HP).
Itaig10 commentedon Sep 28, 2022
@joshuagrisham I am struggling with extracting the needed verbs with the non 360 model, can you please upload somewhere the list of the verbs? thanks!
majosamaso commentedon Oct 10, 2022
I have the same 360 laptop and I tried months ago get a patch to solve speaker problems in kernel bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=216023
Unfortunately, there is multiple issues like the big quantity of verbs needed to make it work, being unable to use snd-hda-intel early patching and even then, only the left speaker works. Only both work if you try initialize from windows and reset to linux.
The audio configuration carries until the computer is fully shutdown, reset isn't enough to clean state of audio card
joshuagrisham commentedon Oct 16, 2022
Hi @Itaig10 I just threw my list into pastebin so you can see if you like here: https://pastebin.com/45ksYAXX
Just to state again, this list I got by using the QEMU method to actually run a new Windows instance using QEMU from within Linux, then inside of Windows, installing the soundcard drivers, playing audio from the virtual Windows environment (which worked!), and capturing the verbs using some combination of tools and processes that were linked in some of the other threads.
I have done some debugging the last few days with adding a sleep delay to each line with this file and found that the exact line which "turns on" left speaker is line 2249 and then the right speaker "turns on" at line 3857
Both happen exactly when this value is sent:
But it is a bit strange, it seems almost like a sequence which needs to be preceded by something else. I have looked a bit to see what patterns seem to exist and have used meld to try and find what is really "different" between when the left speaker turns on and the right speaker turns on, and the best I could find is this:
At the beginning of the file seem to be some kind of ramps and other things happening which I have not quite fully figured out, but once you get somewhere past line 500-600 or so then there seems to be basically a "left speaker" sequence which turns the left on, followed by a "right speaker" sequence which turns the right on. These two "sides" (approx. 1600 lines each) seem to be almost exactly identical except I found a small sequence that seems to be unique for each one.
For the "left side" it happens between line 2173 and line 2182 in my file
Followed eventually as said that on line 2249 the speaker turns on.
And then for the "right side" it is between line 3672 and 3680 of my file:
And then the speaker turns on at line 3857.
I have tried to do a bit what @lgirdwood suggested and try to take the max value from what seem like various ramps, then take these two different sequences plus some group of the sequence before the speakers "turns on" -- few attempts so far but still no dice as of yet. If I push the whole file in, then I have sound and that is great! But does not feel super close yet to identifying actually which verb values are needed, and to pinpoint what would need to be fixed in the kernel...
Also as a small aside, my perception is that even after all of this, the right side speaker is slightly quieter than the left side.. if I drag the balance slider a bit towards the right then I feel like I get a bit more "balanced" sound.
Since this is a very part-time "hobby" for me (meaning that my time is usually a bit limited!), my hope is that someone can maybe pick up from what I have here and we can find a way forward together somehow! 😎
143 remaining items
raelgc commentedon Apr 16, 2025
Any Samsung customer support will tell this (only Windows is supported). The driver support or the spec documentation needs to come from the manufacturer.
chippy01 commentedon Jun 26, 2025
So today the 6.15.x Kernel released on Fedora, this Kernel version includes firmware support for the Galaxy Book series,I saw a little improvement (keyboard lighting now works and it is adjustable) but the audio still dosen't work, did anyone managed to get the audio to work with Kernel 6.15 on other Galaxy Books?
ujfalusi commentedon Jun 26, 2025
What is strange is that the kernel have a quirk for this specific device:
bd401fd ("ALSA: hda/realtek: Fix the speaker output on Samsung Galaxy Book2 Pro 360")
It is for the same ID, but the patch notes slightly different revision NP930QED-KA1FR vs NP930QED-KA1DE
The kernel have quirks for up to Book3:
If the original problem is now fixed (Book2 Pro 360) then I propose to close the issue and open new one(s) for the different versions for tracking. @datmischa can you confirm if audio works or not on your device?
mrw1986 commentedon Jul 9, 2025
On my Galaxy Book 4 Ultra w/ the Core Ultra 9 185H the speakers are working when running Ubuntu 24.04.1 LTS w/ kernel 6.8.0-49 in a VM within Windows 11. I'm assuming it's because the hardware translation layer between Windows and Ubuntu. The audio device is named Analog Output = ES1371/ES1373 / Creative Labs CT2518 (Audio PCI 64V/128/5200 / Creative CT4810/CT5803/CT5806 [Sound Blaster PCI]). I haven't had any luck getting it to run within any Linux distro outside of a VM.
jonoillar commentedon Jul 28, 2025
I managed to make the speaker work
I have a samsung galaxy book3, 13th Gen Intel Core i7-1360P.
My linux distribution is Ubuntu 24.04.02 LTS
Kernel version: Linux 6.14.0-24-generic
I run this script: https://github.com/joshuagrisham/galaxy-book2-pro-linux/blob/main/sound/necessary-verbs.sh
Though first I needed to install
hda-verbLike many here, it looks like the audio quality is affected, and that the rightspeaker is slighly quieter than the left one
If someone knows a way to fix it / to tune it, that would help 👍
bardliao commentedon Aug 5, 2025
@KailangYang may help
Nihalsaeed commentedon Sep 11, 2025
internal speaker still not working?
dginhoux commentedon Sep 12, 2025
still not working and no way to find the required paramters... upgraded to 6.16.7
tahirhubic-spec commentedon Oct 28, 2025
Did anyone manage to get the speakers working? Im on the kernel 6.17.5, and still nothing
chippy01 commentedon Oct 30, 2025
I just upgraded to 6.17.5 and tried the hda-verb script but still nothing
lucasmello commentedon Dec 23, 2025
It doesn't work on kernel 6.18 too.
ALSA: hda/realtek: Refactor and simplify Samsung Galaxy Book init