Bug 381352 - Can't assign or change to indian keyboard layout, system tray icon is also missing.
Summary: Can't assign or change to indian keyboard layout, system tray icon is also m...
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard_layout (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-18 08:26 UTC by Raghavendra kamath
Modified: 2017-07-05 14:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raghavendra kamath 2017-06-18 08:26:56 UTC
I have added Indian keyboard layout with the variant "hindi-wx" in the setting.
But i can't switch to it either by shortcut or the system tray. The tray icon is missing altogether.

Upon searching on the internet it seems this is a problem with Indian keyboard layouts and its variants.

To reproduce

1) Open system settings , then go to input devices
2) In keyboard Section got to layout tab and press the add button
3) choose "Indian" in the layout dropdown and variant as "Hindi (Wx)"

Result:
There is no tray icon , nor can the user switch to Hindi from default with shortcut key.

System Info:

Distribution : Arch Linux
KDE Plasma Version : 5.10.2
KDE Frameworks Version : 5.35.0
Qt Version: 5.9.0
Comment 1 Kai Uwe Broulik 2017-06-20 13:53:20 UTC
I upgraded to Qt 5.9 and I now also lost my keyboard layout indicator.
Comment 2 Kai Uwe Broulik 2017-06-20 13:54:58 UTC
Hmm, I toggled it off and back on (System Settings → Input Devices → Keyboard → Layouts → "Show layout indicator" in top left) and now it's there again. Weird.
Comment 3 Kai Uwe Broulik 2017-06-20 13:55:10 UTC
Does Ctrl+Alt+K (keyboard to switch layouts) work for you?
Comment 4 Raghavendra kamath 2017-06-20 15:37:06 UTC
@Kai Uwe Broulik I don't have it (Ctrl + Alk + K) to do that as i need it in other program. But the alternative alt + capslock which is there in settings doesn't work. It just shows the US in the on screen display notification
Comment 5 Raghavendra kamath 2017-06-21 06:14:31 UTC
@Kai Uwe Broulik is this -> https://cgit.freedesktop.org/xkeyboard-config/commit/?id=913af7dafaab8ff4a9ae0d1e4c4097caf4a8022d somehow related?

They moved the indian language input methods to base-extra in rules folder. all for the reason that it is confusing in the gnome-control center. Do you guys know this?
Comment 6 ARPIT KUMAR GAHLOT 2017-06-23 14:55:01 UTC
Same situation here. But I believe the Xorg decision to make base-extra in rules folder might not be the issue, because this change is already released and I was able to use Hindi(Wx) keyboard on Plasma 5.9 branch.

I have a Manjaro Mate install on another machine last updated before June 1 2017, in which changing layout works i.e.

   setxkbmap tel

gives Telugu layout

   setxkbmap dev

gives Devanagri.

   setxkbmap in

gives default Indian layout(Devanagri)

All these three comands on my Plasma 5.10.2 machine give 

   Error loading new keyboard description

I checked the rules folder in both machines:

/usr/share/X11/xkb/rules

and all files were identical. Sure, there exists a base.extras.xml separate from base.xml consisting of all Indian language layout info. But, as noted above, in Mate machine, changing layout works. In my Manjaro(Arch based) install, everything was fine until 5.9 branch. Updating to 5.10 broke both switching to any Indian layout. The widget indicator for changing layout also does not work. I believe this is a KDE issue, not Xorg one.
Comment 7 Raghavendra kamath 2017-06-23 15:50:09 UTC
@ARPIT KUMAR GAHLOT yes now even I suspect that the issue is different and may be in kde 5.10 I tested neon some days back and it behaved correctly. I'll check again.

But for some of friends using debian gnome the xorg change gave problem. Hence I linked the commit here
Comment 8 Christoph Feck 2017-06-26 16:46:34 UTC
Was this working in an earlier version? If yes, which updates broke it?
Comment 9 Raghavendra kamath 2017-06-27 02:28:57 UTC
@Christoph Feck

I tested neon 5.10.2 and it works correctly in it,
it has plasma version - 5.10.2
framework version - 5.35.0
Qt version 5.9.0

However when I test Opensuse tumbleweed, it is not working in it
tumbleweed has these versions of kde at the moment of testing

plasma version 5.10.2
fremework version - 5.34.0
Qt version - 5.9.0

Is there anything else that can pin point to the problem maker package.
Comment 10 Raghavendra kamath 2017-07-05 13:46:38 UTC
With the help of fellow kde user Tuxtoriel on #kde IRC channel I have a workable input switcher.

Tuxtoriel found that the following section in the /usr/share/X11/xkb/symbols/in file was the problem.

xkb_symbols "tel-sarala" { name[Group1] = "Telugu (Sarala)"; key.type="FOUR_LEVEL"; // sequence base, shift, alt, alt + shift key <AB01> { [ U0C4A, U0C12 ] }; // ొ ఒ key <AB02> { [ U0C42, U0C0A ] }; // ూ ఊ key <AB03> { [ U0C21, U0C22 ] }; // డ ఢ key <AB04> { [ U0C35, U0C39 ] }; // వ హ key <AB05> { [ U0C2C, U0C2D ] }; // బ భ key <AB06> { [ U0C28, U0C23 ] }; // న ణ key <AB07> { [ U0C2E, U0C01 ] }; // మ ఁ key <AB08> { [ U002C, U0C1E, leftcaret ] }; // , ఞ < key <AB09> { [ U002E, U0C19, rightcaret ] }; // . ఙ > key <AB10> { [ U0C36, question, KP_Divide ] }; // శ ? / key <AC01> { [ U0C2F, U0C3D ] }; // య ఽ key <AC02> { [ U0C02, U0C03 ] }; // ం ః key <AC03> { [ U0C26, U0C27 ] }; // ద ధ key <AC04> { [ U0C4D, U0C05 ] }; // ్ అ key <AC05> { [ U0C17, U0C18 ] }; // గ ఘ key <AC06> { [ U0C1A, U0C1B, U0C58, U0C59 ] }; // చ ఛ ౘ ౙ key <AC07> { [ U0C3E, U0C06 ] }; // ా ఆ key <AC08> { [ U0C15, U0C16, U0C62, U0C63 ] }; // క ఖ ౢ ౣ key <AC09> { [ U0C32, U0C33, U0C0C, U0C61 ] }; // ల ళ ఌ ౡ key <AC10> { [ U0C1F, U0C20, semicolon, colon ] }; // ట ఠ ; : key <AC11> { [ quoteright, quotedbl ] }; // ' " key <AD01> { [ U0C46, U0C0E, U0C44 U0C34 ] }; // ె ఎ ౄ ఴ key <AD02> { [ U0C38, U0C37, U0C44 ] }; // స ష ౄ key <AD03> { [ U0C47, U0C0F, U0C44 ] }; // ే ఏ ౄ key <AD04> { [ U0C30, U0C31, U0C44, U0C60 ] }; // ర ఱ ౄ ౠ key <AD05> { [ U0C24, U0C25 ] }; // త థ key <AD06> { [ U0C40, U0C08 ] }; // ీ ఈ key <AD07> { [ U0C41, U0C09 ] }; // ు ఉ key <AD08> { [ U0C3F, U0C07 ] }; // ి ఇ key <AD09> { [ U0C4B, U0C13 ] }; // ో ఓ key <AD10> { [ U0C2A, U0C2B ] }; // ప ఫ key <AD11> { [ U0C1C, U0C1D, bracketleft, braceleft ] }; // జ ఝ [ { key <AD12> { [ U0C48, U0C10, bracketright, braceright ] }; // ై ఐ ] } key <AE01> { [ KP_1, exclam, U0C67, U0C78 ] }; // 1 ! ౦ ౸ key <AE02> { [ KP_2, at, U0C68, U0C79 ] }; // 2 @ ౨ ౹ key <AE03> { [ KP_3, numbersign, U0C69, U0C7A ] }; // 3 # ౩ ౺ key <AE04> { [ KP_4, dollar, U0C6A, U0C7B ] }; // 4 $ ౪ ౻ key <AE05> { [ KP_5, percent, U0C6B, U0C7C ] }; // 5 % ౫ ౼ key <AE06> { [ KP_6, asciicircum, U0C6C, U0C7D ] }; // 6 ^ ౬ ౽ key <AE07> { [ KP_7, ampersand, U0C6D, U0C7E ] }; // 7 & ౭ ౾ key <AE08> { [ KP_8, KP_Multiply, U0C6E, U0C7F ] }; // 8 * ౮ ౿ key <AE09> { [ KP_9, U0028, U0C6F, U20B9 ] }; // 9 ( ౯ ₹ key <AE10> { [ KP_0, U0029, U0C66, U0C55 ] }; // 0 ) ౦ ౕ key <AE11> { [ KP_Subtract, underbar, NoSymbol, U0C56 ] }; // - _ ౖ key <AE12> { [ KP_Equal, KP_Add ] }; // = + key <BKSL> { [ U0C4C, U0C14, U0964, U0965 ] }; // ౌ ఔ । ॥ key <TLDE> { [ U0C43, U0C0B, quoteleft, asciitilde ] }; // ృ ఋ ` ~ include "level3(ralt_switch)" };

I removed this section and everything is working fine now :) So this is a workaround for now.
Comment 11 Raghavendra kamath 2017-07-05 14:49:26 UTC
Ok found the problem it was because of a missing coma in the symbol file in that sarala section. which is fixed upstreams in xkeyboard config with this commit -> https://cgit.freedesktop.org/xkeyboard-config/commit/?id=b3fb72308942f705e3e8e17765e4097773ed5483

So closing this bug report.