LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 02-04-2020, 02:50 AM   #16
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled

all right....I have not used KDE which is the normal desktop for Kubuntu in years. Can you confirm if Phonon is installed.

post the output to
Code:
dpkg -l | grep phonon
If and only if you see hits for phonon....this next link may help
https://userbase.kde.org/Phonon

2) For now, leave the hdmi cables out until you have a chance to report if hardware keys can interact with your Xorg settings to do a dual monitor setup. Also.....it make it easier to trouble shoot I prefer we fix one issue in case you are right and the hdmi interfers with your aplay settings.

3) Now let me re-visit your aplay list in English from alsa info
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC256 Analog [ALC256 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
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Now your alsa info link shows that
Quote:
Soundcards recognised by ALSA
!!-----------------------------

0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0x6013118000 irq 139
but that is not helpful to a new linux Alsa user. its the aplay device information above that matters.

Let me explain it in umm windows terms.
you have one card .....alsa counts cards from zero

you have 6 devices ....alsa counts devices from zero
but the only analog device is device 0.

It is possible for the pins to need a re-configure but for now take a screenshot of the following command
upload it to a host site....I use ingur.com and then link to it.

Code:
alsamixer -c0 -Vall
EDIT we need -c0 because without it....alsamixer returns only one or two controls that PA has control over which is not helpful at all.

I will show mine as example
https://imgur.com/EKL2V6D

you may notice I have no control to enable or disable "auto mute"
b) that if headphones were inserted....they are muted and no volume set
c) to unmute them....I would use the keyboard arrow key (->) to get to that control
---press m key to unmute....if I press m a second time it mutes
---then press page up or up arrow to raise volumes

the mixer levels are initially controlled at boot up by the mixer level file at /var/lib/alsa called asound.state

so show us yours by
Code:
cat /var/lib/alsa/asound.state
it is pointless saving mixer levels with headphones unmuted and volumes set unless we keep TWO mixer levels
but that will require another command to reset from mixer level one to level two
AND it is easier to use pavucontrol to change mixer levels for a linux newbie.

Last edited by aus9; 02-04-2020 at 03:13 AM.
 
2 members found this post helpful.
Old 02-04-2020, 03:08 AM   #17
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Next.....this next bit can be confusing so alsa can use a system wide config called
/etc/asound.conf
but it is better for you with your devices we create a home config file called

.asoundrc.....NOTE the dot makes it a hidden file. Not sure if you already have any so show the output to
Code:
cat .asoundrc
sudo cat /etc/asound.conf
Lets assume you have none....because of Pulseaudio (=PA)

so we create one by copy and paste into a terminal as a normal user.
pwd should show /home/<your-login-name>

Code:
echo 'pcm.!default {
        type hw
        card 0
        device 0
}

ctl.!default {
        type hw           
        card 0
        device 0
} ' > .asoundrc
when you run
Code:
cat .asoundrc
you should see similar screenshot to this
https://imgur.com/3paN2tT

now do a full reboot.....and redo this command
Code:
cat /proc/asound/card0/codec* | grep Codec
and report if you still see HDMI or analog (PCH)
 
2 members found this post helpful.
Old 02-04-2020, 04:33 AM   #18
wowbaggerBR
LQ Newbie
 
Registered: Feb 2020
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aus9 View Post
all right....I have not used KDE which is the normal desktop for Kubuntu in years. Can you confirm if Phonon is installed.

post the output to
Code:
dpkg -l | grep phonon
If and only if you see hits for phonon....this next link may help
https://userbase.kde.org/Phonon
Got some hits but I didn't found any tip that sounded related to my issues.


Quote:
Originally Posted by aus9 View Post
2) For now, leave the hdmi cables out until you have a chance to report if hardware keys can interact with your Xorg settings to do a dual monitor setup. Also.....it make it easier to trouble shoot I prefer we fix one issue in case you are right and the hdmi interfers with your aplay settings.
Agree, it is better to tackle one thing at the time.

Quote:
Originally Posted by aus9 View Post
3) Now let me re-visit your aplay list in English from alsa info
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC256 Analog [ALC256 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
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Now your alsa info link shows that

but that is not helpful to a new linux Alsa user. its the aplay device information above that matters.

Let me explain it in umm windows terms.
you have one card .....alsa counts cards from zero

you have 6 devices ....alsa counts devices from zero
but the only analog device is device 0.

It is possible for the pins to need a re-configure but for now take a screenshot of the following command
upload it to a host site....I use ingur.com and then link to it.

Code:
alsamixer -c0 -Vall
EDIT we need -c0 because without it....alsamixer returns only one or two controls that PA has control over which is not helpful at all.

I will show mine as example
https://imgur.com/EKL2V6D

you may notice I have no control to enable or disable "auto mute"
b) that if headphones were inserted....they are muted and no volume set
c) to unmute them....I would use the keyboard arrow key (->) to get to that control
---press m key to unmute....if I press m a second time it mutes
---then press page up or up arrow to raise volumes
I see, now things are becoming more clear.

I did run the alsamixer with the arguments you recommended and I took two screenshots: one without the headphone and one with it plugged. I noticed that the alsamixer did the auto unmute thing and setted the headphone volume automatically as well.

Here's the gallery with both screens.

Quote:
Originally Posted by aus9 View Post
the mixer levels are initially controlled at boot up by the mixer level file at /var/lib/alsa called asound.state

so show us yours by
Code:
cat /var/lib/alsa/asound.state
This command didn't found such file. I did a ls at the directory and it is indeed empty.

Quote:
Originally Posted by aus9 View Post
it is pointless saving mixer levels with headphones unmuted and volumes set unless we keep TWO mixer levels
but that will require another command to reset from mixer level one to level two
AND it is easier to use pavucontrol to change mixer levels for a linux newbie.
 
Old 02-04-2020, 04:52 AM   #19
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi

Your mic (called capture in screenshot) is active with raised volumes. As laptops have inbuilt mic I suggest you go back into the alsamixer command you used for screenshot then retest.

But the .asoundrc....post 17 is more important

Right arrow to mic...press SpaceBar to disable and retest

Last edited by aus9; 02-04-2020 at 04:59 AM.
 
2 members found this post helpful.
Old 02-04-2020, 04:58 AM   #20
wowbaggerBR
LQ Newbie
 
Registered: Feb 2020
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aus9 View Post
Next.....this next bit can be confusing so alsa can use a system wide config called
/etc/asound.conf
but it is better for you with your devices we create a home config file called

.asoundrc.....NOTE the dot makes it a hidden file. Not sure if you already have any so show the output to
Code:
cat .asoundrc
sudo cat /etc/asound.conf
Lets assume you have none....because of Pulseaudio (=PA)
Yes, no asound.conf on /etc/.

Quote:
Originally Posted by aus9 View Post
so we create one by copy and paste into a terminal as a normal user.
pwd should show /home/<your-login-name>

Code:
echo 'pcm.!default {
        type hw
        card 0
        device 0
}

ctl.!default {
        type hw           
        card 0
        device 0
} ' > .asoundrc
when you run
Code:
cat .asoundrc
you should see similar screenshot to this
https://imgur.com/3paN2tT

now do a full reboot.....and redo this command
Code:
cat /proc/asound/card0/codec* | grep Codec
and report if you still see HDMI or analog (PCH)
I created the .asoundrc inside /home/myuser/ with the code you posted, rebooted and it still shows both codecs as before:

Code:
Codec: Realtek ALC256
Codec: Intel Kabylake HDMI
But somethings changed, but for the worse: now there is no sound whatsoever. The speakers are mute, same as the headphones, and if I try to run alsamixer on Terminal, I get a bunch of errors as this screen shows.

Other thing I've noticed is that the KDE sound widget shows the volume at 100% in a "ficticious output" (this is the literal translation from "saída fictícia" as shown to me here). The sound related function keys - mute, sound down and sound up - stopped working as well.
 
Old 02-04-2020, 05:07 AM   #21
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
right there may be corruption in your .asoundrc file.

I need you to post the full output of
Code:
cat .asoundrc
due to image that claims .asoundrc may be old or corrupted.

I have the same file....and speaker-test works for me.....and does alsamixer -c0
 
2 members found this post helpful.
Old 02-04-2020, 05:14 AM   #22
wowbaggerBR
LQ Newbie
 
Registered: Feb 2020
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aus9 View Post
right there may be corruption in your .asoundrc file.

I need you to post the full output of
Code:
cat .asoundrc
due to image that claims .asoundrc may be old or corrupted.

I have the same file....and speaker-test works for me.....and does alsamixer -c0
As follows:

Code:
echo 'pcm.!default {
        type hw
        card 0
        device 0
}

ctl.!default {
        type hw           
        card 0
        device 0
} ' > .asoundrc
Here's a screenshot.
 
Old 02-04-2020, 05:24 AM   #23
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
YIKES!!!

use your text editor to delete this part of last line reboot and redo the codec command please, and alsamixer command

Quote:
' > .asoundrc
and from the top line

Quote:
echo '
that corrupt file would occur if you copy and paste into a text editor,
but I asked you to do it into a terminal.

LOL

Last edited by aus9; 02-04-2020 at 05:25 AM.
 
2 members found this post helpful.
Old 02-04-2020, 05:26 AM   #24
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
let me reveal what you should see again please.
Quote:
pcm.!default {
type hw
card 0
device 0
}

ctl.!default {
type hw
card 0
device 0
}
 
2 members found this post helpful.
Old 02-04-2020, 05:31 AM   #25
wowbaggerBR
LQ Newbie
 
Registered: Feb 2020
Posts: 23

Original Poster
Rep: Reputation: Disabled
Sorry, I got confused about creating the file on the Terminal itself and thought it would be a good idea to check things out with nano. In the end, I pasted everything and didn't payed enough attention.

Now everything seems to be right about the .asoundrc file.

But the situation is the same:

- no sound over speakers and headphones
- sound related function keys are caput
- alsamixer won't work
- it still lists both codecs

Here's the screenshot.

Last edited by wowbaggerBR; 02-04-2020 at 05:41 AM.
 
Old 02-04-2020, 05:54 AM   #26
wowbaggerBR
LQ Newbie
 
Registered: Feb 2020
Posts: 23

Original Poster
Rep: Reputation: Disabled
Took out the
Code:
echo
. Sorry again.

Now, things improved:

- speaker sound is back
- function keys are working
- alsamixer runs

What isn't right:

- it still lists both codecs
- headphone sound remains very low and distorted

Pics of both alsamixer and commands outputs.
 
Old 02-04-2020, 06:25 AM   #27
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
EDIT see below
In last image....speaker volume of zero shows "auto mute" is working correctly to mute speakers and give some volume to headphones.

I am guessing you have raised headphone volume to max as you can not hear them?


Quote:
all I got is a very faint and distorted sound
.
Has that changed?

in post 19 I asked you to mute the capture device which is mic (input).
Lets see if we can eliminate mic feedback as causing distortion?

I would have liked to show you an alsa config for your model ALC256 but according to link
https://chromium.googlesource.com/ch...dio-Models.txt

I can not spot any alc256 reference.

Last edited by aus9; 02-04-2020 at 06:32 AM.
 
2 members found this post helpful.
Old 02-04-2020, 06:30 AM   #28
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
OK we have attempted to force alsa to use the correct card number (zero) and the correct device number (zero)

can you now use your menu to search for either pulseaudio volume control or
pavucontrol....if not not found...run command

Code:
sudo apt install pavucontrol
then open that new app....this is PA graphical mixer control

go to the tab for configuration....for the built in audio
Pull down the profile and choose Analog Stereo Duplex.

take a screenshot if you have any problems please.

It will be bed time for me soon
 
2 members found this post helpful.
Old 02-04-2020, 06:33 AM   #29
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
YIKES forget post 27....I have just confirmed on my system I get HDMI codec too.

cat /proc/asound/card0/codec* | grep Codec
Codec: Realtek ALC887-VD
Codec: Intel Kabylake HDMI

different sound device but same CPU.

therefore we need to see if PA can fix
 
2 members found this post helpful.
Old 02-04-2020, 06:44 AM   #30
wowbaggerBR
LQ Newbie
 
Registered: Feb 2020
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aus9 View Post
EDIT see below
In last image....speaker volume of zero shows "auto mute" is working correctly to mute speakers and give some volume to headphones.

I am guessing you have raised headphone volume to max as you can not hear them?

.
Has that changed?

in post 19 I asked you to mute the capture device which is mic (input).
Lets see if we can eliminate mic feedback as causing distortion?

I would have liked to show you an alsa config for your model ALC256 but according to link
https://chromium.googlesource.com/ch...dio-Models.txt

I can not spot any alc256 reference.
The mic on mute didn't made any difference. It still sounds very low and distorted.

Quote:
Originally Posted by aus9 View Post
OK we have attempted to force alsa to use the correct card number (zero) and the correct device number (zero)

can you now use your menu to search for either pulseaudio volume control or
pavucontrol....if not not found...run command

Code:
sudo apt install pavucontrol
then open that new app....this is PA graphical mixer control

go to the tab for configuration....for the built in audio
Pull down the profile and choose Analog Stereo Duplex.

take a screenshot if you have any problems please.
Done as you suggested, but everything remains the same: speakers sound great, headphones works through USB-C dongle, but not from the headphone jack.

pavucontrol related pics.

Quote:
Originally Posted by aus9 View Post
It will be bed time for me soon
I can't thank you enough for your time, patience and help!
 
  


Reply



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
No sound in headphone's jack, but I do have sound in Speakers Silverdaz Linux - Newbie 7 09-05-2008 05:12 AM
No audio output from headphone jack in a Fujitsu N3410 laptop nigham Linux - Hardware 4 08-14-2006 04:03 PM
No sound from headphone jack jefferai Linux - Laptop and Netbook 0 08-21-2004 04:05 PM
Sound Requires Cord From CD headphone jack to line in to work. danny_beta_read Linux - Hardware 1 03-03-2004 11:25 AM
Headphone jack on CDROM how get sound out? lugoteehalt Linux - Newbie 2 10-27-2003 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:49 AM.

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