EMLommers / Apollolake_Audio

Linux Audio fix + sleep/resume Apollolake Chromebook
9 stars 5 forks source link

Non-compatible with certain hardware/oses #3

Open Meganium97 opened 2 years ago

Meganium97 commented 2 years ago

I'm using a lenovo 100e running debian 11 and per v4 I extracted and copypasted the file to the desired location. However it does not seem like it works. All I see is a dummy output and aplay -l lists no sound cards. I am unsure if this is related to the 100e or debian itself so I'm just putting this under a general issue.

Edit: v4, not rev 5. Edit 2: If it helps, I did reboot before testing and the file still showed it was there.

EMLommers commented 2 years ago

Run the apollolake_audio2.sh use the tplg file from the .gz file

Meganium97 commented 2 years ago

Still the same issue.

EMLommers commented 2 years ago

Which lenovo 100e do you have? 2018-03-01 | Lenovo | Lenovo 100e Chromebook | robo | coral | coral ? Send me the dmesg at lommers_em@hotmail.com:

Try: Put the new .tplg file in a directory run from that directory apollolake_audio2.sh (no reboot)

sudo mkdir -p /lib/firmware/sof/community sudo cp -R /lib/firmware/sof/s /lib/firmware/sof/community sudo cp -R /lib/firmware/sof/i /lib/firmware/sof/community sudo cp -R /lib/firmware/sof/v* /lib/firmware/sof/community reboot

2018-03-01 | Lenovo | Lenovo 100e Chromebook | robo | coral | coral ? Send me the dmesg at lommers_em@hotmail.com

Meganium97 commented 2 years ago

I have the 2nd gen lenovo 100e, I think robo but I might have to recheck.

Meganium97 commented 2 years ago

Which lenovo 100e do you have? 2018-03-01 | Lenovo | Lenovo 100e Chromebook | robo | coral | coral ? Send me the dmesg at lommers_em@hotmail.com:

Try: Put the new .tplg file in a directory run from that directory apollolake_audio2.sh (no reboot)

sudo mkdir -p /lib/firmware/sof/community sudo cp -R /lib/firmware/sof/s /lib/firmware/sof/community sudo cp -R /lib/firmware/sof/i /lib/firmware/sof/community sudo cp -R /lib/firmware/sof/v* /lib/firmware/sof/community reboot

2018-03-01 | Lenovo | Lenovo 100e Chromebook | robo | coral | coral ? Send me the dmesg at lommers_em@hotmail.com

It gives me an error about there not being a linux-firmware package. Probably leading to the error of /lib/firmware/sof/s* (or any other) no such file or directory.

Meganium97 commented 2 years ago

Hmm, looks like the linux-firmware package is listed under a different name for debian, being listed as firmware-linux instead.

Meganium97 commented 2 years ago

Ok, installing firmware-linux package changed nothing.

EMLommers commented 2 years ago

installing firmware-sof package maybe helps. sudo apt install firmware-sof

I have testedi it on Debian Bookworm on an ASUS C223NA (Apollolake, Chromebook codename BABYMEGA). Works!

Meganium97 commented 2 years ago

Doesn’t change anything. Says the package is already installed.

EMLommers commented 2 years ago

mkdir /lib/firmware/intel/sof/community

cp -R /lib/firmware/intel/sof/ /lib/firmware/intel/sof/community

make sure kernel parameter is intel_dspcfg dsp_driver =3

fengshuo2004 commented 2 years ago

Similar issue here... It's an ASUS Chromebook C523NA (BABYTIGER). Flashed full UEFI ROM, installed Deepin Linux 20.5 (5.15 kernel / Debian 10 based). Still see no sound device after following your v4 instruction.

Running sudo apt install alsa-topology* alsa-ucm* linux-firmware would install:

But all three are already installed, so APT did nothing.

firmware-sof* package you mentioned is in Debain Bullseye/Bookworm/Sid sources only, my distro is too old to get it.

And yes firmware-linux package exists. Should I try installing it?

EMLommers commented 2 years ago

Have you installed kernel parameters? Can you see errors in dmesg or journalctl ?

fengshuo2004 commented 2 years ago

Have you installed kernel parameters? Can you see errors in dmesg or journalctl ?

Are you referring to the

sudo sh -c 'echo "options snd_intel_dspcfg dsp_driver=3" > /etc/modprobe.d/inteldsp.conf'

line in your script? In that case, yes, I did install kernel parameters because I ran the script as is and saw no errors.

Also I've checked the inteldsp.conf file and this line is still in there after the reboots.

Topology file that the script copied is the correct one, extracted from .gz, as instructed in README.

The strange thing is in dmesg. Take a look at line 735 in my Full Dmesg Output:

[    6.286380] sof-audio-pci-intel-apl 0000:00:0e.0: DSP detected with PCI class/subclass/prog-if 0x040100
[    6.307428] sof-audio-pci-intel-apl 0000:00:0e.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    6.327971] sof-audio-pci-intel-apl 0000:00:0e.0: use msi interrupt mode
[    6.397927] sof-audio-pci-intel-apl 0000:00:0e.0: hda codecs found, mask 4
[    6.399841] sof-audio-pci-intel-apl 0000:00:0e.0: Direct firmware load for intel/sof/community/sof-apl.ri failed with error -2
[    6.399856] sof-audio-pci-intel-apl 0000:00:0e.0: error: sof firmware file is missing, you might need to
[    6.399862] sof-audio-pci-intel-apl 0000:00:0e.0:        download it from https://github.com/thesofproject/sof-bin/
[    6.399865] sof-audio-pci-intel-apl 0000:00:0e.0: error: failed to load DSP firmware -2
[    6.422014] sof-audio-pci-intel-apl 0000:00:0e.0: error: sof_probe_work failed err: -2

The sof-apl-da7219.tplg file is already in /lib/firmware/intel/sof-tplg/ though!

I ran a MD5 checksum, it hasn't been corrupted or overwritten etc. Any ideas?

EMLommers commented 2 years ago

If you have installed. 2 ways: 1 kernel setting for hw_path 2 sudo mkdir /lib/firmware/intel/sof/community sudo cp -R /lib/firmware/intel/sof/* lib/firmware/intel/sof/community

On May 4, 2022 8:43:46 PM GMT+02:00, Feng Shuo @.***> wrote:

Have you installed kernel parameters? Can you see errors in dmesg or journalctl ?

Are you referring to the

sudo sh -c 'echo "options snd_intel_dspcfg dsp_driver=3" > /etc/modprobe.d/inteldsp.conf'

line in your script? In that case, yes, I did install kernel parameters because I ran the script as is and saw no errors.

Also I've checked the inteldsp.conf file and this line is still in there after the reboots.

Topology file that the script copied is the correct one, extracted from .gz, as instructed in README.

The strange thing is in dmesg. Take a look at line 735 in my Full Dmesg Output:

[    6.286380] sof-audio-pci-intel-apl 0000:00:0e.0: DSP detected with PCI class/subclass/prog-if 0x040100
[    6.307428] sof-audio-pci-intel-apl 0000:00:0e.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    6.327971] sof-audio-pci-intel-apl 0000:00:0e.0: use msi interrupt mode
[    6.397927] sof-audio-pci-intel-apl 0000:00:0e.0: hda codecs found, mask 4
[    6.399841] sof-audio-pci-intel-apl 0000:00:0e.0: Direct firmware load for intel/sof/community/sof-apl.ri failed with error -2
[    6.399856] sof-audio-pci-intel-apl 0000:00:0e.0: error: sof firmware file is missing, you might need to
[    6.399862] sof-audio-pci-intel-apl 0000:00:0e.0:        download it from https://github.com/thesofproject/sof-bin/
[    6.399865] sof-audio-pci-intel-apl 0000:00:0e.0: error: failed to load DSP firmware -2
[    6.422014] sof-audio-pci-intel-apl 0000:00:0e.0: error: sof_probe_work failed err: -2

The sof-apl-da7219.tplg file is already in /lib/firmware/intel/sof-tplg/ though!

I ran a MD5 checksum, it hasn't been corrupted or overwritten etc. Any ideas?

-- Reply to this email directly or view it on GitHub: https://github.com/EMLommers/Apollolake_Audio/issues/3#issuecomment-1117681796 You are receiving this because you commented.

Message ID: @.***>

fengshuo2004 commented 2 years ago

If you have installed. 2 ways: 1 kernel setting for hw_path 2 sudo mkdir /lib/firmware/intel/sof/community sudo cp -R /lib/firmware/intel/sof/* lib/firmware/intel/sof/community

2nd way worked! Finally have sound! Thank you so much!

There's a small issue, the headphone jack doesn't work. Other than that, it's working perfectly!

Meganium97 commented 2 years ago

The command gives me an error cp: cannot copy a directory, '/lib/firmware/intel/sof/community', into itself, '/lib/firmware/intel/sof/community/community'.

EMLommers commented 2 years ago

You can ignore this error

Meganium97 commented 2 years ago

mkdir /lib/firmware/intel/sof/community

cp -R /lib/firmware/intel/sof/ /lib/firmware/intel/sof/community

make sure kernel parameter is intel_dspcfg dsp_driver =3

Apologies for the late response, I can skip the issue using 'sudo rsync -Rra' to copy instead of just using the 'cp' command.

Meganium97 commented 2 years ago

Still, following your instructions doesnt result in a success.

Meganium97 commented 2 years ago

Which lenovo 100e do you have? 2018-03-01 | Lenovo | Lenovo 100e Chromebook | robo | coral | coral ? Send me the dmesg at lommers_em@hotmail.com:

Try: Put the new .tplg file in a directory run from that directory apollolake_audio2.sh (no reboot)

sudo mkdir -p /lib/firmware/sof/community sudo cp -R /lib/firmware/sof/s /lib/firmware/sof/community sudo cp -R /lib/firmware/sof/i /lib/firmware/sof/community sudo cp -R /lib/firmware/sof/v* /lib/firmware/sof/community reboot

2018-03-01 | Lenovo | Lenovo 100e Chromebook | robo | coral | coral ? Send me the dmesg at lommers_em@hotmail.com

Coral rev3, sorry.

Meganium97 commented 1 year ago

Making yet another comment to rerecorrect myself again. I have Robo, not Coral.