LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-04-2019, 09:58 AM   #1
galen
Member
 
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 190
Blog Entries: 1

Rep: Reputation: Disabled
Force detection of sound chip, how do I?


i have replaced my gigabyte motherboard with a new ASUS M5A78L motherboard
and Ubuntu will not offer the motherboard as a sound controller

Code:
$ inxi -A
Audio:     Card-1 NVIDIA GK208 HDMI/DP Audio Controller driver: snd_hda_intel
           Card-2 Advanced Micro Devices [AMD/ATI] SBx00 Azalia (Intel HDA) driver: snd_hda_intel
           Card-3 C-Media driver: USB Audio
           Card-4 Logitech QuickCam Messanger driver: USB Audio
           Card-5 Logitech B525 HD Webcam driver: USB Audio
           Sound: Advanced Linux Sound Architecture v: k4.15.0-50-generic
alsamixer will show the internal audio but there is never any input or output
ALC887

The pulseaudio system does not show any internal sound devices

What can i do to force Ubuntu to reconfigure / rescan the audio devices?
 
Old 06-04-2019, 02:32 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,225

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
inxi shows an Nvidia GK208 and has snd_hda_intel driver loaded. Your quickcam is also an audio device. You have most of what is required to make sound work.

Open the Audio Mixer and go to the configuration tab. What profile is selected? If you click on the drop down, are there any more shown? Have you tried them.

Have you tried to play any .wav file on your system?

Example: aplay /usr/lib64/libreoffice/share/gallery/sounds/horse.wav
 
Old 06-04-2019, 03:54 PM   #3
galen
Member
 
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 190

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
thanks, I've been using Linux for nearly 20 years
sound is going out through NVidia video card, HDMI
but I want onboard sound

seems something is messing up any Linux distro I try on this machine even with a new motherboard
 
Old 06-04-2019, 04:20 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,225

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Did you see anything on the profile tab relating to onboard audio?

Audio for this system board is listed as "VIA VT1708S 8-Channel High Definition Audio CODEC "

Did you look in the documentation for the system board for audio?
 
Old 06-04-2019, 04:37 PM   #5
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,225

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I went here -->https://www.viatech.com/en/silicon/l...?cn-reloaded=1 to find some information on the audio on your system board.

I also went looking for a linux sound driver. I could not find one, Windows drivers show up, nothing for linux.

I suspect you lack a sound driver for the onboard hardware. This is not an uncommon problem with new hardware.

Last edited by camorri; 06-04-2019 at 04:38 PM.
 
Old 06-05-2019, 02:27 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
If it has a driver it's already detected. It should show up in /proc/asound/cards. It's just a matter of selecting the soundcard, the default is hw:0,0 aka card 0 device 0. Technically hw:0,0,0 aka card, device, sub-device, although the shorthand hw:0 works in most instances. It gets odd if you expect HDMI out as that tends to be device 3 or higher depending on which port you plugged into, so hw:0,3 and such.

Pulse will normally show the cards and let you change things. But... for some cards you have to edit / force things, my Delta 44 used to be that way. As long as you're not trying to get things working on ubuntu 9.x or something or running a 2.6.x kernel from a decade plus ago with hardware much younger than that, it shouldn't be an issue.

$ find /proc/asound/ -iname '*pcm*p*'
Code:
/proc/asound/card0/pcm3p
/proc/asound/card1/pcm0p
/proc/asound/card2/pcm0p
Where the things ending in p are playback (OUTPUT) and c are capture (INPUT). This laptop currently has 3 options. hw:0,3 which is the HDMI audio. hw:1,0 which is the onboard soundcard. And hw:2,0 which is a USB audio interface.

$ cat /proc/asound/cards
Code:
 0 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xf0560000 irq 35
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0564000 irq 36
 2 [USB            ]: USB-Audio - Scarlett 2i2 USB
                      Focusrite Scarlett 2i2 USB at usb-0000:00:12.0-1.1.4, high speed
Beyond that you can use pulseaudio to select the right card. Or edit up a .asoundrc to default to something other than hw:0,0[,0].

FILE: .asoundrc
Code:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 0
For hw:1,0 as the default. Or select it on the thing playing back.

$ speaker-test -c 2 -l 1 -D default
$ speaker-test -c 2 -l 1 -D hw:1,0
$ speaker-test -c 2 -l 1 -D pulse
 
1 members found this post helpful.
Old 06-05-2019, 02:30 AM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Also by default sound is muted (to avoid feedback). And your user needs to be in the audio group to "use" the soundcard(s).

$ groups
$ alsamixer -c 0
 
1 members found this post helpful.
Old 06-06-2019, 12:19 PM   #8
galen
Member
 
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 190

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
Also by default sound is muted (to avoid feedback). And your user needs to be in the audio group to "use" the soundcard(s).

$ groups
$ alsamixer -c 0
not sure my user needs to be in the audio (or pulse) group
 
