You are not logged in.

#1 2025-02-03 21:00:55

stbug
Member
Registered: 2025-01-23
Posts: 21

How to change keymap on GRUB?

I'm trying to login and my keyboard doesn't seem to work, but the keys I have binded in the /etc/vconsole.conf work and I can write in the GRUB boot params.
How can I change the keymap to us as a parameter?

Offline

#2 2025-02-03 21:21:44

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: How to change keymap on GRUB?

stbug wrote:

the keys I have binded in the /etc/vconsole.conf work and I can write in the GRUB boot params

Apologies if I am misunderstanding but vconsole.conf has no effect at the GRUB boot screen, it is read by systemd.

You should probably share the content of that file.

EDIT: to answer your question: https://wiki.archlinux.org/title/GRUB/T … early_boot

Last edited by Head_on_a_Stick (2025-02-03 21:26:23)


Jin, Jîyan, Azadî

Offline

#3 2025-02-03 21:27:44

stbug
Member
Registered: 2025-01-23
Posts: 21

Re: How to change keymap on GRUB?

Head_on_a_Stick wrote:
stbug wrote:

the keys I have binded in the /etc/vconsole.conf work and I can write in the GRUB boot params

Apologies if I am misunderstanding but vconsole.conf has no effect at the GRUB boot screen, it is read by systemd.

You should probably share the content of that file.

EDIT: to answer your question: https://wiki.archlinux.org/title/GRUB/T … early_boot

I don't have any problem in the GRUB root screen, the problem is when I login, thats why I wanted to set the keymaps there

Offline

#4 2025-02-03 21:45:19

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: How to change keymap on GRUB?

Please share the full content of /etc/vonsole.conf, thanks.

And please don't full-quote unnecessarily, it makes the thread harder to follow.


Jin, Jîyan, Azadî

Offline

#5 2025-02-03 21:52:04

stbug
Member
Registered: 2025-01-23
Posts: 21

Re: How to change keymap on GRUB?

Head_on_a_Stick wrote:

Please share the full content of /etc/vonsole.conf

(I didn't know haha)
Well now I fixed it in another way but here is the /etc/vconsole.conf I had

# Written by systemd-localed(8) or systemd-firstboot(1), read by systemd-localed
# and systemd-vconsole-setup(8). Use localectl(1) to update this file.
FONT=$HOME/fonts/neep-iso8859-1-10x20.psf
KEYMAP=/usr/local/share/kbd/keymaps/personal.map

Offline

#6 2025-02-03 22:01:31

stbug
Member
Registered: 2025-01-23
Posts: 21

Re: How to change keymap on GRUB?

Now, this is not changing the GRUB params, but it worked to change the keymaps (I got this answer from ChatGPT, so I wouldn't recommend it)
Firstly, I had to boot from a Live USB to Arch (thankfully, I hadn't erase it from when I installed it) and from there I logged in to my account

mount /dev/nvme0n1p3 /mnt # Mount my root partition
mount /dev/nvme0n1p1 /mnt/boot # Mount my boot partition

mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /run /mnt/run
mount --bind /etc/resolv.conf /mnt/etc/resolv.conf

# If you have systemd:
mount --bind /dev/pts /mnt/dev/pts
mount --bind /dev/shm /mnt/dev/shm

chroot /mnt /bin/bash

That's how I logged in and then I changed the /etc/vconsole.conf to the us keyboard.
This time, I copied the content of this keymap in my personal one Keyboard configuration

Last edited by stbug (2025-02-03 23:08:09)

Offline

#7 2025-02-03 22:02:50

stbug
Member
Registered: 2025-01-23
Posts: 21

Re: How to change keymap on GRUB?

The thing is, I couldn't do it without the Live USB
Does anyone know how can I change the keymap parameter for that current session from the GRUB boot menu?
Not change the GRUB keymap, just that Arch Linux session

Offline

#8 2025-02-03 22:08:19

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: How to change keymap on GRUB?

stbug wrote:

I got this answer from ChatGPT, so I wouldn't recommend it

Probably best to remove that nonsense. You don't need to chroot with the API filesystems mounted to edit a file...


Jin, Jîyan, Azadî

Offline

#9 2025-02-03 23:07:19

stbug
Member
Registered: 2025-01-23
Posts: 21

Re: How to change keymap on GRUB?

Head_on_a_Stick wrote:

You don't need to chroot with the API filesystems mounted to edit a file...

Ah, so what's the steps that I shouldn't have done? The part of mounting the root partition? (I don't know what do you mean with API filesystem)

Offline

#10 2025-02-04 07:27:58

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: How to change keymap on GRUB?

Yes, just mounting the partition would be enough to be able to access the file and edit it.

EDIT: https://systemd.io/API_FILE_SYSTEMS/

Last edited by Head_on_a_Stick (2025-02-04 07:30:39)


Jin, Jîyan, Azadî

Offline

#11 2025-02-04 10:38:20

GrimBandito
Member
Registered: 2016-12-04
Posts: 48

Re: How to change keymap on GRUB?

Include the following in the vconsole.conf file :-

KEYMAP=uk
XKBLAYOUT=gb
XKBMODEL=pc105

Change the keymap, layout and model to your circumstance. Reboot.

Or you could also perform the same by entering the following :-

sudo localectl set-x11-keymap gb pc105

Again, change the relevant keymap and model to your circumstance. Reboot

Last edited by GrimBandito (2025-02-04 11:05:00)

Offline

#12 2025-02-10 07:06:10

stbug
Member
Registered: 2025-01-23
Posts: 21

Re: How to change keymap on GRUB?

GrimBandito wrote:

Change the keymap, layout and model to your circumstance. Reboot.

The thing is, how could I do that if I can't login because of my keymap?
Like, I already solved the problem but it required the USB and I don't see that as a solution really

Offline

Board footer

Powered by FluxBB