You are not logged in.

#1 2018-09-23 20:43:24

ddshore
Member
Registered: 2018-09-23
Posts: 7

Language change shortcut stops working after reboot [SOLVED]

I have a laptop running arch+kde/plasma on X.  I have a dual language set up, with US (English) and Spanish (Latin American, with sun dead keys).  I change my language with alt+shift, but lately the shortcut does not work after a reboot.  It is still selected under the keyboard layout shortcuts, but it does nothing.  If i disable and re-enable it it works again.  It seems like there is some other shortcut that interfering with it on boot, but I don't know where I can check this.  I don't see any other shortcut set to alt+shift (and in fact, this won't be accepted by KDE's shortcuts). 

Is there anyway I can stop this from happening?

Last edited by ddshore (2018-11-24 18:00:11)

Offline

#2 2018-09-23 22:19:58

seth
Member
Registered: 2012-09-03
Posts: 49,975

Re: Language change shortcut stops working after reboot [SOLVED]

What's the output of

setxkbmap -print -query

before and after re-enabling the shortcut?

Offline

#3 2018-09-24 01:38:42

ddshore
Member
Registered: 2018-09-23
Posts: 7

Re: Language change shortcut stops working after reboot [SOLVED]

Thanks, that threw out more information.  Shortcuts do not appear before, and they do appear after.  One thing: the ctrl alt backspace shortcut was not disabled and re-enabled, I didn't touch it, and it also appeared.   How can I fix this?

Before:

xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+inet(evdev)"     };
        xkb_geometry  { include "pc(pc105)"     };
};
rules:      evdev
model:      pc105
layout:     us

After renabling it.

xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+latam(sundeadkeys):2+inet(evdev)+group(alt_shift_toggle)+terminate(ctrl_alt_bksp)"       };
        xkb_geometry  { include "pc(pc101)"     };
};
rules:      evdev
model:      pc101
layout:     us,latam
variant:    ,sundeadkeys
options:    terminate:ctrl_alt_bksp,grp:alt_shift_toggle

Offline

#4 2018-09-24 05:56:46

seth
Member
Registered: 2012-09-03
Posts: 49,975

Re: Language change shortcut stops working after reboot [SOLVED]

Your keyboard settings are not applied at all in the beginning, this is a very KDE specific issue.
Check "kcmshell5 kded" on whether some suspicious daemon isn't loaded (before you "fix" it) - that's all I can tell.

You could either add the config to Xorg or add a setxkbmap script to your autostart stuff, but that would oc. only work around the fact that KDE doesn't apply (all of) its settings on login.

Offline

#5 2018-11-24 17:17:41

ddshore
Member
Registered: 2018-09-23
Posts: 7

Re: Language change shortcut stops working after reboot [SOLVED]

Thanks for your message, I don't know why I didn't see it before. But wanted to let you know it seems to have done the trick. For anyone with the same problem, it's adding:


Section "InputClass"
    Identifier "kebyoard defaults"
    MatchIsKeyboard "on"
    Option "XkbLayout" "us,latam"
    Option "XKbOptions" "grp:alt_shift_toggle"
EndSection

To a configuration file I created inside of /etc/X11/xorg.conf.d/

Last edited by ddshore (2018-11-24 20:35:33)

Offline

#6 2018-11-24 17:54:59

seth
Member
Registered: 2012-09-03
Posts: 49,975

Re: Language change shortcut stops working after reboot [SOLVED]

Cool.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB