-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audio on Arch Linux #56
Comments
OK, we have the same kernel and same MrChromebox firmware so that's a good start. There are others who have posted here that have Arch successfully working so we should be able to get it working. That said your dmesg output looks very sparse when it comes to the audio. Searching on your odd rt5514 error, this explanation looks interesting to say the least. https://github.com/torvalds/linux/blob/master/sound/soc/codecs/rt5514.c#L1289-L1303
Can you try shutting down and hotting Power+Refresh (circular arrow third from the left, top row of the keyboard) to boot and see if it clears anything. I know of at least one other glitch (left port stops charging or only slow charging) by doing this. I wonder if it could clear your problem as well. If not, can you provide the output from |
Are you using a stock power supply? Do you have any peripherals plugged in when booting? I'll admit I don't understand the I2C glitch issue. I'm wondering if some external factor could be triggering it... |
Thanks for your help as always. Nice find. interesting workaround. Unfortunately hard reboot didn't seem to have an affect. I don't even think I have the original power supply for this thing, but the problem seems to persist even when just on battery, if that matters. No peripherals plugged in. aplay -l No files in lsmod's output attached. |
I think if -ENODEV is being returned there's probably little hope of the device working. If it's happening even when everything is unplugged including power, it probably eliminates anything external as a source of the problem. Audio worked when you had ChromeOS installed I'm assuming? You're booting via UEFI and not legacy? I don't know that legacy can't work but @saxa has a lot of problems and he's using legacy. I wonder if he sees a similar rt5514 error in dmesg. I wonder if MrChromebox might have an idea over on https://github.com/MrChromebox/firmware I definitely have more questions than answers... |
It was indeed working on chromeOS, and also previously worked on some 5 kernel. 5.15 I think? I am indeed using UEFI. Maybe I'll restore chromeOS and make sure that I can get audio. Been a while since I had it on here. Should I open a similar issue with mrchromebox? |
@jmontleon yup, I am using the legacy bios, but to be honest except the sound not working on my fedora install there is no other problems. Slackware install works ok everything. I just see pulseaudio makeing noise in dmesg , but will investigate more and report when I have some more time. |
@joeknock90 I think it wouldn't hurt to check with MrChromebox if you confirm audio is still working with ChromeOS and then flash back to Coreboot and the issue persists, if you're willing to go through those steps to troubleshoot. I would definitely keep this open and would be interested in anything learned from your testing ChromeOS and talking to MrChromebox. I can dig around the coreboot and mrchromebox repos a bit and see if there's anything that might be relevant Some other thoughts: That code that's printing the error has been in the kernel for 6-8 years, so it's nothing new, not to say something outside the block couldn't have changed along the way that's affecting it. It could come down to someone affected needing to do a bisect to track down the offending commit if older kernels are working and new are not. I also thought maybe the firmware files from the chrome recovery image might be old/new/different, but I don't think we're even getting to loading anything yet on your system so that's probably not likely. |
Hello. I have audio mostly working on my Pixelbook under Arch. First thing I will note is that I could not get audio working with Pipewire, but it works fine with Pulseaudio. In case it is helpful for you to compare against, here is some information from my system.
Let me know if I can provide anything else that might be useful in diagnosing your audio issue. |
@ntcarlson thanks for confirming. Pipewire is the same story on Fedora. As far as I can tell it's gotten worse rather than better. The mic used to record noise but output worked. Last time I tried output was just static as well. I filed an issue against pipewire for the mic but it never went anywhere. https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1452 It probably wouldn't be a bad idea for someone to file a new bug for output. Maybe the fix for one will resolve both... |
So today I did 2 things. Installed 5.15.77 on arch linux via the arch build system. Audio still did not working. I did a full chromeos recovery to be sure, and sure enough, audio IS working. Not sure where to go from here honestly. |
My advise, if you want to try to solve it, is try re-flashing the latest MrChomebox firmware, install your distro of choice (Arch should be fine if that's what you're aiming for, others have it working so no reason it should be any better/worse than any other), and if the issue persists file an issue on the firmware repo and see if he has any thoughts. It may be it has little or nothing to do with coreboot. If he hasn't any idea perhaps an email to alsa-devel at alsa-project.org. Several people there with much more of a clue than I might be able to explain what's happening here and how you might remedy it if at all. The larger comment on the patch that added the comment makes me think there is a hardware issue here that they're trying to work around that for some reason your laptop isn't responding to.
The only thing I will say regarding any one distro over another: if you reach out someone returns a kernel patch your way to try and you're uncomfortable with building and installing custom kernels it would be far easier for me lend a hand building a patched kernel package for Fedora than another distro. If you're comfortable with that in another distro then I see no issue with one over another. I'd urge patience and determination if you want it fixed. For issues I can reproduce that I've gone down the road of fixing it's generally takes a day to three running git bisects, and then weeks of fiddling with drivers trying to understand and submit a patch. I'm generally very over my head digging in kernel drivers, but I've managed a few times. It will unfortunately be difficult for me to drive an issue I cannot reproduce. But there are a lot of smart folks working on this stuff. My best advice is be concise and polite when reaching out and explaining the error and hopefully the right person sees it and can help. You can feel free to link anything you learn here. It's not impossible someone else will see the same problem and value the information. |
After reinstalling ChromeOS, re-running MrChromebox's firmware util, reinstalling Arch Linux, and re-doing the audio setup steps, I now have working audio! This must have been some sort of strange firmware issue. If it matters, originally when setting this device up, I had used MrChromebox's firmware util, and since had used it again in Arch to update the firmware. @jmontleon Your knowledge, patience, and commitment helping is astounding, and I can't express enough how much it is appreciated. I am a Red Hat administrator for a government agency by trade, and you guys are always phenomenal to work with. If there's anything further I can provide please let me know. |
Hah, that's awesome that that worked, but I can only guess what happened here. If you haven't had ChromeOS on there in a really long time then perhaps it updated an out of date and problematic firmware somewhere in the background or perhaps something did not go well when flashing an older coreboot release that the more recent and newer version handled better. Whatever the cause, I'll add a note to the troubleshooting section with the error and a link to this issue so if others ever see this perhaps they can follow the same steps to get unblocked. |
Seems I can't get audio working on Arch working through the instructions on the README.
uname -a
Linux pixbook.example.com 6.2.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 18 Mar 2023 01:06:36 +0000 x86_64 GNU/Linux
Attached is dmesg:
dmesg.log
The text was updated successfully, but these errors were encountered: