Selected Keyboard Layout not Applied after reboot

Bug #1956240 reported by Wolfram
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
budgie-desktop (Ubuntu)
Fix Released
Medium
fossfreedom
Jammy
Fix Released
Medium
fossfreedom
Kinetic
Fix Released
Medium
fossfreedom

Bug Description

[ Impact ]

 * For some multi-keyboard layout users (e.g. en_US, en_GB and zh_TW) their preferred layout on login is not immediately available - the preferred layout defaults to en_US even though another layout such as en_GB is defined and is shown via the keyboard layout applet.
 * For some users, the keyboard layout is not applied when changing layouts via the keyboard shortcut or via the keyboard layout applet
 * This is due to a race condition in budgie where the keyboard handling is executed before gnome-session/gnome-settings-daemon expects initialisation.

[ Test Plan ]

 * Since it is not an easily reproducible bug (race condition) the test plan is based around what should happen rather than what doesn't.
 * 1) on login open a terminal (CTRL+ALT+T) or an application and type a character such as the quote key or the currency key.
 * If the quote key defaults to something else such as the @ key or the currency key defaults to $ then you a default layout of en_US.
 * Add the keyboard layout applet to your panel
 * from the list provided choose another keyboard layout
 * Repeat test step "1)" above. Check that your chosen keyboard layout is correctly applied. It may not be.

 * from the proposed repo install the following packages:

   sudo apt update
   sudo apt install budgie-desktop budgie-core libbudgie-plugin0 libbudgie-private0 libbudgietheme0 libraven0 gir1.2-budgie-1.0

 * Logout and login

 * Repeat the above testing again - on login your expected layout should be applied e.g. en_GB if that was your last chosen layout.

[ Where problems could occur ]

 * Primarily the key issue is introducing a stability issue on budgie such as crash on login.
 * Additionally the other issue is introducing a regression in applying keyboard layouts for more people rather than eliminating the issue.
 * As such this fix has been iteratively developed through a multi-month testing regime with multiple community team members
https://discourse.ubuntubudgie.org/t/language-switcher/5864
https://discourse.ubuntubudgie.org/t/cant-change-keyboard-layout/5293
 * This fix has been uploaded to Debian back in August with no reported issues to-date and similarly to kinetic on a similar time-frame.

[ Other Info ]

 * N/A

---

I have US physical keyboard.
In the "settings" application I have selected the keyboard layout
"English (intl. with AltGr dead keys)".
As expected, I can create, for example an "ä" by typing AltGr+q or Ü by typing AltGr+Shift+y.
Initially all this works as expected.
However, after reboot, the special characters do not appear when I press the altGr combinations.
example; "AltGr+q" produces just "q".
I checked settings application and even tried "dpkg-reconfigure keyboard-configuration" in terminal, but with no success.
Only workaround is this:
1) go to the settings application
2) in the the settings application, add a second keyboard layout (if not already there)
3) make the other layout the current layout (move up)
4) switch back to the desired layout (US international layout in my case), means I move that one up again
Then it works again until next reboot
Somehow the settings are ignored until I touch them once in the settings editor...
The same happens with other layout, for example "English (US,intl. with dead keys)"
This is Ubuntu Budgie 21.10 (impish)
maybe I configured something, or it is a bug, i don't know.

Revision history for this message
fossfreedom (fossfreedom) wrote : Re: [Bug 1956240] [NEW] Budgie 21.10: Selected Keyboard Layout not Applied after reboot

Is your issue this?
https://discourse.ubuntubudgie.org/t/cant-change-keyboard-layout/5293?u=fossfreedom

The suggested answer there should be tried.

On Mon, 3 Jan 2022, 17:20 Wolfram, <email address hidden> wrote:

> Public bug reported:
>
> I have US physical keyboard.
> In the "settings" application I have selected the keyboard layout
> "English (intl. with AltGr dead keys)".
> As expected, I can create, for example an "ä" by typing AltGr+q or Ü by
> typing AltGr+Shift+y.
> Initially all this works as expected.
> However, after reboot, the special characters do not appear when I press
> the altGr combinations.
> example; "AltGr+q" produces just "q".
> I checked settings application and even tried "dpkg-reconfigure
> keyboard-configuration" in terminal, but with no success.
> Only workaround is this:
> 1) go to the settings application
> 2) in the the settings application, add a second keyboard layout (if not
> already there)
> 3) make the other layout the current layout (move up)
> 4) switch back to the desired layout (US international layout in my case),
> means I move that one up again
> Then it works again until next reboot
> Somehow the settings are ignored until I touch them once in the settings
> editor...
> The same happens with other layout, for example "English (US,intl. with
> dead keys)"
> This is Ubuntu Budgie 21.10 (impish)
> maybe I configured something, or it is a bug, i don't know.
>
> ** Affects: ubuntubudgie
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to Ubuntu
> Budgie.
> https://bugs.launchpad.net/bugs/1956240
>
> Title:
> Budgie 21.10: Selected Keyboard Layout not Applied after reboot
>
> Status in Ubuntu Budgie:
> New
>
> Bug description:
> I have US physical keyboard.
> In the "settings" application I have selected the keyboard layout
> "English (intl. with AltGr dead keys)".
> As expected, I can create, for example an "ä" by typing AltGr+q or Ü by
> typing AltGr+Shift+y.
> Initially all this works as expected.
> However, after reboot, the special characters do not appear when I press
> the altGr combinations.
> example; "AltGr+q" produces just "q".
> I checked settings application and even tried "dpkg-reconfigure
> keyboard-configuration" in terminal, but with no success.
> Only workaround is this:
> 1) go to the settings application
> 2) in the the settings application, add a second keyboard layout (if not
> already there)
> 3) make the other layout the current layout (move up)
> 4) switch back to the desired layout (US international layout in my
> case), means I move that one up again
> Then it works again until next reboot
> Somehow the settings are ignored until I touch them once in the settings
> editor...
> The same happens with other layout, for example "English (US,intl. with
> dead keys)"
> This is Ubuntu Budgie 21.10 (impish)
> maybe I configured something, or it is a bug, i don't know.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntubudgie/+bug/1956240/+subscriptions
>
>

Revision history for this message
Wolfram (wollaman) wrote : Re: Budgie 21.10: Selected Keyboard Layout not Applied after reboot

Yes, this is the same issue.
Thanks for the hint.
The suggested workaround was successful for me.
I now run this script as startup application:

SOURCES=`gsettings get org.gnome.desktop.input-sources sources`
gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'de')]"
gsettings set org.gnome.desktop.input-sources sources "$SOURCES"

This fixes the problem for me.
The actual layout set in the 2nd line of the script does not matter, because it is reset again in 3rd line

no longer affects: ubuntubudgie
Changed in budgie-desktop (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → fossfreedom (fossfreedom)
summary: - Budgie 21.10: Selected Keyboard Layout not Applied after reboot
+ Selected Keyboard Layout not Applied after reboot
description: updated
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

is this fixed in kinetic?

Revision history for this message
fossfreedom (fossfreedom) wrote :

@tjaalton - yes this is fixed in kinetic

Changed in budgie-desktop (Ubuntu Kinetic):
status: In Progress → Fix Released
Changed in budgie-desktop (Ubuntu Jammy):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → fossfreedom (fossfreedom)
Revision history for this message
Chris Halse Rogers (raof) wrote : Please test proposed package

Hello Wolfram, or anyone else affected,

Accepted budgie-desktop into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/budgie-desktop/10.6.1-1ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in budgie-desktop (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
fossfreedom (fossfreedom) wrote :

budgie-desktop/10.6.1-1ubuntu2
budgie-core/10.6.1-1ubuntu2
libbudgie-plugin0/10.6.1-1ubuntu2
libbudgie-private0/10.6.1-1ubuntu2
libbudgietheme0/10.6.1-1ubuntu2
libraven0/10.6.1-1ubuntu2
gir1.2-budgie-1.0/10.6.1-1ubuntu2

Ran through the test case with no issues. Used en_GB and Chinese (China) libpinyin as the keyboard input sources. Switching between these ok - libpinyin displayed the expected popup to select characters.

tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package budgie-desktop - 10.6.1-1ubuntu2

---------------
budgie-desktop (10.6.1-1ubuntu2) jammy; urgency=medium

  * Bug-fix
    - selected keyboard layout not applied after reboot
      ibus-keyboard-handling.patch (LP: #1956240)
    - statusbar icons moving around and changing order after reboot
      Rewrite-initial-applet-layoute.patch (LP: #1990642)
    - With scaling enabled, right-positioned panel overlaps maximized windows
      Fix-math-for-calculating-right-panel-strut.patch (LP: #1981199)

 -- David Mohammed <email address hidden> Sun, 09 Oct 2022 13:55:14 +0100

Changed in budgie-desktop (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for budgie-desktop has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.