Bug#1117976: console-setup: Keyboard level 4 remains locked if AltGr and Shift are released in incorrect order
Rimas Kudelis, le mer. 15 oct. 2025 13:47:23 +0300, a ecrit:
> 2025-10-15 10:01, Samuel Thibault rašė:
> > Rimas Kudelis, le mer. 15 oct. 2025 08:20:44 +0300, a ecrit:
> > > > > * 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)
> > >
> > > Thanks! I've changed this and will see how it works after reboot.
> >
> > You don't need to reboot, you can just run setupcon to apply the change.
>
> I ended up rebooting. I don't know if pressing Ctrl+C in a terminal I
> haven't logged in into should trigger this, but I played with my keyboard
> after changing the setting (including pressing Ctrl+C), and eventually even
> that shortcut stopped working, as well as Ctrl+Alt+Fx. Ctrl+Alt+Del ended up
> being my savior.
That doesn't seem like it could be related with the change to
lalt_lshift_toggle. I have no idea what could have happened, it's not
supposed to anyway.
> > > I also wonder if the combination of grp:alt_shift_toggle and
> > > level3/4 shift
> > > on AltGr works differently in X/Wayland.
> >
> > It does work, but only by chance because the low-level engine is
> > different.
>
> I see. Good thing I usually use Win+Space to switch between keymaps/input
> methods. Maybe it would make sense for console-setup in Debian to default to
> grp:win_space_toggle as well?
I don't think we want to change a default without polling people on a
larger scale (I don't know how the current default was determined, but
the description seems to say it was not chosen randomly).
Samuel
Reply to: