New Xorg - different key-codes

Steffen Nurpmeso steffen at
Wed Mar 11 23:01:52 UTC 2020

Bob Willcox wrote in
<20200311214930.GC5435 at>:
 |On Wed, Mar 11, 2020 at 02:48:56PM +0100, Michael Gmelin wrote:
 |>>> On 11. Mar 2020, at 10:29, Mark Martinec
 |>>> <Mark.Martinec+freebsd at> wrote:
 |>>>> I just updated my laptop from source, and somewhere along the way
 |>>>> the key-codes Xorg sees changed.
 |> This *might* help you:
 |> (Short version: run setxkbmap in ~/.xinitrc, e.g.,
 |> setxkbmap -model pc105 -layout de)
 |Will running that command return my key mappings back to what they \
 |use to be?

I for one am totally baffled that you all "just can go".
My ~/.xinitrc is (in parts)

  if command -v setxkbmap >/dev/null 2>&1; then
     if [ -f ~/.${HOSTNAME}.xkbmap ]; then
        setxkbmap `cat ~/.${HOSTNAME}.xkbmap`
     elif [ -f ~/.xkbmap ]; then
        setxkbmap `cat ~/.xkbmap`
  if command -v xmodmap >/dev/null 2>&1; then
     [ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc
     [ -f ~/.${HOSTNAME}.xmodmaprc ] && xmodmap ~/.${HOSTNAME}.xmodmaprc

  if command -v xrdb >/dev/null 2>&1; then
     [ -f ~/.Xdefaults ] && xrdb -merge ~/.Xdefaults
     [ -f ~/.${HOSTNAME}.Xdefaults ] && xrdb -merge ~/.${HOSTNAME}.Xdefaults

and i (i think ever) had to _have_ those (former being
'de(nodeadkeys)', the middle one too long to paste, but also works
around the "g" key of that Lenovo notebook ever since that stopped

|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

More information about the freebsd-current mailing list