Debian Codegraph @

docs/INSTALL.md

raw symbols SCIP
1 # ALSA Scarlett Control Panel Installation
2
3 ## Quick Start
4
5 Choose the path that matches your interface. RPM and deb packages
6 are available from each repository's
7 [GitHub Releases](https://github.com/geoffreybennett/alsa-scarlett-gui/releases)
8 page; alternatively, see [Building from Source](#building-from-source)
9 below.
10
11 ### Scarlett 2nd/3rd Gen, Small 4th Gen, Clarett, Vocaster
12
13 1. Ensure your kernel meets the minimum version (see
14 [table below](#linux-kernel)) — all major distros already do
15 2. Install
16 [scarlett2-firmware](https://github.com/geoffreybennett/scarlett2-firmware/releases)
17 3. Install
18 [alsa-scarlett-gui](https://github.com/geoffreybennett/alsa-scarlett-gui/releases)
19 4. Run `alsa-scarlett-gui` — it will prompt you to update your
20 device firmware if needed
21
22 ### Scarlett 4th Gen 16i16, 18i16, 18i20
23
24 1. Ensure you are running Linux 6.14+ (`uname -r` to check)
25 2. Install
26 [fcp-support](https://github.com/geoffreybennett/fcp-support/releases)
27 — the `fcp-server` daemon will start automatically when you
28 plug in your interface
29 3. Install
30 [scarlett4-firmware](https://github.com/geoffreybennett/scarlett4-firmware/releases)
31 4. Install
32 [alsa-scarlett-gui](https://github.com/geoffreybennett/alsa-scarlett-gui/releases)
33 5. Run `alsa-scarlett-gui` — it will prompt you to update your
34 device firmware if needed
35
36 ### Scarlett 1st Gen 6i6, 8i6, 18i6, 18i8, 18i20
37
38 1. Ensure you are running Linux 3.19+ (any modern distro)
39 2. Install
40 [alsa-scarlett-gui](https://github.com/geoffreybennett/alsa-scarlett-gui/releases)
41
42 ## Prerequisites
43
44 ### Linux Kernel
45
46 You need to be running a Linux Kernel that contains the appropriate
47 driver for your interface. Use `uname -r` to check what kernel version
48 you are running.
49
50 Check the following table to see which driver your interface uses and
51 the first kernel version that the driver was included in:
52
53 | Series | Models | Driver | Kernel Version |
54 |-----------|--------|--------|:----------------------:|
55 | Scarlett 1st Gen | Solo, 2i2, 2i4 | N/A* | Any |
56 | Scarlett 1st Gen | 6i6, 8i6, 18i6, 18i8, 18i20 | Scarlett 1st Gen Mixer Driver | 3.19+ |
57 | Scarlett 2nd Gen | Solo, 2i2, 2i4 | N/A* | Any |
58 | Scarlett 2nd Gen | 6i6, 18i8, 18i20 | Scarlett2 Mixer Driver | 6.7+ |
59 | Scarlett 3rd Gen | Solo, 2i2, 4i4, 8i6, 18i8, 18i20 | Scarlett2 Mixer Driver | 6.7+ |
60 | Scarlett 4th Gen | Solo, 2i2, 4i4 | Scarlett2 Mixer Driver | 6.8+ |
61 | Scarlett 4th Gen | 16i16, 18i16, 18i20 | FCP (Focusrite Control Protocol) Driver | 6.14+ |
62 | Clarett USB and Clarett+ | 2Pre, 4Pre, 8Pre | Scarlett2 Mixer Driver | 6.7+ |
63 | Vocaster | One, Two | Scarlett2 Mixer Driver | 6.10+ |
64
65 \* The small 1st Gen and 2nd Gen models don’t have any proprietary
66 software controls so they don’t need a driver beyond the standard ALSA
67 USB Audio driver. This means that this application (alsa-scarlett-gui)
68 is not needed, useful, or supported for these models.
69
70 If your distribution doesn't include a recent-enough kernel for
71 your interface, update your distribution or kernel. All major
72 distributions now ship kernels that include the required drivers.
73
74 Kernel 6.7 and later have the Scarlett2 driver enabled by default.
75 The Scarlett 1st Gen driver and the FCP drivers are always enabled.
76
77 #### Enabling the Scarlett2 Driver
78
79 Some kernels before 6.7 have an earlier version of the Scarlett2
80 driver which is disabled by default. If this is you, check the driver
81 status (after plugging your interface in) with this command:
82
83 ```
84 dmesg | grep -i -A 5 -B 5 focusrite
85 ```
86
87 If all is good you’ll see messages like this:
88
89 ```
90 New USB device found, idVendor=1235, idProduct=8215, bcdDevice= 6.0b
91 Product: Scarlett 18i20 USB
92 Focusrite Scarlett Gen 3 Mixer Driver enabled (pid=0x8215); ...
93 ```
94
95 If you don’t see the “Mixer Driver” message or if it shows “disabled”
96 then check the [OLDKERNEL.md](OLDKERNEL.md) instructions (or,
97 preferably, upgrade your distro/kernel!).
98
99 ### FCP User-Space Driver
100
101 The FCP kernel driver requires the user-space driver `fcp-server` in
102 order to do anything useful. This is available from the
103 [fcp-support](https://github.com/geoffreybennett/fcp-support) repo.
104
105 ### Gtk4
106
107 You need a Linux distribution with Gtk4 development libraries. If it
108 doesn’t have them natively, try the Flatpak instructions below.
109
110 ### Firmware
111
112 #### Scarlett2 Driver
113
114 As of Linux 6.8, firmware updates of all supported interfaces from the
115 2nd Gen onwards can be done through Linux. This is mandatory for
116 Scarlett 4th Gen and Vocaster interfaces (unless you’ve already
117 updated it using the manufacturer’s software), and optional but
118 recommended for Scarlett 2nd and 3rd Gen, Clarett USB, and Clarett+
119 interfaces.
120
121 Download the firmware from
122 https://github.com/geoffreybennett/scarlett2-firmware and place it in
123 `/usr/lib/firmware/scarlett2` or use the RPM/deb package.
124
125 #### FCP Driver
126
127 Firmware updates for the big Scarlett 4th Gen interfaces can be done
128 through `alsa-scarlett-gui` (which will prompt you automatically when
129 an update is available) or the CLI `fcp-tool` utility from the
130 [fcp-support](https://github.com/geoffreybennett/fcp-support) repo.
131 Updating the firmware is mandatory for these interfaces.
132
133 Download the firmware from
134 https://github.com/geoffreybennett/scarlett4-firmware and place it in
135 `/usr/lib/firmware/scarlett4` or use the RPM/deb package.
136
137 ## Building from Source
138
139 On Fedora, these packages need to be installed:
140
141 ```
142 sudo dnf -y install make gcc alsa-lib-devel gtk4-devel openssl-devel
143 ```
144
145 On OpenSUSE:
146
147 ```
148 sudo zypper in git alsa-devel gtk4-devel libopenssl-devel
149 ```
150
151 On Ubuntu:
152
153 ```
154 sudo apt -y install git make gcc libgtk-4-dev libasound2-dev libssl-dev
155 ```
156
157 On Arch:
158
159 ```
160 sudo pacman -S gtk4
161 ```
162
163 To download from github:
164
165 ```
166 git clone https://github.com/geoffreybennett/alsa-scarlett-gui
167 cd alsa-scarlett-gui
168 ```
169
170 To build:
171
172 ```
173 cd src
174 make -j$(nproc)
175 ```
176
177 To run:
178
179 ```
180 ./alsa-scarlett-gui
181 ```
182
183 You can install it into `/usr/local` (binary, desktop file, and icon)
184 with:
185
186 ```
187 sudo make install
188 ```
189
190 And uninstall with:
191
192 ```
193 sudo make uninstall
194 ```
195
196 Continue on to reading [USAGE.md](USAGE.md) for how to use the GUI.
197
198 ## Flatpak
199
200 With Flatpak, in any distro:
201
202 ```
203 flatpak-builder --user --install --force-clean flatpak-build \
204 vu.b4.alsa-scarlett-gui.yml
205 ```
206
207 Be sure to use `flatpak-build` as the directory where the flatpak is
208 built or hence you risk bundling the artifacts when committing!
209
210 If you get messages like these:
211
212 ```
213 Failed to init: Unable to find sdk org.gnome.Sdk version 45
214 Failed to init: Unable to find runtime org.gnome.Platform version 45
215 ```
216
217 Then install them:
218
219 ```
220 flatpak install org.gnome.Sdk
221 flatpak install org.gnome.Platform
222 ```
223
224 If you get:
225
226 ```
227 Looking for matches…
228 error: No remote refs found for ‘org.gnome.Sdk’
229 ```
230
231 Then:
232
233 ```
234 flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
235 ```