Hey
franktI've just worked through a similar (?) issue on another tread in the forum (
link), which may be of some help? For that issue the hardware (although different), has similarities to yours:
Your hardware
Audio:
Card-1 Intel HDMI/DP LPE Audio driver: HdmiLpeAudio
Card-2 bytcr-rt5640 driver: bytcr-rt5640
vs fixed in other post:
Audio:
Card-1 Intel HDMI/DP LPE Audio driver: HdmiLpeAudio
Card-2 bytcht-es8316 driver: bytcht-es8316
If you follow the
link to that support thread, take look at my post from "
10 Aug 2020 at 16:07" and within that sub section (2). What triggered that sound card (bytcht-es8316) to work was setting up the Alsa UCM files (which i believe instruct Alsa what codecs to use and how to use them). Obviously your sound card (bytcr-rt5640) is different but I'm wondering whether a similar approach would work (assuming you can find appropriate UCM files)?
So, taking the detail in post #13 from the thread i linked to above, I'd suggest trying the steps outlined below.
NOTE 1 I've googled around to find Alsa UCM files for your device (bytcr-rt5640), I cannot guarantee these are correct/latest/suitable - i'd suggest reviewing the github repo (
link) before following the steps below. If the below doesn't work, I'd suggest reverting these changes. Before reverting (ie it doesn't work), I'd also suggest removing any blacklisted hardware and trying again. Also after removing the black listing also run
alsamixer and switch sound cards (F6) and test sound again. Just keep note of what's changed so the waters don't get too muddied going forward.
NOTE 2 while googling for the Alsa UCM files I found this post which suggests a similar approach (it's not Lenovo 100 specific, but the same sound card).
Link 1. First check that this directory doesn't exist by running the following (if it doesn't exist it will display "no such file or directory"). If it does exist and lists files Do NOT follow steps 2-6, instead can you post the output of the directory listing and attach the UCM config files HiFi & bytcr-rt5640.conf (so we can review):
ls -l /usr/share/alsa/ucm/bytcr-rt5640
2. Assuming the directory above
DOES NOT list any files, lets (3) create the directory then (4) download some Alsa UCM config files which tells alsa what codec to use and how to use them (5) verify the two files (HiFi & bytcht-es8316.conf) you downloaded in (4) exist in the folder .../bytcht-es8316
3. Create directory
sudo mkdir --parents /usr/share/alsa/ucm/bytcr-rt5640
4. Download Alsa UCM files to newly created directory
cd /usr/share/alsa/ucm/bytcr-rt5640
sudo wget "https://raw.githubusercontent.com/plbossart/UCM/master/bytcr-rt5640/HiFi"
sudo wget "https://raw.githubusercontent.com/plbossart/UCM/master/bytcr-rt5640/bytcr-rt5640.conf"
cd ~/
5. Verify step (4) by listing contents of newly created (you should see two files: HiFi & bytcr-rt5640.conf)
ls -l /usr/share/alsa/ucm/bytcr-rt5640
6. Configure pulse audio not to die if audio device it not found immediately (use your editor of choice nano, vi, leafpad etc)
sudo leafpad /etc/pulse/daemon.conf
Change the line
; realtime-scheduling = yes to
realtime-scheduling = nomake sure you removed the ; at the beginning of the line, this is important! Save the file.
7. Reboot.
8. Test sound / check which sound card is selected in AlsaMixer (switch, assumes you've removed black listed hardware, and test again) / Post findings.
EDIT - as a final thought. I think I'm right in saying I read you're using the "standard" version of Bodhi - which I don't think subsequently upgrades kernel when running
apt update. Perhaps you can change to HWE kernel, to get the latest kernel (better hardware support?) by running the following command (
NOTE this is
NOT suitable for 32 bit legacy Bodhi)
sudo apt install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04
As a belt and braces (and regardless of 32 bit / 64 bit Bodhi) I'd also suggest you make sure you bodhi installation is fully up to date as I often see updates for pulse audio etc (substitute
dist-upgrade for
upgrade as preferred):
sudo apt update && sudo apt dist-upgrade
Let us know how you get on!