Old 06-06-2019, 12:32 PM   #9
galen
Member
 
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 190

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
thank you, I needed the refresher on speaker-test

speaker-test -c 2 -l 1 -D hw:0
Progress! will provide output to the headphone output
but
alsamixer PCM has no effect, headphone levels do work
Quirk: the headphone out does have noise seeping in, if I mouse or type there is some low level noise; weirdly there is a steady low level squeal noise if I remove an USB thumbdrive from the computer.
I've toggled/muted all unused alsamixer controls, this used to work years ago but not anymore.
There is also more steady noise if I hover over the pulseaudio mixer plugin and the GUI popsup, yuk.
Note: there are no audio input devices opened via voice apps, no skype, no mumble, no synth ...


Quote:
Originally Posted by Shadow_7 View Post
If it has a driver it's already detected. It should show up in /proc/asound/cards.
It's just a matter of selecting the soundcard, the default is hw:0,0 aka card 0 device 0. Technically hw:0,0,0 aka card, device, sub-device, although the shorthand hw:0 works in most instances. It gets odd if you expect HDMI out as that tends to be device 3 or higher depending on which port you plugged into, so hw:0,3 and such.

Pulse will normally show the cards and let you change things. But... for some cards you have to edit / force things, my Delta 44 used to be that way. As long as you're not trying to get things working on ubuntu 9.x or something or running a 2.6.x kernel from a decade plus ago with hardware much younger than that, it shouldn't be an issue.

$ find /proc/asound/ -iname '*pcm*p*'
Code:
/proc/asound/card0/pcm3p
/proc/asound/card1/pcm0p
/proc/asound/card2/pcm0p
Where the things ending in p are playback (OUTPUT) and c are capture (INPUT). This laptop currently has 3 options. hw:0,3 which is the HDMI audio. hw:1,0 which is the onboard soundcard. And hw:2,0 which is a USB audio interface.

$ cat /proc/asound/cards
Code:
 0 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xf0560000 irq 35
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xf0564000 irq 36
 2 [USB            ]: USB-Audio - Scarlett 2i2 USB
                      Focusrite Scarlett 2i2 USB at usb-0000:00:12.0-1.1.4, high speed
Beyond that you can use pulseaudio to select the right card. Or edit up a .asoundrc to default to something other than hw:0,0[,0].

FILE: .asoundrc
Code:
defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 0
For hw:1,0 as the default. Or select it on the thing playing back.

$ speaker-test -c 2 -l 1 -D default
$ speaker-test -c 2 -l 1 -D hw:1,0
$ speaker-test -c 2 -l 1 -D pulse
 
Old 06-06-2019, 03:01 PM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Some cheaper audio devices are not full duplex (can record independently while also playing back). These will leak output to input and vice versa (no mic required). And tend to have noise in general (plugin power). Also avoid running your cables near your monitor or other sources of interference (cell phones / wifi antennae / ...). When I first started recording, I had a cheap mic that I hung over the monitor and everytime the clock ticked in ardour the audio would too. With it's little timer LED at the top center of the screen. That's when you learn the difference between balanced and unbalanced, shielding, and other audiophile type things.
 
Old 06-09-2019, 06:25 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,350

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
This Full duplex crap forces a wry smile.

Theoretically you're able to play one thing and record another, e.g. record a symphony while playing pop. But your input, and perhaps your output go through the same 3.5" jack, sharing a common lead :-/. Your speakers aren't supposed to be picked up by your monitor's builtin mike, etc. Personally, I treat sound cards as low-fi.
 
Old 06-09-2019, 11:15 AM   #12
galen
Member
 
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 190

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
AFAIK Duplex is only for having output & input available. no sense having mic/input only or output only

Quote:
Originally Posted by business_kid View Post
This Full duplex crap forces a wry smile.

Theoretically you're able to play one thing and record another, e.g. record a symphony while playing pop. But your input, and perhaps your output go through the same 3.5" jack, sharing a common lead :-/. Your speakers aren't supposed to be picked up by your monitor's builtin mike, etc. Personally, I treat sound cards as low-fi.

Last edited by galen; 06-14-2019 at 06:29 PM. Reason: AFAIK
 
  


Reply

Tags
alsa, pulseaudio, sound card



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] No force feedback in wine game from a Logitech Driving Force GT ethoms Slackware 11 05-17-2014 09:23 AM
Ethernet bonding -- link layer detection failover isn't enough, smarter detection? pwn Linux - Networking 1 07-10-2011 10:42 PM
how do I read a camera chip thru an internal usb chip reader? CPUFreak91 Linux - Newbie 2 07-20-2005 12:15 AM
How to force PS/2 keyboard detection? plusminus Linux - Hardware 2 06-28-2005 02:58 AM
Brute Force Detection for iptables SlAiD Linux - Security 3 05-05-2005 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:28 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