Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335192 - x11-base/xorg-server: Multiple events generated for single key press
Summary: x11-base/xorg-server: Multiple events generated for single key press
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-30 04:46 UTC by Alexander Goomenyuk
Modified: 2017-01-26 05:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
xev log (xev.log,1.72 KB, text/plain)
2010-08-30 04:48 UTC, Alexander Goomenyuk
Details
emerge info (emerge.info,4.11 KB, text/plain)
2010-08-30 04:49 UTC, Alexander Goomenyuk
Details
Xorg log (Xorg.0.log,12.84 KB, text/plain)
2010-09-22 04:49 UTC, Alexander Goomenyuk
Details
evdev source code patch (evdev-2.4.0-hk_quirk_amilo_l1300.patch,736 bytes, text/plain)
2010-10-02 20:04 UTC, Alexander Goomenyuk
Details
ebuild patch (xf86-input-evdev-2.4.0.ebuild.patch,930 bytes, text/plain)
2010-10-02 20:04 UTC, Alexander Goomenyuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Goomenyuk 2010-08-30 04:46:25 UTC
I have several multimedia keys on the keyboard. Few of them generates multiple events seen under xev (see xev.log for more details).

I am sure this is not HW bug, because evbug.ko says that only single press/release cycle occurs. The hal also reports on single press:
>> hald_dbus.c:3216: udi=/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input


Reproducible: Always

Steps to Reproduce:
Suppose may be reproduce on Futjistu-Siemens AMILO L1300

1. Login and starts xev
2. Press Fn + F3 (XF86AudioVolumeLower) or Fn + F4 (XF86AudioVolumeRaise)
3. Observe the continuous generation of press and release cycles till Ctrl+C pressed.
4. Press Fn + F3/F4 - no events observed under xev, but there is event detected by hald.
To repeat the problem need to reboot the notebook. Restarting Xorg doesn't restore the event generation (pressing Fn+F3/F4 doesn't generates events anymore).




I have tried two versions of Xorg
- 1.7.7-r1
and
- 1.8.2
the results are the same.

Roll back of evdev from 2.4.0 to 2.3.2 also doesn't changes anything.
I can't emerge Xorg-1.6.5-r1 because of missing mesalib ebuild.
Comment 1 Alexander Goomenyuk 2010-08-30 04:48:45 UTC
Created attachment 245312 [details]
xev log
Comment 2 Alexander Goomenyuk 2010-08-30 04:49:31 UTC
Created attachment 245314 [details]
emerge info
Comment 3 Alexander Goomenyuk 2010-08-30 04:53:15 UTC
I am using auto configuration of Xorg (no xorg.conf).
When tried to use xorg.conf to select different driver for keyboard (kbd instead of evdev), the results were similar. Except that different keycode was generated and need no to reboot or restart Xorg to repeat the behavior.
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2010-09-21 21:53:00 UTC
Please attach your Xorg.0.log. Something is odd on your system.

Thanks
Comment 5 Alexander Goomenyuk 2010-09-22 04:48:52 UTC
(In reply to comment #4)
> Please attach your Xorg.0.log. Something is odd on your system.
> 
> Thanks
> 

Here is the Xorg.0.log;
Comment 6 Alexander Goomenyuk 2010-09-22 04:49:27 UTC
Created attachment 248323 [details]
Xorg log
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2010-09-22 06:44:53 UTC
Did you configure HAL in any way?

Thanks
Comment 8 Alexander Goomenyuk 2010-09-22 16:57:16 UTC
(In reply to comment #7)
> Did you configure HAL in any way?
> 
> Thanks
> 

Thanks for feedback.

I haven't configured the hal in any custom way. I used as is. Moreover I have tried to stop the hald/dbus daemons at all and still able to reproduce the issue.
Comment 9 Alexander Goomenyuk 2010-10-02 20:03:50 UTC
You are right that system is non-conventional. The Fn+F3/F4 generates only key press events. Non key release events are generated. As I understood evdev driver interprets these events as continuous pressing.

Looks like this problem is not seldom (at least toshiba and acer notebooks affected also). The fix for this issue may be found around on forums.

I have prepared the patch for evdev driver and ebuild. This add new USE flag: hk_quirk_amilo_l1300;
Enabling it I can get VolumeRaise and VolumeLower events to work as expected.

I would be glad if this patch may be merged to official ebuild. In this case I may skip manual fix after world emerge.
Comment 10 Alexander Goomenyuk 2010-10-02 20:04:35 UTC
Created attachment 249353 [details]
evdev source code patch
Comment 11 Alexander Goomenyuk 2010-10-02 20:04:59 UTC
Created attachment 249355 [details]
ebuild patch
Comment 12 Matt Turner gentoo-dev 2017-01-26 05:31:10 UTC
Please reopen if this is still a problem.