Hello,

I just intalled Kali linux on an old laptop I have. I am using ABNT2 keyboard, from Brazil.

Code:
setxkbmap -model pc105 -layout br -variant abnt2
The problem comes when the login screen is showed. I cannot type my user nor password correctly because if I type P for example, it shows C, and it happens with about every key I press. As a workaround I am using the virtual keyboard to login, it works perfectly. After login, my keyboard works again, typing here is not being a problem for example.

When I lock the computer, without logging off, my keyboard keeps working.I can type my password properly.

The problem is before login, how can I fix that??

best regards.