tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
743 stars 73 forks source link

Add official support for speakers #119

Closed diamondburned closed 6 months ago

diamondburned commented 7 months ago

With the release of the SW:Speakers wiki page, Asahi Linux now officially supports the Macbook Air M1 13" speakers (J313). This issue tracks the addition of this into nixos-apple-silicon.

Progress:

Blocking Items:

Relevant issue: https://github.com/tpwrules/nixos-apple-silicon/issues/100

My current implementation: https://github.com/diamondburned/dotfiles/tree/hackadoll3/Scripts/nix/machines/lilyhoshii/cfg/speakers

sequencer commented 7 months ago

alarm is doomed :(

tpwrules commented 7 months ago

Thanks for inventorying this and providing a direction.

We will probably have to wait for Pipewire to progress through staging, but I'll do some experiments and see if we can just move it forward for a bit.

I'm also doing some studying on how to best account for the upstream migration away from Arch Linux but I don't have an answer right now.

RossComputerGuy commented 7 months ago

Pipewire v0.3.84 is merged into unstable and master as of today, though the v0.3.85 PR was opened almost a week ago and it's in unstable right now. I'm gonna see if I can reproduce getting speaker support in my setup today.

ghost commented 6 months ago

Pipewire v0.3.84 is merged into unstable and master as of today, though the v0.3.85 PR was opened almost a week ago and it's in unstable right now. I'm gonna see if I can reproduce getting speaker support in my setup today.

Any results?

yu-re-ka commented 6 months ago

https://github.com/NixOS/nixpkgs/pull/274504

yu-re-ka commented 6 months ago

Also my own take on this in #122

RossComputerGuy commented 6 months ago

@vector1dev So I did get it added in but I found out that my device isn't supported yet. Mine uses j314 but only j313 is supported which is the MBA and I have a MBP.

tpwrules commented 6 months ago

NixOS/nixpkgs#274504

Good to see that there's a release for my machine now so that I can properly test.

Should we just have this fix in our overlay for now, until the release comes out? That would get speakers to users a little quicker.

yu-re-ka commented 6 months ago

Mine uses j314 but only j313 is supported which is the MBA and I have a MBP.

MacBook Pro J314 is also supported (in fact that is the device I'm using), but all of them need to be opted into by the distro/user by telling the kernel to enable audio.

RossComputerGuy commented 6 months ago

but all of them need to be opted into by the distro/user by telling the kernel to enable audio.

How exactly is that done?

yu-re-ka commented 6 months ago

@RossComputerGuy please read the following chat log carefully: https://oftc.irclog.whitequark.org/asahi-dev/2023-10-28

You need the changes from my PR #122 and:

Requirements:

  • A patched eleven secret herbs and spices kernel (or a certain kernel cmdline parameter)

Do not ask any further questions about how to make speakers work, until things are properly merged into nixos-apple-silicon. Thanks

tpwrules commented 6 months ago

We are working on this and hope to have a solution soon. Thanks for the patience.

tpwrules commented 6 months ago

Done in the latest release.