Bug 582123

Summary: Keyboard mappings with xmodmap are not restored after suspend
Product: [Fedora] Fedora Reporter: moabi2000
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: anton, dougsland, gansalmon, itamar, jonathan, kernel-maint, peter.hutterer
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-23 04:33:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description moabi2000 2010-04-14 07:33:19 UTC
Description of problem:

My bash_profile calls xmodmap to define some keyboard customisations. This works fine on startup + login. However if I suspend to ram, the customisations are reverted and I have to manually call xmodmap again. The exact same setup worked fine under F11.

Version-Release number of selected component (if applicable):
Fedora 13 beta with kernel 2.6.33.2-35.fc13.x86_64. Running KDE 4.4.2.


How reproducible:


Steps to Reproduce:
1.Create a file called .xmodmap containing customisations, for example:
 !
 ! Swap Caps_Lock and Control_L
 !
 remove Lock = Caps_Lock
 remove Control = Control_L
 keysym Control_L = Caps_Lock
 keysym Caps_Lock = Control_L
 add Lock = Caps_Lock
 add Control = Control_L

keycode 61 = exclam less
keycode 51 = asterisk greater

2.place a line "xmodmap ~/.xmodmap" in .bash_profile
3.Log out and back in or restart. Note that the customisations have taken effect.
4.Suspend to ram (in KDE use the kickoff menu) to "sleep".
5. Wake up the computer. Note that the keyboard customisations have been reverted.
  
Actual results:

Keyboard customisations do not persist across a suspend - resume cycle.
 
Expected results:

Customisations should persist across a suspend-resume cycle. They did in F11 with exact same xmodmap and .bash_profile

Additional info:

I use an FR (AZERTY) keyboard layout on a QWERTY keyboard, set using the KDE System Settings. This is preserved across a suspend.

Reporting this against the kernel since that handles the suspend/resume.

Comment 1 Peter Hutterer 2011-02-23 04:33:30 UTC

*** This bug has been marked as a duplicate of bug 664238 ***