Focusrite Scarlett 2nd and 3rd Gen mixer driver

Talk about your MIDI interfaces, microphones, keyboards...

Moderators: MattKingUSA, khz

User avatar
sysrqer
Established Member
Posts: 2520
Joined: Thu Nov 14, 2013 11:47 pm
Has thanked: 319 times
Been thanked: 148 times
Contact:

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by sysrqer »

Hi Geoffrey, thanks for explaining how it functions. I didn't know about 3/4 being routed to headphone 2 and that solves what I was trying to do. I'm very happy now, I've got my daw's master output going to my speakers and on headphone 2 I've got the daw's master going to another track which is passing through some corrective eq (for the headphones) so I can seamlessly a/b between speakers and eq flattened eq headphones 8)
wirenoise
Established Member
Posts: 7
Joined: Sun Sep 19, 2021 9:23 pm

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by wirenoise »

geoffrey wrote: Thu Mar 17, 2022 1:53 pm
I'd suggest trying the GUI https://github.com/geoffreybennett/alsa-scarlett-gui to see if you can make it work that way.
First off, THANK YOU!! For all the work you have done and continue to do, many of us would be lost without it.

I run bullseye and, not wishing to upend my entire system for the sake of gtk4, I don't think I will be able to run this GUI any time soon. I have looked at the documentation, the ascii-art atop the source code, and beyond. Alas, I fail to understand many basic concepts within alsamixer. Could you point me in the right direction to learn and understand more about using alsamixer with these drivers? What are Mixes A-F for? Maybe some example routing configurations and their values within alsamixer could provide some understanding for lost users such as myself. I run up against so many issues doing basic routing and I am sure its not the driver's fault, but my own due to lack of understanding.

Thanks again!
geoffrey
Established Member
Posts: 252
Joined: Mon Jul 30, 2018 2:08 am
Has thanked: 33 times
Been thanked: 169 times

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by geoffrey »

wirenoise wrote: Wed Jun 08, 2022 8:46 pm
geoffrey wrote: Thu Mar 17, 2022 1:53 pm
I'd suggest trying the GUI https://github.com/geoffreybennett/alsa-scarlett-gui to see if you can make it work that way.
First off, THANK YOU!! For all the work you have done and continue to do, many of us would be lost without it.

I run bullseye and, not wishing to upend my entire system for the sake of gtk4, I don't think I will be able to run this GUI any time soon. I have looked at the documentation, the ascii-art atop the source code, and beyond. Alas, I fail to understand many basic concepts within alsamixer. Could you point me in the right direction to learn and understand more about using alsamixer with these drivers? What are Mixes A-F for? Maybe some example routing configurations and their values within alsamixer could provide some understanding for lost users such as myself. I run up against so many issues doing basic routing and I am sure its not the driver's fault, but my own due to lack of understanding.

Thanks again!
Hi Wirenoise,

Thanks for your message and sorry about the delay. I haven't been on LinuxMusicians in a while.

Here are some concepts that I hope will help...

Think about this from the perspective of the Scarlett interface itself (you need to be really clear about this bit):
- There are three sources of audio: Hardware Inputs, PCM Outputs (USB from PC), and Mixer Outputs
- There are three destinations for audio: Hardware Outputs, PCM Inputs (USB to PC), and Mixer Inputs

In alsamixer, there are no routing controls for the audio sources. There is one routing control for each of the audio destinations. On each of those destination routing controls you can select an audio source. So in order to route Hardware Input Analogue 2 to Hardware Output Analogue 1 you scroll across to "Item: Analogue Output 01" and select "Analogue 2".

Note that any given audio destination can only have one source selected, but one source can be sent to many destinations. If you want one destination to have audio from more than one source then you need to send the sources to mixer inputs and a mixer output to the destination.

If you've routed things to & from the mixer, then you next need to set the mixer levels. If your device has 8 mixer inputs (1-8) and 6 mixer outputs (A-F) then there are 8x6=48 volume/gain controls, one for how much of each mixer input to send to each mixer output.

I hope this helps. If not, describe what you want to achieve and I'll write that up for you. With these controls, you have complete flexibility on routing between all the audio inputs and outputs so the possibilities are endless :-).

Also, if you look at the routing and mixer parts of the animation on this page: https://github.com/geoffreybennett/alsa-scarlett-gui and the routing and mixer parts on this page: https://github.com/geoffreybennett/alsa ... r/USAGE.md then that may be of use in understanding how it works.

Regards,
Geoffrey.
lad
Established Member
Posts: 45
Joined: Thu Aug 16, 2018 8:31 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by lad »

wirenoise wrote: Wed Jun 08, 2022 8:46 pm
I run bullseye and, not wishing to upend my entire system for the sake of gtk4, I don't think I will be able to run this GUI any time soon.
Don't do what I did and try to install GTK4 from testing... just don't. :"( You will break claudia and who knows what else lol. I just couldn't resist! Hey, at least the UI did work though. But yeah, not 100% ideal!!
OS: Debian 11 kernel: Liquorix
...trying out AV Linux
azido
Established Member
Posts: 4
Joined: Mon Sep 19, 2022 6:43 pm
Has thanked: 1 time

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by azido »

Hi there,

i'm just switched from Windows 10 to Ubuntu 22.04.1 LTS with default current kernel. Please call me a noob and forgive me, but:

what exactly have i to do in order to get my Focusrite Scarlet 6i6 Gen2 fully recognized on ubuntu? What do i need to install and how?
I have some basic linux experience, but that subject seems to be too much for me right now. Can you help me step by step?

Would be great. Thank you!

regards,
azido
geoffrey
Established Member
Posts: 252
Joined: Mon Jul 30, 2018 2:08 am
Has thanked: 33 times
Been thanked: 169 times

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by geoffrey »

Hi azido!
azido wrote: Mon Sep 19, 2022 6:50 pm Hi there,

i'm just switched from Windows 10 to Ubuntu 22.04.1 LTS with default current kernel. Please call me a noob and forgive me, but:

what exactly have i to do in order to get my Focusrite Scarlet 6i6 Gen2 fully recognized on ubuntu? What do i need to install and how?
I have some basic linux experience, but that subject seems to be too much for me right now. Can you help me step by step?

Would be great. Thank you!

regards,
azido
Please follow the instructions here: https://github.com/geoffreybennett/alsa-scarlett-gui

If you get stuck/any issues, send through a question!

Regards,
Geoffrey.
azido
Established Member
Posts: 4
Joined: Mon Sep 19, 2022 6:43 pm
Has thanked: 1 time

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by azido »

geoffrey wrote: Tue Sep 20, 2022 1:23 pm Hi azido!

Please follow the instructions here: https://github.com/geoffreybennett/alsa-scarlett-gui

If you get stuck/any issues, send through a question!

Regards,
Geoffrey.
Hi Geoffrey!

Thanks for stepping by that fast and pointing me to the right direction.
I didn't realize your driver is already embedded in the kernel and just needed to be enabled, thought i have to recompile kernel etc.
After adding scarlett.conf and followed your instructions i can configure my sound device from your gui with mostly success :)
However, there's one thing i still have no clue of:

My main outputs connected to the amplifier are hardware outputs 3+4. If i route PCM 1+2 to Analogue 3 & 4, i can hear music playing. So far so good.
Additionally, i hooked up a microphone to Analogue 1 IN. My goal is to listen to music AND microphone at the same time. In windows, this was done by using this settings:
Image

So, "custom mix" enables simultaneous playback of hardware input 1 AND software output 1+2 to hardware output 3+4.

How can i set up this routing to get the same result on linux? No matter what i try, i get either signal from mic or desktop, not both at the same time. Looks like i'm missing some general knowledge here..

regards,
azido
azido
Established Member
Posts: 4
Joined: Mon Sep 19, 2022 6:43 pm
Has thanked: 1 time

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by azido »

azido wrote: Wed Sep 21, 2022 10:54 am Hi Geoffrey!
How can i set up this routing to get the same result on linux? No matter what i try, i get either signal from mic or desktop, not both at the same time. Looks like i'm missing some general knowledge here..

regards,
azido
Found the answer right by myself, putting all 3 of them (Analog 1, PCM 1+2) into Mixer Inputs and Mixer Output A+B to analogue 3+4 gave me the result i wanted.

Now i need to find out how to set up Analog 1 independantly as a microphone source to linux. ATM i can't select anything from the focusrite scarlett as an input source, only the capture card is available as a mic source:

Image

Any hint on that?

regards,
azido
tseaver
Established Member
Posts: 398
Joined: Mon Mar 13, 2017 6:07 am
Has thanked: 11 times
Been thanked: 98 times

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by tseaver »

@azido
What exactly have i to do in order to get my Focusrite Scarlet 6i6 Gen2 fully recognized on ubuntu? What do i need to install and how?
I have some basic linux experience, but that subject seems to be too much for me right now. Can you help me step by step?
AFAIK, you should be able to get your interface "working" without any tweaking at all: the subject of this thread is exposing "advanced" features of the Focusrite Scarlett devices, normally accessible only via the Windows GUI.

Can you record from / send output to your interface at all?
Ubuntu, Mixbus32C; acoustic blues / country / jazz
azido
Established Member
Posts: 4
Joined: Mon Sep 19, 2022 6:43 pm
Has thanked: 1 time

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by azido »

tseaver wrote: Sat Sep 24, 2022 7:38 am AFAIK, you should be able to get your interface "working" without any tweaking at all: the subject of this thread is exposing "advanced" features of the Focusrite Scarlett devices, normally accessible only via the Windows GUI.

Can you record from / send output to your interface at all?
Hey tseaver,

yeah, i found out it is already recognized on my current distro (Mint XFCE), although in windows i got used to use A1 Input of the scarlett with a microphone and send it as a mic source to obs. In linux all i get so far is a pulseaudio profile with 2.1 output (where i only have stereo, i don't use a subwoofer) and multichannel input profile (i only need A1 here).

In my understanding geoffrey's work is a port of focusrite control to linux, which is nice and runs smooth, but it doesn't give me additional separators of in- and outputs to the system, right?

Think i have to get familiar with jack and pulsemeeter.

cheers,
azido
User avatar
wvi
Established Member
Posts: 6
Joined: Fri Nov 26, 2021 1:12 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by wvi »

Any idea why I am not able to see all the controls in my 18i8 3gen?
Kernel is 5.10.156.

Dmesg

Code: Select all

$ sudo dmesg | grep -i -A 5 -B5 scarlett
[    2.348680] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.348682] usb 3-3: Product: USB2.1 Hub
[    2.348683] usb 3-3: Manufacturer: GenesysLogic
[    2.372666] usb 1-2: New USB device found, idVendor=1235, idProduct=8214, bcdDevice= 6.10
[    2.372668] usb 1-2: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[    2.372670] usb 1-2: Product: Scarlett 18i8 USB
[    2.372671] usb 1-2: Manufacturer: Focusrite
[    2.372672] usb 1-2: SerialNumber: F9TCP2Z1A07B8D
[    2.396676] systemd[1]: Queued start job for default target Graphical Interface.
[    2.401079] hub 3-3:1.0: USB hub found
[    2.401672] hub 3-3:1.0: 4 ports detected

Scarlett modprobe config

Code: Select all

$ cat /etc/modprobe.d/scarlett.conf
#options snd_usb_audio vid=0x1235 pid=0x8211 device_setup=1
options snd_usb_audio vid=0x1235 pid=0x8214 device_setup=1

My devices.

Code: Select all

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 1 [DELL U2720Q]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 11: HDMI 5 [HDMI 5]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 0: ALC887-VD Analog [ALC887-VD Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Generic [HD-Audio Generic], device 1: ALC887-VD Digital [ALC887-VD Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: USB [Scarlett 18i8 USB], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

This is suspisicious there should be way more things.

Code: Select all

amixer -c 2 controls
numid=4,iface=CARD,name='ADAT Validity'
numid=2,iface=CARD,name='Internal Validity'
numid=6,iface=CARD,name='Keep Interface'
numid=3,iface=CARD,name='S/PDIF Validity'
numid=5,iface=MIXER,name='Clock Source Clock Source'
numid=1,iface=PCM,name='Playback Channel Map'
geoffrey
Established Member
Posts: 252
Joined: Mon Jul 30, 2018 2:08 am
Has thanked: 33 times
Been thanked: 169 times

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by geoffrey »

wvi wrote: Mon Dec 05, 2022 11:24 am

Any idea why I am not able to see all the controls in my 18i8 3gen?
Kernel is 5.10.156.

Hi @wvi,

You need at least kernel 5.14 for Gen 3 device support.

Regards,
Geoffrey.

George G
Established Member
Posts: 10
Joined: Sun Oct 01, 2023 8:24 am
Has thanked: 3 times
Been thanked: 2 times

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by George G »

Hi all!
I'm a new "Focusrite Scarlett 2i2" user on Ubuntu 22.04.
First connected, the device was detected as:

Code: Select all

dmesg | grep -i -A 5 -B 5 focusrite
[   25.564271] usb 1-1.2: new high-speed USB device number 3 using ehci-pci
[   25.674864] usb 1-1.2: config 1 has an invalid interface number: 6 but max is 4
[   25.674875] usb 1-1.2: config 1 has no interface number 4
[   25.676601] usb 1-1.2: New USB device found, idVendor=262a, idProduct=9123, bcdDevice= 0.01
[   25.676611] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   25.676614] usb 1-1.2: Product: Focusrite USB Audio
[   25.676617] usb 1-1.2: Manufacturer: AiHeng
[   25.678903] hid-generic 0003:262A:9123.0004: No inputs registered, leaving
[   25.679100] hid-generic 0003:262A:9123.0004: hidraw3: USB HID v1.00 Device [AiHeng Focusrite USB Audio] on usb-0000:00:1a.0-1.2/input0
[   56.831847] audit: type=1400 audit(1696147053.233:61): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/20092/usr/lib/snapd/snap-confine" pid=2127 comm="snap-confine" capability=12  capname="net_admin"
[   56.831866] audit: type=1400 audit(1696147053.233:62): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/20092/usr/lib/snapd/snap-confine" pid=2127 comm="snap-confine" capability=38  capname="perfmon"
[   56.920154] audit: type=1400 audit(1696147053.321:63): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=2152 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[   56.920302] audit: type=1400 audit(1696147053.321:64): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=2152 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[   56.922254] audit: type=1400 audit(1696147053.321:65): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/var/lib/" pid=2152 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

Holding the button "48v" for 5 seconds does not change anything.
I can use headphones by this driver, but there are no inputs.
If I add the file:

Code: Select all

cat /etc/modprobe.d/scarlet.conf 
#options snd_usb_audio vid=0x1235 pid=0x8210 device_setup=1
options snd_usb_audio vid=0x1235 pid=0x8210 device_setup=1,1,1,1

my computer stopped for several minutes by loading after rebooting (if device is connected) and the required driver never loads.

Dear Geoffrey tell me please how I can install your driver. Thank you.

geoffrey
Established Member
Posts: 252
Joined: Mon Jul 30, 2018 2:08 am
Has thanked: 33 times
Been thanked: 169 times

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by geoffrey »

George G wrote: Sun Oct 01, 2023 9:07 am

Hi all!
I'm a new "Focusrite Scarlett 2i2" user on Ubuntu 22.04.
First connected, the device was detected as:

Code: Select all

dmesg | grep -i -A 5 -B 5 focusrite
[   25.564271] usb 1-1.2: new high-speed USB device number 3 using ehci-pci
[   25.674864] usb 1-1.2: config 1 has an invalid interface number: 6 but max is 4
[   25.674875] usb 1-1.2: config 1 has no interface number 4
[   25.676601] usb 1-1.2: New USB device found, idVendor=262a, idProduct=9123, bcdDevice= 0.01
[   25.676611] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   25.676614] usb 1-1.2: Product: Focusrite USB Audio
[   25.676617] usb 1-1.2: Manufacturer: AiHeng
[...]

Hi @George G,

That's really interesting. Even though it says "Product: Focusrite USB Audio" there, none of that actually looks like any Focusrite device I've ever seen. To start with, the vendor ID is incorrect. Vendor ID 262a is Savitech, not Focusrite, and the manufacturer there says "AiHeng". Also, the "Product" should not be "Focusrite USB Audio", but "Scarlett 2i2 USB".

An actual Focusrite 2i2 Gen 3 will look like this:

Code: Select all

Oct 01 21:57:23 f38 kernel: usb 1-3: New USB device found, idVendor=1235, idProduct=8210, bcdDevice= 5.ff
Oct 01 21:57:23 f38 kernel: usb 1-3: New USB device strings: Mfr=1, Product=3, SerialNumber=2
Oct 01 21:57:23 f38 kernel: usb 1-3: Product: Scarlett 2i2 USB
Oct 01 21:57:23 f38 kernel: usb 1-3: Manufacturer: Focusrite
Oct 01 21:57:23 f38 kernel: usb 1-3: SerialNumber: [an actual serial number here]

I think you've got a counterfeit there & I suggest you check direct with Focusrite support to confirm this. I'm curious to see photos of the device (front, back, top, and bottom) to compare with a real Gen 3 2i2. Feel free to email me if you don't want to share with all. You should also find that the Focusrite Control software doesn't detect the device. I hope you can get your money back. Let me know how you go. Good luck!

Regards,
Geoffrey.

User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: Focusrite Scarlett 2nd and 3rd Gen mixer driver

Post by bluebell »

George G wrote: Sun Oct 01, 2023 9:07 am

[ 25.676614] usb 1-1.2: Product: Focusrite USB Audio
[ 25.676617] usb 1-1.2: Manufacturer: AiHeng

Please provide a photo. This appears to be a forgery.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

Post Reply