Skip to content

Instantly share code, notes, and snippets.

@luzfcb
Last active September 23, 2021 13:20
Show Gist options
  • Select an option

  • Save luzfcb/fe0c604c276fdf6f012bfd2ebcffaf98 to your computer and use it in GitHub Desktop.

Select an option

Save luzfcb/fe0c604c276fdf6f012bfd2ebcffaf98 to your computer and use it in GitHub Desktop.
Desabilitar microfone bluetooth headset HSP / HFP

dica: Se você tiver um microfone melhor e quiser desativar o microfone do seu headset bluetooth (e com isso fazer ele conectar em modo com audio de qualidade melhor)

echo -e "\n\n## desabilita modo HSP/HFP\n# https://web.archive.org/web/20210302172458/http://korepov.pro/infobase/linux/6\nDisable=Headset" | sudo tee --append /etc/bluetooth/input.conf

Depois:

mkdir -p "${HOME}/.config/pulse/"
cp /etc/pulse/default.pa "${HOME}/.config/pulse/default.pa"

depois edite o arquivo

${HOME}/.config/pulse/default.pa

comente as linhas ou seja, modifique de

load-module module-switch-on-port-available
load-module module-suspend-on-idle

para

#load-module module-switch-on-port-available
#load-module module-suspend-on-idle

tambem modifique as linhas:

de:

load-module module-bluetooth-policy

para

load-module module-bluetooth-policy auto_switch=false

e finalmente descomente as linhas:

set-default-sink output
set-default-source input

Depois reinicie teu linux.

Nota: Se por algum motivo der algum pau no audio, é só vc deletar/renomear o arquivo ${HOME}/.config/pulse/default.pa e reiniciar

baseado no https://unix.stackexchange.com/a/509192/235416 e no https://web.archive.org/web/20210302172458/http://korepov.pro/infobase/linux/6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment