2

I've tried lots of times to do this by toying with files in /etc/gdm3, or editing every Xsession I could find with setxkbmap -layout us -model classmate, to no avail.

I've also tried the steps listed here: Strange keyboard issue Ubuntu 14.04 and Thiinkpad Yoga 14 (S3), and that does nothing either.

The only way I can make this work is by manually typing:

setxkbmap -layout us -model classmate

in a terminal after starting up.

The default Xsession script is supposed to look in my home directory for a file called .Xkbmap, which I have created with contents -layout us -model classmate, and that doesn't work.

running localectl at boot shows this:

$ localectl
   System Locale: LANG=en_US.UTF-8
       VC Keymap: us
      X11 Layout: us
       X11 Model: classmate

And yet, whenever I attempt to type a backslash or a bar, I just end up with less than and greater than.

$ cat /etc/default/keyboard
XKBMODEL=classmate
XKBLAYOUT=us
BACKSPACE=guess

$ gsettings get org.gnome.desktop.input-sources sources
[('xkb', 'us')]

1 Answers1

0

According to this Lenovo webpage which sounds like your problem you can use:

sudo dpkg-reconfigure keyboard-configuration

Then scroll down to classmate PC and select it:

classmate PC keyboard

Hope this helps.

  • The OP has already made that selection. But you answered the question I asked in a comment. :) – Gunnar Hjalmarsson Jun 11 '18 at 02:20
  • @GunnarHjalmarsson The OP used setxkbmap. I'm not sure it's the same as dpkg-reconfigure which is what the link suggests using. As per comment my keyboard is also PC 105. – WinEunuuchs2Unix Jun 11 '18 at 02:22
  • dpkg-reconfigure keyboard-configuration is a way to edit /etc/default/keyboard, i.e. make the configuration persistent, and that file says classmate for the OP. – Gunnar Hjalmarsson Jun 11 '18 at 02:58