whyxno

Getting your bluetooth peripherals to work on Linux

21-03-2024    #linux   #tech  

The real answer is to not use Linux - do yourself a favour in life and just use windows. “ohhh but I am a developer and it’s easier to..” shut up. Use windows with wsl and enjoy things just working and give yourself more free time to actually do stuff.

Now having said that - I purchased a wireless keyboard after a severe head injury and I had a bug where the wireless keyboard would work once I had logged into my Linux desktop but at the login screen it wouldn’t work. I’d have to plug it in to get it to work. I had trouble finding a fix for this so I thought it was worth sharing in case somebody else comes across the same issue;

If you have a bluetooth keyboard that auto connects when you login to the Desktop environment but doesn’t work on the login screen you’ll need to;

Edit the file /etc/bluetooth/main.conf and make sure the following options are set (search in the file for the configuration key, uncomment it and change value):

[Policy]

ReconnectAttempts=10
AutoEnable=true

And that’s it - it should now work after a reboot.