Bug 173140 - Keyboard shortcuts lost after logoff
Summary: Keyboard shortcuts lost after logoff
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 4.1
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-19 14:24 UTC by Dan
Modified: 2010-02-16 03:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
"xkbcomp :0 -" output (116.39 KB, text/plain)
2010-02-16 03:30 UTC, kristof.ralovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan 2008-10-19 14:24:25 UTC
Version:            (using KDE 4.1.2)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Compiled From Sources

Keyboard shortcuts assigned in "SystemSettings -> Keyboard & Mouse -> Shortcuts" do only stay active in the current session.
I have XF86Mute/VolUp/VolDown assigned to the front-channel in kmix and these settings work until I log off and log in again.
When I open SystemSettings in a new session the commands are still being shown but they are not working. To activate them again you have to disable the shortcut, click "Apply" and then enable the shortcut again.

BTW: The keycodes are being mapped to XF86Foo-commands by xmodmap in .bashrc. I don't know if that matters.
Comment 1 Dario Andres 2008-10-19 15:46:47 UTC
This seems to be related to bug 160892 (keyboard shortcuts broken in KDE 4.1.x)
Comment 2 Dan 2008-10-22 15:53:51 UTC
I've also noticed that KHotkeys does not work at all. The "Print" key does not launch ksnapshot, even though this action es enabled by default.
Also XF86Standby, XF86ScreenSaver, etc. are not even being recognized as inputs.
Comment 3 jackphil 2008-12-04 05:28:36 UTC
confirmed here. 

You should apply key mapping before KDE launching. And xmodmap should be assigned in X, 
not bash. You could put it in .xinitrc, here is mine:

xmodmap ~/.Xmodmap
synclient TouchpadOff=1
xbindkeys &
setxkbmap -keycodes evdev -model evdev
exec startkde

If you assigned the key mapping in KDE, such as changed keyboard layout in  KDE, the shortcuts in 
"SystemSettings -> Keyboard & Mouse -> Shortcuts" will be messed up.

recently using hotplugging in xorg, we are suggest to use the keyboard layout "Evdev-managed keyboard", 
it caused the problems like this (look http://kdemod.ath.cx/bbs/viewtopic.php?id=1358 and
http://bbs.archlinux.org/viewtopic.php?pid=457862). the reason is same, so I forbiden keyboard layout,
and set it in .xinitrc (see above).

I think the bug 160892 and http://forums.opensuse.org/archives/sls-archives/archives-suse-linux/archives-general-questions/371491-keyboard-layout-shortcut-question.html
is caused by the same reason.
Comment 4 Michael Jansen 2009-02-17 22:24:49 UTC
Has jackphils comment worked for everyone here or does this problem still exist? If yes please reply here. 


If not just do nothing. If i get no feedback in the next two weeks i will close that bug.

Thanks Mike
Comment 5 Dan 2009-02-17 22:56:29 UTC
I did not observe this problem in KDE 4.2! I think we can close the bug.
Comment 6 Dan 2009-02-17 23:02:40 UTC
And yes, I figured that we cannot assign key-mappings through a statement in .bashrc or .bash_profile. I now use ~/.kde/env/ for adding some keys from my multimedia keyboard.
Comment 7 kristof.ralovich 2010-02-16 03:25:06 UTC
$ setxkbmap -print

xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+hu:2+inet(evdev)+terminate(ctrl_alt_bksp)"       };
        xkb_geometry  { include "pc(pc104)"     };
};
Comment 8 kristof.ralovich 2010-02-16 03:30:19 UTC
Created attachment 40829 [details]
"xkbcomp :0 -" output

Just as the previous outputs this is under KDE4 where the Up key does not work.
Comment 9 kristof.ralovich 2010-02-16 03:32:08 UTC
(In reply to comment #7)
> $ setxkbmap -print
> 
> xkb_keymap {
>         xkb_keycodes  { include "evdev+aliases(qwerty)" };
>         xkb_types     { include "complete"      };
>         xkb_compat    { include "complete"      };
>         xkb_symbols   { include
> "pc+us+hu:2+inet(evdev)+terminate(ctrl_alt_bksp)"       };
>         xkb_geometry  { include "pc(pc104)"     };
> };

Sorry, this is meant for https://bugs.kde.org/show_bug.cgi?id=172411.
Comment 10 kristof.ralovich 2010-02-16 03:32:52 UTC
(In reply to comment #8)
> Created an attachment (id=40829) [details]
> "xkbcomp :0 -" output
> 
> Just as the previous outputs this is under KDE4 where the Up key does not work.

Sorry, this is meant for https://bugs.kde.org/show_bug.cgi?id=172411.