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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-04-2019, 09:58 AM
|
#1
|
Member
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 191
Rep: 
|
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?
|
|
|
06-04-2019, 02:32 PM
|
#2
|
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,389
|
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
|
|
|
06-04-2019, 03:54 PM
|
#3
|
Member
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 191
Original Poster
Rep: 
|
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
|
|
|
06-04-2019, 04:20 PM
|
#4
|
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,389
|
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?
|
|
|
06-04-2019, 04:37 PM
|
#5
|
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,389
|
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.
|
|
|
06-05-2019, 02:27 AM
|
#6
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
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.
|
06-05-2019, 02:30 AM
|
#7
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
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.
|
06-06-2019, 12:19 PM
|
#8
|
Member
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 191
Original Poster
Rep: 
|
Quote:
Originally Posted by Shadow_7
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
|
|
|
06-06-2019, 12:32 PM
|
#9
|
Member
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 191
Original Poster
Rep: 
|
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
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
|
|
|
|
06-06-2019, 03:01 PM
|
#10
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
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.
|
|
|
06-09-2019, 06:25 AM
|
#11
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,711
|
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.
|
|
|
06-09-2019, 11:15 AM
|
#12
|
Member
Registered: Sep 2003
Location: Halifax, Nova Scotia, Canada
Distribution: MX, Xubuntu, Zorin. BOYCOTTING: Vector, Beatrix, BLAG, Slackware. Life banned from: Facebook, Yahoo!
Posts: 191
Original Poster
Rep: 
|
AFAIK Duplex is only for having output & input available. no sense having mic/input only or output only
Quote:
Originally Posted by business_kid
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
|
|
|
All times are GMT -5. The time now is 04:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|