Bug#1117976: console-setup: Keyboard level 4 remains locked if AltGr and Shift are released in incorrect order
Hello,
Rimas Kudelis, le lun. 13 oct. 2025 09:41:08 +0300, a ecrit:
> When I tried using text terminal yesterday, I noticed that Level 4 tends to
> lock if I don't pay close attention to how I use it. For example, to enter
> &&, I need to use level 4. So if I enter it by pressing AltGr, then Shift,
> then pressing and releasing key 7 (twice), then releasing Shift, then
> releasing AltGr, all seems fine.
>
> However, if I release AltGr before Shift (as I normally do), Level 4 remains
> in effect, and I couldn't find a way to get out of it other than pressing ^C
> to cancel the command I was typing and logging out of the affected console
> by pressing ^D.
It seems there is some conflicting between the alt-shift toggle (which
also makes altgr-shift perform the toggle) and the altgr group3/4
processing.
> * keyboard-configuration/optionscode: grp:alt_shift_toggle,grp_led:scroll
Could you try to change in /etc/default/keyboard:
XKBOPTIONS="grp:alt_shift_toggle,grp_led:scroll"
into
XKBOPTIONS="grp:lalt_lshift_toggle,grp_led:scroll"
(two additional 'l' to enable only alt-shift and not altgr-shift)
I'll commit something to make keyboard-configuration automatically set
this.
Samuel
Reply to: