Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155594 - app-emulation/e-uae USE flag for keystrokes
Summary: app-emulation/e-uae USE flag for keystrokes
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-18 08:43 UTC by Paul Bredbury
Modified: 2007-08-31 17:09 UTC (History)
1 user (show)

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


Attachments
e-uae-0.8.29_pre20061116.ebuild.patch (e-uae-0.8.29_pre20061116.ebuild.patch,1.18 KB, patch)
2006-11-18 08:44 UTC, Paul Bredbury
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Bredbury 2006-11-18 08:43:45 UTC
Hi, here is a patch to e-uae, to add 2 USE flags:

lctrl:  Use the left side of the keyboard, i.e. LCTRL instead of RCTRL with the arrow keys.

debug:  Uncomment the code line to show all keystrokes.

This is useful primarily because there seems to be a bug in xorg or e-uae whereby right-Ctrl has the keycode FF when both pressed and released (and so doesn't get recognized), so I simply use left-Ctrl instead (which is more comfortable anyway).
Comment 1 Paul Bredbury 2006-11-18 08:44:18 UTC
Created attachment 102283 [details, diff]
e-uae-0.8.29_pre20061116.ebuild.patch
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2006-11-19 11:15:28 UTC
Thank you for report Paul.

>lctrl:  Use the left side of the keyboard, i.e. LCTRL instead of RCTRL with the
> arrow keys.

> This is useful primarily because there seems to be a bug in xorg or e-uae
> whereby right-Ctrl has the keycode FF when both pressed and released (and so
> doesn't get recognized), so I simply use left-Ctrl instead.

If you consider this is a bug why don't you report upstream? Of course, if you wish I can do that, but currently I do not understand the problem. Rctrl on my keyboard has keycode 109. Can you describe the problem in more details, please?


> debug:  Uncomment the code line to show all keystrokes.

And here I suppose it's much more sane to add --with-debug as configure option and use #ifdef DEBUG in source code. If you create such patch, I can forward it upstream also. In other situation it's very possible that this line disappears from sources in next CVS snapshot/release and thus we have to modify ebuild another time. And that is not a good idea.

BTW. A generic thought on bug filling process: You do not need to add URL if that URL does not describe the problem. ;)
Comment 3 Paul Bredbury 2006-11-21 05:56:59 UTC
(In reply to comment #2)
> there seems to be a bug in xorg or e-uae whereby right-Ctrl has the keycode FF when both pressed and released

I suspect the bug is most likely in xorg, similar to the oft-reported (on the Gentoo forums) bug of Alt-Ctrl-F1 sometimes switching to the console, and sometimes being ignored.

It's the right-Ctrl key that's the problem (a key which I only use in e-uae). The enclosed patch will show the keycode that e-uae receives. All the keys other than right-Ctrl work as expected, but right-Ctrl has the code "FF" (hexadecimal) when pressed, and also "FF" when released. Both these codes are wrong, and are not what e-uae expects, hence the keypress is ignored.

I'm stating this merely as background to why I think the patch may be useful to others with a buggy xorg, or want to remap their e-uae keys. Remapping the e-uae keys is only possible AFAIK by editing the source code (excluding the kbd2/kbd3 layouts).

> And here I suppose it's much more sane to add --with-debug as configure option and use #ifdef DEBUG in source code.

This is true. It is a bit of a hack. I'll submit some cleaned patches upstream, and report what happens...
Comment 4 Peter Volkov (RETIRED) gentoo-dev 2007-08-31 07:55:10 UTC
Paul, so is there any progress here? :)
Comment 5 Paul Bredbury 2007-08-31 16:20:52 UTC
No progress, sorry. Feel free to close this bug as REPORTER-LAZY. 
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2007-08-31 17:09:18 UTC
He-he. Then WONTFIX (The problem described is a bug which will never be fixed) seems to be best here. Actually upstream told on the mailing list that X keys handling will be improved in future, so I hope one day this problem disappears :)