No sound - but card detected - on Dirinboz chromebook using Mint

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
wishiwashear
Level 1
Level 1
Posts: 4
Joined: Wed Mar 29, 2023 6:10 pm

No sound - but card detected - on Dirinboz chromebook using Mint

Post by wishiwashear »

Hi all, I've been troubleshooting for days now and I've fully run out of ideas. The background is that I have an HP chromebook dual booting Linux Mint (though I've tried other distros) and I can't get sound at all despite the card apparently being detected. I'm hoping someone who understands this better than I do can help me with the next troubleshooting steps.

I should note that I'm running kernel 6.2.8 due to it being the first version that fixes unrelated bugs (with graphics) so I have no real choice but to use that version - saying that, I've had this problem with multiple other kernel versions as well.

I've tried (and I'm certainly forgetting some stuff): Force reloading Alsa many times Checked that no channels in alsamixer are muted forcing various "model" options in alsa-base.conf using index numbers in alsa-base.conf uninstalling pulseaudio reinstalling pulseaudio using pipewire

I get no sound on any output - headphones, bluetooth, USB or the built in speakers

There is a weird dmesg that I think could be related - but really not sure:

Code: Select all

dmesg | grep long
[ 14.028593] acp3x-alc5682-max98357 AMDI5682:00: ASoC: driver name too long 'acp3xalc5682m98357' -> 'acp3xalc5682m98'
Here's some config information - please let me know if you need anything else!

Code: Select all

carl@carl-Dirinboz:~$ lspci |grep Audio
02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller 02:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor
aplay -l
**** List of PLAYBACK Hardware Devices **** card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: Generic [HD-Audio Generic], device 7: HDMI 1 [HDMI 1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: Generic [HD-Audio Generic], device 8: HDMI 2 [HDMI 2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: Generic [HD-Audio Generic], device 9: HDMI 3 [HDMI 3] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: acp3xalc5682m98 [acp3xalc5682m98357], device 0: Playback rt5682-aif1-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: acp3xalc5682m98 [acp3xalc5682m98357], device 1: HiFi Playback HiFi-1 [] Subdevices: 1/1 Subdevice #0: subdevice #0

Code: Select all

inxi -Fxxxrz
System:
  Kernel: 6.2.8-060208-generic x86_64 bits: 64 compiler: N/A
    Desktop: Xfce 4.16.0 tk: Gtk 3.24.23 info: xfce4-panel wm: xfwm 4.16.1
    vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.1 Vera
    base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: HP product: Dirinboz v: rev5
    serial: <superuser required> Chassis: type: 9 serial: <superuser required>
  Mobo: HP model: Dirinboz v: rev5 serial: <superuser required>
    UEFI: coreboot v: Google_Dirinboz.13434.688.0 date: 04/13/2022
Battery:
  ID-1: BAT0 charge: 38.7 Wh (92.4%) condition: 41.9/47.4 Wh (88.5%)
    volts: 8.3 min: 7.7 model: 333-1C- GH02047 type: Li-ion serial: <filter>
    status: Discharging cycles: 89
CPU:
  Info: dual core model: AMD 3015Ce with Radeon Graphics bits: 64
    type: MT MCP smt: enabled arch: Zen rev: 1 cache: L1: 192 KiB L2: 1024 KiB
    L3: 4 MiB
  Speed (MHz): avg: 1004 high: 1384 min/max: 400/1200 boost: enabled cores:
    1: 1384 2: 399 3: 878 4: 1357 bogomips: 9581
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
    driver: amdgpu v: kernel pcie: speed: 8 GT/s lanes: 16 ports: active: eDP-1
    empty: DP-1,DP-2 bus-ID: 02:00.0 chip-ID: 1002:15d8 class-ID: 0300
  Device-2: Luxvisions Innotech HP Wide Vision HD Camera type: USB
    driver: uvcvideo bus-ID: 1-5:2 chip-ID: 30c9:0016 class-ID: 0e02
    serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.3 compositor: xfwm v: 4.16.1 driver:
    X: loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa gpu: amdgpu
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0")
    s-diag: 414mm (16.3")
  Monitor-1: eDP res: 1366x768 hz: 60 dpi: 112 size: 309x174mm (12.2x6.9")
    diag: 355mm (14")
  OpenGL:
    renderer: RAVEN2 (raven2 LLVM 15.0.6 DRM 3.49 6.2.8-060208-generic)
    v: 4.6 Mesa 22.2.5 direct render: Yes
Audio:
  Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 02:00.1 chip-ID: 1002:15de
    class-ID: 0403
  Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
    driver: snd_pci_acp3x v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 02:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Sound Server-1: ALSA v: k6.2.8-060208-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    vendor: Hewlett-Packard driver: rtw_8822ce v: N/A pcie: speed: 2.5 GT/s
    lanes: 1 port: 1000 bus-ID: 01:00.0 chip-ID: 10ec:c822 class-ID: 0280
  IF: wlp1s0 state: up mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-6:3 chip-ID: 0bda:b00c class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter>
    bt-v: 3.0 lmp-v: 5.1 sub-v: 6d7d hci-v: 5.1 rev: 19b7
Drives:
  Local Storage: total: 518.51 GiB used: 24.18 GiB (4.7%)
  ID-1: /dev/mmcblk0 model: CUTB42 size: 58.24 GiB type: SSD
    serial: <filter> rev: 0x8 scheme: GPT
  ID-2: /dev/sda type: USB vendor: SanDisk model: USB 3.2Gen1
    size: 460.27 GiB type: N/A serial: <filter> rev: 1.00 scheme: GPT
Partition:
  ID-1: / size: 451.48 GiB used: 24.17 GiB (5.4%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 13.8 MiB (0.7%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 38.8 C mobo: N/A gpu: amdgpu temp: 39.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: apt: 2154
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/cappelikan-ppa-jammy.list
    1: deb [arch=amd64 signed-by=/etc/apt/keyrings/cappelikan-ppa-jammy.gpg] https://ppa.launchpadcontent.net/cappelikan/ppa/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://mirror.xnet.co.nz/pub/linuxmint/packages vera main upstream import backport
    2: deb http://mirror.fsmg.org.nz/ubuntu jammy main restricted universe multiverse
    3: deb http://mirror.fsmg.org.nz/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://mirror.fsmg.org.nz/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 245 Uptime: 37m wakeups: 1 Memory: 3.71 GiB
  used: 1.76 GiB (47.3%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.3.0 alt: 11/12 Shell: Bash v: 5.1.16 running-in: xfce4-terminal
  inxi: 3.3.13
Last edited by LockBot on Fri Sep 29, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31307
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: No sound - but card detected - on Dirinboz chromebook using Mint

Post by SMG »

wishiwashear wrote: Wed Mar 29, 2023 6:13 pmI should note that I'm running kernel 6.2.8 due to it being the first version that fixes unrelated bugs (with graphics) so I have no real choice but to use that version - saying that, I've had this problem with multiple other kernel versions as well.
Welcome to the forum, wishiwashear.

What are these graphics-related bugs?

Many Chromebooks have issues with sound. Are you running the most recent version of Coreboot for your computer?
Machine:
Type: Laptop System: HP product: Dirinboz v: rev5
serial: <superuser required> Chassis: type: 9 serial: <superuser required>
Mobo: HP model: Dirinboz v: rev5 serial: <superuser required>
UEFI: coreboot v: Google_Dirinboz.13434.688.0 date: 04/13/2022

I did find Dirinboz on the list on MrChromebox's website, but I don't know if sound is possible. As indicated in Tips for Troubleshooting Sound Issues Rev. 1 Chromebooks section, sometimes an external usb sound card is the only way to get sound.

What is the output of

Code: Select all

journalctl -k | grep -Ei "ALSA|HDA|sof[-]|HDMI|snd[_-]|sound|hda.codec|hda.intel"
Please enclose the results in code tags as described in this tutorial How to use code display tags on forums.linuxmint.com.

I will pass along this thread which has a comment from MrChromebox about your model saying disabling WP is not necessary when flashing the firmware Dirinboz Hp14a Bricked?, but let's check your output before doing anything related to that.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
wishiwashear
Level 1
Level 1
Posts: 4
Joined: Wed Mar 29, 2023 6:10 pm

Re: No sound - but card detected - on Dirinboz chromebook using Mint

Post by wishiwashear »

Thank you very much indeed for taking the time to reply! Over the weekend, I tried with a bluetooth headset and I've been able to get sound that way - which is minimally acceptable. I'm a bit hard of hearing and wearing a headset makes it impossible for me to hear things around me, for example my wife :-) You can imagine that tests her patience so I'd prefer to get the internal speakers working if possible.

On to the logging you requested:

Code: Select all

journalctl -k | grep -Ei "ALSA|HDA|sof[-]|HDMI|snd[_-]|sound|hda.codec|hda.intel"~
Apr 03 12:04:28 Dirinboz kernel: snd_hda_intel 0000:02:00.1: bound 0000:02:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
Apr 03 12:04:28 Dirinboz kernel: input: HD-Audio Generic HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:08.1/0000:02:00.1/sound/card0/input6
Apr 03 12:04:28 Dirinboz kernel: input: HD-Audio Generic HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:08.1/0000:02:00.1/sound/card0/input7
Apr 03 12:04:28 Dirinboz kernel: input: HD-Audio Generic HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:08.1/0000:02:00.1/sound/card0/input8
Apr 03 12:04:28 Dirinboz kernel: input: HD-Audio Generic HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:08.1/0000:02:00.1/sound/card0/input9
Apr 03 12:04:28 Dirinboz kernel: input: acp3xalc5682m98357 Headset Jack as /devices/pci0000:00/0000:00:08.1/0000:02:00.5/AMDI5682:00/sound/card1/input11
...Which exposes my real name, but oh well!
What are these graphics-related bugs?
Varies depending on the iommu stuff I feed to the kernel in grub, and the specific kernel version, but blank screen on boot, totally scrambled screen on boot, x randomly crashing and the screen flashing on and off with keystrokes are all issues I've had - all fixed with iommu=on and iommu=pt combined with the 6.2.8 kernel. It was possible to get things sort of working by using nomodeset, but that disables the gpu altogether and wasn't really acceptable.

I should note that I've tried external USB sound cards (two kinds) and a USB headset (Jabra Evolve) and they just don't work at all. The headphone jack doesn't work either.

I'm honestly not 100% sure what you mean about coreboot, so I'll just describe the steps I've taken to get Linux on this Chromebook as best I can and hopefully that answers your question. Please let me know if it's not helpful.
1 - boot the device into developer mode
2 - run mrchromebox''s firmware utility
3 - reboot with two USB drives plugged in - a live Linux Mint drive, and a blank drive
4 - select "boot from alternate firmware" then "Tianocore"
5 - select the live USB from the boot menu
6 - select compatibility mode (I forget the exact name of this, but it's to work around the GPU bugs)
7 - once in X, install linux mint, with the target being the external USB (the internal eMMC is visible, but I haven't installed to it)
8 - boot from the external USB from now on.

Probably not relevant but I've also removed the default swapfile and I'm using a swap partition on the eMMC instead.

Thank you again for your help, please do let me know if you have any more information you'd like me to provide.
User avatar
SMG
Level 25
Level 25
Posts: 31307
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: No sound - but card detected - on Dirinboz chromebook using Mint

Post by SMG »

wishiwashear wrote: Sun Apr 02, 2023 8:22 pm...Which exposes my real name, but oh well!
I edited the post to remove it.
wishiwashear wrote: Sun Apr 02, 2023 8:22 pmI should note that I've tried external USB sound cards (two kinds) and a USB headset (Jabra Evolve) and they just don't work at all. The headphone jack doesn't work either.
It is unusual the usb sound cards do not work.

However, I was also not expecting to hear you had already run MrChromebox's utility because usually when one installs his firmware, it shows up in inxi. Here is an example from someone else's output:
Machine:
Type: Laptop System: Google product: Cave v: 1.0 serial: <superuser required> Chassis: type: 9
serial: <superuser required>
Mobo: Google model: Cave v: 1.0 serial: <superuser required> UEFI: coreboot
v: MrChromebox-4.18.2 date: 11/29/2022


and here is yours. Notice the part I have highlighted in both.
Machine:
Type: Laptop System: HP product: Dirinboz v: rev5
serial: <superuser required> Chassis: type: 9 serial: <superuser required>
Mobo: HP model: Dirinboz v: rev5 serial: <superuser required>
UEFI: coreboot v: Google_Dirinboz.13434.688.0 date: 04/13/2022

I don't know if there is something special about your model that it might not show the MrChromebox version.
wishiwashear wrote: Sun Apr 02, 2023 8:22 pm1 - boot the device into developer mode
2 - run mrchromebox''s firmware utility
3 - reboot with two USB drives plugged in - a live Linux Mint drive, and a blank drive
4 - select "boot from alternate firmware" then "Tianocore"
5 - select the live USB from the boot menu
6 - select compatibility mode (I forget the exact name of this, but it's to work around the GPU bugs)
7 - once in X, install linux mint, with the target being the external USB (the internal eMMC is visible, but I haven't installed to it)
8 - boot from the external USB from now on.
I did find this Reddit topic DIRINBOZ Chromebook not booting from four months ago where the person indicates, "After speaking on the mrchromebox discord, it looks like the correct drivers for booting straight from DIRINBOZ's SSD don't exist yet." Perhaps that is why you are booting from a separate drive? I don't know if that might make a difference on the coreboot version.

Here's a GitHub issue TianoCore bios does not detect Internal eMMC storage - Dirinboz HP Chromebook 14a #347 which indicates it is a known issue on AMD Ryzen Chromebooks.
wishiwashear wrote: Sun Apr 02, 2023 8:22 pmProbably not relevant but I've also removed the default swapfile and I'm using a swap partition on the eMMC instead.
When did you do that? The data you posted indicates there is a swapfile.

Code: Select all

Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 13.8 MiB (0.7%) priority: -2
    file: /swapfile
I did some searches on acp3xalc5682m98357 and acp3x-alc5682-max98357 and I'm not coming up with anything other than others who also have no sound.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
SMG
Level 25
Level 25
Posts: 31307
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: No sound - but card detected - on Dirinboz chromebook using Mint

Post by SMG »

This is a different model (not HP) Experimenting with ThinkPad C13 Yoga , but it appears to have the same sound card. This person indicates:
The sound card is far more problematic because acp3xalc5682m98357 (Maxim 98357a) is a tough one to work with.

Thanks to eupnea-audio-script. With kernel version 5.10.131, I was able to get the built-in speakers working but not for the headphone port. Here’s more test results:

Semi-functional sound card under Fedora 37, Pop!_OS 22.04 LTS and Ubuntu 22.10—speakers are fixed but not for the headphone port
Not working sound card under Ubuntu LTS 22.04 and Arch—the script didn’t fix anything

Workarounds are plenty, for example, using Bluetooth headphones or buying a cheap small USB sound card like C-Media ones that can plug n play.
Here is a link to the script eupnea-linux /audio-scripts as well as directions. I suggest taking a Timeshift snapshot before making changes to try the script.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
wishiwashear
Level 1
Level 1
Posts: 4
Joined: Wed Mar 29, 2023 6:10 pm

Re: No sound - but card detected - on Dirinboz chromebook using Mint

Post by wishiwashear »

Thank you again - this is helpful.

You're correct that I made the swapfile change recently - it's been helpful when I'm doing anything IO heavy, like installing software or indeed making a Timeshift snapshot, because the eMMC is a good deal faster than the USB drive and it's got a separate interface.

I haven't tried installing to the eMMC directly. Before I went down the road of installing Linux, I did some reading and found a number of people who struggled with installing to the eMMC on AMD chromebooks for a number of reasons. Since the USB drive I have is 500GB and that's plenty of space, I thought I'd just use that directly. The eMMC would be faster but I just didn't want to risk it.

That's interesting that mrchromebox's firmware doesn't show up in the output they way you're expecting to see. I don't know what to make of it really - is it possible that most other people doing this install the full UEFI firmware? I didn't.

I've just Timeshifted and run the script, apparently I have to do a reboot to test it. I don't want to lose the comment I've typed so I'll be back in a few minutes with the results :-)

Thanks again.
wishiwashear
Level 1
Level 1
Posts: 4
Joined: Wed Mar 29, 2023 6:10 pm

Re: No sound - but card detected - on Dirinboz chromebook using Mint

Post by wishiwashear »

It sort of worked - I get weird beeping and squeaking from the speakers but no coherent sound. I'm restoring the snapshot. Might be stuck with bluetooth I suppose!
User avatar
SMG
Level 25
Level 25
Posts: 31307
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: No sound - but card detected - on Dirinboz chromebook using Mint

Post by SMG »

wishiwashear wrote: Mon Apr 03, 2023 1:39 amThat's interesting that mrchromebox's firmware doesn't show up in the output they way you're expecting to see. I don't know what to make of it really - is it possible that most other people doing this install the full UEFI firmware? I didn't.
I do not know what you mean by "the full UEFI firmware" as compared to what you did, so I cannot answer your question.
wishiwashear wrote: Mon Apr 03, 2023 1:43 am It sort of worked - I get weird beeping and squeaking from the speakers but no coherent sound.
At least that is some progress. You also added the newer libasound2 and libasound2-data packages?

Maybe you will have to wait for a newer kernel version for these scripts to work well on your hardware.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Locked

Return to “Sound”