Xorg key-repeat problem related to accessxkey ctrl of XKB
Submitted by Sung-Jin Park
Assigned to Xorg Project Team
Description
Hello,
I have a problem related key repeat problem.
First of all, I'll let you know the back-gound of my development environment related to Xorg.
I'm developing some applications on Xorg server included in X11R7.5. Xorg server and my applications are running on a small phone-like target which doesn't have standard keyboard and which has only a few hardware keys(or buttons). The keys generate non-modifier keysyms.
When Xorg server starts, "-r" option was given to Xorg server startx script for disabling autorepeat. Executing "xset q" shows followings:
============================================================================ Keyboard Control: auto repeat: off key click percent: 0 LED mask: 00000000 auto repeat delay: 660 repeat rate: 25 auto repeating keys: 00ffffffdffffbbf fadfffefffedffff 9fffffffffffffff fff7ffffffffffff ...
When I press a button(or a key), it only generates a key-press event even if I press for a long time. Auto-repeat is disabled at that time.
But after repeating suspend/resume of kernel and Xorg server, auto-repeat is enabled by 'xkbaccessXKeys' control and I find out device's kbdfeed->ctrl.autoRepeat is changed to 'True'. So pressing a button generates one or more key events and executing "xset q" shows followings:
Keyboard Control: auto repeat: on key click percent: 0 LED mask: 00000000 auto repeat delay: 660 repeat rate: 25 auto repeating keys: 00ffffffdffffbbf fadfffefffedffff 9fffffffffffffff fff7ffffffffffff ...
I added '-accessx' to Xorg startx script to disable AccessX of XKB extension but it didn't work. Adding '+accessx 0` works correctly.
I don't know this is a problem(or a bug) or not. But it seems that the synchronization was broken between global auto-repeat status (set by -r option) and the device auto-repeat status.
How do you think about this issue ?
Version: 7.5 (2009.10)