Bug 544463

Summary: Malfunctioning of the keyboard for the last 3 Fedora versions
Product: [Fedora] Fedora Reporter: frs <biest3000>
Component: xorg-x11-serverAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: low    
Version: 15CC: afolger, jonstanley, mcepl, omoris, xgl-maint
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 19:39:00 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:
Attachments:
Description Flags
xorg.conf
none
Xorg.0.log
none
excerpt of /var/log/messages covering this morning's acpi resume, when the kezboard bug reappeared
none
output of dmesg after malfunction manifested itself
none
Output of evtest, when the keyboard is malfunctioning
none
Output of evtest when keyboard functions properly none

Description frs 2009-12-04 23:09:34 UTC
Description of problem:
For FC10/FC11/FC12 there is a persistent problem with the keyboard.
After max of 20 minutes of use the DOWN key refuses to work. This
happens on 3 different platforms: MAC PRO, HP Pavilion Laptop * PC.
It happens fro KDE and Gnome alike.

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

How reproducible:
Always after 20 minutes approximately

Steps to Reproduce:
1. type for 20 minutes
2.
3.
  
Actual results:
Stops moving downwards in any application. Occasionally I get funny characters like an
inverted i when I expect the ! key.

Expected results:
Move downwords in console or applications like emacs


Additional info:
Can be fixed temporarily by logging out or by resetting the keyboard layout. But that requires to close all consoles and emacs windows and start fresh.

Comment 1 Jon Stanley 2009-12-07 03:25:41 UTC
keychecker has nothing to do with keyboard input (it .  Throwing this over to xorg-x11-drv-evdev for now.

Comment 2 Matěj Cepl 2009-12-08 02:02:57 UTC
Thanks for the bug report.  We have reviewed the information you have provided above, and there is some additional information we require that will be helpful in our diagnosis of this issue.

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 above.

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

Thanks in advance.

Comment 3 Matěj Cepl 2010-02-26 12:16:45 UTC
Could you please reply to the previous question? If you won't reply in one month, I will have to close this bug as INSUFFICIENT_DATA. Thank you.

[Note please, that this is machine generated comment for large amount of bugs; due to some technical issues, it is possible we've missed some of the responses -- it is happens, please, just a make a comment about that; that we will see. Thank you]

Comment 4 A. Folger 2010-10-28 16:46:27 UTC
I suffer from the same problem, and I can provide additional information as to the symptoms. Frs, please confirm whether my symptoms match yours, otherwise I will file a separate bug report.

I use two keyboard variants, Swiss German and Hebrew. Sometimes, randomly, either after a short or much  longer amount of work, the cursor and oage navigation keys will be reassigned, with up-arrow being PrtScr, and other arrows having similar new roles, as well as the AltGr and win keys.

The Swiss German alphanumeric keys get reassigned, too, and my keyboard begins behaving rather like a normal German keyboard (at least the alphanumeric part).

Adding and removing keyboard layouts does nothing, as this seems to be a bug not about the particular layout, but about the identification of the keyboard as generic 105 keys. However, in keyboard switcher applets behaves as if nothing changed, and reports the correct settings. Recently I even started seeing another, similar, coincident peculiar buggy behavior: in addition to the cursor keys being reassigned, the keyboard layout is automatically switched to US. Adding and then removing a keyboard layout (any, but one has to apply the changes when adding, then removing and again applying changes) will return the old keyboard layouts, which had anyway not changed under the keyboard applet, but the cursor and navigation keys are still problematic.

This is mightily annoying (though as reported, logging out and logging back in is a fix of sorts), and while I only report it now, I have been suffering from this for at least a year. The sooner this is properly diagnosed and fixed, the better.

Comment 5 Peter Hutterer 2010-10-29 05:45:49 UTC
do you have any application that may toy with the layout settings. I can't imagine why this would be otherwise.

also, check your Xorg.log, do you see the device disconnecting and reconnecting before this happens?

Comment 6 A. Folger 2010-10-29 06:11:28 UTC
In theory, only KDE's keyboard applet should do that. Nothing else I use should modify the keyboard layout. And mind you, it seems it isn't the keyboard layout that changes as much as the geometry of the keyboard.

If you feel that would be productive, I can upload a listing of `rpm -qa || sort`.

Comment 7 Matěj Cepl 2010-10-29 12:13:21 UTC
(In reply to comment #6)
> In theory, only KDE's keyboard applet should do that. Nothing else I use should
> modify the keyboard layout. And mind you, it seems it isn't the keyboard layout
> that changes as much as the geometry of the keyboard.
> 
> If you feel that would be productive, I can upload a listing of `rpm -qa ||
> sort`.

I think much more productive would be, if you attach (after reproducing the issue but before reboot):

* your X server config file (/etc/X11/xorg.conf, if available),
* X server log file (/var/log/Xorg.*.log), and
* system log (/var/log/messages)

to the bug report as individual uncompressed file attachments using the bugzilla file attachment link above.

Could you do Ctrl+Alt+F2 to get to the console?

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

Thanks in advance.

Comment 8 A. Folger 2010-10-29 13:05:48 UTC
As this issue happens haphazardly, seemingly randomly, I cannot promise by any particular deadline. Sometimes it happens three times a day, sometimes doesn't happen for a week or two. But when it happens, I will do so.

Comment 9 A. Folger 2010-11-01 06:40:33 UTC
Created attachment 456797 [details]
xorg.conf

My machine finally complied, producing the bug with the cursor keys AND switching the keyboard layout from Swiss German to US. This is the first of three relevant attachments.

Comment 10 A. Folger 2010-11-01 06:41:53 UTC
Created attachment 456799 [details]
Xorg.0.log

the second of three attachments.

Comment 11 A. Folger 2010-11-01 06:43:24 UTC
Created attachment 456800 [details]
excerpt of /var/log/messages covering this morning's acpi resume, when the kezboard bug reappeared

the third of three attachments.

Comment 12 Peter Hutterer 2010-11-01 22:42:16 UTC
so the configuration should be ok, the keyboards come up with the layout you configured (ch). so even if the keyboards disappear for a bit, they should still come up with the right layout.

when the bug appears, does disconnecting the keyboard work?

Comment 13 A. Folger 2010-11-02 06:22:25 UTC
Usually, everything works, but randomly, the cursor and other navigation keys can suddenly stop working (as well as Alt-Gr. and the Win keys), being partially reassigned. In addition, that bug often coincides with the disappearance of my chosen layouts, switching me automatically to US. I would assume the latter part is a consequence of teh former, and it is the former we should fix first.

What do you mean with "when the bug appears, does disconnecting the keyboard work?" You mean physically disconnecting, or do you have a command in mind?

Comment 14 Peter Hutterer 2010-11-02 20:49:31 UTC
physically disconnecting and reconnecting, yet. This is mainly to narrow down the causes. If the keyboard comes back after the reconnect with the right settings, then the server and desktop environment are probably alright and we need to find out if there's an application that hits the keyboard layout badly.

Comment 15 Bug Zapper 2010-11-04 04:18:58 UTC
This message is a reminder that Fedora 12 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 12.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '12'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 12's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 12 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 16 A. Folger 2010-11-04 07:08:29 UTC
Well, I am on Fedora 13, and the bug persists. Please change the version number accordingly (I tried, but couldn't do it).

Comment 17 A. Folger 2010-12-02 11:04:12 UTC
Created attachment 464226 [details]
output of dmesg after malfunction manifested itself

OK, while this issue happens less often in F14, it still happens. Like right now. So I disconnected and reconnected the keyboard, to no avail. Attached is the output of dmesg.

Comment 18 A. Folger 2010-12-02 11:07:40 UTC
I should add that looking at /var/log/messages, I found nothing interesting (in fact, only one message for the whole half hour, from pulseaudio, about "605 events that were suppressed." Could pulseaudio interfere with the keyboard? Wouldn't that sound weird, pun intended).

Comment 19 Bug Zapper 2011-06-02 17:12:05 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 20 A. Folger 2011-06-02 22:26:57 UTC
I upgraded to FC15, and this problem is still present. Please amend version number of Fedora for this bug accordingly; I don't see any option to personally change that flag.

Comment 21 A. Folger 2011-07-18 10:16:26 UTC
I just boughtg a new keyboard (from Microsoft). The earlier keyboard was PS/2, while this one is USB, and the same problem persists. What now?

Comment 22 Peter Hutterer 2011-07-27 23:14:10 UTC
This seems to be related to some application you are using (I've been using MS keyboards for years now). For future reference, please attach the evtest output for this keyboard though (MS keyboards usually export two devices, please attach both).


what's the output of setxkbmap -print before and after the bug happens?
Also, I take it evtest still shows the right events after the bug occurs?

"the cursor and oage navigation keys will be reassigned, with up-arrow being PrtScr, and other arrows having similar new roles, as well as the AltGr and win keys."

Up→PrintScreen is the typical sign of a rules confusion, something is applying keyboard settings with the xfree86, not the evdev rules. I don't know what does that though but it's most likely some application.

Comment 23 A. Folger 2011-08-09 19:17:03 UTC
When the keyboard malfunctions:
===============================
$ setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "xfree86+aliases(qwerty)"       };
        xkb_types     { include "complete+numpad(pc)"   };
        xkb_compat    { include "complete+ledscroll(group_lock)"        };
        xkb_symbols   { include "pc+ch(de)+inet(pc105)+il(lyx):2+altwin(menu)+group(rwin_switch)+group(shift_caps_toggle)+terminate(ctrl_alt_bksp)"     };
        xkb_geometry  { include "pc(pc105)"     };
};

I am also attaching the output of evtest. I let it catch the events when I pressed some of the malfunctioning keys: AltGr, left arrow, right arrow, up arrow and down arrow (or perhaps it was down and then up).

Comment 24 A. Folger 2011-08-09 19:18:49 UTC
Created attachment 517468 [details]
Output of evtest, when the keyboard is malfunctioning

I also let it capture the events when I pressed the following (malfunctioning) keys: AltGr and each of the four arrow keys.

Comment 25 A. Folger 2011-08-09 19:26:14 UTC
Created attachment 517469 [details]
Output of evtest when keyboard functions properly

I am also adding the following requested output:

$ setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete+numpad(pc)"   };
        xkb_compat    { include "complete+ledscroll(group_lock)"        };
        xkb_symbols   { include "pc+ch(de)+il(lyx):2+inet(evdev)+altwin(menu)+group(rwin_switch)+group(shift_caps_toggle)+terminate(ctrl_alt_bksp)"     };
        xkb_geometry  { include "pc(pc105)"     };
};

Comment 26 Peter Hutterer 2011-08-09 22:51:22 UTC
(In reply to comment #23)
>         xkb_keycodes  { include "xfree86+aliases(qwerty)"       };

(In reply to comment #25)
>         xkb_keycodes  { include "evdev+aliases(qwerty)" };


you see the xfree86 vs evdev here? xfree86 and evdev have different keycodes, so the keysym association gets busted. Since this happens well into the server I suspect it's some client uploading the wrong rules but I really can't say which one it is. Do you have any special apps that supposedly control the keyboard?

Comment 27 A. Folger 2011-08-10 10:32:21 UTC
The only keyboard controlling app I knowingly use is KDE's keyboard switcher.

By the way, can you imagine a way to reset the keyboard without logging out and back in?

Comment 28 A. Folger 2011-08-10 10:34:26 UTC
And I should add that this only happens on my desktop, where I use the Swiss German and the Israeli LyX keyboards. On my laptop, where I use the US International (with dead keys) and the Israeli LyX keyboard layouts, I never have any issues. Another difference is that the desktop runs Fedora for x86_64, while the laptop is i686.

Comment 29 Peter Hutterer 2011-08-10 22:39:52 UTC
(In reply to comment #27)
> By the way, can you imagine a way to reset the keyboard without logging out and
> back in?

setxkbmap -rules evdev -layout "ch,il" -variant ",lyx"
should do it. man xkeyboard-config has all the variations, important is the comma before the lyx, otherwise setxkbmap tries to assign it as "ch(lyx),il", not "ch,il(lyx)"

Comment 30 A. Folger 2011-08-18 08:40:43 UTC
OK, I just tried your suggested temporary fix. It works, well, kind of, not entirely. All keys seem to be properly reassigned, except for up arrow, which simply doesn't work at all (until logout and login again).

This seems to still harbor some mysteries.

Comment 31 Peter Hutterer 2012-01-16 01:10:38 UTC
what's the xkbcomp output now then? when the up arrow doesn't work, but otherwise it seems ok.

Comment 32 frs 2012-01-19 16:46:06 UTC
Hi,

I would like to report that this problem has disappeared miraculously for me as of FC15/16 without any change to my set-up. I am guessing that this is due to all your collective efforts! I would like to thank all of you warmly for these efforts! 

Probably Fedora is not really meant for stable day-to-day work and one has to live with constant regression: WIFI, KDE stability, keyboards, i.e. all the essentials are bound to fail again and again...

Cheers and many Thanks again!

Frank

Comment 33 Fedora End Of Life 2012-08-07 19:39:03 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 34 Paul Wouters 2020-05-26 14:11:30 UTC
*** Bug 1777474 has been marked as a duplicate of this bug. ***