You are not logged in.

#1 2022-09-07 08:52:12

krypek
Member
Registered: 2022-09-07
Posts: 3

How to disable caps lock before the encrypt hook?

How to I disable caps lock before the encrypt hook in /etc/mkinitcpio.conf?
This is my current mkinitcpio.conf configuration:

HOOKS=(base udev autodetect keyboard keymap modconf block encrypt ...

I tried setting the keymap option
/etc/vconsole.conf:

keymap="nocaps"

/usr/share/kbd/keymaps/nocaps.map:

keycode 58 = nul

It's not turned on at boot, I want it disabled completely so clicking it doesn't do anything.

Any ideas?

Last edited by krypek (2022-09-07 09:06:30)

Offline

#2 2022-09-07 08:56:31

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,495
Website

Re: How to disable caps lock before the encrypt hook?

I think this might be an x/y problem.
I.e. why is caps lock on in the first place when you boot the machine?


Солідарність з Україною

Offline

#3 2022-09-07 08:58:30

krypek
Member
Registered: 2022-09-07
Posts: 3

Re: How to disable caps lock before the encrypt hook?

It's not turned on at boot, I want it disabled completely so clicking it doesn't do anything.

Last edited by krypek (2022-09-07 08:59:00)

Offline

#4 2022-09-07 11:03:57

schard
Member
From: Hannover
Registered: 2016-05-06
Posts: 1,495
Website

Re: How to disable caps lock before the encrypt hook?

Ah, I see.

keymap="nocaps"

!=

KEYMAP=nocaps

And don't forget

# mkinitcpio -P

and a reboot afterwards.

Last edited by schard (2022-09-07 11:04:34)


Солідарність з Україною

Offline

#5 2022-09-07 16:34:07

krypek
Member
Registered: 2022-09-07
Posts: 3

Re: How to disable caps lock before the encrypt hook?

Solved my problem!

/etc/vconsole.conf

KEYMAP=us-nocaps

I copied /usr/share/kbd/keymaps/i386/qwerty/us.map.gz to /usr/share/kbd/keymaps/us-nocaps.map
And added

keycode 58 = nul

at the end.

/usr/share/kbd/keymaps/us-nocaps.map

...
keycode 58 = nul

Offline

Board footer

Powered by FluxBB