rpi-imager icon indicating copy to clipboard operation
rpi-imager copied to clipboard

Bug in keyboard setup

Open solskogen opened this issue 1 year ago • 11 comments

I choose US keyboard in the setting before installation, but after boot it was set to GB.

solskogen avatar Oct 20 '23 10:10 solskogen

Thanks for the report, @solskogen. I'll update this issue once we've got a diagnosis.

tdewey-rpi avatar Oct 20 '23 12:10 tdewey-rpi

@maxnet Another if you want it.

tdewey-rpi avatar Oct 20 '23 13:10 tdewey-rpi

Which OS image are you writing? Did you configure username/password as well, or just locale/keyboard?

And is it a plain standard USB keyboard? NOT a Pi 400, or the red/white Raspberry Pi brand keyboard? (As I recall there is some keyboard layout auto-detection/override stuff in RPI OS for Pi keyboards. Not sure if that may not trump on Imager's setting.)

maxnet avatar Oct 20 '23 15:10 maxnet

I used the desktop image (not full) on a Rpi400.

solskogen avatar Oct 21 '23 11:10 solskogen

I used the desktop image (not full) on a Rpi400.

Unable to reproduce, when selecting both the checkboxes for "set user" and "set locale", like this:

pi-imager-user-password

IMG_20231021_134854_579

If I only select "Set locale setting", and not user, I do get the piwiz first-usage-wizard thingy, that could make different decisions about keyboard.

maxnet avatar Oct 21 '23 12:10 maxnet

It happen to me when using the network boot, so it's quite possible that it only happens there. IMG20231021143131 IMG20231021142522 IMG20231021141239

solskogen avatar Oct 21 '23 12:10 solskogen

Ah, that explains things. Imager version currently offered through netinstall is old, and doesn't support the imager_custom script customization method for RPI OS Bookworm.

Older RPI OS versions and operating systems using cloud-init for customization such as Ubuntu Server do should work.

Should be fixed once the netboot image is updated.

maxnet avatar Oct 21 '23 12:10 maxnet

Is there any way to see what version of rpi-imager is used in netboot?

solskogen avatar Oct 23 '23 12:10 solskogen

Is there any way to see what version of rpi-imager is used in netboot?

As long as it still shows 2022 at https://downloads.raspberrypi.com/net_install/ you have the old one. ;)

There's another issue about the lack of version number. #408

maxnet avatar Oct 23 '23 17:10 maxnet

I experienced the same issue on my Raspberry Pi 400 with Italian keyboard when doing a network boot. I'm afraid I don't remember all the details as I burned the microSD card 3 times before realizing what was going on and fixing the installation, but here's an outline of how things went.

First off, I configured every option accessible from the cogs icon of the Imager.

I picked the 64-bit Bookworm "Raspberry Pi OS with desktop and recommended software" image, then set the country to Italy and the language to English. But, when booting into Raspberry Pi OS after the installation, I got wrong password errors every time the password was requested (e.g. to install system updates). This made me realize something was off with the locale. In the end I set the country to Italy and the language to Italian and everything worked fine.

If all password fields in the Imager (e.g. user and Wi-Fi password) allowed showing the password, I would have immediately spotted the language mismatch. You may consider adding such an option whereever it's missing.

Finally, I'm beyond positive I configured Wi-Fi access in the Imager, yet when booting into Raspberry Pi OS after the installation no Wi-Fi was configured in the system.

pamoroso avatar Nov 08 '23 17:11 pamoroso

I wrote:

In the end I set the country to Italy and the language to Italian and everything worked fine.

Actually, now that I think about it, setting the country and language wasn't enough to fix the issue.

What I did in the Imager was to enter a user password that contained only lowercase letters and no other letters or symbols. Then, when I booted into the installed system, I immediately changed the password from the shell with the passwd command, after typing a few test characters in the shell and checking the terminal displayed the expected letters and symbols.

pamoroso avatar Nov 08 '23 17:11 pamoroso