RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 664484 - xmodmap Mode_switch gets stuck on
Summary: xmodmap Mode_switch gets stuck on
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: xorg-x11-server
Version: 6.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Peter Hutterer
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On: 537708
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-20 15:07 UTC by Matthew Miller
Modified: 2011-12-06 14:38 UTC (History)
6 users (show)

Fixed In Version: xorg-x11-server-1.10.4-3.el6
Doc Type: Bug Fix
Doc Text:
Clone Of: 537708
Environment:
Last Closed: 2011-12-06 14:38:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:1602 0 normal SHIPPED_LIVE xorg-x11-server and tigervnc bug fix and enhancement update 2011-12-06 00:51:12 UTC

Description Matthew Miller 2010-12-20 15:07:57 UTC
+++ This bug was initially created as a clone of Bug #537708 +++

Description of problem:

I've been using "keycode 135 = Mode_switch" in my ~/.xmodmap for years, to change my "menu" key into something useful.

Starting sometime fairly recently (not sure exactly; sorry) occasionally (no repeatable case, but happens regularly enough to be annoying), the mode_switch gets stuck in on, such that pressing the key and a letter gives its normal version rather than its mode_switch version. (It's as if the equivalent of caps-lock for mode_switch is on.)

There doesn't seem to be any cure but hitting mode_switch a bunch of times and other random typing -- eventually it goes off again.


Version-Release number of selected component (if applicable):

Possibly xorg-x11-drv-evdev-2.3.0-1.fc12.x86_64. I'm just blaming evdev because it's convenient -- could be a lot of things, I suppose.

--- Additional comment from triage.org on 2009-11-16 10:34:40 EST ---


This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

--- Additional comment from mcepl on 2009-11-16 16:32:27 EST ---

(In reply to comment #0)
> Possibly xorg-x11-drv-evdev-2.3.0-1.fc12.x86_64. I'm just blaming evdev because
> it's convenient -- could be a lot of things, I suppose.  

Let's try to blame Xserver itself :) (it doesn't matter that much because issues of input go to Peter anyway).

Please attach your X server config file (/etc/X11/xorg.conf, if available), output of the dmesg command, and X server log file (/var/log/Xorg.*.log) to the bug report as individual uncompressed file attachments using the bugzilla file attachment link below.

We will review this issue again once you've had a chance to attach this information.

Thanks in advance.

--- Additional comment from mattdm on 2009-12-14 15:59:09 EST ---

Created attachment 378349 [details]
dmesg output

--- Additional comment from mattdm on 2009-12-14 16:00:19 EST ---

Created attachment 378350 [details]
Xorg.0.log

--- Additional comment from mattdm on 2009-12-14 16:06:01 EST ---

Attached requested logs. This is on my Rawhide box.

It also happens on my F12 system at home, which has a different radeon card and generally different hardware overall. I can attach that if you think it might be helpful.

I think *maybe* the problem is related to the key _next_ to this one; I've defined that to be Multi_key, and it may be related to hitting that accidentally in some way. I still can't reproduce _on purpose_ though. (But it does happen once every couple of days.)

--- Additional comment from mattdm on 2009-12-14 16:06:56 EST ---

Created attachment 378354 [details]
xmodmap

I must add that the ability to type hearts and flowers was added at the request of my 4-year-old daughter. Just sayin'.

--- Additional comment from campbecg on 2010-01-23 17:18:50 EST ---



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

--- Additional comment from mattdm on 2010-01-23 17:25:17 EST ---

This is still happening, by the way. And I removed the definition for Multi_key, so that's _not_ it.

--- Additional comment from mattdm on 2010-03-13 06:43:17 EST ---

This is still happening. It is very annoying. I attached the requested information -- see above. Anything else I can do to help get this resolved?

I know this is far from critical path, but it's a very annoying regression.

--- Additional comment from mattdm on 2010-03-19 14:36:06 EDT ---

✶°† ™♥i★ i★ ★™ill ♥a☠☠€ñiñℊ wi™♥ ¢urr€ñ™ raw♥i°€• ✓€ry aññ°yiñℊ• Añy ★uℊℊ€★™i°ñ★⁄ Añy ★uℊℊ€★™i°ñ★ a™ all⁄

--- Additional comment from peter.hutterer on 2010-03-21 20:49:56 EDT ---

some beautiful hearts in there though ;)

please run "xkbcomp -xkb $DISPLAY -" when the problem doesn't occur and after it occurs. Does the diff show anything? If so, then we have some corruption in the server. Attach the file here please too, I want to have a look at the layout.

what does xev show once the problem occurs for key presses?

--- Additional comment from mattdm on 2010-04-30 00:16:00 EDT ---

Of course, after that last message, it didn't happen for a while. But now it is. I'll post the xkbcomp output after it clears up; here's the xev output for pressing the s key:

KeyPress event, serial 34, synthetic NO, window 0x2e00001,
    root 0xfb, subw 0x0, time 2996500443, (158,13), root:(283,306),
    state 0x2010, keycode 39 (keysym 0x1002605, U2605), same_screen YES,
    XLookupString gives 3 bytes: (e2 98 85) "★"
    XmbLookupString gives 3 bytes: (e2 98 85) "★"
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2e00001,
    root 0xfb, subw 0x0, time 2996500539, (158,13), root:(283,306),
    state 0x2010, keycode 39 (keysym 0x1002605, U2605), same_screen YES,
    XLookupString gives 3 bytes: (e2 98 85) "★"
    XFilterEvent returns: False

(A bit later)

Okay, yeah, back to normal now. xkbcomp output is unchanged. I'll attach that.

--- Additional comment from mattdm on 2010-04-30 00:18:42 EDT ---

Created attachment 410301 [details]
xkbcomp -xkb $DISPLAY -

--- Additional comment from mattdm on 2010-06-03 21:02:30 EDT ---

Just happened to me again on my newly-reinstalled (fresh; not upgrade) F13 laptop. (Same .xmodmap file.)

Graphics card in this one is "Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller rev 7", so I think we can rule out ATI as the problem.

--- Additional comment from bug on 2010-07-08 09:05:54 EDT ---

You may try to reproduce bug holding down the Mode_switch key, so it starts to "repeat" mode switching regardless of setting for autorepeat option (xset -r).
During this, "state" field in xev cycles +0000 +2000 +4000 (with numlock active it leads to 0x10 0x2010 0x4010 states). If you depress it in correct time, all keys and combinations work well again.
Normal behaviour of M_s key seen as +2000 in active state (pressed), +0000 inactive (depressed).

--- Additional comment from redhat.20.sepp on 2010-10-10 15:49:27 EDT ---

Created attachment 452610 [details]
xmodmap to reproduce probla

With the attached modmap you can easily reproduce this problem. It uses the space bar as a modifier. Note: You might hate this layout, prepare your own xmodmap on a different console to switch back!

Steps to reproduce:

1. xmodmap .Xmodmap
2. press down 'f' key (do not release it). 'f' appears multiple times
3. press down space bar (do not release it). 'f' stops appearing
4. release 'f' key
5. release space bar
6. you now have a 70% chance that your keyboard is out of sync: Press 'f' key and '(' appears

These instructions work almost always for me to get the keyboard out of sync. Note that you can use the same steps to get in in sync again.
The bug seems easier to reproduce with an idle cpu.

Thanks if you can fix this issue.

--- Additional comment from mattdm on 2010-10-19 09:42:22 EDT ---

Thanks Sebastian. That works for me as a test case too, although maybe somewhat less than 70%. Enough that someone who has an idea how to track this down in the actual code should be able to reproduce.

I'm moving this to rawhide now so it doesn't get lost with "ancient" Fedora 13 bugs.

--- Additional comment from mattdm on 2010-12-07 15:59:53 EST ---

Still here. ★iℊ♥•

--- Additional comment from holtzermann17 on 2010-12-20 09:45:58 EST ---

I'm not sure what the protocol is, but I seem to have the same bug in Red Hat Enterprise Linux Server Release 6.0.

For the record I'll note that there is a similar bug reported in Ubuntu 10.04 and 10.10,
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/665956

Comment 2 Joe Corneli 2010-12-29 18:19:52 UTC
FYI the bug does *not* appear on my Apple-derived version of X windows,

$ X -version
X.org Release 7.5
X.Org X Server 1.7.6
Build Date: 20100329

Comment 3 RHEL Program Management 2011-01-07 04:34:32 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 4 Suzanne Logcher 2011-01-07 16:22:06 UTC
This request was erroneously denied for the current release of Red Hat
Enterprise Linux.  The error has been fixed and this request has been
re-proposed for the current release.

Comment 5 Matthew Miller 2011-01-07 16:24:26 UTC
(In reply to comment #4)
> This request was erroneously denied for the current release of Red Hat
> Enterprise Linux.  The error has been fixed and this request has been
> re-proposed for the current release.

♥.

Comment 6 Joe Corneli 2011-01-07 18:17:55 UTC
@Suzanne:  thanks!  Broken Mode_switch does seem to be a pretty major regression for X windows.  BTW, I tried the "bleeding edge" X installation on Ubuntu 10.04, c/o https://launchpad.net/~xorg-edgers/+archive/ppa, and the issue still pertains there.

Comment 7 RHEL Program Management 2011-02-01 05:48:13 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 8 RHEL Program Management 2011-02-01 19:01:11 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.

Comment 9 Peter Hutterer 2011-02-01 21:58:26 UTC
Simple fix, patch has been merged upstream and in fedora.

Comment 10 RHEL Program Management 2011-04-04 02:24:42 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 12 RHEL Program Management 2011-08-23 00:29:48 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 14 Peter Hutterer 2011-09-20 05:55:22 UTC
MODIFIED 

xorg-x11-server-1.10.4-3.el6 is available in brew

Comment 17 errata-xmlrpc 2011-12-06 14:38:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2011-1602.html


Note You need to log in before you can comment on or make changes to this bug.