[Bug 394949] New: Simulated Caps lock key press via XTestFakeKeyEvent is not working
https://bugzilla.novell.com/show_bug.cgi?id=394949 Summary: Simulated Caps lock key press via XTestFakeKeyEvent is not working Product: openSUSE 11.0 Version: Beta 3 Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: X.Org AssignedTo: sndirsch@novell.com ReportedBy: kyoshida@novell.com QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: Development Created an attachment (id=218494) --> (https://bugzilla.novell.com/attachment.cgi?id=218494) a test code to toggle Caps Lock on and off (originally provided by Stefan Dirsch) A simulated Caps Lock key press makes the logical and the physical states of the Caps Lock out of sync. This causes a problem as one of OpenOffice's functionality - correct accidental use of cAPS LOCK key - relies on this feature of X. I will post a test code that demonstrates the problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User kyoshida@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c1 --- Comment #1 from Kohei Yoshida <kyoshida@novell.com> 2008-05-27 22:00:02 MDT ---
I will post a test code that demonstrates the problem.
Well, it got posted to the top. ;-) Anyway, this test code toggled the caps lock state beautifully up until 11.0 Beta 3. I tested the code on two different machines both running 11.0 Beta 3, just to make sure it was not the hardware that caused the problem. On both machines, the test program toggled the logical state of the Caps Lock key, but the LED indicator did not get toggled. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flag| |SHIP_STOPPER- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c2 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from Stefan Dirsch <sndirsch@novell.com> 2008-05-28 01:08:57 MDT --- I can reproduce this issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c3 --- Comment #3 from Stefan Dirsch <sndirsch@novell.com> 2008-05-28 01:19:55 MDT --- I'm wondering if this ever worked before. On which openSUSE release? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c4 --- Comment #4 from Stefan Dirsch <sndirsch@novell.com> 2008-05-28 03:13:58 MDT --- It works at least on 10.3-i386. I tested on 11.0-x86_64 and there it fails. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c5 --- Comment #5 from Stefan Dirsch <sndirsch@novell.com> 2008-05-28 03:54:27 MDT --- Same problem with 11.0-i386. So it's for sure not a 64bit issue, but likely a regression in Xserver/keyboard driver. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Simulated Caps lock key press via |Simulated Caps lock key press via |XTestFakeKeyEvent is not working |XTestFakeKeyEvent does not toggle the LED | |indicator -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c6 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |kyoshida@novell.com --- Comment #6 from Stefan Dirsch <sndirsch@novell.com> 2008-05-28 08:42:09 MDT --- Kohei, can you give us some more background to this, so that we can decide if it really critical? Reading the first 2 comments it seems, you thought first it didn't work at all and recognized later that only the LED indicator is not toggled. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User kyoshida@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c7 Kohei Yoshida <kyoshida@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|kyoshida@novell.com | --- Comment #7 from Kohei Yoshida <kyoshida@novell.com> 2008-05-28 08:53:14 MDT --- Sure. It's just the LED indicator that's not working. Toggling the logical state of the Caps Lock has always worked fine. I put it Critical because we use it to implement the "correct accidental use of Caps Lock" feature in OOo, and that feature is turned on by default for all of Writer, Calc, Impress and Draw. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c8 --- Comment #8 from Stefan Dirsch <sndirsch@novell.com> 2008-05-28 09:20:29 MDT ---
"correct accidental use of Caps Lock" feature What's does it do? Could you explain?
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User kyoshida@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c9 --- Comment #9 from Kohei Yoshida <kyoshida@novell.com> 2008-05-28 09:33:39 MDT --- Yes. Here is what it does. Let's say you open Writer, with your Caps Lock key turned on (but you don't know it's on). Start typing a sentence e.g. "Here comes the Sun" but it comes up as hERE because of the Caps Lock. As soon as you hit space after the first word, Writer will then correct that to 'Here' and turn off the Caps Lock key. Calc, Impress and Draw all do this. You can try this with the version of OOo that ships with 11.0 Beta 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c10 --- Comment #10 from Stefan Dirsch <sndirsch@novell.com> 2008-05-28 09:39:38 MDT --- Thanks, I understand. After having done this auto correction, the Caslock LED indicator is in the wrong state. That's really confusing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c11 --- Comment #11 from Stefan Dirsch <sndirsch@novell.com> 2008-05-29 01:45:21 MDT --- At least I opened now an upstream bugreport: https://bugs.freedesktop.org/show_bug.cgi?id=16145 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c12 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |llunak@novell.com --- Comment #12 from Stefan Dirsch <sndirsch@novell.com> 2008-05-29 03:48:08 MDT --- There's some movement in the upstream bugreport. Please consider subscribing to freedesktop bugzilla and take yourself into Cc of this bugreport. So you can follow the discussion closely. numlockx (same package name) still works. Therefore I assume, that the test code is no longer sufficient. :-( I hope that Lubos is willing to help you to adjust numlockx, so it will also work for Capslock. He's the author of numlockx. I'm adding him to Cc therefore. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c13 --- Comment #13 from Stefan Dirsch <sndirsch@novell.com> 2008-05-29 09:35:55 MDT --- Lubos, maybe you can ask Oswald Buddenhagen <ossi@kde.org> here. According to your sources, he wrote the xkb stuff, which is missing in my sample code. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User llunak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c14 --- Comment #14 from Lubos Lunak <llunak@novell.com> 2008-05-30 07:41:44 MDT --- There should be no special magic in NumLockX (well, besides the wicked idea of it itself). Presumably making it work with CapsLock is just a matter of running search&replace on NumLock, Num_Lock or whatever all the relevant names for the modifier there are. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c15 --- Comment #15 from Stefan Dirsch <sndirsch@novell.com> 2008-05-30 08:22:52 MDT --- I've tried this, Lubos. Unfortunately this didn't work, since CapsLock is *not* a VirtualMod (see xkb_mask_modifier(...)). This is the reason I added you and Ossi. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User llunak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c16 --- Comment #16 from Lubos Lunak <llunak@novell.com> 2008-05-30 08:55:02 MDT --- It works for XK_Caps_Lock too if xkb_numlock_mask() is replaced with the body of xtest_get_numlock_state() adjusted to return just numlock_mask and not the actual state of it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c17 --- Comment #17 from Stefan Dirsch <sndirsch@novell.com> 2008-05-30 09:23:55 MDT --- Since you have it already running, could you attach the patch? Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User llunak@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c18 --- Comment #18 from Lubos Lunak <llunak@novell.com> 2008-05-30 09:40:39 MDT --- Created an attachment (id=219206) --> (https://bugzilla.novell.com/attachment.cgi?id=219206) patch for numlockx-1.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c19 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sndirsch@novell.com AssignedTo|sndirsch@novell.com |eward@novell.com Status|ASSIGNED |NEW Component|X.Org |OpenOffice.org QAContact|xorg-maintainer-bugs@forge.provo.novell.com |qa@suse.de --- Comment #19 from Stefan Dirsch <sndirsch@novell.com> 2008-05-30 09:55:01 MDT --- Thanks. The patch works fine for me. Kohei, now it's up to you to pick up the relevant xkb code from the patched numlockx. :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|eward@novell.com |kyoshida@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User kyoshida@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c20 --- Comment #20 from Kohei Yoshida <kyoshida@novell.com> 2008-05-30 10:38:25 MDT --- Stefan, is the new numlockx code available from the factory repository, or ...? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User kyoshida@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c21 Kohei Yoshida <kyoshida@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P1 - Urgent --- Comment #21 from Kohei Yoshida <kyoshida@novell.com> 2008-06-02 07:39:07 MDT --- Setting it P1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c22 --- Comment #22 from Stefan Dirsch <sndirsch@novell.com> 2008-06-02 08:19:42 MDT --- (In reply to comment #20 from Kohei Yoshida)
Stefan, is the new numlockx code available from the factory repository, or ...? I thought I had already replied. Sure, you can find numlockx code in factory (same package name). I also attached it to the upstream bugreport.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User kyoshida@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c23 --- Comment #23 from Kohei Yoshida <kyoshida@novell.com> 2008-06-02 08:34:08 MDT --- Ah, Thanks. Yeah I'm sometimes slow to catch on, so bear with me. ;-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User sndirsch@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c24 Stefan Dirsch <sndirsch@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|sndirsch@novell.com | --- Comment #24 from Stefan Dirsch <sndirsch@novell.com> 2008-06-03 02:38:41 MDT --- Hope you have enough information now to address this issue. Otherwise please let me know. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User kyoshida@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c25 Kohei Yoshida <kyoshida@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 - Urgent |P4 - Low --- Comment #25 from Kohei Yoshida <kyoshida@novell.com> 2008-06-03 09:15:05 MDT --- Setting it to P4 since this will be fixed in the next upstream X release. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 JP Rosevear <jpr@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Critical |Normal -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=394949 User kyoshida@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=394949#c26 Kohei Yoshida <kyoshida@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P4 - Low |P2 - High Status|NEW |ASSIGNED --- Comment #26 from Kohei Yoshida <kyoshida@novell.com> 2009-01-11 18:04:22 MST --- Setting it to P2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com