[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
Guys, please check out this one: https://bugs.launchpad.net/ubuntu/+source/firmware-sof/+bug/2141753 I reported a similar issue, I tested even on Ubuntu 26.04 Beta with the latest kernel. As I can understand, we have this issue only in TPM FDE mode, because of the SNAP kernel, and only on modern device models. I tested the same setup on an old laptop with 10th gen intel core i7, and there was no issue, but on modern laptops like: HP Elitebook 8 G1i 16 inch HP Elitebook 8 G1a 14 inch HP Elitebook 860G11 HP EliteBook 865G11 We have a similar "Dummy Output" as an audio device. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
I can confirm that jwilson88's solution above works. /lib/firmware/intel is a link to the kernel snap's filesystem, while /lib/firmware/updates isn't. It looks like a reasonable path forward would be to modify the install script for firmware-sof-signed to check if /lib/firmware/intel is a link to a snap folder first, and then install into /lib/firmware/updates/intel if so. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
Following up to my previous post, there is a much simpler way to tell
the kernel where to look for the extra firmware without messing with
grub.
/lib/firmware/updates
is mounted rw and can be used to place the missing firmware. So the
updated steps would be,
apt download firmware-sof-signed
dpkg-deb -x firmware-sof-signed_*.deb /tmp/extracted
sudo mv /tmp/extracted/lib/firmware/intel /lib/firmware/updates
Reboot, and audio should be fully functional.
Might be worth ensuring correct permissions,
sudo find /lib/firmware/updates -type f -exec chmod 0644 {} \;
sudo find /lib/firmware/updates -type d -exec chmod 0755 {} \;
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2092363
Title:
Missing (but referenced) SOF firmware in pc-kernel – No Audio
To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
Here's a better workaround, i.e. both speakers as well as microphone work properly (tested on a Lenovo Thinkpad X1 Carbon Gen 12 with a TPM backed FDE setup running Ubuntu 24.04.3): apt download firmware-sof-signed dpkg-deb -x firmware-sof-signed_*.deb extracted sudo mkdir /lib/firmware/intel-extras sudo mv extracted/lib/firmware/intel/* /lib/firmware/intel-extras/ Now you just need to append 'firmware_class.path=/lib/firmware/intel- extras' to the kernel boot cmdline. Unfortunately, in these hybrid setups (snap kernel + classic ubuntu) which is the case when using TPM backed FDE, there doesn't appear to be a straightforward way to modify the kernel cmdline. grub-mkconfig breaks grub since grub is managed by snap in these setups, and the snap setting 'snap set system system.kernel.dangerous-cmdline- append="firmware_class.path=/lib/firmware/intel-extras"' only works on Ubuntu Core. So, the hacky solution is to manually edit /boot/grub/grub.cfg and add 'firmware_class.path=/lib/firmware/intel-extras' to the boot cmdline. This is not reliable since updates can overwrite grub.cfg, but the hack is relatively simple to restore should grub.cfg get updated. If anyone knows a less hacky way to modify the kernel boot cmdline in these setups, please do tell. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
As a workaround (taken from https://forum.manjaro.org/t/internal- microphone-in-hp-pavillion-16-is-not-recognized/35414), this gives at least sound output (though no microphones): echo "options snd-hda-intel dmic_detect=0" | sudo tee /etc/modprobe.d/alsa-fix.conf -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
To keep this bug on track: There is already 3MB of SOF firmware in the kernel snap: /lib/firmware/intel/sof$ du -csh 3,5M. The whole package firmware-sof-signed is 5MB. So, where's the problem in just adding all of them? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
Given the fact this 1) Bothers so many people, 2) Seems to be a bit down
on Canonical's priority list, 3) Has no official workaround and 4) The
relevant Discourse thread is closed, I'm posting a possible workaround
here in case it's useful to someone:
WARNING: This is a rough outline. I had to do it in a hurry and am
writing it down from memory. YMMV. Be prepared to lose all your data. A
reinstall is probably the better approach – I just couldn't be bothered.
This workaround (hopefully) restores a purely deb-based Ubuntu kernel
with TPM2/FDE support and automatic unlocking. After conversion you can
install kernel modules, sound firmware and the other things you need to
carry on with your life.
A typical disk layout if you installed Ubuntu with FDE and TPM2 on an
NVMe drive looks like:
/dev/nvme0n1p1: /boot/efi
/dev/nvme0n1p2: /boot
/dev/nvme0n1p3: unlocked/mapped to ubuntu-save (to do with snapd I think)
/dev/nvme0n1p4: unlocked/mapped to ubuntu-data (your root partition)
p1 and p2 are unencrypted, whilst p3 and p4 are luks encrypted.
- First, get the recovery keys: snap recovery --show-keys
- Get snap2luks.py from github: https://github.com/jps-help/python-
snap2luks/blob/main/snap2luks.py
- Run snap2luks.py and store key.out somewhere.
- Set a passphrase for the ubuntu-data partition: cryptsetup luksAddKey
/dev/nvme0n1p4 --key-file=/path/to/key.out
- Reboot, disable secure boot and boot from a live USB. You need
Internet access so configure the network...
- Unlock the filesystem: cryptsetup luksOpen /dev/nvme0n1p4 luksroot
- Mount the root filesystem somewhere: mount /dev/mapper/luksroot /mnt
- Mount --bind dev, sys, proc, run into /mnt/dev, /mnt/sys etc.
- Mount /mnt/boot
- Destroy your EFI partition: mkfs.vfat -F32 /dev/nvme0n1p1
- mount the EFI partition on /mnt/boot/efi
- chroot /mnt
- Remove boot-managed-by-snapd: dpkg -P --force-all boot-managed-by-snapd
- Remove snapd: apt purge snapd.
- rm -rf /snap /var/lib/snapd /var/cache/snapd
I know this is somewhat crude, but the problem is pc-kernel can't be
uninstalled just like that due to the model dependency. I didn't have
the patience for a surgical removal so took the viking approach and
gutted it. You should probably run 'snap list' and store the output
somewhere so you can reinstall later if you run anything from snap. Who
knows, maybe you should back something up as well.
- Install snapd and run snap list to ensure pc-kernel isn't listed.
Reinstall the packages you want (or wait until you're booted up again).
- Install the grub, kernel and clevis packages: apt install grub-efi
grub-efi-amd64 grub-efi-amd64-signed shim-signed linux-image-generic
linux-headers-generic clevis clevis-initramfs clevis-luks clevis-tpm2
- Install grub: grub-install --target=x64_64-efi --efi-directory=/boot/efi
--bootloader-id=ubuntu
- Update /etc/fstab to add entries for /boot and /boot/efi
For reasons currently unfathomable to me, TPM2 support has been actively
removed from Ubuntu's systemd-cryptenroll for "security reasons". Hence
we'll resort to Clevis for unlocking for now:
- Create /etc/crypttab and add a line (get the UUID from ls
/dev/disk/by-uuid): luksrootUUID=youruuidluks,clevis,discard
- clevis luks bind -d /dev/nvme0n1p4 tpm2 '{"pcr_ids":"0,2,7"}'
- Update initramfs: update-initramfs -k all -u
- Update grub: update-grub
Reboot and enable Secure Boot. Depending on your UEFI you might have to
fiddle around with keys, but it should normally boot up despite whining
about something having changed. Then on the next reboot it'll usually be
fine. YMMV.
From here you should be able to install firmware-sof-signed, VirtualBox
kernel modules, NVIDIA drivers, run fwupd, and so on until the official
snap based FDE/TPM2 approach is out of alpha.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2092363
Title:
Missing (but referenced) SOF firmware in pc-kernel – No Audio
To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
** Tags added: kernel-daily-bug -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
I have attached a lsmod on a affected system. Furthermore I have done a quick look on the modinfo of all "sof" modules. ** Attachment added: "sof-info.txt" https://bugs.launchpad.net/ubuntu/+source/firmware-sof/+bug/2092363/+attachment/5868587/+files/sof-info.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
You're better off asking these questions on discourse. https://discourse.ubuntu.com/t/tpm-backed-full-disk-encryption-is-coming-to-ubuntu-discussion https://ubuntu.com/blog/tpm-backed-full-disk-encryption-is-coming-to-ubuntu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
As mentioned previously, missing firmware isn't the only problem. Other main blockers are adding kernel modules (for example VirtualBox') and fwupd not working. Am I right in understanding this as FDE/TPM won't really be supported "properly" for a good while yet and that people like myself relying on this should seek other alternatives until it's more mature? Meanwhile/alternatively: are there any workarounds like rolling one's own kernel snap with the necessary additions? Are there any guides available on doing that properly (especially related to getting the signing part done properly for Secure Boot to work)? Any way of contributing to solving this permanently BTW – sponsoring someone or doing actual work. Are these features (firmware component snaps, and similar for kernel modules) tracked somewhere? Lastly – is it possible to use FDE with TPM without using the snap kernel? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
> Thus it should be as straight forward to have access to the proper firmware. It is actually not, not in a snap environment. As you mentioned FDE is experimental so things are expected to not work 100%. The problem with firmware is that there is so many and every piece of HW wants something different. Currently we have no way of installing additional firmware for a snap based kernel so you only have what comes with the snap. There are plans for firmware component snaps to solve that issue but atm they're just that, plans. The alternative would be to keep adding firmware to the kernel snap but that is playing whack-a-mole and blows up the snap. Which then gets people excited for a different reason. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: firmware-sof (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
And yes, not all required firmware is actually listed, so this might be one of them. ** Changed in: linux (Ubuntu) Status: Confirmed => Invalid ** Changed in: apt (Ubuntu) Status: Confirmed => Invalid ** Changed in: boot-managed-by-snapd (Ubuntu) Status: Confirmed => Invalid ** Changed in: pc-kernel-snap Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
The pc-kernel snap is basically a repackaging of the kernel Debian package plus some additional things like firmware blobs. If a firmware is not explicitly referenced by the kernel (listed in the output of 'modinfo ') it will not be included in the snap. For the record, the snap repos are here: https://code.launchpad.net/~canonical-kernel-snaps/+git -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
I too have been unable to find documentation or repos with more information about how this is supposed to work. I think what we're running into here (in an FDE/TPM scenario with the snap kernel) extends far beyond this particular firmware problem as well, actually. For example: 1) Installing VirtualBox kernel modules isn't straight-forward either due to the destination area being read-only. 2) Similar with fwupdmgr – even fwupd from snap can't install updates due to the read-only restrictions. For example, trying to update my laptop's EC results in fwupdmgr failing with "failed to write-firmware: Failed to create '/run/mnt/ubuntu-seed/EFI/fwupd/fw': Permission denied" What I _have_ found is that the firmware included in the pc-kernel snap comes from the firmware-sof-signed package. The odd thing is the .deb version of _the same_ package contains the files we need. But they're not included in the pc-kernel snap, which I simply don't understand. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
** Changed in: canonical-kernel-snaps Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 2092363] Re: Missing (but referenced) SOF firmware in pc-kernel – No Audio
** Summary changed: - No Audio Device Detected on HP EliteBook 840 G11 with pc-kernel Snap + Missing (but referenced) SOF firmware in pc-kernel – No Audio -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2092363 Title: Missing (but referenced) SOF firmware in pc-kernel – No Audio To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2092363/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
