LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Usb soundcard "NUMARK mixtrack pro 2" does not work (https://www.linuxquestions.org/questions/linux-hardware-18/usb-soundcard-numark-mixtrack-pro-2-does-not-work-4175612190/)

floorripper 08-18-2017 05:30 AM

Usb soundcard "NUMARK mixtrack pro 2" does not work
 
2 Attachment(s)
Hi guys I have just bought "Numark mixtrack pro 2". Using ubuntu 14.04 LTS. The DJ Controller is working quite fine after the script mapping import.
But I am not able to use the sound card.

I cannot select MIxtrack pro 2/cahnnel 1-2 in Sound settings, it says Error! Another channels do not work as well.

majo@laptop:~$ lsusb
Bus 002 Device 005: ID 15e4:004b Numark
Bus 002 Device 003: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 006: ID 04f2:b15e Chicony Electronics Co., Ltd
Bus 001 Device 005: ID 138a:0007 Validity Sensors, Inc. VFS451 Fingerprint Reader
Bus 001 Device 004: ID 03f0:241d Hewlett-Packard Gobi 2000 Wireless Modem (QDL mode)
Bus 001 Device 003: ID 03f0:231d Hewlett-Packard Broadcom 2070 Bluetooth Combo
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

majo@laptop:~$ cat /proc/asound/cards
0 [MID ]: HDA-Intel - HDA Intel MID
HDA Intel MID at 0xd4720000 irq 48
1 [II ]: USB-Audio - MixTrack Pro II
Numark MixTrack Pro II at usb-0000:00:1d.0-1.2, full speed

kilgoretrout 08-18-2017 06:48 AM

With the usb device connected, post the output of:
Code:

$ aplay -l | grep card
That will tell you if your usb device is being recognized by alsa. Pulse audio sits on top of alsa and per your post, pulse audio is not picking up your usb device. If it is detected by alsa, an edit to /etc/pulse/default.pa might fix the pulse audio non-detection problem. See this post for a more detailed discussion:

https://askubuntu.com/questions/6870...seaudio#689456

floorripper 08-19-2017 08:19 AM

majo@laptop:~$ aplay -l | grep card
card 0: MID [HDA Intel MID], device 0: 92HD75B3X5 Analog [92HD75B3X5 Analog]
card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
card 0: MID [HDA Intel MID], device 7: HDMI 1 [HDMI 1]
card 0: MID [HDA Intel MID], device 8: HDMI 2 [HDMI 2]
card 1: II [MixTrack Pro II], device 0: USB Audio [USB Audio]

floorripper 08-19-2017 08:40 AM

Code:

majo@laptop:~$  aplay -l | grep card
card 0: MID [HDA Intel MID], device 0: 92HD75B3X5 Analog [92HD75B3X5 Analog]
card 0: MID [HDA Intel MID], device 3: HDMI 0 [HDMI 0]
card 0: MID [HDA Intel MID], device 7: HDMI 1 [HDMI 1]
card 0: MID [HDA Intel MID], device 8: HDMI 2 [HDMI 2]
card 1: II [MixTrack Pro II], device 0: USB Audio [USB Audio]

I have added this line into etc/pulse/default.pa


Code:

load-module module-alsa-sink device=hw:0
load-module module-alsa-sink device=hw:1

But I still got error message. See the picture. And as a bonus I have blocked my internal sound card. Does not work anymore.
I am doing rollback now.

aus9 08-19-2017 09:30 AM

try open terminal and run command

Code:

alsamixer -c1
if it shows the usb device take a screenshot and upload it to imgur.com and link to it.

in alsamixer, press the m key at the relevant output control to unmute or mute
page up/down arrow up/down adjusts volume

if usb device is not showing press the F6 button and tell us what options show pls

floorripper 08-19-2017 03:01 PM

1 Attachment(s)
Code:

────────────────────────── AlsaMixer v1.0.27.2 ─────────────────────────────┐
│ Card: MixTrack Pro II                                F1:  Help              │
│ Chip: USB Mixer                                      F2:  System information │
│ View: F3: Playback  F4: Capture  F5: All            F6:  Select sound card  │
│ Item:                                                Esc: Exit              │
│                                                                              │
│                                                                              │
│                                                                              │
│                This sound device does not have any controls.                │


kilgoretrout 08-20-2017 10:35 AM

Quote:

I have added this line into etc/pulse/default.pa


Code:

load-module module-alsa-sink device=hw:0
load-module module-alsa-sink device=hw:1

But I still got error message.
Checking with the link I gave you, the edit to /etc/pulse/default.pa should be just:
Code:

load-module module-alsa-sink device=hw:1
You're setting a default so pulse audio may stop at the first line with "hw:0" and set that as the default. However, your usb device is "hw:1" per your aplay ouutput. Unless I'm reading your post wrong, I would try adding a single line with hw:1 and see if it works.

Edit: Just another thought - have you checked to make sure the usb sound module is loaded? To do that run:
Code:

$ lsmod | grep snd_usb
If you get nothing, the module is not loaded and it's needed for usb sound devices to work. You can load it with:
Code:

$ sudo modprobe snd-usb-audio

aus9 08-20-2017 06:39 PM

and at the risk of scaring the OP, device is not yet named at alsa site
https://www.alsa-project.org/main/index.php/Matrix:Main

2) in addition to kilgoretrout kind suggestions, since you are on Ubuntu try this and post any significant results

Code:

journalctl -r | grep Numark
then just view journalctl -r and page down to look at lines near any hits you get for above command. copy and paste all lines that appear to relate to the detection of the numark pls....in the hope it helps

Shadow_7 08-21-2017 03:58 AM

$ pavucontrol

And select all the cards that your are NOT using and set them to OFF. And sometimes toggle the one you want to use to OFF then back to ON. Otherwise make sure the user is in the audio group.

$ speaker-test -c 2 -l 1 -D hw:1

The snd-usb-audio recognized it at least. And assigned an index to it.

$ groups | grep -i audio

floorripper 09-01-2017 12:58 PM

Quote:

Originally Posted by Shadow_7 (Post 5750472)
$ pavucontrol
$ groups | grep -i audio

this command, gives me no output and in the pavucontrol is not listed as well.

floorripper 09-01-2017 01:16 PM

Code:

majo@laptop:~$  lsmod | grep snd_usb
snd_usb_audio        166432  0
snd_usbmidi_lib        29895  1 snd_usb_audio
snd_hwdep              17698  2 snd_usb_audio,snd_hda_codec
snd_pcm              104112  5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_rawmidi            31463  2 snd_usbmidi_lib,snd_seq_midi
snd                    79562  19 snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device

I have added this line into etc/pulse/default.pa and did the Modprobe.
After the modprobe I can select Numark in the MIXXX program, but the sound output is horrible. It clicks and cannot be used. Headphones are beeping in the right speaker.

floorripper 09-01-2017 01:25 PM

Quote:

Originally Posted by kilgoretrout (Post 5750193)
Checking with the link I gave you, the edit to /etc/pulse/default.pa should be just:
Code:

load-module module-alsa-sink device=hw:1
You're setting a default so pulse audio may stop at the first line with "hw:0" and set that as the default. However, your usb device is "hw:1" per your aplay ouutput. Unless I'm reading your post wrong, I would try adding a single line with hw:1 and see if it works.

Edit: Just another thought - have you checked to make sure the usb sound module is loaded? To do that run:
Code:

$ lsmod | grep snd_usb
If you get nothing, the module is not loaded and it's needed for usb sound devices to work. You can load it with:
Code:

$ sudo modprobe snd-usb-audio

Quote:

Originally Posted by aus9 (Post 5750319)
and at the risk of scaring the OP, device is not yet named at alsa site
https://www.alsa-project.org/main/index.php/Matrix:Main

2) in addition to kilgoretrout kind suggestions, since you are on Ubuntu try this and post any significant results

Code:

journalctl -r | grep Numark
then just view journalctl -r and page down to look at lines near any hits you get for above command. copy and paste all lines that appear to relate to the detection of the numark pls....in the hope it helps


Yes numark is not listed there. I tried to install "journalctl" but ubuntu 14.04 does not support that deamon/packadge. Please advise what to do next.

Shadow_7 09-02-2017 09:56 PM

Quote:

Originally Posted by floorripper (Post 5754547)
this command, gives me no output and in the pavucontrol is not listed as well.

That's not good. The groups command (without parms) lists the groups that the current user is in. If you're not in the audio group, then no wonder that it doesn't work for you. Permissions is why.

$ cat /etc/group | grep -i audio
$ groups | grep -i audio

$ sudo usermod -G {user},audio,{any other pre-existing groups like video} {user}

For me:

$ groups
games video audio username

floorripper 09-03-2017 06:56 AM

Quote:

Originally Posted by Shadow_7 (Post 5755057)
That's not good. The groups command (without parms) lists the groups that the current user is in. If you're not in the audio group, then no wonder that it doesn't work for you. Permissions is why.

$ cat /etc/group | grep -i audio
$ groups | grep -i audio

$ sudo usermod -G {user},audio,{any other pre-existing groups like video} {user}

For me:

$ groups
games video audio username

Code:

majo@laptop:~$ cat /etc/group | grep -i audio
audio:x:29:pulse

===================================================================

Code:

groups | grep -i audio
>>> Gives nothing

I did:
Code:

majo@laptop:~$ sudo usermod -G  majo,audio  majo
after that:
Code:

majo@laptop:~$ cat /etc/group | grep -i audio
audio:x:29:pulse,majo


Stil does not work, I tried combination of your suggestions and the suggestions from kilgoretrout.
When I select NUMARK as an audio device in MIXXX, I am getting "error opening the device unknown error".

Shadow_7 09-03-2017 06:40 PM

You have to re-login after group changes for them to show. (or reboot) (or su to yourself). Otherwise all the OLD permissions remain active.

$ su - username
$ groups


All times are GMT -5. The time now is 05:35 PM.