Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible keyboard map incorrect after latest upate #322

Closed
videosmith opened this issue Nov 22, 2024 · 13 comments
Closed

Possible keyboard map incorrect after latest upate #322

videosmith opened this issue Nov 22, 2024 · 13 comments

Comments

@videosmith
Copy link

videosmith commented Nov 22, 2024

When applying all latest RaspberryPi Bookworm 64 os updates (as of 2024-11-21), several non-alphanumeric keys are mapped to incorrect glyphs.
ex: single-quote key returns single-quote glyph, however shift-press that same key for double-quote returns the @ glyph.

Start with system before update.

  1. Ensure correct glyphs returned from keys pressed before update.
  2. Check keyboard map (Mine is set to):
    Model: Generic 105-key PC
    Layout: English (US)
    Variant: English (US)
  3. Update os.
  4. Check glyphs again, should be correct.
  5. Reboot.
  6. Check glyphs again, mine are incorrectly mapped.
  7. Check keyboard map (mine has not changed).
  8. Change keyboard map to another selection (I chose Generic 101-key PC), apply change.
  9. Change keyboard map back to original, apply change.
  10. Glyphs now properly assigned.

RPi 4B, 400

@theofficialgman
Copy link

I can confirm the issue @videosmith . Hopefully this gets fixed ASAP.
This is an issue only on labwc, the keymap is correct on wayfire and x11 (yes I just tested).

@lurch
Copy link
Collaborator

lurch commented Nov 27, 2024

I've just asked @spl237 about this and he says that the problem has been fixed, but unfortunately the fix itself is in one of the updates that you're also installing at the same time as all the other updates! And he says that you've already identified the "workaround" for this (i.e. after the switch to labwc, change your locale keyboard layour to something else, and then change it back to the desired locale layout).

So I'll close this, but I'll re-open if you can still reproduce this when starting with a clean install of the latest Raspberry Pi OS image.

EDIT: fixed mistake

@lurch lurch closed this as completed Nov 27, 2024
@theofficialgman
Copy link

theofficialgman commented Nov 27, 2024

I've just asked @spl237 about this and he says that the problem has been fixed, but unfortunately the fix itself is in one of the updates that you're also installing at the same time as all the other updates! And he says that you've already identified the "workaround" for this (i.e. after the switch to labwc, change your locale to something else, and then change it back to the desired locale).

So I'll close this, but I'll re-open if you can still reproduce this when starting with a clean install of the latest Raspberry Pi OS image.

@lurch Please have this fixed in an apt update. changing the locale and back is not a solution for most users. I have all updates installed (my other issue is irrelavent and I verified no other system corruption with a full debsums scan) and this keymap issue still occurs.

@theofficialgman
Copy link

@lurch @spl237 I have changed the locale using raspberry pi configuration to something else, changed it back to the desired locale using raspberry pi configuration, and then rebooted and the issue still occurs.

@theofficialgman
Copy link

I have also tried changed the locale using raspberry pi configuration to something else, rebooting, changed it back to the desired locale using raspberry pi configuration, and then rebooting again and the issue still occurs.

Please re-open as there is no working documented workaround for the issue (as I have shown) and there is no fix in a package update.

@lurch lurch reopened this Nov 27, 2024
@lurch
Copy link
Collaborator

lurch commented Nov 27, 2024

I've re-opened, but could you please provide more detailed steps about exactly what you're doing, what you expect to happen, and what actually happens ?

@theofficialgman
Copy link

theofficialgman commented Nov 27, 2024

I've re-opened, but could you please provide more detailed steps about exactly what you're doing, what you expect to happen, and what actually happens ?

You stated here that a workaround to fix the issue was to:

change your locale to something else, and then change it back to the desired locale

So I am attempting to perform your supplied workaround using 'Raspberry Pi Configuration'. The steps being:

  1. Verify the current compositor is labwc
  2. Open 'Raspberry Pi Configuration' -> Localisation (btw this is misspelled for US english, it is spelled Localization) -> set any non-current localization under 'Locale'
  3. Reboot the system when prompted on exiting 'Raspberry Pi Configuration' with OK
  4. Open 'Raspberry Pi Configuration' -> Localisation -> set the desired localization that matches the keyboard used under 'Locale'
  5. Reboot the system when prompted on exiting 'Raspberry Pi Configuration' with OK
  6. Observe the issue still occurs. Expect that the issue is gone.

@lurch
Copy link
Collaborator

lurch commented Nov 27, 2024

Oh, sorry @theofficialgman I've just realised that I made a silly mistake in my previous advice - I should have said "change your keyboard to a different layout, and then change the keyboard back to the desired layout". Does that fix the problem you're seeing?

@theofficialgman
Copy link

Can you specify where I'm supposed to go to change the keyboard layout? That's not clear to me.

@lurch
Copy link
Collaborator

lurch commented Nov 27, 2024

Can you specify where I'm supposed to go to change the keyboard layout?

  1. Click on the "Raspberry icon" at the top-left of the screen
  2. Go down to the Preferences menu
  3. Select Raspberry Pi Configuration
  4. When it has loaded, click the Localisation tab at the top
  5. Click on the Set Keyboard... button
  6. Choose a different keyboard layout from the Layout: dropdown
  7. Click OK to close the Keyboard dialog
  8. Click OK to close the Raspberry Pi Configuration program

@spl237
Copy link

spl237 commented Nov 28, 2024

Just tested here - took July 24 (pre-labwc) image and set it to French in the wizard, giving an AZERTY layout. Applied all updates, rebooted, at the prompt chose to switch to labwc. When the system came back up in labwc after the reboot, the AZERTY layout was still in effect.

Note - the keyboard layout will only be automatically copied across when switching to labwc from the GUI prompt. If you switch to labwc from raspi-config, you will need to copy the keyboard layout manually - either switch to a different layout and back again, or from a terminal do "sudo raspi-config nonint update_labwc_keyboard"

Working as intended, so closing.

@spl237 spl237 closed this as completed Nov 28, 2024
@spl237
Copy link

spl237 commented Nov 28, 2024

Ah - it occurs to me that what people are talking about here is not, as I had originally thought, the change in keymap caused by the initial switch to labwc, but a possible loss of the labwc keymap setting caused by more recent changes to the default labwc environment files. That could indeed potentially lose keymap customisations - I'll see if anything can be done about that.

@spl237
Copy link

spl237 commented Nov 28, 2024

OK, this should now be fixed in the latest update - when updating with the latest version of ui-mods, which should be going through the build system now and available in a few hours' time, labwc keyboard settings will be preserved. Closing on that basis - please reopen if the problem is not fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants