LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2020, 03:32 PM   #1
SteveMann
LQ Newbie
 
Registered: Apr 2020
Posts: 7

Rep: Reputation: Disabled
Nuc 8i3 No Sound on Headphone Jack.


Help, please.
I have two Intel Nucs, both running Ubuntu 18.04. Both were set up within a week of each other. Except for the SSD size, they are identical. Except one plays sound through the headphone jack and the other doesn't.

Here are some diagnostic steps I've taken, but other than comparing the working with non-working Nucs, I am not sure where to go from here. Any tips or other diagnostic steps I should take would be appreciated.

BIOS settings are identical. I did try turning off HDMI sound on the inop Nuc with no difference.

alsamixer -c 0
shows identical settings from both.

aplay -l
is identical, both show ALC223 Analog.

-------------
On the working Nuc:
amixer -c0 cget numid=10
numid=10,iface=CARD,name='Mic Jack'
; type=BOOLEAN,access=r-------,values=1
: values=off

On the not-working Nuc:
amixer -c0 cget numid=10
numid=10,iface=MIXER,name='Beep Playback Volume'
; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
: values=0,0
| dBscale-min=-34.50dB,step=1.50dB,mute=0

(I see a difference here, but how do I change the settings?)

-------------
Working Nuc:
cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xc0b20000 irq 150

Not-working:
cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xc0b20000 irq 143

-------------
Working (Plays white noise):
cat /dev/urandom | aplay -D hw:0,0 -f S16_LE -c 2
Playing raw data 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Stereo
Warning: rate is not accurate (requested = 8000Hz, got = 44100Hz)
please, try the plug plugin
^CAborted by signal Interrupt...


Not working:
cat /dev/urandom | aplay -D hw:0,0 -f S16_LE -c 2
aplay: main:788: audio open error: Device or resource busy
 
Old 07-09-2020, 07:44 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 16,419
Blog Entries: 27

Rep: Reputation: 4959Reputation: 4959Reputation: 4959Reputation: 4959Reputation: 4959Reputation: 4959Reputation: 4959Reputation: 4959Reputation: 4959Reputation: 4959Reputation: 4959
If you have not done so, install the Pulse Audio Mixer (pavucontrol--it's in the repos). It provides more granular control of input and output streams and devices and should help you shoot this trouble.

If that doesn't help, try booting to a Live CD of something not Debian-related and test again on the problem machine. If the problem persists, it may be a hardware issue with that particular audio jack.
 
Old 07-09-2020, 09:44 PM   #3
SteveMann
LQ Newbie
 
Registered: Apr 2020
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
If you have not done so, install the Pulse Audio Mixer (pavucontrol--it's in the repos). It provides more granular control of input and output streams and devices and should help you shoot this trouble.

If that doesn't help, try booting to a Live CD of something not Debian-related and test again on the problem machine. If the problem persists, it may be a hardware issue with that particular audio jack.
Thanks for the reply.
I did boot from a thumbdrive and audio works as expected, so I know the hardware works.

I also installed pavucontrol (on both) and got these differences:
Working Nuc, on the Output Devices tab:
Code:
port: Headphones (plugged in)
Not working:
Code:
"Dummy Output"
This command got my output device back, but still no sound.
Code:
pulseaudio --kill; sleep 2s; sudo alsa force-reload ; pulseaudio --start

Running lspci on the two Nucs gave me another clue:
Good:
Code:
lspci -v | grep -i -A7 audio
00:1f.3 Audio device: Intel Corporation Device 9dc8 (rev 30) (prog-if 80)
	Subsystem: Intel Corporation Device 2074
	Flags: bus master, fast devsel, latency 32, IRQ 150
	Memory at c0b20000 (64-bit, non-prefetchable) [size=16K]
	Memory at 404ab00000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, snd_soc_skl
Bad:
Code:
lspci -v | grep -i -A7 audio
00:1f.3 Audio device: Intel Corporation Device 9dc8 (rev 30) (prog-if 80)
	Subsystem: Intel Corporation Device 2074
	Flags: bus master, fast devsel, latency 32, IRQ 143
	Memory at c0b20000 (64-bit, non-prefetchable) [size=16K]
	Memory at 404ab00000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel, sof_pci_dev
Note the different kernel modules....

At this point, I had a DOH! moment.

On the Nuc with no sound... I originally installed Ubuntu Server, and later decided that I would rather have the desktop version using these steps:
Code:
sudo apt-get update
sudo apt-get install ubuntu-desktop
sudo reboot
So, I tried reinstalling alsa:
Code:
sudo apt-get remove --purge alsa-base pulseaudio pavucontrol
sudo apt-get install alsa-base pulseaudio pavucontrol
sudo alsa force-reload
pulseaudio --start
pavucontrol
And still the same- output device is "Dummy Output".

I am beginning to think that my problem stems from installing the server first. On the working Nuc, I installed the desktop version.

I have too many critical programs running on the Nuc with no sound that I don't want to risk installing the desktop version from scratch. That list includes Home Assistant and Node-Red in a Docker, plus MediaWiki, which I use like a lab notebook, but the database is huge (which is one of the reasons I upgraded from a Raspberry Pi to the Intel Nuc. That upgrade took me the better part of a week. I know even less about Docker but I know I could save a snapshot of Home Assistant and restore from that. The Mediawiki database is the scary re-install.

So, I'll just live with it as a mute Nuc.
(Unless you think that reinstalling the Realtek driver would maybe fix it?)
 
Old 07-09-2020, 10:34 PM   #4
KGIII
Member
 
Registered: Sep 2015
Location: North-Western, Maine - in the mountains.
Distribution: Lubuntu 18.04 LTS
Posts: 117
Blog Entries: 5

Rep: Reputation: 49
In my various web travels, I've read that Ubuntu has issues with getting sound running on the WSL/WSL2 stuff that is for Windows 10's like ability to run some bastardized form of Ubuntu Server.

So, putting two and two together - and by having not once seen anything sound related in my instances of Ubuntu Server, I'm gonna guess you're right. There's probably a bunch of crap you'd have to install to get sound working. What specifically, I ain't got a clue 'cause I've never tried. If you're not too invested, just install the desktop version. You should be able to preserve any important data.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Getting the audio jack to work on a Intel NUC 10i7FNH hnieberding Linux - Hardware 7 02-28-2020 01:22 AM
No sound on headphone's jack? Normal sound output OK sreeharsha.t Linux - Hardware 2 06-13-2009 07:57 AM
No sound in headphone's jack, but I do have sound in Speakers shory Linux - Newbie 4 11-02-2008 01:18 AM
No sound in headphone's jack, but I do have sound in Speakers Silverdaz Linux - Newbie 7 09-05-2008 05:12 AM
Low sound from speakers/ No sound from headphone jack with Intel ICH8 Family Audio troydclayton Linux - Hardware 2 03-28-2008 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration