[Bug 302099] New: FN-Key brings up context menu
https://bugzilla.novell.com/show_bug.cgi?id=302099 Summary: FN-Key brings up context menu Product: openSUSE 10.3 Version: Beta 2 Platform: x86-64 OS/Version: openSUSE 10.3 Status: NEW Severity: Normal Priority: P5 - None Component: X.Org AssignedTo: sndirsch@novell.com ReportedBy: funtasyspace@yahoo.com QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- This is a post-Beta1 issue, that appeared after I updated many packages from the FACTORY repository. If I press the FN-Key on my ThinkPad T60p, the context menu pops up now. Seems like the FN-key has the same key mapping as the menu key (don't now the name of the key, it's the one between the AltGr and Right-Ctrl on my keyboard. Anyway, FN+Anything combinations still work, but additionally, the context menu pops up every time, which is quite annoying. It doesn't matter what keyboard layout I setup with SAX2, on my ThinkPad 'Microsoft Natural Keyboard Pro / Microsoft Internet Keyboard Pro' was selected by default. I also tried the 'Generic' layouts and 'IBM ThinkPad 560Z/600/600E/A22E' layouts. -- 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=302099#c1
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c2
Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099#c3
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c4
Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099#c5
--- Comment #5 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c6
--- Comment #6 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c7
--- Comment #7 from Jörg Hermsdorf
Indeed. KeyPress/KeyRelease are different events. ;-) Yeah, that just came into my mind, after committing my last post ;)
Why does use FN and the Menu key the same keycode? I have no idea. Well, this issue just came up with some post-Beta1 updates, never had this before. But I did to many FACTORY updates at once to say which package is likely to be responsible for this strange new behavior :(
-- 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=302099#c8
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c9
Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099#c10
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c11
--- Comment #11 from Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099
Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099#c12
--- Comment #12 from Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099#c13
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c14
Joachim Gleissner
https://bugzilla.novell.com/show_bug.cgi?id=302099#c15
--- Comment #15 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c16
Egbert Eich
https://bugzilla.novell.com/show_bug.cgi?id=302099
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c17
--- Comment #17 from Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099
Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099#c18
--- Comment #18 from Stefan Dirsch
By the way, is this new ACPI-key-handling maybe the reason for the following new behaviour, too? [...] Should I open a new bug for this No, just Cc to Bug #141443.
-- 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=302099#c19
--- Comment #19 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c20
Magnus Boman
https://bugzilla.novell.com/show_bug.cgi?id=302099#c21
--- Comment #21 from Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099
Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099#c22
--- Comment #22 from Egbert Eich
'showkey -s' for the FN-key: 0xe0 0x63 0xe0 0xe3
'showkey -s' for the Menu-key is the same: 0xe0 0x63 0xe0 0xe3
No this is bad! We cannot handle this at all with the non-evdev keyboard driver! This needs to be fixed elsewhere.
By the way, is this new ACPI-key-handling maybe the reason for the following new behaviour, too? Situation: I have firefox open on console 7 (default X-Session) and the firefox window has the focus. Now I switch to console 2 (e.g. to run the 'showkey -s' command) and I switch back to console 7 via Ctrl+Alt+F7, then firefox receives and handles the F7 key press, too. It asks me, if I want to toggle 'Carret Browsing'. If I press Ctrl+Alt+F7 while I'm on console 7, firefox will not handle the F7 key press, only when I come back from another terminal. Should I open a new bug for this, or is it the same?
No, this is bug 141443 :( (In reply to comment #21 from Jörg Hermsdorf)
Magnus,
here the results:
1: The context menu pops up after about ~2 seconds!
This seems acceptable. But the kernel schouldn't handle this. This can be considered a 'desktop' feature but should be configurable thru some desktop tool.
2: The context menu pops up immediately!
So the release event triggers these key events. This sounds broken.
3: No, the context menu won't popup at all. But this wasn't the case until yesterday, where it popped up too after about 2 seconds. I did some FACTORY
That's at least sane. So things are improving at least! -- 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=302099#c23
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c24
Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=302099#c25
--- Comment #25 from Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099#c26
--- Comment #26 from Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=302099#c27
--- Comment #27 from Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=302099#c28
--- Comment #28 from Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099#c29
--- Comment #29 from Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=302099#c30
--- Comment #30 from Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=302099#c31
--- Comment #31 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c32
--- Comment #32 from Magnus Boman
https://bugzilla.novell.com/show_bug.cgi?id=302099#c33
--- Comment #33 from Stefan Dirsch
Btw, there is likely another problem in X.Org - KEY_WAKEUPi (e063/0xe3) shouldn't cause the menu to appear, that should be exclusive to KEY_COMPOSE (e05d/0xdd). Isn't this a desktop setting?
-- 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=302099#c34
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c35
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c36
--- Comment #36 from Magnus Boman
https://bugzilla.novell.com/show_bug.cgi?id=302099#c37
--- Comment #37 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c38
--- Comment #38 from Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=302099#c39
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c40
--- Comment #40 from Jörg Hermsdorf
Jörg, Magnus, please test if commenting out the first line in /usr/share/hotkey-setup/ibm.hk fixes the issue.
Well, this does not fix the issue, the context menu still pops up, but it makes the two keys at least distinguishable from each other again. Running 'evtest /dev/input/event0' on my system reports now for the FN-key: Event: time 1187854799.791070, type 4 (Misc), code 4 (ScanCode), value e3 Event: time 1187854799.791082, type 1 (Key), code 143 (WakeUp), value 1 for the Menu-key: Event: time 1187854899.303665, type 4 (Misc), code 4 (ScanCode), value dd Event: time 1187854899.303675, type 1 (Key), code 127 (Compose), value 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=302099
Christian Zoz
https://bugzilla.novell.com/show_bug.cgi?id=302099#c41
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c42
Holger Macht
https://bugzilla.novell.com/show_bug.cgi?id=302099#c43
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c44
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c45
--- Comment #45 from Magnus Boman
https://bugzilla.novell.com/show_bug.cgi?id=302099#c46
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=302099#c47
--- Comment #47 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c48
Jörg Hermsdorf
https://bugzilla.novell.com/show_bug.cgi?id=302099#c49
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c50
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=302099#c51
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=302099#c52
--- Comment #52 from Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=302099#c53
Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=302099#c54
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=302099#c55
--- Comment #55 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c56
Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=302099#c57
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c58
Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=302099#c59
--- Comment #59 from Stefan Dirsch
After changing symbols/pc and restarting X, xev now shows NoSymbol for Fn (Wake).
So Fn key has the same keycode on some Thinkpads as the Menu key on other Thinkpads? How should I fix this mess?
We may want to map it somewhere to an appropriate keysym (Wake), though.
This will break Menu key on T60 again (Bug #253397).
And we should also map the Power and Sleep keys now common on PC keyboard when we are at it.
(Hmm, now I see why it was mapped to Menu. Pre-60-series ThinkPads don't have the Compose/WinMenu key, and this having Fn pop up the menu could have been rather useful. Newer ThinkPads have the WinMenu key, and thus mapping Fn (Wake) to Menu is rather confusing.)
Good to know. And I thought that IBM uses another keycode for the Menu key on newer Thinkpads. -- 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=302099#c60
--- Comment #60 from Vojtech Pavlik
So Fn key has the same keycode on some Thinkpads as the Menu key on other Thinkpads? How should I fix this mess?
No, it doesn't. All [AGRZTX][2-4][0-2]* ThinkPads only have the Fn key. It, when held for more than two seconds or released without a combination key, will send the standard WakeUp scancode, which the kernel will happily pass on. All [RZTX]6[01]* Thinkpads additionally have all the Windows keys, including the Menu key. They use the standard pc105 keyboard scancodes and there is nothing unusual about them.
We may want to map it somewhere to an appropriate keysym (Wake), though.
This will break Menu key on T60 again (Bug #253397).
It won't. Bug #253397 is solved by removing the incorrect line from ibm.hk, which caused the Menu key (which the kernel calls Compose) to be reported as WakeUp to X. Your patch was a workaround for the previous bug. Now that the incorrect line will be gone, your patch isn't needed. -- 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=302099#c61
--- Comment #61 from Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c62
--- Comment #62 from Egbert Eich
(In reply to comment #59 from Stefan Dirsch)
So Fn key has the same keycode on some Thinkpads as the Menu key on other Thinkpads? How should I fix this mess?
No, it doesn't.
All [AGRZTX][2-4][0-2]* ThinkPads only have the Fn key. It, when held for more than two seconds or released without a combination key, will send the standard WakeUp scancode, which the kernel will happily pass on.
Is the latter one really such a great idea? This behavior may meet the expectation of the person who has implemented it but the average user may get rather confused if the Fn key generates a key event that he doesn't expect in a fashion which different from normal keyboard behavior. I expect that this 'feature' will be reported as a bug. It works around a deficiency like the horrid middle button klude we do for the mouse. But while live in X without a middle button is hard the lack of a menu button may be acceptable. -- 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=302099#c63
--- Comment #63 from Vojtech Pavlik
https://bugzilla.novell.com/show_bug.cgi?id=302099#c64
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c65
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099
Stefan Dirsch
https://bugzilla.novell.com/show_bug.cgi?id=302099#c66
Stefan Dirsch
yes, removing your patch fixes the problem. done.
-- 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=302099#c67
--- Comment #67 from Egbert Eich
Egbert,
the behavior (that Fn emits the WakeUp scancode) is what the hardware does. This is used by the BIOS to wake up from suspend to ram, for example. Simply tap Fn, and the machine wakes up.
Right.
Mapping it to Menu might have seemed useful, but it's really unexpected for users, so I agree with you that we shouldn't do it.
In my opinion, it should deliver the WakeUp scancode/keycode/keysym all the way through the system, because that's what the manufacturer of the machine intended the key to generate, and it's harmless, too.
Yes, I fully argree! -- 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