My right ALT key is not working
I had the same problem, and after a lot of googling around in vain I finally managed to discover a solution.
The following solution works both when the English keyboard is selected, and when the Greek keyboard is selected. (Or any other keyboard for that matter, I suppose.)
Open "Tweaks" (aka "Gnome Tweaks") go to Keyboard & Mouse > Additional Layout Options > Key to choose the 3rd level and put a check mark on Right Alt never chooses 3rd level.
If you want to be able to achieve the same thing via the command line:
The corresponding dconf setting is /org/gnome/desktop/input-sources/xkb-options
, the value 'lv3:ralt_alt'
must be included in the array of values for that key.
After setting the value of this key, the tweak tool then causes the setxkbmap
command to be invoked, with some parameters that actually do the trick on the fly, but I have not been able to figure out what those parameters are, so my guess is that if you only do dconf
then you will need to restart your login session for the changes to take effect.
<rant-mode>
I suppose the problem here is that Ubuntu is a) trying to offer an impossibly oversimplified interface which yields an unusable computer out of the box, so you absolutely have to resort to things like the "Gnome Tweaks" tool, and b) this tool is offering so many incredibly arcane and entirely useless options, that the one little option that actually matters is hidden in the noise.
</rant-mode>