[Samsung Notebook 7 Pro, Realtek ALC256, headphone jack] Headphone sound is faint and distorted (but works fine in Windows)

Bug #1850702 reported by Filipe Garrett
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
alsa-driver (Ubuntu)
Confirmed
Undecided
Unassigned
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I can't get sound of my laptop (Samsung Notebook 7 Force) through the headphone jack. The speakers work fine.

When I plug a headphone, I can hear the sound being played very faintly. If I bump the volume to the maximum, that is. The sound is very distorted, like a buzz effect being applied over it.

I noticed that if I delete /.config/pulse the distortion goes away, but the sound remains very low. After some time, the buzzing effect comes back.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: ubuntu-release-upgrader-core 1:19.10.15
ProcVersionSignature: Ubuntu 5.3.0-19.20-generic 5.3.1
Uname: Linux 5.3.0-19-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu8.1
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: KDE
Date: Wed Oct 30 16:03:41 2019
InstallationDate: Installed on 2019-10-29 (1 days ago)
InstallationMedia: Kubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: dist-upgrade
UpgradeStatus: No upgrade log present (probably fresh install)
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu8.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: filipe 1294 F.... pulseaudio
CurrentDesktop: KDE
DistroRelease: Ubuntu 19.10
InstallationDate: Installed on 2019-10-29 (1 days ago)
InstallationMedia: Kubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
MachineType: SAMSUNG ELECTRONICS CO., LTD. 760XBE
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.3.0-19-generic root=UUID=c0332bcf-c9a8-4b67-9a6f-bf87cc7abdb8 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.3.0-19.20-generic 5.3.1
RelatedPackageVersions:
 linux-restricted-modules-5.3.0-19-generic N/A
 linux-backports-modules-5.3.0-19-generic N/A
 linux-firmware 1.183.1
Tags: eoan
Uname: Linux 5.3.0-19-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 06/10/2019
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P02REZ.040.190610.FL
dmi.board.asset.tag: No Asset Tag
dmi.board.name: NP760XBE-XW1BR
dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.board.version: SGL9947A0Y-C01-G003-S0001+10.0.17763
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP02REZ.040.190610.FL:bd06/10/2019:svnSAMSUNGELECTRONICSCO.,LTD.:pn760XBE:pvrP02REZ:rvnSAMSUNGELECTRONICSCO.,LTD.:rnNP760XBE-XW1BR:rvrSGL9947A0Y-C01-G003-S0001+10.0.17763:cvnSAMSUNGELECTRONICSCO.,LTD.:ct10:cvrN/A:
dmi.product.family: Notebook 7 Series
dmi.product.name: 760XBE
dmi.product.sku: SCAI-A5A5-A5A5-A5A5-PREZ
dmi.product.version: P02REZ
dmi.sys.vendor: SAMSUNG ELECTRONICS CO., LTD.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu8.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: filipe 1294 F.... pulseaudio
CurrentDesktop: KDE
DistroRelease: Ubuntu 19.10
InstallationDate: Installed on 2019-10-29 (1 days ago)
InstallationMedia: Kubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
MachineType: SAMSUNG ELECTRONICS CO., LTD. 760XBE
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.3.0-19-generic root=UUID=c0332bcf-c9a8-4b67-9a6f-bf87cc7abdb8 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 5.3.0-19.20-generic 5.3.1
RelatedPackageVersions:
 linux-restricted-modules-5.3.0-19-generic N/A
 linux-backports-modules-5.3.0-19-generic N/A
 linux-firmware 1.183.1
Tags: eoan
Uname: Linux 5.3.0-19-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 06/10/2019
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P02REZ.040.190610.FL
dmi.board.asset.tag: No Asset Tag
dmi.board.name: NP760XBE-XW1BR
dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.board.version: SGL9947A0Y-C01-G003-S0001+10.0.17763
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP02REZ.040.190610.FL:bd06/10/2019:svnSAMSUNGELECTRONICSCO.,LTD.:pn760XBE:pvrP02REZ:rvnSAMSUNGELECTRONICSCO.,LTD.:rnNP760XBE-XW1BR:rvrSGL9947A0Y-C01-G003-S0001+10.0.17763:cvnSAMSUNGELECTRONICSCO.,LTD.:ct10:cvrN/A:
dmi.product.family: Notebook 7 Series
dmi.product.name: 760XBE
dmi.product.sku: SCAI-A5A5-A5A5-A5A5-PREZ
dmi.product.version: P02REZ
dmi.sys.vendor: SAMSUNG ELECTRONICS CO., LTD.

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote :
affects: ubuntu-release-upgrader (Ubuntu) → alsa-driver (Ubuntu)
description: updated
summary: - No sound output with headphones
+ [Samsung Notebook 7 Pro, Realtek ALC256, headphone jack]No sound output
+ with headphones
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [Samsung Notebook 7 Pro, Realtek ALC256, headphone jack] Headphone sound is faint and distorted

Thanks for the bug report. This kind of sound problem is usually a bad connection between the audio socket and the headphones. Usually it is because of the differing standards in common use:

https://www.cablechick.com.au/blog/understanding-trrs-and-audio-jacks/

and/or just slight imperfections in how the connectors come into contact.

So please try some different headphones as a test. Please also try using any kind of adapter or other audio cable you have to see if it gets a better connection and improves the sound.

summary: - [Samsung Notebook 7 Pro, Realtek ALC256, headphone jack]No sound output
- with headphones
+ [Samsung Notebook 7 Pro, Realtek ALC256, headphone jack] Headphone sound
+ is faint and distorted
Changed in alsa-driver (Ubuntu):
status: New → Incomplete
Revision history for this message
Filipe Garrett (wowbaggerbr) wrote :

First of all, thanks for replying!

I did this already when I noticed the problem a couple days ago with my main pair and with some gaming gear to no avail. But, since you asked, I did it again with all the wired headphones I could find around, even some crappy cellphone headphones and the results are the same: extremely low sound and heavily distorted. I even tried with a P2 cable extender and the problem remains, I'm 100% sure that it isn't my headphones.

Also tried all those headphones and cable extender on Windows and everything works fine.

(all of them work perfectly on other devices running Android, on my PS4 through the DualShock jack and with my smart TV)

It's important to point out that I know of at least another user of this machine facing the same issue. He posted about HDMI output problems - that I can confirm on my laptop as well - on the Linux Mint (link down below) forums and I got in touch with him, so I don't think that this has something to do with the physical connection, specially since the distortion goes away for a bit if you delete the /.config/pulse directory.

I didn't file a bug report about the HDMI output because it isn't as important as the headphone output for my workflow.
https://forums.linuxmint.com/viewtopic.php?f=49&t=303303

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I'm assuming when you say Windows works fine that you mean Windows on this same laptop...?

summary: [Samsung Notebook 7 Pro, Realtek ALC256, headphone jack] Headphone sound
- is faint and distorted
+ is faint and distorted (but works fine in Windows)
Changed in alsa-driver (Ubuntu):
status: Incomplete → New
Revision history for this message
Filipe Garrett (wowbaggerbr) wrote :

Yes, I'm on a dual-boot setup.

I think it's also worth mentioning that I've tried Manjaro and experienced the same problems.

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1850702

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : CRDA.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : IwConfig.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : Lspci.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : Lsusb.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : ProcEnviron.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : ProcModules.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : PulseList.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : RfKill.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : UdevDb.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : WifiSyslog.txt

apport information

description: updated
Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : AlsaInfo.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : CRDA.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : IwConfig.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : Lspci.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : Lsusb.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : ProcEnviron.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : ProcModules.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : PulseList.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : RfKill.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : UdevDb.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote : WifiSyslog.txt

apport information

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote :

Tried the apport-collect command, but it fails because it says it didn't found linux and alsa-driver packages.

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote :

Just to give more insight about this, I just tried a live USB with 18.04.03 and the results are similar: the sound is extremely low, but with no distortion whatsoever.

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote :

I don't know if my problem is related specifically to the Realtek AC256 codec. In any case, it seems FreeBSD folk fixed a while back the same issue: no headphone output through some patches related to this codec on some Dell models.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219350
https://github.com/trueos/trueos/pull/279
https://reviews.freebsd.org/D19017

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in alsa-driver (Ubuntu):
status: New → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Please test latest mainline kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4/

Changed in alsa-driver (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Filipe Garrett (wowbaggerbr) wrote :

Updated the kernel to the 5.4 as suggested and it didn't make any difference: sound through headphone jack still is low and heavily distorted.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That was the correct kernel to try for December 2019, but now 5.5 is released so please try that :)

https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.5.2/

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote :

Just updated to 5.5.2 and got the same results

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. Please also run 'uname -a' each time to verify the new kernel is running.

Changed in alsa-driver (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Filipe Garrett (wowbaggerbr) wrote :

I sure did, running both new kernels didn't fix it.

Revision history for this message
Filipe Garrett (wowbaggerbr) wrote :

An update: testing some more, I can confirm that there were improvements on volume, now it is definetely louder: if it weren't the buzzing effect on the sound, I could say it was fixed. On the other hand, the louder it gets the more noticeable the distortion became.

Oh, and I noticed that both of the new kernels are throwing some acpi related errors on boot and on shutdown. I didn't really look that much about them online - so I don't really know if they are serious or not - but as far as I can tell, everything else that was working on the laptop remains so.

I redownloaded and reinstalled the 5.5.2 and saw some errors related to Nvidia drivers on install as well. But as I'm runnnig it with integrated graphics, I can't say if there's problem awaiting me as soon as I jump to the dedicated graphics.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Please test kernel parameter "snd_hda_intel.model=inv-dmic".

Revision history for this message
Robson Tenorio (robsontenorio) wrote :
Revision history for this message
Caio Ramos (caiohsramos) wrote :

Hey, I own a Notebook 7 and was having the same problem with the headphone jack (sound very low and distorted). I managed to solve based on the solution at https://bbs.archlinux.org/viewtopic.php?pid=1898849#p1898849. Basicaly, I created the files at /lib/firmware/alc256-sound-patch.fw with the content

[codec]
0x10ec0256 0x144dc824 0

[verb]
0x1a 0x707 0x05

and at /etc/modprobe.d/alc256-sound-patch.conf with content

options snd-hda-intel patch=alc256-sound-patch.fw

Reboot, and you should have sound working even after reboots.

The values may differ in the codec line, but it's all explained at the link I put. You may test before applying the patch with the command
sudo hda-verb /dev/snd/hwC0D0 0x1a 0x707 0x05
(the sound must be playing and headphones connected, but it will no persist after reboot)

Revision history for this message
Leandro (leandromartinez98) wrote :

Is it confirmed that this bug is fixed in newer Kernels? I am running 5.4.0.66 and have this problem in a Samsung laptop as well.

Thank you.

Revision history for this message
Leandro (leandromartinez98) wrote :

The command

sudo hda-verb /dev/snd/hwC0D0 0x1a 0x707 0x05

works for me, but the patch proposed (I added the files), do not seem to be working after reboots. Currently I have to run the command above everytime I reboot.

To post a comment you must log in.