SolidHal / PrawnOS

Libre Mainline Kernel and Debian for arm laptops
https://www.PrawnOS.com
GNU General Public License v2.0
114 stars 29 forks source link

Asus C201p Sound Issue #305

Open Wooty-B opened 2 years ago

Wooty-B commented 2 years ago

I have been playing around with PrawnOS and Cadmium, trying to understand the devices on this platform. When I installed the most recent version of PrawnOS, I noticed sound was not working out-of-the-box and started browsing these two issue trackers. Need to see if other C201p owners are having sound issues on PrawnOS, and if so, the below is the remedy to this (Thanks, @peter-marshall5!!!):

cd /usr/share/alsa/ucm2
cp -r Rockchip/max98090/ VEYRONI2S/
mv VEYRONI2CS/max98090.conf VEYRONI2S/VEYRONI2S.conf

If the above doesn't start working after a reboot:

nano /usr/share/alsa/ucm2/VEYRONI2S/VEYRONI2S.conf

Syntax 2

Comment "Rockchip Veyron card"

SectionUseCase."HiFi" {
        File "/VEYRONI2S/HiFi.conf"
        Comment "Default"
}
cocojamb0 commented 1 year ago

I've been experiencing a certain form of this issue myself - audio through headphones but not through the speakers. For info, I'm using i3 window manager and rather than one of the graphical environments offered during the PrawnOS installation, and pulse for audio.

I'll try your fix when I'm home - thank you for adding this information.

Wooty-B commented 1 year ago

Don't hesitate to update with your results. I will be actively working on several ARM projects this weekend and more than happy to help troubleshoot through this.

cocojamb0 commented 1 year ago

Hi again - I tried out your fix! I'm still not getting audio through the speakers unfortunately, although the audio through the 3.5mm jack connector is still a-ok and capable of driving my Beyerdynamic DT-150 headphones! I'm willing to accept that the speakers could be fried - I didn't actually test them properly before flashing Libreboot and installing PrawnOS...

Any advice on where to start looking? Need any logs?

Thanks for being willing to help!

gregordinary commented 1 year ago

Just downloaded and installed the latest pre-built PrawnOS image.

  1. I can confirm I have no sound through the speakers (Installed default XFCE).
  2. I know speakers worked previously so this shouldn't be a hardware issue.
  3. I tried both fixes from @Wooty-B - Unfortunately still no sound.

I also looked through the InstallingDebianOn documentation and they note the upcoming Debian Bookworm ships with a UCM profile for the soundcard in the C201 (plus an updated .conf file is available for HDMI audio), so rebasing on Bookworm or backporting some configurations might help to resolve this issue.

Stormwoodpecker commented 1 year ago

Using the updated ucm2 conf from the ALSA repo seems to resolve the speaker issue here, may be worth manually adding it to the image until the eventual rebase to bookworm

cocojamb0 commented 1 year ago

Using the updated ucm2 conf from the ALSA repo seems to resolve the speaker issue here, may be worth manually adding it to the image until the eventual rebase to bookworm

For my own clarity, are you copying the conf listed above and placing it in /usr/share/alsa/ucm2 ? I tried that and sadly it did not work for me, though headphone audio still worked.

Stormwoodpecker commented 1 year ago

Using the updated ucm2 conf from the ALSA repo seems to resolve the speaker issue here, may be worth manually adding it to the image until the eventual rebase to bookworm

For my own clarity, are you copying the conf listed above and placing it in /usr/share/alsa/ucm2 ? I tried that and sadly it did not work for me, though headphone audio still worked.

Yes, using that config. I think the only important deviation is that I'm using mainline kernel 5.15.76 instead of the default 5.15.6.

There may have been relevant changes to ucm2 so it may be worth trying against a newer kernel ver and see if it can be repro'd

petm5 commented 1 year ago

I can confirm that the updated conf is working on Linux 6.0. Although I'm still having the issue where a reboot (or switching the sound card profile to "Off" and then back to "Default") is required for the internal microphone to work again after switching to the headset microphone.

cocojamb0 commented 1 year ago

I'll be honest, I haven't manually upgraded to a newer kernel on a system without a GRUB configuration before - how would I do that in this case? I've got a newer kernel version in the /boot sector but it's just the generic armhf kernel image rather than a PrawnOS 6.0 kernel.

Does anyone have any resources on how to achieve updating to a new kernel on PrawnOS, or the patience to instruct me in it?

petm5 commented 1 year ago

Arm Chromebooks use a bootloader called Depthcharge that's built into the system firmware. The depthcharge payload requires a specially formatted and signed kernel to be written to a certain partition I wrote a nice guide here on how to compile and boot your own blobby kernel for PrawnOS.

This page gives some nice information on the Depthcharge payload as well as on how to package and sign custom kernels.

You can also check out this repo for the files I use to build custom kernels on my Asus C201.

kapouer commented 1 year ago

Hi there, there are good news though: debian/bookworm will have depthcharge-tools and linux 6.0.12 supports almost all features of a chromebook like the c201 (speedy-veyron). I believe the debian installer will even know how to install to a c201 (once booted from usb), thanks to the awesome work of depthcharge-tools author. For the sound: using linux 6.0.12 and alsa-ucm-conf 1.2.8 along with pipewire/wireplumber 0.3.63: many things work, but there is still an issue with internal microphone going flat when plugging/unplugging a headset. Also HDMI somewhat works, last time I checked it was just stable enough to watch a movie - but not fiddle around too much.

SvenRuin commented 1 year ago

Thank you! The method above (using cd, cp an mv commands) worked well for me with the latest pre-built PrawnOS image, but I changed "VEYRONI2CS" to "VEYRONI2S". Watching videos on YouTube in Firefox, I can hear sound as I should.

However, when I try Jitsi Meet in Firefox, sound and built-in camera don't seem to work. Does anyone know a way to make this work? For the camera, Jitsi Meet says: "Failed to access your camera"

SvenRuin commented 1 year ago

Perhaps the problem I wrote about before is in Jitsi Meet. Now the camera sometimes works there.

Anthony-Sensors commented 7 months ago

After upgrading to bookworm I had no sound. Installing pipewire fixed the issue.