Ubuntu: Connecting Bluetooth headset removes setxkbmap setting


Ubuntu used to have a supported feature for setting caps to backspace that got me hooked on the idea of doing that. It has sense been removed just like the f3 feature in the file manager. Regardless, I have figured out how to set in manually on start up with the following command

setxkbmap -option caps:backspace && xmodmap -e "clear Lock"  

Works great. Until I start using my bluetooth headset. Then backspace magically turns back into caps lock

Any ideas about why this might happen? The two things seem completely unrelated to me, but it happens every time in some point of the bluetooth connection process

Basically I'm looking to make this setting more of a permanent fixture for the keyboard layout that I'm using

UPDATE: Seems to occur when I try to connect to by headset as a different profile In Blueman connecting as audio sink instead of headset. Its fine when bt first connects


This is untested, but what about doing it by editing /etc/default/keyboard instead, i.e. changing the line:




Not sure about that xmodmap command. Is it really necessary? AFAIK xmodmap is deprecated.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »