LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-16-2017, 06:38 PM   #1
mlytle
Member
 
Registered: Oct 2008
Location: Houston, Texas
Distribution: Manjaro
Posts: 46

Rep: Reputation: 1
Possibly need help with ALSA issues, New Mint dual boot install, sound on Windows yes, Linux no.


I've looked at alsamixer and verified nothing is muted. I tried the 'sudo alsactl init' command which didn't fix anything, but probably didn't hurt anything either.

Looking for an approach. Started reading about ALSA, I'm guessing that's where I start.

The flavor of Linux Mint I loaded is the latest XFCE 'Sonya', and this is a Dell Inspiron desktop, Celeron processor.
 
Old 07-16-2017, 10:38 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: voidlinux with LXDE
Posts: 5,509

Rep: Reputation: Disabled
it might help if you identify your sound device as you have not linked to the model of your dell.

2) also show the output to these commands pls

Code:
aplay -l
aplay -L
3) how are you playing sound?
do you need surround sound, inputs to mic etc
ie headphones
bluetooth headphones
external speakers thru hdmi
speakers thru normal jack

4) Most modern distros have pulseaudio running but most modern computers default to hdmi....if you can see why (3) is important

5) install pavucontrol and look at your config and output settings
 
Old 07-16-2017, 11:52 PM   #3
mlytle
Member
 
Registered: Oct 2008
Location: Houston, Texas
Distribution: Manjaro
Posts: 46

Original Poster
Rep: Reputation: 1
Here is output from 'inxi -Fxz':

System: Host: mark-Inspiron-3252 Kernel: 4.8.0-53-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Xfce 4.12.3 (Gtk 2.24.28) Distro: Linux Mint 18.2 Sonya
Machine: System: Dell product: Inspiron 3252 v: 2.11.1
Mobo: Dell model: 0R5F6R v: A00
Bios: Dell v: 2.11.1 date: 06/21/2017
CPU: Dual core Intel Celeron J3060 (-MCP-) cache: 1024 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 6400
clock speeds: max: 2480 MHz 1: 479 MHz 2: 479 MHz
Graphics: Card: Intel Device 22b1 bus-ID: 00:02.0
Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
Resolution: 1920x1080@60.00hz
GLX Renderer: Mesa DRI Intel HD Graphics 400 (Braswell)
GLX Version: 3.0 Mesa 12.0.6 Direct Rendering: Yes
Audio: Card Intel Device 2284 driver: snd_hda_intel bus-ID: 00:1b.0
Sound: Advanced Linux Sound Architecture v: k4.8.0-53-generic
Network: Card-1: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter
driver: ath9k bus-ID: 02:00.0
IF: wlp2s0 state: down mac: <filter>
Card-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
driver: r8169 v: 2.3LK-NAPI port: e000 bus-ID: 03:00.0
IF: enp3s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Card-3: Atheros usb-ID: 001-009
IF: null-if-id state: N/A speed: N/A duplex: N/A mac: N/A
Drives: HDD Total Size: 1000.2GB (1.6% used)
ID-1: /dev/sda model: TOSHIBA_DT01ACA1 size: 1000.2GB
Partition: ID-1: / size: 20G used: 5.5G (30%) fs: ext4 dev: /dev/sda6
ID-2: /home size: 169G used: 1.7G (2%) fs: ext4 dev: /dev/sda7
ID-3: swap-1 size: 8.39GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID: No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors: System Temperatures: cpu: 37.0C mobo: N/A
Fan Speeds (in rpm): cpu: 2428
Info: Processes: 197 Uptime: 57 min Memory: 1575.7/3865.2MB
Init: systemd runlevel: 5 Gcc sys: 5.4.0
Client: Shell (bash 4.3.481) inxi: 2.2.35

I am running speakers off of the headphone jack on the front of the unit. I have tested a similar jack on the back of the computer it also will feed my speakers in Windows 10 but not Mint. Might someday want to run a Microphone off the line in on the back, but that's down the road.

Output from aplay -l:

card 0: PCH [HDA Intel PCH], device 0: ALC662 rev3 Analog [ALC662 rev3 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

Output from aplay -L

default
Playback/recording through the PulseAudio sound server
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
sysdefault:CARD=PCH
HDA Intel PCH, ALC662 rev3 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, HDMI 0
HDMI Audio Output
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
Direct sample mixing device
dmix:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
Direct sample snooping device
dsnoop:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
Direct hardware device without any conversions
hw:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC662 rev3 Analog
Hardware device with all software conversions
plughw:CARD=PCH,DEV=3
HDA Intel PCH, HDMI 0
Hardware device with all software conversions

Output from pavucontrol:
Attached Thumbnails
Click image for larger version

Name:	pavu1.png
Views:	28
Size:	20.1 KB
ID:	25480   Click image for larger version

Name:	pavu2.png
Views:	23
Size:	31.1 KB
ID:	25481   Click image for larger version

Name:	pavu3.png
Views:	22
Size:	19.0 KB
ID:	25482  
 
Old 07-17-2017, 12:01 AM   #4
mlytle
Member
 
Registered: Oct 2008
Location: Houston, Texas
Distribution: Manjaro
Posts: 46

Original Poster
Rep: Reputation: 1
output from alsamixer:

initially found many sliders in mute, corrected all of them, just a snapshot of the first group:
Attached Thumbnails
Click image for larger version

Name:	Alsamixer6.png
Views:	42
Size:	37.4 KB
ID:	25483  
 
Old 07-17-2017, 08:06 PM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: voidlinux with LXDE
Posts: 5,509

Rep: Reputation: Disabled
Hi

your alsamixer image and the pavu3 image look fine for 2 ch output.


Quote:
I am running speakers off of the headphone jack on the front of the unit. I have tested a similar jack on the back of the computer it also will feed my speakers in Windows 10 but not Mint. Might someday want to run a Microphone off the line in on the back, but that's down the road.
there is your problem.


please maximise terminal and take a full screenshot....upload it to imgur.com

leaping ahead....if you plug in your headphones.....alsa for most cards auto detects headphone jack and MUTES the speaker.

leaping ahead remove your headphone jack ....when you re-look at your alsamixer....do not be surprised to see headphone show as mute.

but I still want that full image unless you now know how to solve it
 
Old 07-17-2017, 09:16 PM   #6
mlytle
Member
 
Registered: Oct 2008
Location: Houston, Texas
Distribution: Manjaro
Posts: 46

Original Poster
Rep: Reputation: 1
O.K. here is full screen of alsamixer (terminal?). I put it out on Imgur also, under mlytle0...but I'm at a loss of the advantage of that. This DOES have me confused, I guess I should be using the line out jack in the back? I had put the green jack from my computer speakers into the green jack on the back as these are universal color codes, but was no more successful there then on the front. Windows handled it well in either place..however..

Pulling out the speaker plug and restarting alsamixer, it didn't change though..
Attached Thumbnails
Click image for larger version

Name:	alsamixer7.png
Views:	36
Size:	114.1 KB
ID:	25498  

Last edited by mlytle; 07-17-2017 at 09:33 PM.
 
Old 07-17-2017, 09:42 PM   #7
mlytle
Member
 
Registered: Oct 2008
Location: Houston, Texas
Distribution: Manjaro
Posts: 46

Original Poster
Rep: Reputation: 1
I just shut the machine down and put my old Sony headphones in the headphone jack. they don't work either (They do under Windows 10). Those speakers are designed to work off of headphone jacks, they're amplified and use the color coding appropriate for that. Since the headphones don't work either, I really doubt that's the problem. But I'm open to other ideas..
 
Old 07-18-2017, 12:53 AM   #8
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
the usual read the manual.... hmmm there is no clear manual for alsa

better be experienced.

this will save you forever:


.asoundrc
Code:
 pcm.!default { 
          type asym 
          playback.pcm { 
                  type plug 
                  slave.pcm "hw:0,0" 
          } 
          capture.pcm { 
                  type plug 
                  slave.pcm "hw:1,0" 
          }  
 }
believe me... .asoundrc, alsamixer and aplay -l will help you.
 
Old 07-18-2017, 02:05 AM   #9
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: voidlinux with LXDE
Posts: 5,509

Rep: Reputation: Disabled
your alsamixer image shows that auto mute is disabled.....this means when a jack is inserted into the headphone socket....the speakers remain live.

I prefer you change....open terminal and run the same alsmixer command you used to get that image
now use the -> arrow to make the active field auto mute
---now press either the up or down arrows to change that setting from disabled to enabled.

2) that alsamixer image also shows you have setup alsa to 6 ch but I am guessing you are not using surround sound multiple jacks but only one 3.55 mm jack
----is that correct?

so go into alsamixer and arrow to channel mode and change that to 2 ch

and then retest the green speaker hole at back of your PC

I am still guessing here as you have not answered my subtle hint for a link to your model

3) I will leave it to Xeratul to explain why he posts a asoundrc file containing slave.pcm "hw:1,0"....I can't spot card 1 (hint hint)
 
Old 07-18-2017, 08:13 AM   #10
mlytle
Member
 
Registered: Oct 2008
Location: Houston, Texas
Distribution: Manjaro
Posts: 46

Original Poster
Rep: Reputation: 1
About an hour after my last post, I got a tip from a poster on another board (this stuff is so complex I went to two places for advice) and he provided an .asound.rc as code, and it 'helped' in some sense but didn't fix the problem. His theory was that the sound was going to the HDMI port rather than the conventional ports. His code was this:

pcm.!default {
type hw
card PCH
device 0
}

ctl.!default {
type hw
card PCH
device 0
}

What that accomplished was that the 'pulse audio volume control' would now show the source of a audio stream as an icon. That was new at that point. But Xeratul has something interesting there also. I want to spend a litle time reading and understanding what he's pointing to there, that the plug or plug jack needs to capture that stream. Makes some sense to me, I need to read about it and add it to the current .asound.rc file .
Attached Thumbnails
Click image for larger version

Name:	pavu4.png
Views:	28
Size:	28.3 KB
ID:	25502  
 
Old 07-18-2017, 08:16 AM   #11
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by mlytle View Post
About an hour after my last post, I got a tip from a poster on another board (this stuff is so complex I went to two places for advice) and he provided an .asound.rc as code, and it 'helped' in some sense but didn't fix the problem. His theory was that the sound was going to the HDMI port rather than the conventional ports. His code was this:

pcm.!default {
type hw
card PCH
device 0
}

ctl.!default {
type hw
card PCH
device 0
}

What that accomplished was that the 'pulse audio volume control' would now show the source of a audio stream as an icon. That was new at that point. But Xeratul has something interesting there also. I want to spend a litle time reading and understanding what he's pointing to there, that the plug or plug jack needs to capture that stream. Makes some sense to me, I need to read about it and add it to the current .asound.rc file .



you dont need pulseaudio, that will bring you complicated thing / distro installation.

The best is to have only apt-get install alsa-utils

create a new user.

adduser username
adduser username audio

login

create .asoundrc with the above config I gave you.

replace 0,1... ex: hw:1,9 is sometimes with Hdmi TVs

you can test with speaker-test

That shall make it.

(pulseaudio is not recommended in my opinion)
 
Old 07-18-2017, 08:28 AM   #12
mlytle
Member
 
Registered: Oct 2008
Location: Houston, Texas
Distribution: Manjaro
Posts: 46

Original Poster
Rep: Reputation: 1
Now on to aus9's suggestions Re:Alsamixer, yes now I have 'enabled' auto mute and taken it from 6 channels to 2. It's true I'm just using the one 3.55 mm jack, it's a minimal setup, really. I think you were asking about the model of the unit, near the top of the thread. I posted the output of 'inxi -Fxz' (I can't take credit for that command, was shown to me) lists EVERYTHING imaginable about this computer, make, model, internal hardware, software..

Those changes didn't seem to jolt this thing into working...
 
Old 07-18-2017, 09:00 AM   #13
mlytle
Member
 
Registered: Oct 2008
Location: Houston, Texas
Distribution: Manjaro
Posts: 46

Original Poster
Rep: Reputation: 1
Xeratul YOU NAILED IT! SOUND WORKS PERFCTLY NOW!

I'm quite impressed, you must work on audio a great deal..
 
Old 07-18-2017, 09:38 AM   #14
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by mlytle View Post
Xeratul YOU NAILED IT! SOUND WORKS PERFCTLY NOW!

I'm quite impressed, you must work on audio a great deal..
Not at all, I am a minimalist guy and all around will bring you java,... bloated systems and nothing will no longer work as it should: fast and clean.
 
  


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
how to install Mint 18 over Mint 17 on dual boot with Windows 7 Gwynny Linux - Laptop and Netbook 3 05-14-2017 12:23 AM
Tried to install Linux Mint 18.1 Serena for Dual Boot - now Windows won't boot noeladd Linux - Newbie 20 04-23-2017 08:05 AM
[SOLVED] Windows fonts from a PC (Windows 7) to another PC (Linux Mint (17.2)) - not dual boot ArtKautz Linux - Newbie 9 09-30-2015 08:42 AM
[SOLVED] dual boot laptop can't boot windows, possibly damaged hard disk vtbludgeon Linux - Hardware 25 06-08-2013 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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