# Ubuntu/Chrome connection problem

**URL:** https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110
**Category:** General discussion
**Created:** [June 2, 2023, 2:26pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110 "2023-06-02T14:26:18Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![stratblue](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@stratblue](https://forum.electra.one/u/stratblue)
#### Post date: [June 2, 2023, 2:26pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/1 "2023-06-02T14:26:18Z")

</div>

Hi.

So I have my Electra mk2, it’s connected with the supplied USB cable and I’m running Linux OS Elementary 6.1 with Chrome as the browser. I’ve run amidi -l in the terminal and the electra ctrl port shows up, I can select electra ctrl in Chrome where it says to select the ports manually but that’s as far as I can get, nothing else happens. The E1 appears responsive to knob movement.

Where do I go from here? Thanks

---

<div class="post-metadata">

### Author: ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)
#### Post date: [June 2, 2023, 2:37pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/2 "2023-06-02T14:37:15Z")

</div>

Hi @stratblue,

some Linux distros keep the limit of the max size of sysex messages very low. I suspect it might be the problem. To start, you might want to increase that limit. You can do that by reloading the `snd_seq_midi` module with new buffer settings. There are more ways to do that this is one of them. Using `sudo` or as `root` run the following commands:

```auto
rmmod snd_seq_midi
modprobe snd_seq_midi output_buffer_size=262144

```

Let me know if it helped.

---

<div class="post-metadata">

### Author: ![stratblue](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@stratblue](https://forum.electra.one/u/stratblue)
#### Post date: [June 2, 2023, 2:43pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/3 "2023-06-02T14:43:30Z")

</div>

Hey Martin.

I’m new to Linux so I could easily get stuff wrong, I ran both those as sudo but no change.

Chrome Version 114.0.5735.90 (Official Build) (64-bit)

Any other suggestions?

Thanks

---

<div class="post-metadata">

### Author: ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)
#### Post date: [June 2, 2023, 2:47pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/4 "2023-06-02T14:47:31Z")

</div>

Do you have a chance to connect the unit to other computer that runs windows or macos? Just to confirm that the controller works fine. Then we know that it is something related to Linux.

I have a spare Intel NUC here. I can try to install Elementary 6.1 on it and give it a try by myself. Not sure if I squeeze it in today, but during the weekend for sure.

I do believe that @C0d3man got it working on Linux. @C0d3man: is that correct?

---

<div class="post-metadata">

### Author: ![icaria36](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/icaria36/32/2749_2.png) [@icaria36](https://forum.electra.one/u/icaria36)
#### Post date: [June 2, 2023, 3:04pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/5 "2023-06-02T15:04:47Z")

</div>

You can also send me my Mk2 and I can help testing… 😇 (I’m using Ubuntu 99% of the time and I have a Windows partition just in case.)

---

<div class="post-metadata">

### Author: ![stratblue](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@stratblue](https://forum.electra.one/u/stratblue)
#### Post date: [June 2, 2023, 3:04pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/6 "2023-06-02T15:04:59Z")

</div>

I can connect from a Mac but it says it needs newer firmware (3.2), when I press ‘update firmware’ it wants to connect to a HID device but says ’ no compatible devices found’. Chrome on Monterey.

---

<div class="post-metadata">

### Author: ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)
#### Post date: [June 2, 2023, 3:05pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/7 "2023-06-02T15:05:56Z")

</div>

One more thing you can try:

Open any type of MIDI monitor application on Linux (eg. [https://kmidimon.sourceforge.io](https://kmidimon.sourceforge.io)) and check if the CC messages are sent out when you turn the knobs.

---

<div class="post-metadata">

### Author: ![stratblue](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@stratblue](https://forum.electra.one/u/stratblue)
#### Post date: [June 2, 2023, 3:08pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/8 "2023-06-02T15:08:16Z")

</div>

I have been sending CC from out 1 to a Blokas Midihub, seems fine to me.

---

<div class="post-metadata">

### Author: ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)
#### Post date: [June 2, 2023, 3:43pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/9 "2023-06-02T15:43:00Z")

</div>

Just an update for whoever is following the thread. @stratblue and I have been working on the chat to see what is happening. The controller sends messages just fine but the app.electra.one does not pick them up ok for some reason.

---

<div class="post-metadata">

### Author: ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)
#### Post date: [June 2, 2023, 6:46pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/10 "2023-06-02T18:46:01Z")

</div>

I installed Elementary 7.0, latest Chrome. It works fine. For larger presets, adjusting the sysex buffer size was needed. Let’s continue our communication on the chat.

Edit:

For those of you who use Electra One on Linux. A good way of setting the MIDI buffer sizes is to add the parameter adjustment to the `modprobe` configuration. There might be slight differences per distro, but in general adding the following line to alsa related config in `/etc/modprobe.d/` will do the job:

`options snd-seq-midi output_buffer_size=262144`

This ensures that the buffer size is set when the alsa modules are loaded, either automatically at the boot time or when loaded manually.

Also, note, this adjustment is needed for the Chrome browser. Chrome seems to dump whole SysEx messages to the MIDI driver, not decent sized chunks of them. It is not much related to the E1 hardware. Other MIDI applications may work just fine without making any changes to the buffer size.

---

<div class="post-metadata">

### Author: ![C0d3man](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/c0d3man/32/1511_2.png) [@C0d3man](https://forum.electra.one/u/C0d3man)
#### Post date: [June 3, 2023, 8:02am UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/11 "2023-06-03T08:02:58Z")

</div>

Hi,

i just tried with Ubuntu 23.04 (amd64) and…

- Firefox 113.02: No success
- Chromium 113.0.5672.126: No success
- Chrome 114.0.5735.90: YESSSS!!!

And I just tried on Raspian (Debian 11 bullseye) with Chromium 113.0.5672.95 (with setting the options from @martin Yes, works also - but a little bit slower due to the smaller CPU 🙂

```auto
echo "options snd-seq-midi output_buffer_size=262144" | sudo tee /etc/modprobe.d/midi.conf
sudo rmmod snd-seq-midi && sudo modprobe snd-seq-midi # Close browser tab/window connected with E1 before

```

Regards, Holger

---

<div class="post-metadata">

### Author: ![icaria36](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/icaria36/32/2749_2.png) [@icaria36](https://forum.electra.one/u/icaria36)
#### Post date: [June 23, 2023, 5:29pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/12 "2023-06-23T17:29:19Z")

</div>

Ok, it was my turn to his this problem. 🙂 I can connect to the E1 and touch configurations but I can’t send presets. (I cheated using the Windows partition I have for this kind of situations.)

> [@C0d3man](#):
>
> ```auto
> echo "options snd-seq-midi output_buffer_size=262144" | sudo tee /etc/modprobe.d/midi.conf
> sudo rmmod snd-seq-midi && sudo modprobe snd-seq-midi # Close browser tab/window connected with E1 before
> 
> ```

@C0d3man I’m also running Ubuntu 23.04 and a recent Chrome version. Can you explain what you do with the commands above? Just run them with sudo or add them to some config file?

And is this solution better than this other one above or just the same solution adapted to Ubuntu?

> [@martin](#):
>
> ```auto
> rmmod snd_seq_midi
> modprobe snd_seq_midi output_buffer_size=262144
> 
> ```

One clear answer for dummies will help me and everyone else inevitably landing in this topic later. 🙂

---

<div class="post-metadata">

### Author: ![C0d3man](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/c0d3man/32/1511_2.png) [@C0d3man](https://forum.electra.one/u/C0d3man)
#### Post date: [June 23, 2023, 5:54pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/13 "2023-06-23T17:54:58Z")

</div>

Ok, let’s go…

`echo "options snd-seq-midi output_buffer_size=262144" | sudo tee /etc/modprobe.d/midi.conf`

This line appends a configuration line to the file `/etc/modprobe.d/midi.conf` (or creates the file if it not exists) with the right of the root user. In `/etc/modprobe.d/` there are configuration files located which are used when a module (in our case `snd-seq-midi`) is loaded. The `output_buffer_size` is set to 262144 bytes which seems to be needed for bigger dumps of a preset.

`sudo rmmod snd-seq-midi && sudo modprobe snd-seq-midi`

This line simply removes the `snd-seq-midi` module and if this was successful it loads it again (but now the previously created configuration files is used).

> [@icaria36](#):
>
> And is this solution better than this other one above or just the same solution adapted to Ubuntu?

It’s the same, but the first version is permament (only needed once) and the second one is temporary - after reboot or reload the module without the options the “normal” state is restored.

Hth, Holger

---

<div class="post-metadata">

### Author: ![icaria36](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/icaria36/32/2749_2.png) [@icaria36](https://forum.electra.one/u/icaria36)
#### Post date: [June 23, 2023, 8:09pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/14 "2023-06-23T20:09:15Z")

</div>

YESSSSSSS, it works! Thank you so much, @C0d3man!

---

<div class="post-metadata">

### Author: ![icaria36](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/icaria36/32/2749_2.png) [@icaria36](https://forum.electra.one/u/icaria36)
#### Post date: [November 17, 2023, 11:10pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/15 "2023-11-17T23:10:30Z")

</div>

So… I have installed Ubuntu 23.10 fresh, and I am having trouble connecting the E1 again. It’s strange because the website says it is not connected but something is connected.

The banner is not the default:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/electraone/original/2X/3/3c507800efe392fbf47bed9d9c2f322265799a8a.png)

And PipeWire sees the E1:

![image](https://europe1.discourse-cdn.com/flex017/uploads/electraone/original/2X/6/6f6ba95e1aa28e07a0004cd50c818a7bb62ac31a.png)

I have followed the instructions above. `/etc/modprobe.d/midi.conf` has that line, and I have also rebooted the PC just in case. Still no luck.

EDIT: Bitwig detects it as well, and I can run Moss’ extension. Apparently it’s only the website that has a problem? MIDI Thru works as well.

EDIT2: Yes, I have given MIDI permissions to the Chrome browser.

---

<div class="post-metadata">

### Author: ![szszoke](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@szszoke](https://forum.electra.one/u/szszoke)
#### Post date: [November 18, 2023, 7:27am UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/16 "2023-11-18T07:27:51Z")

</div>

I also have been having problems on Linux with Chrome. Firefox worked however.

---

<div class="post-metadata">

### Author: ![icaria36](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/icaria36/32/2749_2.png) [@icaria36](https://forum.electra.one/u/icaria36)
#### Post date: [November 18, 2023, 11:15am UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/17 "2023-11-18T11:15:01Z")

</div>

This is good news because I’d prefer to use Firefox for this. However, the browser doesn’t respond when I click the button. I have Firefox 118.01 for Ubuntu. It’s the snap version. No idea whether the deb package version would make a difference. Sometimes it does.

---

<div class="post-metadata">

### Author: ![szszoke](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@szszoke](https://forum.electra.one/u/szszoke)
#### Post date: [November 18, 2023, 12:57pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/18 "2023-11-18T12:57:59Z")

</div>

I am actually also having problems on my machine right now. Both with Firefox and Chrome.

What kernel version are you using?

Edit: I did some testing on Firefox and it seems that smaller presets can be sent and larger presets cannot. This has been working before so I think an update broke it some time.

---

<div class="post-metadata">

### Author: ![icaria36](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/icaria36/32/2749_2.png) [@icaria36](https://forum.electra.one/u/icaria36)
#### Post date: [November 18, 2023, 1:41pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/19 "2023-11-18T13:41:22Z")

</div>

> [@szszoke](#):
>
> What kernel version are you using?

Linux quiet 6.5.0-10-generic #10-Ubuntu SMP PREEMPT\_DYNAMIC Fri Oct 13 13:49:38 UTC 2023 x86\_64 x86\_64 x86\_64 GNU/Linux

---

<div class="post-metadata">

### Author: ![szszoke](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@szszoke](https://forum.electra.one/u/szszoke)
#### Post date: [November 18, 2023, 2:01pm UTC](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110/20 "2023-11-18T14:01:11Z")

</div>

I found someone else reporting something similar, not for Electra but for Novation Components, which is similar to the Electra editor in the sense that it runs in the browser and is using Web MIDI.

[Next page](https://forum.electra.one/t/ubuntu-chrome-connection-problem/2110.md?page=2)
