Bug 339162 - Caps Lock can't be used as layout switcher
Summary: Caps Lock can't be used as layout switcher
Status: RESOLVED FIXED
Alias: None
Product: kxkb
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Andriy Rysin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-18 04:22 UTC by pawel.veselov
Modified: 2021-03-20 03:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pawel.veselov 2014-09-18 04:22:12 UTC
Platform Version 4.13.3

I'm trying to set up CapsLock as layout switcher (default is 'en', added 'ru', and I though it would shift from en into ru, it would not switch back.

[vps@druid vps]$ setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete+caps(internal)"       };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+sun_vndr/us+sun_vndr/ru:2+inet(evdev)+capslock(grouplock)+sun_vndr/solaris(sun_compat)"     };
        xkb_geometry  { include "sun(type6unix)"        };
};

KBD model: Sun Microsystems | Sun Type 6 USB (Unix layout)
Maintain key compatibility with old Solaris keycodes : checked
(no other advanced options checked)

Reproducible: Always

Steps to Reproduce:
(in keyboard settings)
1. Add a second layout (ru, Default variant)
2. Go to Advanced, select "Caps Lock" as "Switching to another layout" option
3. Apply changes
4. Go to terminal, try switching layouts using caps lock

Actual Results:  
Pressing C/L when in en switches to 'ru'
Pressing C/L when in ru turns on CapsLock.

Expected Results:  
Pressing C/L should always switch to the next layout.
Comment 1 Andriy Rysin 2014-09-18 11:50:47 UTC
I wonder if it's something with sun keyboard definition, it works ok for me with Enligsh/Ukrainian layouts and pc101 keyboard.

If it is you'll have to file a bug for http://www.freedesktop.org/wiki/Software/XKeyboardConfig/

$ setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+ua:2+inet(evdev)+capslock(grouplock)"    };
        xkb_geometry  { include "pc(pc101)"     };
Comment 2 pawel.veselov 2014-09-18 23:05:41 UTC
It probably is then. The layout maps for this keyboard are grossly strange. However, when I do the KDE settings to show the layout, it shows what it thinks it is, not what the layout files specified. It seems that kxkb is way too disconnected from the actual provisioned layout. Since I'm configuring this through kxkb, and I don't want to mess with my system files manually, these problems should be, IMHO, handled by KDE.
Comment 3 Andriy Rysin 2014-09-18 23:43:06 UTC
KDE 4.x layout preview does not show selected keyboard it only shows the layout (on a standard keyboard). We had a GSoC student that actually did the work to show selected keyboard (among other improvements), and it was ported to KDE5, but he didn't get much feedback on reviewboard and I don't have time to pick it up and merge it myself.
Comment 4 pawel.veselov 2014-09-19 00:03:49 UTC
I would so vote for that merge :)
Comment 5 Andriy Rysin 2014-10-23 17:54:39 UTC
kde keyboard module does not control that so you'd have to file a bug
against xkeyboard-config component at freedesktop.org

2014-09-18 0:22 GMT-04:00  <pawel.veselov@gmail.com>:
> https://bugs.kde.org/show_bug.cgi?id=339162
>
>             Bug ID: 339162
>            Summary: Caps Lock can't be used as layout switcher
>            Product: kxkb
>            Version: unspecified
>           Platform: Fedora RPMs
>                 OS: Linux
>             Status: UNCONFIRMED
>           Severity: normal
>           Priority: NOR
>          Component: general
>           Assignee: arysin@gmail.com
>           Reporter: pawel.veselov@gmail.com
>
> Platform Version 4.13.3
>
> I'm trying to set up CapsLock as layout switcher (default is 'en', added 'ru',
> and I though it would shift from en into ru, it would not switch back.
>
> [vps@druid vps]$ setxkbmap -print
> xkb_keymap {
>         xkb_keycodes  { include "evdev+aliases(qwerty)" };
>         xkb_types     { include "complete+caps(internal)"       };
>         xkb_compat    { include "complete"      };
>         xkb_symbols   { include
> "pc+sun_vndr/us+sun_vndr/ru:2+inet(evdev)+capslock(grouplock)+sun_vndr/solaris(sun_compat)"
>     };
>         xkb_geometry  { include "sun(type6unix)"        };
> };
>
> KBD model: Sun Microsystems | Sun Type 6 USB (Unix layout)
> Maintain key compatibility with old Solaris keycodes : checked
> (no other advanced options checked)
>
> Reproducible: Always
>
> Steps to Reproduce:
> (in keyboard settings)
> 1. Add a second layout (ru, Default variant)
> 2. Go to Advanced, select "Caps Lock" as "Switching to another layout" option
> 3. Apply changes
> 4. Go to terminal, try switching layouts using caps lock
>
> Actual Results:
> Pressing C/L when in en switches to 'ru'
> Pressing C/L when in ru turns on CapsLock.
>
> Expected Results:
> Pressing C/L should always switch to the next layout.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 6 Andriy Rysin 2014-10-23 17:58:04 UTC
oops, sorry, ignore my previous reply - it was posted by mistake

P.S. showing keyboard geometry in layout preview feature has been pushed in plasma version 5 (should show up in 5.2)
Comment 7 Andrew Crouthamel 2018-11-12 02:52:03 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Andrew Crouthamel 2018-11-21 04:35:02 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Nate Graham 2021-03-20 03:54:08 UTC
Works for me in Plasma 5.21 with en and ru.