Skip to content
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

Asus C201p Sound Issue #305

Open
Wooty-B opened this issue Sep 15, 2022 · 14 comments
Open

Asus C201p Sound Issue #305

Wooty-B opened this issue Sep 15, 2022 · 14 comments

Comments

@Wooty-B
Copy link

Wooty-B commented Sep 15, 2022

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
Copy link

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
Copy link
Author

Wooty-B commented Oct 20, 2022

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
Copy link

cocojamb0 commented Oct 21, 2022

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
Copy link
Contributor

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
Copy link

Stormwoodpecker commented Nov 4, 2022

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
Copy link

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
Copy link

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
Copy link
Contributor

petm5 commented Nov 7, 2022

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
Copy link

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
Copy link
Contributor

petm5 commented Nov 19, 2022

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
Copy link

kapouer commented Dec 16, 2022

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
Copy link

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
Copy link

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

@Anthony-Sensors
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants