Bug 258266

Summary: Keyboard layout lost after suspend to RAM
Product: [Unmaintained] kxkb Reporter: Wolf Behrenhoff <wolf.behrenhoff>
Component: generalAssignee: Andriy Rysin <arysin>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Wolf Behrenhoff 2010-11-29 10:43:17 UTC
Version:           unspecified (using KDE 4.5.3) 
OS:                Linux

I am using two keyboard layouts: German and US English. KDE is configured so that layouts can be switched using the caps lock key - and by application, i.e. I usually run KDevelop and Konsole in US English layout while KMail uses German layout.

After waking up from suspend to RAM, these settings are lost and the standard layout is restored on all open windows.

This is clearly a bug as suspend to ram shouldn't change keyboard layouts.

To extend this to a wish, I'd like to store layout settings per application, i.e. that my Konsole always starts with US layout and KMail always starts with German layout.

Reproducible: Always
Comment 1 Christoph Feck 2010-11-29 16:40:37 UTC
Please file wishes separately.
Comment 2 Andriy Rysin 2011-01-22 20:39:07 UTC
Second request is a duplicate of 174948.

As for the first one I can reproduce it - will try to take a look.
Comment 3 Andriy Rysin 2011-02-14 04:31:34 UTC
Git commit 1a13719637d65eb2a4a095e9b4e3e8bd8cb87c26 by Andriy Rysin.
Committed on 14/02/2011 at 04:30.
Pushed by rysin into branch 'master'.

Fix how the keyboard layouts are set
BUG: 258266
FIXED-IN: 4.6.1

M  +3    -0    kcontrol/keyboard/keyboard_config.h     
M  +10   -8    kcontrol/keyboard/layout_memory.cpp     
M  +18   -17   kcontrol/keyboard/x11_helper.cpp     
M  +17   -1    kcontrol/keyboard/x11_helper.h     
M  +16   -3    kcontrol/keyboard/xinput_helper.cpp     
M  +3    -0    kcontrol/keyboard/xkb_helper.cpp     

http://commits.kde.org/kde-workspace/1a13719637d65eb2a4a095e9b4e3e8bd8cb87c26
Comment 4 Andriy Rysin 2011-02-14 04:38:24 UTC
Git commit e2d3cc58919790dbd2a0b44f2d98d7ef1a9dd50a by Andriy Rysin.
Committed on 14/02/2011 at 04:30.
Pushed by rysin into branch 'KDE/4.6'.

Fix how the keyboard layouts are set
BUG: 258266
FIXED-IN: 4.6.1

M  +3    -0    kcontrol/keyboard/keyboard_config.h     
M  +10   -8    kcontrol/keyboard/layout_memory.cpp     
M  +18   -17   kcontrol/keyboard/x11_helper.cpp     
M  +17   -1    kcontrol/keyboard/x11_helper.h     
M  +16   -3    kcontrol/keyboard/xinput_helper.cpp     
M  +3    -0    kcontrol/keyboard/xkb_helper.cpp     

http://commits.kde.org/kde-workspace/e2d3cc58919790dbd2a0b44f2d98d7ef1a9dd50a