AsahiLinux / speakersafetyd

Rust speaker safety daemon for Asahi Linux
MIT License
119 stars 7 forks source link

daemon wont start with `Could not open sound card! Error: ALSA function 'snd_ctl_open' failed with error 'ENODEV: No such device'` #14

Closed LainLayer closed 7 months ago

LainLayer commented 7 months ago
Feb 08 12:19:35 alarm systemd[1]: Started Speaker Protection Daemon.
Feb 08 12:19:35 alarm speakersafetyd[595]: INFO  [speakersafetyd] Starting up
Feb 08 12:19:35 alarm speakersafetyd[595]: INFO  [speakersafetyd] Config base: "/usr/share/speakersafetyd/"
Feb 08 12:19:35 alarm speakersafetyd[595]: INFO  [speakersafetyd] Machine: apple,j313
Feb 08 12:19:35 alarm speakersafetyd[595]: INFO  [speakersafetyd] Config file: "/usr/share/speakersafetyd/apple/j313.conf"
Feb 08 12:19:35 alarm speakersafetyd[595]: INFO  [speakersafetyd] Device: hw:AppleJ313
Feb 08 12:19:35 alarm speakersafetyd[595]: WARN  [speakersafetyd::uclamp] Failed to set uclamp
Feb 08 12:19:35 alarm speakersafetyd[595]: INFO  [speakersafetyd] Enabling blackbox, path: "/var/lib/speakersafetyd/blackbox"
Feb 08 12:19:35 alarm speakersafetyd[595]: INFO  [speakersafetyd] Found 2 speakers
Feb 08 12:19:35 alarm speakersafetyd[595]: INFO  [speakersafetyd] Opening control device
Feb 08 12:19:35 alarm speakersafetyd[595]: ALSA lib confmisc.c:165:(snd_config_get_card) Cannot get card index for AppleJ313
Feb 08 12:19:35 alarm speakersafetyd[595]: thread 'main' panicked at src/helpers.rs:12:13:
Feb 08 12:19:35 alarm speakersafetyd[595]: hw:AppleJ313: Could not open sound card! Error: ALSA function 'snd_ctl_open' failed with error 'ENODEV: No such device'
Feb 08 12:19:35 alarm speakersafetyd[595]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Feb 08 12:19:35 alarm speakersafetyd[595]: WARN  [speakersafetyd] Panic!
Feb 08 12:19:35 alarm speakersafetyd[595]: WARN  [speakersafetyd::blackbox] Blackbox is empty, nothing to save
Feb 08 12:19:35 alarm systemd[1]: speakersafetyd.service: Main process exited, code=exited, status=101/n/a

I'm trying to install this thing on my journey to getting my speakers to work, don't know if I'm missing something. Please help.

My lsp-plugins version is on 1.2.14

chadmed commented 7 months ago

The ALARM repo is extremely incomplete as bandwidth to maintain it sorta fell away while we worked to get Fedora out the door. You need a newer kernel, newer UCM conf files, and the Pipewire/Wireplumber DSP files for this to work at all.

LainLayer commented 7 months ago

Shame. So I need to change to the Fedora version?

LainLayer commented 7 months ago

Yup, works on the Fedora version. Thank you for the quick reply.

mkurz commented 3 months ago

The ALARM repo is extremely incomplete as bandwidth to maintain it sorta fell away while we worked to get Fedora out the door.

Just to let you know, with the pull requests from joske (https://github.com/AsahiLinux/PKGBUILDs/pulls/joske) audio in Asahi ALARM works like a charm now.