2

I am running Ubuntu on a Chromebook, and the media keys don't work because Ubuntu treats the keyboard as a regular, generic keyboard with 105 keys.

In MATE Desktop, there is a way to change the keyboard layout (i.e. keyboard model), and so is there in KDE.

enter image description here (MATE keyboard layout settings) enter image description here (KDE's keyboard layout settings)

How can I do this in GNOME?

GNOME settings offer me the option to change the layout to that of another language, but not the keyboard model.

Evan
  • 63
  • 4

2 Answers2

1

For recent (post 2020) Chromebooks, changing the keyboard layout will not work. See this instead.


To change the keyboard model you can run this command:

sudo dpkg-reconfigure keyboard-configuration

Changes you make via that command will be written to the /etc/default/keyboard file. Note, though, that GNOME Settings also may write to that file, and if that happens, the keyboard model setting will be overwritten (since GNOME does not know about it), and you will need to run the above command again.

1

There is a simple way to configure the Chromebook function keys which is already provided by Ubuntu. This works on 24.04 LTS (Wayland). Just run this command:

gsettings set org.gnome.desktop.input-sources xkb-model 'chromebook'

All the keys will then be correctly configured.

Guy
  • 116