KXStudio: sound disappeared [SOLVED]

What other apps and distros do you use to round out your studio?

Moderators: MattKingUSA, khz

Post Reply
User avatar
Heikki Ketoharju
Established Member
Posts: 40
Joined: Thu Mar 22, 2012 9:24 am

KXStudio: sound disappeared [SOLVED]

Post by Heikki Ketoharju »

Hello!

I'm a happy user of KXStudio for several years now, but recently my system has gone silent.

I updated nothing, changed 0 settings. Sound worked one time and not in the next.
I'm using hw:0 as my default Sound Card. It's quite normal Intel built-in card:

Code: Select all

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
Everything seems nice: Cadence comes up, Jack Starts, Claudia starts and all the software works. Jack logs report no errors. System gives clearly an output to the soundcard. I can see it from software meters. I can record Jack master output to the disk and the file works perfectly when played from the another OS.

I've tried plain alsavia aplay and speakertest -commands, but nothing comes out from the speakers. Those commands report no error. Everything looks normal in alsamixer.

Seems like my system works but there is kind of master mute somewhere. What the heck? What can be a reason for this? I'm really confused.

I'm using a double boot system, where I'm using ordinary Xubuntu installation for everyday work and KXStudio for audio work. This setup has worked effectively now for a five years. This is a first problem I encounter. I hope someone can help!
Last edited by Heikki Ketoharju on Sat Jan 09, 2016 4:40 pm, edited 1 time in total.
rghvdberg
Established Member
Posts: 1067
Joined: Mon May 12, 2014 7:11 am
Has thanked: 15 times
Been thanked: 36 times

Re: KXStudio: sound disappeared

Post by rghvdberg »

obvious question: did you check alsamixer ?
asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: KXStudio: sound disappeared

Post by asbak »

You could try amixer, sometimes my USB card's inputs switch off for some reason and I have to re-activate them.

Get card number

aplay -l

then check in amixer if anything is "off"

amixer -c 0 contents

Alternatively, perhaps also check for audio modules, whether they're loading.
lsmod | grep snd

Perhaps try enabling pulseaudio to see if that helps produce any sound, then move on to checking jack.
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
User avatar
Heikki Ketoharju
Established Member
Posts: 40
Joined: Thu Mar 22, 2012 9:24 am

Re: KXStudio: sound disappeared

Post by Heikki Ketoharju »

Thanks for your answers!

I checked, and snd_hda_intel is loaded, so it should work.

I've tried alsamixer, but amixer I hadn't. So I checked it and everything looked normal for me. Changed few settings, but still no sound via speakertest, aplay nor ZynAddSubFX via Jack. Still everything startups and runs without errors.

I'm not very experienced with amixer, so I'll post the output of the command here, if you will find something interesting:

Code: Select all

$amixer -c 0 contents

numid=21,iface=CARD,name='Dock Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=19,iface=CARD,name='Dock Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=22,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=18,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=17,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=23,iface=CARD,name='SPDIF Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=20,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=16,iface=MIXER,name='Master Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=15,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=74,step=0
  : values=74
  | dBscale-min=-74.00dB,step=1.00dB,mute=0
numid=4,iface=MIXER,name='Headphone Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=3,iface=MIXER,name='Headphone Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=74,step=0
  : values=74,74
  | dBscale-min=-74.00dB,step=1.00dB,mute=1
numid=30,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
  : values=255,255
  | dBscale-min=-51.00dB,step=0.20dB,mute=0
numid=7,iface=MIXER,name='Mic Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=4,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=6,iface=MIXER,name='Capture Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=80,step=0
  : values=80,80
  | dBscale-min=-74.00dB,step=1.00dB,mute=0
numid=14,iface=MIXER,name='IEC958 Default PCM Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=10,iface=MIXER,name='IEC958 Playback Con Mask'
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=11,iface=MIXER,name='IEC958 Playback Pro Mask'
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=12,iface=MIXER,name='IEC958 Playback Default'
  ; type=IEC958,access=rw------,values=1
  : values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
numid=13,iface=MIXER,name='IEC958 Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=5,iface=MIXER,name='Auto-Mute Mode'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'Disabled'
  ; Item #1 'Enabled'
  : values=0
numid=25,iface=MIXER,name='Beep Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=24,iface=MIXER,name='Beep Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=3,step=0
  : values=0
  | dBscale-min=-18.00dB,step=6.00dB,mute=0
numid=29,iface=MIXER,name='Digital Capture Volume'
  ; type=INTEGER,access=rw---RW-,values=2,min=0,max=120,step=0
  : values=60,60
  | dBscale-min=-30.00dB,step=0.50dB,mute=0
numid=9,iface=MIXER,name='Dock Mic Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=4,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=8,iface=MIXER,name='Internal Mic Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=4,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=12.00dB,mute=0
numid=2,iface=MIXER,name='Speaker Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=1,iface=MIXER,name='Speaker Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=74,step=0
  : values=74,74
  | dBscale-min=-74.00dB,step=1.00dB,mute=1
numid=27,iface=PCM,name='Capture Channel Map'
  ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
  : values=0,0
  |     | chmap-fixed=FL,FR

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

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

asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: KXStudio: sound disappeared

Post by asbak »

I'm no expert at amixer but looking at that output a lot of stuff seems "off", try enabling it (read the man page for the syntax)
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
User avatar
Heikki Ketoharju
Established Member
Posts: 40
Joined: Thu Mar 22, 2012 9:24 am

Re: KXStudio: sound disappeared

Post by Heikki Ketoharju »

I played a little bit more with these parameters.
Two suspicious are 'Master Playback Switch' and 'Speaker Playback Switch', both set to 0 or 'off'. I haven't heard about them never before so I'm not sure do they affect something or not. However, I cannot change their status.

In those mixer controls one can see:

1) Laptop Docking station related controls (headphone/mic jack)
2) Laptop jacks (headphone/mic)
3) Laptop internal devices (speakers/mic)
4) Modem related stuff [my soundcard chip is Conexant CX20561 (Hermosa), hence the modem stuff I think.]
5) Beeper related stuff

I'm not sure what SPDIF-related controls are, because there's no SPDIF controls in my sound card as long as I know.

PCM controls are something related to the internal structure of the card. Maybe there is PCM channel that is then routed to some output. I think Capture is the same other way round: different mic sources can be routed to Capture, which actually does the capturing thing. And lastly there are some channel maps. Not sure what these are really.

Code: Select all

$amixer contents
numid=21,iface=CARD,name='Dock Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=19,iface=CARD,name='Dock Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=22,iface=CARD,name='Headphone Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=18,iface=CARD,name='Internal Mic Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=17,iface=CARD,name='Mic Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=off
numid=23,iface=CARD,name='SPDIF Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=20,iface=CARD,name='Speaker Phantom Jack'
  ; type=BOOLEAN,access=r-------,values=1
  : values=on
numid=16,iface=MIXER,name='Master Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=15,iface=MIXER,name='Master Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=74,step=0
  : values=74
  | dBscale-min=-74.00dB,step=1.00dB,mute=0
numid=4,iface=MIXER,name='Headphone Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=3,iface=MIXER,name='Headphone Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=74,step=0
  : values=74,74
  | dBscale-min=-74.00dB,step=1.00dB,mute=1
numid=30,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0
  : values=255,255
  | dBscale-min=-51.00dB,step=0.20dB,mute=0
numid=7,iface=MIXER,name='Mic Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=4,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=6,iface=MIXER,name='Capture Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=80,step=0
  : values=80,80
  | dBscale-min=-74.00dB,step=1.00dB,mute=0
numid=14,iface=MIXER,name='IEC958 Default PCM Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=10,iface=MIXER,name='IEC958 Playback Con Mask'
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0xff AES2=0x00 AES3=0x00]
numid=11,iface=MIXER,name='IEC958 Playback Pro Mask'
  ; type=IEC958,access=r-------,values=1
  : values=[AES0=0x0f AES1=0x00 AES2=0x00 AES3=0x00]
numid=12,iface=MIXER,name='IEC958 Playback Default'
  ; type=IEC958,access=rw------,values=1
  : values=[AES0=0x04 AES1=0x00 AES2=0x00 AES3=0x00]
numid=13,iface=MIXER,name='IEC958 Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=off
numid=5,iface=MIXER,name='Auto-Mute Mode'
  ; type=ENUMERATED,access=rw------,values=1,items=2
  ; Item #0 'Disabled'
  ; Item #1 'Enabled'
  : values=0
numid=25,iface=MIXER,name='Beep Playback Switch'
  ; type=BOOLEAN,access=rw------,values=1
  : values=on
numid=24,iface=MIXER,name='Beep Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=0,max=3,step=0
  : values=0
  | dBscale-min=-18.00dB,step=6.00dB,mute=0
numid=29,iface=MIXER,name='Digital Capture Volume'
  ; type=INTEGER,access=rw---RW-,values=2,min=0,max=120,step=0
  : values=60,60
  | dBscale-min=-30.00dB,step=0.50dB,mute=0
numid=9,iface=MIXER,name='Dock Mic Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=4,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=10.00dB,mute=0
numid=8,iface=MIXER,name='Internal Mic Boost Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=4,step=0
  : values=0,0
  | dBscale-min=0.00dB,step=12.00dB,mute=0
numid=2,iface=MIXER,name='Speaker Playback Switch'
  ; type=BOOLEAN,access=rw------,values=2
  : values=off,off
numid=1,iface=MIXER,name='Speaker Playback Volume'
  ; type=INTEGER,access=rw---R--,values=2,min=0,max=74,step=0
  : values=74,74
  | dBscale-min=-74.00dB,step=1.00dB,mute=1
numid=27,iface=PCM,name='Capture Channel Map'
  ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
  : values=0,0
  |     | chmap-fixed=FL,FR

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

numid=28,iface=PCM,name='Playback Channel Map',device=1
  ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0
  : values=0,0
  |     | chmap-fixed=FL,FR
asbak
Established Member
Posts: 897
Joined: Thu Sep 11, 2014 3:04 pm
Has thanked: 71 times
Been thanked: 64 times

Re: KXStudio: sound disappeared

Post by asbak »

I dunno if it's relevant to your problem but I turned on some of my disabled USB ports like this

amixer -c 3 cset numid=7 on

So for your card, for example to turn on the 'Dock Headphone Jack and Dock Mic Jack'

amixer -c 0 cset numid=21 on
amixer -c 0 cset numid=22 on


numid=16,iface=MIXER,name='Master Playback Switch'
; type=BOOLEAN,access=rw------,values=1
: values=off

amixer -c 0 cset numid=16 on


and so on. You'd have to go through the list and experiment with all the numid's.


Perhaps also look for an .asoundrc file in your home folder, if there is one then remove it and try again.
Try enabling pulseaudio and get that working first.


Alsa settings are stored here

/var/lib/alsa/asound.state

You could also look at the alsactl command, for example to restore settings:

alsactl restore


To initialise alsa. Perhaps this could reset/reinitialise the settings.

alsactl init

I don't know alsa configs very well so please do some more reading on these topics before trying anything.
Some Focal / 20.04 audio packages and resources https://midistudio.groups.io/g/linuxaudio
User avatar
Heikki Ketoharju
Established Member
Posts: 40
Joined: Thu Mar 22, 2012 9:24 am

Re: KXStudio: sound disappeared

Post by Heikki Ketoharju »

amixer command solved my problem!

I switched 'Master Playback Switch' and 'Speaker Playback Switch' to 'on' and sound works again!

Code: Select all

amixer -c 0 cset numid=2 on
amixer -c 0 cset numid=16 on
Thanks everyone!

BTW: .asoundrc is custom in KXStudio, and it works as a Alsa-Jack bridge. So it's not wise to edit it.
Post Reply