Can't enter capital accented letters with Caps Lock on Wayland

Bug #2035076 reported by Jeremie Tamburini
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
mutter (Fedora)
Unknown
Unknown
mutter (Ubuntu)
Fix Released
High
Jeremy Bícha
Mantic
Fix Released
High
Jeremy Bícha

Bug Description

Impact
------
Capital accented letters can't be entered using CAPS LOCK in the Wayland session

Test Case
---------
Open a terminal and install basic French support:
sudo apt install language-pack-gnome-fr

Open the Settings app. In the sidebar, click Keyboard
Click +, choose French (France), then choose the French (AZERTY) keyboard
Close the Settings app
In the top right of the screen, click en and switch the keyboard layout to French (AZERTY)
In the text editor, type é (this is the number 2 key on a US English keyboard).
Now, press the Caps Lock key to enable Caps Lock.
Press the same key. You should get É

What Could Go Wrong
-------------------
This fix is included in mutter 45.2 so see the master bug for this upstream update: LP: #2043000

Original bug report
-------------------
Most programs don't recognize Italian accented capital letters.
When "Caps Lock" is on àèìòù should be written as ÀÈÌÒÙ... but for some reasons they are not capitalized.
I've noticed that everything works fine using the Live session which still uses X11 session.

It looks there's no problem with programs that use xwayland like Gimp and MarkText.

WORKAROUND
===========================
In "Settings -> Keyboard" it's possible to set a "compose key".
For example I've selected the [Super left] key. If I want to compose È I press and immediately release each key:
[Super left] + [E] + [Alt Gr] + [']

If you want É:
[Super left] + [E] + [']

Do the same for the other vowels.
===========================

ProblemType: Bug
DistroRelease: Ubuntu 23.10
Package: gnome-text-editor 45~beta-1
ProcVersionSignature: Ubuntu 6.3.0-7.7-generic 6.3.5
Uname: Linux 6.3.0-7-generic x86_64
ApportVersion: 2.27.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Sep 11 11:48:41 2023
InstallationDate: Installed on 2023-09-07 (4 days ago)
InstallationMedia: Ubuntu 23.10 "Mantic Minotaur" - Daily amd64 (20230906.3)
ProcEnviron:
 LANG=it_IT.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: gnome-text-editor
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jeremie Tamburini (jeremie2) wrote :
description: updated
description: updated
Revision history for this message
Jeremie Tamburini (jeremie2) wrote : Re: Wayland - Capital accented letters not recognized

changed from gnome-text-editor to wayland package

summary: - Capital accented letters not recognized
+ Wayland - Capital accented letters not recognized
affects: gnome-text-editor (Ubuntu) → wayland (Ubuntu)
description: updated
Timo Aaltonen (tjaalton)
affects: wayland (Ubuntu) → gtk+3.0 (Ubuntu)
Revision history for this message
Jeremie Tamburini (jeremie2) wrote (last edit ):

Today I have updated the details of this bug report.
After the 23.10 has been definitely released I went to a fresh installation in a different partition and realized that there were no problems with accented capital letters during the live session. So I thought the problem could be related to X11/wayland sessions.
In fact running the xlsclients I could see that the problem doesn't effect softwares that use xwayland .

Previous bug description and details were pointing the gnome-text-editor package, which is the first software that showed that problem. Now the report is pointing to the wayland package... NOT sure this is 100% correct but the issue should be more related to that area.

EDIT:
ok, just seen the package has been switched from wayland to gtk3

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gtk+3.0 (Ubuntu):
status: New → Confirmed
Revision history for this message
Antoine-terracol (antoine-terracol) wrote :

Same here on a French keyboard.

In a Wayland session, softwares such as Gedit, Thunderbird or Libre Office are unable to display accented capiatals using caps-lock (but VSCode works fine). In an X11 session everythings works as expected.

Revision history for this message
Sebastien Bacher (seb128) wrote :

It's an upstream GNOME issue and landed a fix recently, see details on https://bugzilla.redhat.com/show_bug.cgi?id=2240490 , it should be included in the 45.1 updates

affects: gtk+3.0 (Ubuntu) → ubuntu
Changed in ubuntu:
status: Confirmed → Triaged
affects: ubuntu → gnome-shell (Ubuntu)
Changed in gnome-shell (Ubuntu):
importance: Undecided → High
affects: gnome-shell (Ubuntu) → mutter (Ubuntu)
tags: added: fixed-in-mutter-45.1 fixed-upstream
Changed in mutter (Ubuntu):
status: Triaged → Fix Committed
Changed in mutter:
status: Unknown → Fix Released
Jeremy Bícha (jbicha)
description: updated
Changed in mutter (Ubuntu Mantic):
importance: Undecided → High
status: New → In Progress
assignee: nobody → Jeremy Bícha (jbicha)
Changed in mutter (Ubuntu):
assignee: nobody → Jeremy Bícha (jbicha)
summary: - Wayland - Capital accented letters not recognized
+ Can't enter capital accented letters with Caps Lock on Wayland
description: updated
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Please test proposed package

Hello Jeremie, or anyone else affected,

Accepted mutter into mantic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mutter/45.2-0ubuntu1 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-mantic to verification-done-mantic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-mantic. 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 mutter (Ubuntu Mantic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-mantic
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (mutter/45.2-0ubuntu1)

All autopkgtests for the newly accepted mutter (45.2-0ubuntu1) for mantic have finished running.
The following regressions have been reported in tests triggered by the package:

mutter/45.2-0ubuntu1 (armhf)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/mantic/update_excuses.html#mutter

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Jeremy Bícha (jbicha) wrote :

I successfully completed the test case with mutter 45.2-0ubuntu1 on Ubuntu 23.10.

tags: added: verification-done verification-done-mantic
removed: verification-needed verification-needed-mantic
Revision history for this message
Jeremie Tamburini (jeremie2) wrote :

I wanted to test the updated version of mutter so a couple of days ago I enabled the `proposed` repository, but I didn't receive any updates.

I don't know if I did something wrong, however my sources.list has the line:
deb http://archive.ubuntu.com/ubuntu mantic-proposed main multiverse restricted universe

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 45.2-1ubuntu1

---------------
mutter (45.2-1ubuntu1) noble; urgency=medium

  * Merge with Debian. Remaining changes:
    - Add x11-Add-support-for-fractional-scaling-using-Randr.patch
    - Add window-Add-ability-to-override-the-edge-constraints.patch
      + Make possible for extensions (such as Tiling Assistant) to override
        window constraints

mutter (45.2-1) experimental; urgency=medium

  * New upstream release (LP: #2043000)
  * Drop patches applied in new release
  * Drop unimportant patch not included in the mutter 45.2 backports

 -- Jeremy Bícha <email address hidden> Fri, 08 Dec 2023 15:19:05 -0500

Changed in mutter (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

> I wanted to test the updated version of mutter so a couple of days ago I enabled the `proposed`
> repository, but I didn't receive any updates.

Jeremie, you also have to pass "-t mantic-proposed" in the apt command line.

Revision history for this message
Jeremie Tamburini (jeremie2) wrote :

> Jeremie, you also have to pass "-t mantic-proposed" in the apt command line.

Ok, I've updated the packages to version 45.2 and now I can enter capital accented letters ÒÀÙÈÉÌ as expected.

Thank you very much, great job!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 45.2-0ubuntu1

---------------
mutter (45.2-0ubuntu1) mantic; urgency=medium

  [ Jeremy Bícha ]
  * New upstream release (LP: #2043000)
    - Fix entering capital accent letters with Caps Lock (LP: #2035076)
    - Fix Wacom on X11 issues (LP: #2043027)
  * debian/libmutter-13-0.symbols: Add new symbols
  * Drop patches applied in new release
  * Rebase X11 fractional scaling patch

  [ Daniel van Vugt ]
  * Rebase triple buffering patch

 -- Jeremy Bícha <email address hidden> Mon, 04 Dec 2023 13:45:25 -0500

Changed in mutter (Ubuntu Mantic):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for mutter 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.

Revision history for this message
Jeremy Bícha (jbicha) wrote :

I am reopening this issue because this update was reverted to avoid a regression. The update will be proposed again in January.

https://launchpad.net/ubuntu/+source/mutter/45.2-0ubuntu2~really45.0

Changed in mutter (Ubuntu Mantic):
status: Fix Released → In Progress
status: In Progress → Triaged
Jeremy Bícha (jbicha)
Changed in mutter (Ubuntu Mantic):
status: Triaged → In Progress
tags: removed: verification-done verification-done-mantic
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Jeremie, or anyone else affected,

Accepted mutter into mantic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mutter/45.2-0ubuntu3 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-mantic to verification-done-mantic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-mantic. 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 mutter (Ubuntu Mantic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-mantic
Revision history for this message
Jeremie Tamburini (jeremie2) wrote :

OK, it works

I've tried version 45.2-0ubuntu3 and can regularly type ÒÀÙÈÉÌ in the text editor, terminal, etc.

tags: added: verification-done-manti
removed: verification-needed-mantic
tags: added: verification-done-mantic
removed: verification-done-manti
Revision history for this message
Claus7 (lastexile7gr) wrote :

Hello,

I'm facing a similar issue, using mantic. In noble development I haven't come across this bug thus far.

I'm using the hellenic (greek) keyboard trying to type the following capital letters in ubuntu wayland: Ρ(R), Y, Ψ(C), Ζ. In parenthesis I'm adding the corresponding english letters if applicable. Instead, I'm getting the small letters ρ, υ, ψ, ζ. The applications tested are: text editor, libreoffice, gnome-calendar, gnome-terminal, application finder, firefox. I do not face such an issue in opera browser though.

In my case what is different is that these letters are not accented (only υ/Υ can take an accent ύ/Ύ, yet this is not a separate key, I just have to press : before the letter in order to take the accent. I can bypass this, by pressing shift and the letter in question.

I enabled mantic proposed, yet I couldn't come across the package in question. Under xorg I didn't notice this issue.

Regards!

Revision history for this message
Jeremie Tamburini (jeremie2) wrote :

@lastexile7gr

The package doesn't come automatically with the updates, you have to pass "-t mantic-proposed" when using apt.
This is the command I've used to update the mutter package in my system:

sudo apt install mutter-common -t mantic-proposed

Revision history for this message
Claus7 (lastexile7gr) wrote (last edit ):

Hello,

thank you for your response.
Trying the command you mention, this is the result I'm getting:
Reading package lists... Done
E: The value 'mantic-proposed' is invalid for APT::Default-Release as such a release is not available in the sources

just to clarify that I had enabled the proposed repo under synaptic package manager the first time, and the mutter package in question was not available from there either.

edit: I went in synaptic and enabled mantic proposed from there, and then I issued the command in question. Doing so the installation of the package in question went fine and the issue seems to be solved.

Regards!

Jeremy Bícha (jbicha)
Changed in mutter (Ubuntu Mantic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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