NixOS에서 블루투스 스피커가 펄스 오디오와 작동하도록 만드는 방법은 무엇입니까?

NixOS에서 블루투스 스피커가 펄스 오디오와 작동하도록 만드는 방법은 무엇입니까?

Bluetooth 스피커를 성공적으로 연결했지만 Pulseaudio가 해당 스피커를 오디오 장치로 인식하지 못하는 것 같습니다. NixOS Wiki의 제안에 따라 이제 내 구성.nix에 다음을 추가했습니다.

  sound.enable = true;
  hardware = {
    pulseaudio = {
      enable = true;
      package = pkgs.pulseaudioFull;
      extraModules = [ pkgs.pulseaudio-modules-bt ];
    };
    bluetooth = {
      enable = true;
      extraConfig = "
        [General]
        Enable=Source,Sink,Media,Socket
      ";
    };
  };

그 밖에 필요한 것이 있나요?

내가 보는 오류는 journalctl다음과 같습니다.

Nov 17 23:33:45 jon-laptop pulseaudio[4563]: E: [pulseaudio] bluez4-util.c: org.bluez.Manager.GetProperties() failed: org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.bluez.Manager" doesn't exist
Nov 17 23:33:45 jon-laptop pulseaudio[4563]: E: [pulseaudio] backend-ofono.c: Failed to register as a handsfree audio agent with ofono: org.freedesktop.DBus.Error.ServiceUnknown: The name org.ofono was not provided by any .service files

답변1

먼저 장치(bluethoothctl)를 연결한 다음 pulseaudio를 다시 시작하여 작동하게 했습니다 systemctl --user restart pulseaudio.

마지막으로 A2DPpavucontrol을 사용하여 오디오 장치를 더 나은 품질로 설정하십시오.

관련 정보