tpwrules / nixos-apple-silicon

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

Can't get Bluetooth to work #18

Closed epetousis closed 1 year ago

epetousis commented 2 years ago

I'm running a 2020 M1 MacBook Air, but am having trouble getting bluetooth.service to start with the latest kernel that was pushed here. I don't think Bluetooth is loading at all (/sys/class/bluetooth is missing), and I'm not quite sure why - I'd assume firmware isn't the issue as WiFi is working fine. I didn't spot any issues about Bluetooth, is this something that requires further work to support in NixOS, or have I just messed something up? Happy to provide logs if they're of any use.

tpwrules commented 2 years ago

Looks like the last time Bluetooth worked was nixos-m1 commit 8b54e3b. I'm not sure exactly what happened in later versions but I checked on my M1 Max MBP. You will have to cherry-pick nixos-m1 commit 523ec0b if you want to build it with recent nixpkgs versions.

It's probable it's an upstream issue because not much changed on my end to break it. The Asahi project has not had an official non-dev kernel release in quite a while now which is why I haven't been releasing much either but if it fixes Bluetooth then that's a good reason to make one. I'll look into it but if you want Bluetooth now I suggest using an older nixos-m1 commit (or just the kernel) as described above.

epetousis commented 2 years ago

Definitely not an urgent requirement for me, was more just confused as to why it wasn't working. Appreciate you looking into it though, and apologies for not thinking to bisect the module myself (didn't realise it was previously working).