#linux #bluetooth

Como Configurar o Bluetooth em Linux se Está Sempre a Perder a Ligação

por Pedro Resende em 08/12/2025 às 11:20:00

Vou-vos deixar aqui um pequeno tutorial sobre como configurar o Bluetooth em Linux se estiver sempre a perder a ligação ou demorar bastante para se conectar.

Comecei a ter este problema, cada vez que saia de modo de suspensão, ou se reiniciava, o teclado bluetooth não funcionava ou demorava bastante para se conectar.

Vamos então editar o ficheiro /etc/bluetooth/main.conf, para tal vamos executar o seguinte comando:

sudo vi /etc/bluetooth/main.conf

Vão até à secção Policy e procurem por #ReconnectAttempts=3 e altererem por ReconnectAttempts=7.

Na mesma secção, procurem por #ReconnectInterval=1,2,4,8,16,32,64 e alterem por ReconnectInterval=1,2,4,8,16,32,64.

Salvem o ficheiro e reiniciem o computador.

Pronto, agora o Bluetooth deverá funcionar sempre.

Pedro Resende

Pedro Resende

With over two decades of experience as a Full Stack Developer, I have journeyed through diverse facets of software development. Commencing with the creation of compact institutional websites, I progressed to crafting portals for insurance brokers and contributed to substantial projects for renowned companies such as MS Amlin. My expertise expanded further by delving into product development for Advertiser Kwanko and collaborating with startups in their pivotal ramp-up stages. Notably, I've been involved in architecting extensive e-commerce solutions for global enterprises like Wayfair and Strategyzer.

I currently serve as the Tech Lead at Emergn, contributing to the establishment and advancement of the Praxis by Emergn product.