LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-24-2019, 10:52 AM   #16
Adilek
LQ Newbie
 
Registered: Apr 2019
Posts: 3

Rep: Reputation: Disabled

These are the steps how I make it work:

1. Installed ALSA daily build (https://launchpad.net/~ubuntu-audio-...aily/+packages).
The problem here is perhaps you wont be able to compile (or install) correctly because the prefix of kernel version need to match yours. You achieve simply by changing kernel_version file in the sources. Then compile it (dpkg-buildpackage -us -uc -ui). Install generated deb file.

2. In /etc/modprobe.d/alsa-base.conf file add the following line:
Code:
options snd-hda-intel model=alc225-wyse
3.
Code:
sudo alsa force-reload
4. Reboot

After that sound works fine with headphones. But speakers do not work yet.

I will search for solution for speakers. If I can find some solution I will change the drivers and let you know.
 
Old 04-28-2019, 01:27 PM   #17
Yanis3001
LQ Newbie
 
Registered: Feb 2019
Distribution: Kali Linux, Arch Linux
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hi,

I didn't manage to make it work sadly, neither you're solution for headphone neither a for speakers... But it's my fault, I've broken things even more while trying to make things work. I think I'm gonna reinstall everything and retry from the beginning, it's going to be easier.

Did you find anything more ?

Thank you
 
Old 05-11-2019, 02:16 PM   #18
Yanis3001
LQ Newbie
 
Registered: Feb 2019
Distribution: Kali Linux, Arch Linux
Posts: 13

Original Poster
Rep: Reputation: Disabled
Good evening,

Have you or anyone else found anything ?
I'm still searching but I don't have much time so I'm barely making any progress...

I'm really hoping you find a solution

Thank you very much
 
Old 05-11-2019, 02:45 PM   #19
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,765
Blog Entries: 1

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
did you adjust the mixer levels? Things are muted and set to 0% volume by default.

$ alsamixer -c 0

$ cat /proc/asound/cards

$ amixer contents
$ amixer controls

Also make sure the user is in the audio group. Most likely is if your headphones work.

$ groups
 
Old 05-14-2019, 10:33 AM   #20
Yanis3001
LQ Newbie
 
Registered: Feb 2019
Distribution: Kali Linux, Arch Linux
Posts: 13

Original Poster
Rep: Reputation: Disabled
Hello,

It's not muted in alsamixer.

The outputs of the following commands are :

Code:
yanis@NoName:~$ groups
yanis adm cdrom sudo audio dip plugdev lpadmin sambashare
Code:
yanis@NoName:~$ cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xdf638000 irq 132
Code:
yanis@NoName:~$ amixer contents
numid=39,iface=CARD,name='HDMI/DP,pcm=10 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=15,iface=CARD,name='HDMI/DP,pcm=3 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=21,iface=CARD,name='HDMI/DP,pcm=7 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=27,iface=CARD,name='HDMI/DP,pcm=8 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=33,iface=CARD,name='HDMI/DP,pcm=9 Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=11,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=10,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=12,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=2,iface=MIXER,name='Master Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=1,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=127,step=0
  : values=102,102
  | dBscale-min=-63.50dB,step=0.50dB,mute=0
numid=50,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
  : values=255,0
  | dBscale-min=-51.00dB,step=0.20dB,mute=0
numid=8,iface=MIXER,name='Mic Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=5,iface=MIXER,name='Mic Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=4,iface=MIXER,name='Mic 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
numid=7,iface=MIXER,name='Capture Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=on,on
numid=6,iface=MIXER,name='Capture Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=127,step=0
  : values=91,91
  | dBscale-min=-33.50dB,step=0.50dB,mute=0
numid=3,iface=MIXER,name='Loopback Mixing'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'Disabled'
  ; Item #1 'Enabled'
  : values=0
numid=16,iface=MIXER,name='IEC958 Playback Con Mask'
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=22,iface=MIXER,name='IEC958 Playback Con Mask',index=1
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=28,iface=MIXER,name='IEC958 Playback Con Mask',index=2
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=34,iface=MIXER,name='IEC958 Playback Con Mask',index=3
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=40,iface=MIXER,name='IEC958 Playback Con Mask',index=4
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=17,iface=MIXER,name='IEC958 Playback Pro Mask'
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=23,iface=MIXER,name='IEC958 Playback Pro Mask',index=1
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=29,iface=MIXER,name='IEC958 Playback Pro Mask',index=2
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=35,iface=MIXER,name='IEC958 Playback Pro Mask',index=3
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=41,iface=MIXER,name='IEC958 Playback Pro Mask',index=4
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=18,iface=MIXER,name='IEC958 Playback Default'
  ; type=IEC958,access=rw------,values=1
  : values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
numid=24,iface=MIXER,name='IEC958 Playback Default',index=1
  ; type=IEC958,access=rw------,values=1
  : values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
numid=30,iface=MIXER,name='IEC958 Playback Default',index=2
  ; type=IEC958,access=rw------,values=1
  : values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
numid=36,iface=MIXER,name='IEC958 Playback Default',index=3
  ; type=IEC958,access=rw------,values=1
  : values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
numid=42,iface=MIXER,name='IEC958 Playback Default',index=4
  ; type=IEC958,access=rw------,values=1
  : values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
numid=19,iface=MIXER,name='IEC958 Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=25,iface=MIXER,name='IEC958 Playback Switch',index=1
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=31,iface=MIXER,name='IEC958 Playback Switch',index=2
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=37,iface=MIXER,name='IEC958 Playback Switch',index=3
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=43,iface=MIXER,name='IEC958 Playback Switch',index=4
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=9,iface=MIXER,name='Internal Mic Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=14,iface=PCM,name='Capture Channel Map'
  ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
  : values=0,0
  | container
    | chmap-fixed=FL,FR

numid=13,iface=PCM,name='Playback Channel Map'
  ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
  : values=0,0
  | container
    | chmap-fixed=FL,FR

numid=20,iface=PCM,name='ELD',device=3
  ; type=BYTES,access=r--v----,values=0
  : values=
numid=45,iface=PCM,name='Playback Channel Map',device=3
  ; type=INTEGER,access=rw---R--,values=8,min=0,max=36,step=0
  : values=0,0,0,0,0,0,0,0
  | container
    | chmap-variable=FL,FR

numid=26,iface=PCM,name='ELD',device=7
  ; type=BYTES,access=r--v----,values=0
  : values=
numid=46,iface=PCM,name='Playback Channel Map',device=7
  ; type=INTEGER,access=rw---R--,values=8,min=0,max=36,step=0
  : values=0,0,0,0,0,0,0,0
  | container
    | chmap-variable=FL,FR

numid=32,iface=PCM,name='ELD',device=8
  ; type=BYTES,access=r--v----,values=0
  : values=
numid=47,iface=PCM,name='Playback Channel Map',device=8
  ; type=INTEGER,access=rw---R--,values=8,min=0,max=36,step=0
  : values=0,0,0,0,0,0,0,0
  | container
    | chmap-variable=FL,FR

numid=38,iface=PCM,name='ELD',device=9
  ; type=BYTES,access=r--v----,values=0
  : values=
numid=48,iface=PCM,name='Playback Channel Map',device=9
  ; type=INTEGER,access=rw---R--,values=8,min=0,max=36,step=0
  : values=0,0,0,0,0,0,0,0
  | container
    | chmap-variable=FL,FR

numid=44,iface=PCM,name='ELD',device=10
  ; type=BYTES,access=r--v----,values=0
  : values=
numid=49,iface=PCM,name='Playback Channel Map',device=10
  ; type=INTEGER,access=rw---R--,values=8,min=0,max=36,step=0
  : values=0,0,0,0,0,0,0,0
  | container
    | chmap-variable=FL,FR
Code:
yanis@NoName:~$ amixer controls
numid=39,iface=CARD,name='HDMI/DP,pcm=10 Jack'
numid=15,iface=CARD,name='HDMI/DP,pcm=3 Jack'
numid=21,iface=CARD,name='HDMI/DP,pcm=7 Jack'
numid=27,iface=CARD,name='HDMI/DP,pcm=8 Jack'
numid=33,iface=CARD,name='HDMI/DP,pcm=9 Jack'
numid=11,iface=CARD,name='Internal Mic Phantom Jack'
numid=10,iface=CARD,name='Mic Jack'
numid=12,iface=CARD,name='Speaker Phantom Jack'
numid=2,iface=MIXER,name='Master Playback Switch'
numid=1,iface=MIXER,name='Master Playback Volume'
numid=50,iface=MIXER,name='PCM Playback Volume'
numid=8,iface=MIXER,name='Mic Boost Volume'
numid=5,iface=MIXER,name='Mic Playback Switch'
numid=4,iface=MIXER,name='Mic Playback Volume'
numid=7,iface=MIXER,name='Capture Switch'
numid=6,iface=MIXER,name='Capture Volume'
numid=3,iface=MIXER,name='Loopback Mixing'
numid=16,iface=MIXER,name='IEC958 Playback Con Mask'
numid=22,iface=MIXER,name='IEC958 Playback Con Mask',index=1
numid=28,iface=MIXER,name='IEC958 Playback Con Mask',index=2
numid=34,iface=MIXER,name='IEC958 Playback Con Mask',index=3
numid=40,iface=MIXER,name='IEC958 Playback Con Mask',index=4
numid=17,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=23,iface=MIXER,name='IEC958 Playback Pro Mask',index=1
numid=29,iface=MIXER,name='IEC958 Playback Pro Mask',index=2
numid=35,iface=MIXER,name='IEC958 Playback Pro Mask',index=3
numid=41,iface=MIXER,name='IEC958 Playback Pro Mask',index=4
numid=18,iface=MIXER,name='IEC958 Playback Default'
numid=24,iface=MIXER,name='IEC958 Playback Default',index=1
numid=30,iface=MIXER,name='IEC958 Playback Default',index=2
numid=36,iface=MIXER,name='IEC958 Playback Default',index=3
numid=42,iface=MIXER,name='IEC958 Playback Default',index=4
numid=19,iface=MIXER,name='IEC958 Playback Switch'
numid=25,iface=MIXER,name='IEC958 Playback Switch',index=1
numid=31,iface=MIXER,name='IEC958 Playback Switch',index=2
numid=37,iface=MIXER,name='IEC958 Playback Switch',index=3
numid=43,iface=MIXER,name='IEC958 Playback Switch',index=4
numid=9,iface=MIXER,name='Internal Mic Boost Volume'
numid=14,iface=PCM,name='Capture Channel Map'
numid=13,iface=PCM,name='Playback Channel Map'
numid=20,iface=PCM,name='ELD',device=3
numid=45,iface=PCM,name='Playback Channel Map',device=3
numid=26,iface=PCM,name='ELD',device=7
numid=46,iface=PCM,name='Playback Channel Map',device=7
numid=32,iface=PCM,name='ELD',device=8
numid=47,iface=PCM,name='Playback Channel Map',device=8
numid=38,iface=PCM,name='ELD',device=9
numid=48,iface=PCM,name='Playback Channel Map',device=9
numid=44,iface=PCM,name='ELD',device=10
numid=49,iface=PCM,name='Playback Channel Map',device=10
My headphone don't work, in fact, I tried his solution which did not work.
I've restored everything since that to be sure I didn't break anything more.
 
Old 05-14-2019, 08:46 PM   #21
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,765
Blog Entries: 1

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
Are you using the HDMI audio? Is there a DVI adapter in the mix? DVI is basically HDMI without ANY audio.

$ speaker-test -c 2 -l 1 -D hw:0,0
(the default, should be speakers if on a laptop)

$ speaker-test -c 2 -l 1 -D hw:0,3
$ speaker-test -c 2 -l 1 -D hw:0,7
$ speaker-test -c 2 -l 1 -D hw:0,8
$ speaker-test -c 2 -l 1 -D hw:0,9
$ speaker-test -c 2 -l 1 -D hw:0,10
(the HDMI options depending on what thing is plug into what thing.)
(some of which depends on the volume level set in the hardware / monitor)

Which could not work at all if pulseaudio or jackd is in play. -D jack, -D pulse, -D default, and other options depending on configuration settings.
 
Old 05-14-2019, 10:22 PM   #22
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,672
Blog Entries: 3

Rep: Reputation: 478Reputation: 478Reputation: 478Reputation: 478Reputation: 478
you must be in some ubuntu system I guess install alsamixer start the alsamixer set your channel.
Obviously the output is set to incorrect channel. Remember alsa is part of the kernel. alsamixer is the sound server.

pulseaudio is a soundserver that requires alsa libraries and alsamixer. now install pavucontrol
and make sure you can run both servers. configure your default device with alsamixer.

after you got things right. use pavucontrol. if using jackd or jack2 with pulseaudio read read read,
https://github.com/Drakeo/jack-pulse...e-jack-scripts
remember if installing jackd or jack2 you must rebuild pulse audio and alsa-plugins and ffmpeg againt it.
or install ubuntu studio. or learn linux install slackware.
https://github.com/Drakeo/jack-pulse...aster/examples

Last edited by Drakeo; 05-14-2019 at 10:24 PM.
 
Old 05-15-2019, 03:28 PM   #23
Yanis3001
LQ Newbie
 
Registered: Feb 2019
Distribution: Kali Linux, Arch Linux
Posts: 13

Original Poster
Rep: Reputation: Disabled
I didn't figure it out yet but I've got a few things. And, yes i'm running ubuntu 19.04, kernel 5.0.0-15-generic on a samsung galaxy book 12.

First of all, pavucontrol is showing that sound is playing, even though i can't hear anything. And I don't really know if it's linked but when I go on the microphone tab in pavucontrol, I can see that the computer records the sounds.
This should be good.

Sadly, the speaker-test are not working, any of them:
Code:
yanis@NoName:~$ sudo speaker-test -c 2 -l 1 -D hw:0,0

speaker-test 1.1.8

Playback device is hw:0,0
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy

And what do you mean the output is set to the wrong channel ?
I don't really know anything about sound. Never got any problem with it actually.

And guys, I have never heard of jackd or jack2 ?
What is it ?

PS: I'm going to some research on my own, I'm just posting that in case you have time to explain or if it helps you figuring something more.

Thank you very much in any case
 
Old 05-15-2019, 08:15 PM   #24
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,765
Blog Entries: 1

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
If pulseaudio is running, trying to access alsa natively won't work. And you do NOT need sudo if you have permissions, aka in the audio group (obviously are if headphones work).

$ speaker-test -c 2 -l 1 -D pulse

$ speaker-test -c 2 -l 1 -D default

Although -D pulse doesn't work on my current setup. It did when I had pulseaudio networked. Probably just a matter of setting up .asoundrc to use that naming convention. Works now that I made that file with that reference.

$ cat .asoundrc
Code:
pcm.pulse    { type pulse  fallback "sysdefault" }
ctl.pulse    { type pulse  fallback "sysdefault" }
pcm.!default { type pulse  fallback "sysdefault" }
ctl.!default { type pulse  fallback "sysdefault" }
 
Old 05-16-2019, 10:40 AM   #25
Yanis3001
LQ Newbie
 
Registered: Feb 2019
Distribution: Kali Linux, Arch Linux
Posts: 13

Original Poster
Rep: Reputation: Disabled
Well, in fact, the sound is not working in headphones.
But, I'm for sure in the audio group.

I tried making the same .asoundrc but I can't hear any difference.

Can't the problem come from the sound card driver ?

And the sound is working on Bluetooth so i was wondering if bluetooth needed alsa and pulseaudio.
Because if bluetooth needs a functioning alsa and pulseaudio, i can be sure that they are both correctly functioning. It could help narrowing down the origin of the problem.
 
Old 05-16-2019, 11:44 AM   #26
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,765
Blog Entries: 1

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
There's bluealsa to not need pulseaudio, but in general it works easiest with pulseaudio. Not sure if that needs alsa though. I only ever had one bluetooth headset and it sucked, so I gave it away. It worked fine with the pocketchip, even at 80'-ish. Although the module to have it auto bluetooth on connect was a bit flaky. Granted an old distro + 1GHz cpu on a low ram embedded device of sorts.

About all the .asoundrc would do in the previous was give " -D pulse " a place to go. It's also the config needed for a pulse over jackd configuration. What I normally do when I network audio. AKA many machines, one good sound card, one good set of speakers. Most of my sound cards use the snd-usb-audio driver and function nicely. I've had snd-hda-intel devices before and they can be flaky, but generally do work with the right kernel version, and perhaps some extra parameters to the module. Or in the software that uses it. Like " -p 3 " ( -p 2 default ) for jack. It works without that but sound gets distorted and weird.

You could google the vender:device numbers for yours and see if others have your issues. That seems the most "unique" way of identification, since seo and other things muddy the waters for any other searches. More so these days than days of old. Google one way mirrors and get 15 pages of one way airline tickets before you get to anything about mirrors. Or so it seems.

lspci -nnk
Code:
00:09.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Device [1022:157a]
	Subsystem: Hewlett-Packard Company Device [103c:81f9]
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
so google 1022:157a (in my case)

lsusb
Code:
Bus 001 Device 008: ID 1235:8202 Focusrite-Novation
for my focusrite 2i2 usb soundcard. So google 1235:8202 on that one.
 
  


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
/usr/bin/ld: errno TLS def.. mismatches non-TLS def.. maverick_pol Fedora 1 07-27-2007 10:50 AM
no sound on for realtek high def audio on ubuntu 5.10 sarathei Linux - Software 1 10-16-2006 10:20 AM
No sound on Intel High Def Audio on Fedora Core 3 ck1125 Linux - Hardware 2 06-06-2005 08:45 PM
Is there any app to convert emacs's syntax highlight def. file to vim's def. file ? cyu021 Linux - Software 0 10-05-2004 11:02 PM

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

All times are GMT -5. The time now is 06:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration