On Sat 21 Nov 2026 at 18:18:27 (+0100), Roger Price wrote: > On Wed, 18 Nov 2026, David Wright wrote: > > > ... It might be worthwhile reading through: > > https://wiki.debian.org/Keyboard > > Quoting from the WiKi: You can change your keyboard settings using: > # dpkg-reconfigure keyboard-configuration > # service keyboard-setup restart > but clearly this is not working in my case.
Being no expert on dual language from one keyboard, I don't know whether dpkg-reconfigure keyboard-configuration can be coerced into configuring your requirements, ie two layouts. > In the section "Multi-language keyboard configuration strategy": I need the > "Old > fashioned strategy" without IM, but the WiKi is short on explanations. Well, I don't know what a Multi-language Keyboard is, but I presume it's supporting several languages effectively at the same time. Assuming what you want is to be able to switch between US and French (and I'm not even sure about that¹), I moved on to the section: Keyboard configuration Tips Manual configuration of keyboard Comparing their first example with what you have under (7), I just pasted the first four lines of your (7) into /etc/default/keyboard, in the appropriate positions, and then ran: # dpkg-reconfigure keyboard-configuration not changing anything, but answering Yes to keeping whatever it had; then: # service keyboard-setup restart Note that I did all this outside X, at VC1, after logging on. The result was that /etc/default/keyboard changed to: # KEYBOARD CONFIGURATION FILE # Consult the keyboard(5) manual page. XKBMODEL="pc105" XKBLAYOUT="us,fr" XKBVARIANT="intl," XKBOPTIONS="grp:rwin_toggle,compose:lwin,grp_led:scroll" BACKSPACE="guess" As you can see, it deduplicated grp:rwin_toggle and added grp_led:scroll. What I observe now from typing the first four characters of each keyboard line (ignoring the stuff at the left) is: 1234 qwer asdf zxcv !@#$ QWER ASDF ZXCV (shifted) After tapping the RH Win key: &é"' azer qsdf wxcv 1234 AZER QSDF WXCV (shifted) Tapping RH Win again reverts to qwer etc. I'm not familiar with French keyboards, but those transpositions seem to correspond with the images from googling french keyboards. In the US mode, the ~`'^" keys are all dead, and operate as expected; typing comma while holding down RH Alt gives ç directly. The Compose Key works as expected, but the scroll LED still seems to reflect the Scroll Key's locking, rather than the layout. > I gave up on the WiKi, reinstalled Debian 13 with Xfce and started again > following "Damko" in his « A simple, humble but comprehensive guide to XKB > for > linux » > https://medium.com/@damko/a-simple-humble-but-comprehensive-guide-to-xkb-for-linux-6f1ad5e13450 > > 1) I attached a US keyboard to the laptop and installed a plain US > system. > > 2) I ensured that Xfce -> Settings -> Keyboard -> Layout showed "Use system > defaults". > > 3) I ensured that Xfce -> Settings -> Session and Startup -> Application > Autostart showed that "Keyboard layout" is selected to run setxkbmap. > > 4) As root I ran command > setxkbmap -layout us,fr -variant intl, -option "compose:lwin,compose:lwin" > > 5) I like to toggle between keyboards so as root I ran command > setxkbmap -layout us,fr -variant intl, -option > "grp:rwin_toggle,grp:rwin_toggle" > > (Note that options are additive.) > > 6) To prevent automatic keyboard toggling, I went to Xfce -> Settings -> > Panel > -> Items and added "Keyboard layouts". This places a flag in the panel. I > clicked on the flag -> Properties -> Keyboard layouts -> Behavior and set > "Manage layout" to "Globally". I'm not sure what you mean by Automatic Keyboard Toggling, perhaps because I don't use a DE (and am testing all this outside X anyway). > 7) Command setxkbmap -print now shows > > model: pc105 > layout: us,fr > variant: intl, > options: grp:rwin_toggle,grp:rwin_toggle,compose:lwin > Trying to build keymap using the following components: > keycodes: evdev+aliases(qwerty) > symbols: pc+us(intl)+fr:2+inet(evdev)+compose(lwin)+group(rwin_toggle) > xkb_keymap { > xkb_keycodes { include "evdev+aliases(qwerty)" }; > xkb_symbols { include > "pc+us(intl)+fr:2+inet(evdev)+compose(lwin)+group(rwin_toggle)" }; > }; Assuming you set some level of verbosity, that command gives me: $ setxkbmap -print -verbose 10 Setting verbose level to 10 locale is C Trying to load rules file ./rules/evdev... Trying to load rules file /usr/share/X11/xkb/rules/evdev... Success. Applied rules from evdev: rules: evdev model: pc105 layout: us options: grp:rwin_toggle,compose:lwin,grp_led:scroll Trying to build keymap using the following components: keycodes: evdev+aliases(qwerty) types: complete compat: complete+grp_led(scroll) symbols: pc+us+inet(evdev)+compose(lwin)+group(rwin_toggle) geometry: pc(pc105) xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete+grp_led(scroll)" }; xkb_symbols { include "pc+us+inet(evdev)+compose(lwin)+group(rwin_toggle)" }; xkb_geometry { include "pc(pc105)" }; }; $ but only when I run it in X (setxkbmap seems to require $DISPLAY). It's odd that I don't see any mention at all of French. Also, like Damko, I can't answer the "Note: somehow XKB options are sticky.", which I countered (above) by running dpkg-reconfigure keyboard-configuration. Perhaps the answer is the same: some "secret" (to us) location is storing this info. > My thanks to Damko for his advice. I'm sure my use of setxkbmap could be > improved if I had a better idea of how -option is handled when there are two > keyboards. The man page for setxkbmap doesn't explain this. The man page > xkeyboard-config(7) is helpful if you need different options. AFAICT, the -option settings are independent of there being two layouts/variants specified. Obvious for toggles; less obvious for the Compose Key. ¹ I'm uncertain whether you mainly use US, and the French is just for fun, or whether you switch back and forth frequently. (I myself use Compose exclusively, rather than dead keys.) Cheers, David.

