Enable sound on larkbox with linux

Hi, i was searching around and found the solution to have sound with linux!
I’m using Zorin OS 16.1 (Ubuntu 20.04, but should work on any based Ubuntu 20.04 or earlier) along Windows 11
Technically, we need a kernel 5.19 I think in order to take benefit from patches… but I installed kernel 6.0.1 from ubuntu kernel website and git cloned missing firmwares from kernel.org.
This is the magic: (I’m limited with 2 links in my newbie post, so replace -DL- with https://…

cd ~
mkdir kernel-6.0.1
cd kernel-6.0.1

wget -DL-kernel.ubuntu.com/~kernel-ppa/mainline/v6.0.1/amd64/linux-headers-6.0.1-060001-generic_6.0.1-060001.202210120833_amd64.deb
wget -DL-kernel.ubuntu.com/~kernel-ppa/mainline/v6.0.1/amd64/linux-headers-6.0.1-060001_6.0.1-060001.202210120833_all.deb
wget -DL-kernel.ubuntu.com/~kernel-ppa/mainline/v6.0.1/amd64/linux-image-unsigned-6.0.1-060001-generic_6.0.1-060001.202210120833_amd64.deb
wget -DL-kernel.ubuntu.com/~kernel-ppa/mainline/v6.0.1/amd64/linux-modules-6.0.1-060001-generic_6.0.1-060001.202210120833_amd64.deb

sudo dpkg -i *

git clone -DL-git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

cd /lib/firmware

sudo mv i915 i915.orig

sudo cp -r ~/kernel-6.0.1/linux-firmware/i915/ .

sudo update-initramfs -u -k all

remove kernel-6.0.1 as you want, reboot and tada!

OK, we can’t preserve fractional scale in screen settings, but I can use 200% with this to play youtube smoothly (larkbox in on my 65" tv):

first, we configure X11:

cat >> /usr/share/X11/xorg.conf.d/20-intel.conf<< EOF
Section “Device”
Identifier “Intel Graphics”
Driver “modesetting”

then, we configure firefox. On every ubuntu derivative I install, I remove firefox debs, snaps… and install it from mozilla tarball. So, better performance with firefox and hardware rendering, especially on larkbox.

you can create autoconfig.js in your firefox install directoy /…/firefox/defaults/pref
so replace /opt/firefox with your install directory

sudo cat >> /opt/firefox/defaults/pref/autoconfig.js<< EOF
pref(“general.config.filename”, “firefox.cfg”);
pref(“general.config.obscure_value”, 0);

then create firefox.cfg in your firefox install directory with theese lines, in order to force hardware rendering:

sudo cat >> /opt/firefox/firefox.cfg<< EOF

On firefox 106 from mozilla and not from debs or snaps, I can play youtube 4K…