Page 1 of 2

No sound with KX Studio

Posted: Fri Dec 18, 2015 5:16 pm
by Mister Mint
Hi all,

I first installed the KX Studio repositories, and later I updated to the full KX Studio (kxstudio-desktop and kxstudio-meta-all), but now there's no sound. In the alsamixer I have turned all the volume sliders for my soundcard (M-Audio 2496) up, except for some called <Multi Tr> where it's not possible. And also in the Mudita24 (Eny24) the two analog volume sliders are turned up.

I'm running Mint MATE Rebecca 17.1, and the inbuilt soundcard is HDA Intel. Maybe that should be set as the 2nd soundcard, and M-Audio as the 1st?

Any help appreciated..

tl@tl-P5Q-SE ~ $ aplay -l
**** Liste over PLAYBACK-hardwareenheder ****
lydkort 0: Intel [HDA Intel], enhed 0: ALC1200 Analog [ALC1200 Analog]
Underenheder: 0/1
Underenhed #0: subdevice #0
lydkort 0: Intel [HDA Intel], enhed 1: ALC1200 Digital [ALC1200 Digital]
Underenheder: 1/1
Underenhed #0: subdevice #0
lydkort 1: Loopback [Loopback], enhed 0: Loopback PCM [Loopback PCM]
Underenheder: 8/8
Underenhed #0: subdevice #0
Underenhed #1: subdevice #1
Underenhed #2: subdevice #2
Underenhed #3: subdevice #3
Underenhed #4: subdevice #4
Underenhed #5: subdevice #5
Underenhed #6: subdevice #6
Underenhed #7: subdevice #7
lydkort 1: Loopback [Loopback], enhed 1: Loopback PCM [Loopback PCM]
Underenheder: 7/8
Underenhed #0: subdevice #0
Underenhed #1: subdevice #1
Underenhed #2: subdevice #2
Underenhed #3: subdevice #3
Underenhed #4: subdevice #4
Underenhed #5: subdevice #5
Underenhed #6: subdevice #6
Underenhed #7: subdevice #7
lydkort 2: M2496 [M Audio Audiophile 24/96], enhed 0: ICE1712 multi [ICE1712 multi]
Underenheder: 1/1
Underenhed #0: subdevice #0

tl@tl-P5Q-SE ~ $ arecord -l
**** Liste over CAPTURE-hardwareenheder ****
lydkort 0: Intel [HDA Intel], enhed 0: ALC1200 Analog [ALC1200 Analog]
Underenheder: 0/1
Underenhed #0: subdevice #0
lydkort 0: Intel [HDA Intel], enhed 2: ALC1200 Alt Analog [ALC1200 Alt Analog]
Underenheder: 1/1
Underenhed #0: subdevice #0
lydkort 1: Loopback [Loopback], enhed 0: Loopback PCM [Loopback PCM]
Underenheder: 8/8
Underenhed #0: subdevice #0
Underenhed #1: subdevice #1
Underenhed #2: subdevice #2
Underenhed #3: subdevice #3
Underenhed #4: subdevice #4
Underenhed #5: subdevice #5
Underenhed #6: subdevice #6
Underenhed #7: subdevice #7
lydkort 1: Loopback [Loopback], enhed 1: Loopback PCM [Loopback PCM]
Underenheder: 7/8
Underenhed #0: subdevice #0
Underenhed #1: subdevice #1
Underenhed #2: subdevice #2
Underenhed #3: subdevice #3
Underenhed #4: subdevice #4
Underenhed #5: subdevice #5
Underenhed #6: subdevice #6
Underenhed #7: subdevice #7
lydkort 2: M2496 [M Audio Audiophile 24/96], enhed 0: ICE1712 multi [ICE1712 multi]
Underenheder: 1/1
Underenhed #0: subdevice #0

(Lydkort = sound card)

Re: No sound with KX Studio

Posted: Sat Dec 19, 2015 12:59 pm
by CrocoDuck
My guess is that pulseaudio (that I think is a default package on Mint) is still handling your devices. Check your Audio Devices control panel for your system (that should be more or less a front for pulseaudio). You might also try pavucontrol or some other software like that. These tools should make you able to select a default soundcard for your laptop. When using jack you don't actually need it. Just select your soundcard for the devices fields in qjackctl.

Re: No sound with KX Studio

Posted: Sat Dec 19, 2015 6:47 pm
by Mister Mint
Thank you. The thing is that after installing KX studio, the standard sound preferences panel is gone (When I click the Menu > Sound and video > Sound, a small window pops up saying "Waiting for Sound System to respond", and it keeps staying there until I click Cancel), and Qjackctl has changed so that the field where you choose your soundcard is no longer there.

The software manager says I have pavucontrol installed, but what's its name under Applications? I tried to open 'Volume control for Pulseaudio' but got this message: "Fatal error: Unable to connect to Pulseaudio: OK".

Re: No sound with KX Studio

Posted: Sat Dec 19, 2015 9:30 pm
by asbak
The error msg means that pulseaudio isn't running.

To start Pulse, open a terminal

Code: Select all

pulseaudio --start
Now your pavucontrol and similar should work and you can switch between audio devices.

If you want to stop Pulse

Code: Select all

pulseaudio --kill

Re: No sound with KX Studio

Posted: Sat Dec 19, 2015 11:46 pm
by glowrak guy
Mister Mint wrote: and Qjackctl has changed so that the field where you choose your soundcard is no longer there.
The field is now moved to the new 'Advanced' tab on the main panel.
Along with releated items. That's faked out a lot of people. Still wakes me up on occasion.
Cheers

Re: No sound with KX Studio

Posted: Sun Dec 20, 2015 8:42 pm
by Mister Mint
Thank you, I've started pulseaudio now, and everything looks right in the preferences. And I've chosen my soundcard in Qjackctl (that 'Advanced' tab had escaped my eyes too! :shock: ), then quit Qjackctl and started it again.

But, except from the system's loudspeaker test, there's still no sound..

Also, in Qjackctl under Connect > Audio, my soundcard isn't present.

In Cadence under 'Alsa Audio Bridge Type' I have it set for ALSA -> Loop -> JACK, and under Pulseaudio it says "Pulseaudio is started but not bridged".

When I play a file with Kid3 (a tag-editor with a player) I get this message:

KDE detected that one or more internal devices were removed.
Do you want KDE to permanently forget about these devices?
This is the list of devices KDE thinks can be removed:
Capture: HDA Intel, ALC1200 Analog (Default Audio Device)
Capture: HDA Intel, ALC1200 Analog (Direct hardware device without any conversions)
Capture: HDA Intel, ALC1200 Analog (Direct sample snooping device)
Capture: HDA Intel, ALC1200 Analog (Hardware device with all software conversions)
Capture: M Audio Audiophile 24/96 (ICE1712 multi)
Output: HDA Intel, ALC1200 Analog (Default Audio Device)
Output: HDA Intel, ALC1200 Analog (Direct hardware device without any conversions)
Output: HDA Intel, ALC1200 Analog (Direct sample mixing device)
Output: HDA Intel, ALC1200 Analog (Hardware device with all software conversions)
Output: M Audio Audiophile 24/96 (ICE1712 multi)

EDIT: I can play music and videos from the Internet and with other players on my PC now, so actually it's only VLC and Kid3 and the sequencers on my computer that won't play any sound..

Re: No sound with KX Studio

Posted: Tue Dec 22, 2015 12:56 am
by Mister Mint
I've just re-installed Kid3, and it also plays sound now. So it's only the sequencers that won't. The connections are right in Qjackctl, so I wonder why. I have tried with both Rosegarden, Qtractor, and Ardour.

EDIT: Now streaming from the Internet gives no sound neither. That is, the music / videos are played, there's just no sound. Pulseaudio is running, and Flash player is activated, don't know what else is needed..

EDIT 2: Now I have sound again from Internet. I installed Opera to see if that one gave sound (which it did), and afterwards Firefox also did. So since it's only the sequencers that are totally silent, I guess it must be a problem with Jack. But all the settings look right.

Re: No sound with KX Studio

Posted: Fri Dec 25, 2015 10:18 pm
by Pablo
In Cadence under 'Alsa Audio Bridge Type' I have it set for ALSA -> Loop -> JACK, and under Pulseaudio it says "Pulseaudio is started but not bridged".
This probably means that the package "pulseaudio-module-jack" is not installed.

Make sure that you select the right audio card in the configuration panel. Once jack is started, take a look at
Catia (Cadence tools) and you should see the system playbacks and captures
(system refers to the audio interface, whichever jack is using) and the
Pulseaudio Jack Sink, which should be connected to the system playbacks.

I am not familiar with Linux Mint or KDE, but somewhere in the sound system settings (or else, try pavucontrol)
you have to select the Jack Sink for the sound of desktop applications. I always forget this last step in the rare
cases in which I need jack apps and desktop apps to produce sound at the same time.

Re: No sound with KX Studio

Posted: Sun Dec 27, 2015 8:15 pm
by Mister Mint
Thanks, I've installed the "pulseaudio-module-jack" now, and Cadence says Pulseaudio is brigded to Jack.

in Catia it's the Pulseaudio Jack Source (not "Sink") that is connected to the system playbacks. I see no Sink, only System Playback+Capture 1-2, and Jack2alsa + alsa2Jack, Playback+Capture 1-2.

In pavucontrol, the data out- and in units are both set for Jack Sink (Pulseaudio), but I see no options for selecting the "Jack Sink for the sound of desktop applications" anywhere?

Btw, there is no sound from ANY program now :(

Also, in Qjackctl > Setup > Options, I've put these two scrips:

pacmd load-module module-jack-source channels=2; pacmd load-module module-jack-sink channels=2;

and

pulseaudio -k

like here:

https://sites.google.com/site/nueusx/jack-pulse.png

and restarted, but still no sound...

Re: No sound with KX Studio

Posted: Mon Dec 28, 2015 10:47 pm
by Pablo
In pavucontrol, the data out- and in units are both set for Jack Sink (Pulseaudio), but I see no options for selecting the "Jack Sink for the sound of desktop applications" anywhere?
You already did it. I meant "Desktop applications" such as firefox or the desktop media player in contrast to "music/audio oriented applications" such as ardour or rosegarden. The former use pulseaudio as a sound system, the latter use jack. Pavucontrol manages pulseaudio, qjackctl or Cadence manage Jack.

To narrow down the sources of your problem I suggest leaving out pulseaudio and jack for a moment and use some basic tools to test the sound.

First of all, quit qjackctl, and Cadence, and pavucontrol. Avoid pulseaudio autospawn and kill the sound servers:

echo autospawn = no >> ~/.config/pulse/client.conf
killall -9 jackd jackdbus pulseaudio


(Issue twice the last command, to check the three processes are not found)

Then, open mudita24 again.
In the Analog Volume tab, make sure there are DAC sliders and they are up.
In the Patchbay/Router tab, make sure that H/W Outs are set to PCM Outs.

Now, check again the card number with

cat /proc/asound/cards

Assuming it is number two, as it was when you showed the output of aplay -l, do the speaker test:

speaker-test -Dhw:2 -c2 -twav

where -Dhw:2 means the card number 2
-c2: Two channels
-twav: A test consisting of a female voice saying "front left, front right"

Does it make sound? Is there any problem so far?

Assuming it is OK, decide on what tool you want to use to manage jack. It is qjackctl or Cadence, but not both.
As you have installed KXstudio, the natural and wise choice is Cadence.
Ah, and don't worry about that pacmd command in qjackctl scripts. It is not needed
(it was needed in the past to load the pulseaudio jack sink and source, from qjackctl, but not anymore,
and anyway, you are going to use Cadence, aren't you?).

Now, restart pulseaudio

pulseaudio --start


And start again with Cadence: Choose the right audio card, start Jack, start the pulseaudio bridge. What do you see in Catia?

If nothing seems to work, show the output of this informative command:

jack_lsp -c

It will also help a screenshot of Cadence showing the panel you get when you press Configure: Driver tab

Cheers, Pablo

Re: No sound with KX Studio

Posted: Wed Dec 30, 2015 1:23 pm
by Mister Mint
Pablo wrote:You already did it.
Oh, good :)

I quit qjackctl, and Cadence, and pavucontrol, and did the commands:

tl@tl-P5Q-SE ~ $ echo autospawn = no >> ~/.config/pulse/client.conf

tl@tl-P5Q-SE ~ $ killall -9 jackd jackdbus pulseaudio
jackd: no process found

tl@tl-P5Q-SE ~ $ killall -9 jackd jackdbus pulseaudio
jackd: no process found
jackdbus: no process found
pulseaudio: no process found

In mudita24 > Analog Volume tab, the DAC sliders are up, and in the Patchbay/Router tab, the H/W Outs are set to PCM Outs.

Card number check:

tl@tl-P5Q-SE ~ $ cat /proc/asound/cards
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfbff8000 irq 45
1 [Loopback ]: Loopback - Loopback
Loopback 1
2 [M2496 ]: ICE1712 - M Audio Audiophile 24/96
M Audio Audiophile 24/96 at 0xec00, irq 16


I did the speaker test, but heard no voice. Here's the output:

tl@tl-P5Q-SE ~ $ speaker-test -Dhw:2 -c2 -twav

speaker-test 1.0.27.2

Afspilningsenhed er hw:2
Strømparametre er 48000Hz, S16_LE, 2 kanaler
WAV-filer
Lydprøveformat ikke tilgængeligt for afspilning: Ugyldigt argument
Kunne ikke angive hwparams: Ugyldigt argument

Which in my humble translation means:

Playback unit is hw:2
Current parameters are 48000Hz, S16_LE, 2 channels
WAV-files
Sound test format not accessible for playback: Invalid argument
Could not set hwparams: Invalid argument

Yes, I'll use Cadence, but now I guess the hwparams must be set, before I continue?

EDIT. I've just chosen my sound card in sound preferences and Cadence's Jack settings, and now there's sound from the players :) But still no sound from the sequencer :( (Ardour)

Re: No sound with KX Studio

Posted: Wed Dec 30, 2015 3:29 pm
by Pablo
Playback unit is hw:2
Current parameters are 48000Hz, S16_LE, 2 channels
WAV-files
Sound test format not accessible for playback: Invalid argument
Could not set hwparams: Invalid argument
Oops, it works in my box but try without "-twav". It should produce pink noise.
By the way, you can tell the terminal to print in English, this is:

export LANG=C
killall -9 jackd jackdbus pulseaudio
speaker-test -Dhw:2 -c2

Yes, I'll use Cadence, but now I guess the hwparams must be set, before I continue?
Try the above first. I think it should work
EDIT. I've just chosen my sound card in sound preferences and Cadence's Jack settings, and now there's sound from the players :) But still no sound from the sequencer :( (Ardour)
I suggest that before trying with Ardour, you should make sure that playback through jack works. For example, if you put some mp3 or wav file in your home directory (just to make the command simpler), say "song.mp3".

mplayer -ao jack song.mp3

Or you can use audacious with the jack output plugin, or aqualung.

And what

jack_lsp -c

says?

On the other hand, in the system sound preferences (the same as in pavucontrol) you should choose the Jack Sink for playback once jack is started and the pulseaudio bridge is up. Otherwise, the "normal" players won't make sound once Jack has grabbed the Maudio.

By the way, I am assuming that you want to use the M-audio card for everything and the onboard audio card is not used at all, am I right?

Re: No sound with KX Studio

Posted: Wed Dec 30, 2015 7:00 pm
by Mister Mint
Okay, thanks. Here are the outputs:

tl@tl-P5Q-SE ~ $ export LANG=C

tl@tl-P5Q-SE ~ $ killall -9 jackd jackdbus pulseaudio
jackd: no process found

tl@tl-P5Q-SE ~ $ killall -9 jackd jackdbus pulseaudio
jackd: no process found
pulseaudio: no process found

tl@tl-P5Q-SE ~ $ killall -9 jackd jackdbus pulseaudio
jackd: no process found
pulseaudio: no process found

tl@tl-P5Q-SE ~ $ speaker-test -Dhw:2 -c2
speaker-test 1.0.27.2
Playback device is hw:2
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Sample format not available for playback: Invalid argument
Setting of hwparams failed: Invalid argument

tl@tl-P5Q-SE ~ $ mplayer -ao jack jnd.mp3
MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing jnd.mp3.
File not found: 'jnd.mp3'
Failed to open jnd.mp3.


Exiting... (End of file)

tl@tl-P5Q-SE ~ $ jack_lsp -c
Cannot connect to server socket err = Connection refused
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JACK server not running

I can neither open the system sound preferences (it just says "waiting for sound system to respond") nor the pavucontrol.

I'm lost :?

Re: No sound with KX Studio

Posted: Wed Dec 30, 2015 7:54 pm
by Pablo
tl@tl-P5Q-SE ~ $ speaker-test -Dhw:2 -c2
speaker-test 1.0.27.2
Playback device is hw:2
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Sample format not available for playback: Invalid argument
Setting of hwparams failed: Invalid argument
Does it work:

speaker-test -c2
?
File not found: 'jnd.mp3'
Is jnd.mp3 right under your home directory? Copy the file there just for this test.
tl@tl-P5Q-SE ~ $ jack_lsp -c
JACK server not running
The above command will list your jack ports and connections.
It only makes sense when jack is running. It is like a Catia screenshot, in pure text.
I can neither open the system sound preferences (it just says "waiting for sound system to respond") nor the pavucontrol.
Oh,
because pulseaudio autospawn is off you have to start pulseaudio manually with

pulseaudio --start

To avoid this, delete the line

autospawn = no

in

~/.config/pulse/client.conf

(.config is a hidden directory in your home, so Control-H, show hidden directories,
and navigate to pulse directory, then client.conf file, open with your default text editor,
and delete the line).

Re: No sound with KX Studio

Posted: Wed Dec 30, 2015 9:39 pm
by Mister Mint
"speaker-test -c2" generates no sound neither. Here's the output:


tl@tl-P5Q-SE ~ $ speaker-test -c2

speaker-test 1.0.27.2

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 96 to 1048576
Period size range from 32 to 349526
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
0 - Front Left
1 - Front Right
Time per period = 10.954801
0 - Front Left
1 - Front Right
Time per period = 10.959722
0 - Front Left
Pablo wrote:Is jnd.mp3 right under your home directory? Copy the file there just for this test.
Yes, I copied jnd.mp3 right into my home directory.
Pablo wrote: tl@tl-P5Q-SE ~ $ jack_lsp -c
JACK server not running


The above command will list your jack ports and connections.
It only makes sense when jack is running. It is like a Catia screenshot, in pure text.
Okay :) I have started Jack now in Cadence, and also in Cadence > Configure I have chosen my M-Adio soundcard. (https://onedrive.live.com/embed?cid=E50 ... 89AgORkRZk)

jack_lsp -c now gives this:

tl@tl-P5Q-SE ~ $ jack_lsp -c
system:capture_1
jack2alsa:playback_1
PulseAudio JACK Source:front-left
system:capture_2
jack2alsa:playback_2
PulseAudio JACK Source:front-right
system:playback_1
alsa2jack:capture_1
PulseAudio JACK Sink:front-left
system:playback_2
alsa2jack:capture_2
PulseAudio JACK Sink:front-right
system:playback_3
PulseAudio JACK Sink:rear-left
system:playback_4
PulseAudio JACK Sink:rear-right
system:playback_5
PulseAudio JACK Sink:front-center
system:playback_6
PulseAudio JACK Sink:lfe
system:playback_7
PulseAudio JACK Sink:side-left
system:playback_8
PulseAudio JACK Sink:side-right
jack2alsa:playback_1
system:capture_1
jack2alsa:playback_2
system:capture_2
alsa2jack:capture_1
system:playback_1
alsa2jack:capture_2
system:playback_2
PulseAudio JACK Source:front-left
system:capture_1
PulseAudio JACK Source:front-right
system:capture_2
PulseAudio JACK Sink:front-left
system:playback_1
PulseAudio JACK Sink:front-right
system:playback_2
PulseAudio JACK Sink:rear-left
system:playback_3
PulseAudio JACK Sink:rear-right
system:playback_4
PulseAudio JACK Sink:front-center
system:playback_5
PulseAudio JACK Sink:lfe
system:playback_6
PulseAudio JACK Sink:side-left
system:playback_7
PulseAudio JACK Sink:side-right
system:playback_8

and "pulseaudio --start" gives this:

tl@tl-P5Q-SE ~ $ pulseaudio --start
N: [pulseaudio] main.c: User-configured server at {51e10da18f6509f5e9eb4c96562be76a}unix:/run/user/1000/pulse/native, which appears to be local. Probing deeper.

I've deleted "autospawn = no" from ~/.config/pulse/client.conf, so the file now is empty.

Both the system sound preferences and pavucontrol look right now, with Jack Source and Sink as Input and Output, respectively, but there's no sound from any program..