Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scarlett.conf does Not allow multiple... #30

Closed
juanpc2018 opened this issue Jul 22, 2022 · 12 comments
Closed

scarlett.conf does Not allow multiple... #30

juanpc2018 opened this issue Jul 22, 2022 · 12 comments
Labels
invalid This doesn't seem right

Comments

@juanpc2018
Copy link

juanpc2018 commented Jul 22, 2022

$ dmseg
[ 3634.172335] usb 1-1.4: new high-speed USB device number 10 using xhci_hcd
[ 3634.372833] usb 1-1.4: New USB device found, idVendor=1235, idProduct=8201, bcdDevice= 6.75
[ 3634.372838] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[ 3634.372840] usb 1-1.4: Product: Scarlett 18i20 USB
[ 3634.372841] usb 1-1.4: Manufacturer: Focusrite
[ 3634.372842] usb 1-1.4: SerialNumber: 12345678
[ 3634.431030] mc: Linux media interface: v0.10
[ 3638.859028] usb 1-1.4: Focusrite Scarlett Gen 2/3 Mixer Driver disabled; use options snd_usb_audio vid=0x1235 pid=0x8201 device_setup=1 to enable and report any issues to g@b4.vu
[ 3638.860475] usbcore: registered new interface driver snd-usb-audio

image

image

/etc/modprobe.d/scarlett.conf

options snd_usb_audio vid=0x1235 pid=0x8201 device_setup=1
options snd_usb_audio vid=0x1235 pid=0x8208 device_setup=1
options snd_usb_audio vid=0x1235 pid=0x8215 device_setup=1

Only 1 supported interface connected.
does Not allow multiple.

@juanpc2018 juanpc2018 changed the title Version 0.2-6-gbe3f Seems .conf does Not allow multiple... Jul 22, 2022
@juanpc2018
Copy link
Author

juanpc2018 commented Jul 22, 2022

Reboot & Works
BUT.. Only 1 interface.

Not multiple.

/etc/modprobe.d/scarlett.conf

options snd_usb_audio vid=0x1235 pid=0x8201 device_setup=1
# options snd_usb_audio vid=0x1235 pid=0x8208 device_setup=1
# options snd_usb_audio vid=0x1235 pid=0x8215 device_setup=1
options snd_usb_audio vid=0x1235 pid=0x8201 device_setup=1
# options snd_usb_audio vid=0x1235 pid=0x8208 device_setup=1
options snd_usb_audio vid=0x1235 pid=0x8215 device_setup=1
options snd_usb_audio vid=0x1235 pid=0x8201 device_setup=1
options snd_usb_audio vid=0x1235 pid=0x8208 device_setup=1
# options snd_usb_audio vid=0x1235 pid=0x8215 device_setup=1
# options snd_usb_audio vid=0x1235 pid=0x8201 device_setup=1
options snd_usb_audio vid=0x1235 pid=0x8208 device_setup=1
# options snd_usb_audio vid=0x1235 pid=0x8215 device_setup=1

$ uname -r
5.15.0-41-generic

$ neofetch

           `.:/ossyyyysso/:.               Mac@Macmini 
        .:oyyyyyyyyyyyyyyyyyyo:`           ------------ 
      -oyyyyyyyodMMyyyyyyyysyyyyo-         OS: Kubuntu 22.04 LTS x86_64 
    -syyyyyyyyyydMMyoyyyydmMMyyyyys-       Host: Macmini7,1 1.0 
   oyyysdMysyyyydMMMMMMMMMMMMMyyyyyyyo     Kernel: 5.15.0-41-generic 
 `oyyyydMMMMysyysoooooodMMMMyyyyyyyyyo`    Uptime: 5 mins 
 oyyyyyydMMMMyyyyyyyyyyyysdMMysssssyyyo    Packages: 4689 (dpkg), 29 (snap) 
-yyyyyyyydMysyyyyyyyyyyyyyysdMMMMMysyyy-   Shell: bash 5.1.16 
oyyyysoodMyyyyyyyyyyyyyyyyyyydMMMMysyyyo   Resolution: 1920x1080 
yyysdMMMMMyyyyyyyyyyyyyyyyyyysosyyyyyyyy   DE: Plasma 5.24.4 
yyysdMMMMMyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy   WM: KWin 
oyyyyysosdyyyyyyyyyyyyyyyyyyydMMMMysyyyo   WM Theme: Sweet-Dark 
-yyyyyyyydMysyyyyyyyyyyyyyysdMMMMMysyyy-   Theme: Brisa oscuro [Plasma], Akamayan-darker [GTK2/3] 
 oyyyyyydMMMysyyyyyyyyyyysdMMyoyyyoyyyo    Icons: breeze-dark [Plasma], breeze-dark [GTK2/3] 
 `oyyyydMMMysyyyoooooodMMMMyoyyyyyyyyo     Terminal: konsole 
   oyyysyyoyyyysdMMMMMMMMMMMyyyyyyyyo      CPU: Intel i5-4308U (4) @ 3.300GHz 
    -syyyyyyyyydMMMysyyydMMMysyyyys-       GPU: Intel Haswell-ULT 
      -oyyyyyyydMMyyyyyyysosyyyyo-         Memory: 4314MiB / 7827MiB 
        ./oyyyyyyyyyyyyyyyyyyo/.
           `.:/oosyyyysso/:.`                                      
                                                                   


@juanpc2018
Copy link
Author

juanpc2018 commented Jul 22, 2022


[    3.204741] usb 1-1.3: new high-speed USB device number 7 using xhci_hcd
[    3.405364] usb 1-1.3: New USB device found, idVendor=1235, idProduct=8208, bcdDevice= 4.ab
[    3.405369] usb 1-1.3: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[    3.405371] usb 1-1.3: Product: Clarett 8Pre USB
[    3.405373] usb 1-1.3: Manufacturer: Focusrite
[    3.405374] usb 1-1.3: SerialNumber: 12345678


[    4.040716] usb 1-1.4: new high-speed USB device number 10 using xhci_hcd
[    4.241402] usb 1-1.4: New USB device found, idVendor=1235, idProduct=8201, bcdDevice= 6.75
[    4.241408] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[    4.241410] usb 1-1.4: Product: Scarlett 18i20 USB
[    4.241412] usb 1-1.4: Manufacturer: Focusrite
[    4.241413] usb 1-1.4: SerialNumber: 12345678

@juanpc2018 juanpc2018 changed the title Seems .conf does Not allow multiple... scarlett.conf does Not allow multiple... Jul 22, 2022
@geoffreybennett
Copy link
Owner

Hi Juan,

The Clarett should be ignored by the GUI:

    if (strncmp(snd_ctl_card_info_get_name(info), "Scarlett", 8) != 0)
      goto next;

so there should be no difference to whether you have the Scarlett or the Scarlett and the Clarett plugged in.

Please try this:

  1. Put only options snd_usb_audio vid=0x1235 pid=0x8201 device_setup=1 in your scarlett.conf
  2. Reboot with neither interface plugged in
  3. Run dmesg -W | tee /tmp/juanpc2018-dmesg.txt to watch kernel messages while you do the next step
  4. Run alsa-scarlett-gui & it should display the "no interface found" window
  5. Plug in the Scarlett & the UI should come up
  6. Plug in the Clarett & nothing should happen
  7. Restart alsa-scarlett-gui & the UI for the Scarlett should come up
  8. If some step above doesn't work:
    8.1) Run alsactl -f /tmp/juanpc2018-all-cards.store with both interfaces plugged in, and attach (don't paste!) that file here
    8.2) Press ^C to stop the dmesg command & attach that file here too.

Regards,
Geoffrey.

@juanpc2018
Copy link
Author

juanpc2018 commented Jul 24, 2022

image

$ sudo dmesg -W | tee /tmp/juanpc2018-dmesg.txt

[  589.523205] usb 1-1: USB disconnect, device number 2
[  592.836805] usb 1-1: new high-speed USB device number 9 using xhci_hcd
[  592.984893] usb 1-1: New USB device found, idVendor=1a40, idProduct=0101, bcdDevice= 1.11
[  592.984904] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  592.984908] usb 1-1: Product: USB 2.0 Hub
[  592.986093] hub 1-1:1.0: USB hub found
[  592.986451] hub 1-1:1.0: 4 ports detected
[  596.068552] usb 1-1.1: new full-speed USB device number 10 using xhci_hcd
[  596.294404] usb 1-1.1: New USB device found, idVendor=045e, idProduct=0745, bcdDevice= 6.33
[  596.294417] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  596.294423] usb 1-1.1: Product: Microsoft® 2.4GHz Transceiver v7.0
[  596.294428] usb 1-1.1: Manufacturer: Microsoft
[  596.304874] input: Microsoft Microsoft® 2.4GHz Transceiver v7.0 as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:045E:0745.0007/input/input19
[  596.365252] hid-generic 0003:045E:0745.0007: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Microsoft® 2.4GHz Transceiver v7.0] on usb-0000:00:14.0-1.1/input0
[  596.373527] input: Microsoft Microsoft® 2.4GHz Transceiver v7.0 Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:045E:0745.0008/input/input20
[  596.373903] input: Microsoft Microsoft® 2.4GHz Transceiver v7.0 Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:045E:0745.0008/input/input21
[  596.433165] hid-generic 0003:045E:0745.0008: input,hidraw1: USB HID v1.11 Mouse [Microsoft Microsoft® 2.4GHz Transceiver v7.0] on usb-0000:00:14.0-1.1/input1
[  596.440473] input: Microsoft Microsoft® 2.4GHz Transceiver v7.0 Consumer Control as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.2/0003:045E:0745.0009/input/input22
[  596.497066] input: Microsoft Microsoft® 2.4GHz Transceiver v7.0 System Control as /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.1/1-1.1:1.2/0003:045E:0745.0009/input/input24
[  596.497475] hid-generic 0003:045E:0745.0009: input,hiddev0,hidraw2: USB HID v1.11 Device [Microsoft Microsoft® 2.4GHz Transceiver v7.0] on usb-0000:00:14.0-1.1/input2
[  610.456032] usb 1-1.4: new high-speed USB device number 11 using xhci_hcd
[  610.656688] usb 1-1.4: New USB device found, idVendor=1235, idProduct=8201, bcdDevice= 6.75
[  610.656695] usb 1-1.4: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[  610.656697] usb 1-1.4: Product: Scarlett 18i20 USB
[  610.656699] usb 1-1.4: Manufacturer: Focusrite
[  610.656701] usb 1-1.4: SerialNumber: 12345678
[  610.703704] mc: Linux media interface: v0.10
[  615.128986] usb 1-1.4: Focusrite Scarlett Gen 2/3 Mixer Driver enabled pid=0x8201
[  615.134283] usbcore: registered new interface driver snd-usb-audio
[  768.049990] audit: type=1400 audit(1658694915.337:171): apparmor="DENIED" operation="connect" profile="/usr/sbin/cupsd" pid=1494 comm="cupsd" family="unix" sock_type="stream" protocol=0 requested_mask="send receive connect" denied_mask="send connect" addr=none peer_addr="@2F746D702F65736574732E736F636B0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" peer="unconfined"
[  864.548111] usb 1-7.1: new high-speed USB device number 12 using xhci_hcd
[  864.660771] usb 1-7.1: New USB device found, idVendor=1235, idProduct=8208, bcdDevice= 4.ab
[  864.660785] usb 1-7.1: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[  864.660791] usb 1-7.1: Product: Clarett 8Pre USB
[  864.660795] usb 1-7.1: Manufacturer: Focusrite
[  864.660799] usb 1-7.1: SerialNumber: 12345678

@geoffreybennett
Copy link
Owner

Need the alsactl output too

@juanpc2018
Copy link
Author

juanpc2018 commented Jul 25, 2022

$ sudo alsactl -f /tmp/juanpc2018 store -all

juanpc2018-all.zip

$ sudo dmesg -W | tee /tmp/juanpc2018-dmesg.txt
[sudo] password : 
[92679.248652] usb 1-7.1: USB disconnect, device number 15
[92732.442572] usb 1-7.1: new high-speed USB device number 16 using xhci_hcd
[92732.555334] usb 1-7.1: New USB device found, idVendor=1235, idProduct=8208, bcdDevice= 4.ab
[92732.555348] usb 1-7.1: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[92732.555354] usb 1-7.1: Product: Clarett 8Pre USB
[92732.555358] usb 1-7.1: Manufacturer: Focusrite
[92732.555362] usb 1-7.1: SerialNumber:

@geoffreybennett
Copy link
Owner

That alsactl output looks fine. I'm able to load it and see your interface settings.

At step 5, that I gave you above, what happened? If nothing happened, what happens if you restart alsa-scarlett-gui at that point?

@juanpc2018
Copy link
Author

works ok,
the problem is the .conf
does Not allow 2 or more.
when Reboot.

@geoffreybennett
Copy link
Owner

Step 5 works ok? Then, please write out the steps to follow in order to 1) reproduce the problem and 2) make it work okay.

@juanpc2018
Copy link
Author

Work steps:

  1. create a .conf with 1 interface.
  2. reboot.
  3. works.

FAIL Steps:

  1. create a .conf with 2 interfaces.
  2. reboot.
  3. Fail.

@geoffreybennett
Copy link
Owner

According to the dmesg output you provided, you have two cards:

  • Scarlett 18i20 USB (Gen 2) pid=0x8201
  • Clarett 8Pre USB pid=0x8208

The Clarett is not currently supported by this driver, so your .conf file should only have 1 interface, and as you stated, it will work then.

If you had two supported interfaces (say if you had an 18i20 Gen 2 + an 18i20 Gen 3), then I guess the line would be:

options snd_usb_audio vid=0x1235,0x1235 pid=0x8201,0x8215 device_setup=1,1

This guess is based on the documentation at https://alsa.opensrc.org/MultipleUSBAudioDevices

@geoffreybennett geoffreybennett added the invalid This doesn't seem right label Jul 27, 2022
@geoffreybennett geoffreybennett closed this as not planned Won't fix, can't repro, duplicate, stale Jul 29, 2022
@geoffreybennett
Copy link
Owner

Clarett+ 8Pre is supported now. Hopefully the Clarett 8Pre USB works too, but that needs someone to test. https://github.com/geoffreybennett/scarlett-gen2/commits/scarlett-gen3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants