Page 1 of 2

Swapping ALT and AMIGA keys doesn't work

Posted: Sun Apr 23, 2017 11:58 pm
by IamSONIC
Hi,

i recently bought a Ducky Shine mechanical keyboard and everything works fine exept one thing. The swapping of the ALT and AMIGA keys doesn't work. I tried both ways:

a) SYS:Prefs/Input -> checked the option to swap the keys (also tried it without checking the option)
b) Added UBoot variable keymap_swapaltamiga with value "on"

The key mapping of the ALT and AMIGA keys remains.

Any help?
Thanks

Re: Swapping ALT and AMIGA keys doesn't work

Posted: Mon Apr 24, 2017 9:12 pm
by nbache
Have you tried "keymap_swapaltamiga=off"? The newer machines default to "on", because they for some reason think everybody will buy those AmigaOne keyboards which need the swapping in order to work like a classical Amiga keyboard. So with other keyboards (pc types etc) you need to explicitly turn the swap off.

Best regards,

Niels

Re: Swapping ALT and AMIGA keys doesn't work

Posted: Mon Apr 24, 2017 11:48 pm
by IamSONIC
No, haven't tried setting keymap_swapaltamiga to "off" before. I gave it a try but it doesn't work. Also in combination with the Options in SYS:Prefs/Input (tried on and off) it doesn't work.

Regards
Alex

Re: Swapping ALT and AMIGA keys doesn't work

Posted: Tue Apr 25, 2017 6:16 am
by tonyw
You DID reboot after changing the NV setting, didn't you?

Type "nvgetvar" in a shell to get a proper list of the settings and check whether they have actually changed.

Re: Swapping ALT and AMIGA keys doesn't work

Posted: Tue Apr 25, 2017 9:39 pm
by IamSONIC
@tonyw

yes i performed a reboot and even tried it with a cold boot after setting the environment variable. On X5000 (currently?) you can set UBoot vars only within the UBoot Shell. There is no NVSetVar AmigaOS command like on other Amiga Platforms (SAM, ...).

Before i connected the mechanical Keyboard i had a common PC Keyboard connected to the AmigaONE X5000 with that keyboard ALT and AMIGA switching worked fine by enabling swap keys in SYS:Prefs/Input settings.

Re: Swapping ALT and AMIGA keys doesn't work

Posted: Wed Apr 26, 2017 10:25 pm
by nbache
In that case, it must be the keyboard which is somehow "weird". Maybe the Alt/Win keys are not emitting the keycodes expected by the keymap, or maybe one or both keys are wired to some internal logic in the keyboard which performs "special magic" on Windows machines, but is not recognized correctly under other systems.

I believe you can examine the actual keycodes emitted from each key with the help of Deniil's Allkeys program.

I'm not familiar with the technical details about how the swap is really working, so my assumptions may be totally wrong, of course.

Best regards,

Niels

Re: Swapping ALT and AMIGA keys doesn't work

Posted: Fri Apr 28, 2017 12:28 am
by IamSONIC
@nbache

Yes you're right. This "Ducky Shine 6" Keyboard must be somehow special... Because i configured now the Allkeys Utility and it still doesn't work :(
The codes the keyboard reports
The codes the keyboard reports
My attempt to swap ˜˜the left AMIGA and ALT keys
My attempt to swap ˜˜the left AMIGA and ALT keys
Another interesting thing is, above the numeric keypad (so in the upper right corner of the keyboard) there are 4 "Multimedia" Keys, when i hit them Allkeys reports nothing. But this information only as a side note. Any idea about my main problem with the ALT and AMIGA key swapping?

Thank you very much for your help

Kind regards
Alex

Re: Swapping ALT and AMIGA keys doesn't work

Posted: Fri Apr 28, 2017 8:55 pm
by broadblues
So if you suspect there is something "special" about this particular keyboard, have you tried a more generic one?

Re: Swapping ALT and AMIGA keys doesn't work

Posted: Mon May 01, 2017 1:18 pm
by TSK
@IamSONIC

I have the same problem on A1-SE and a PS2 keyboard. Key swapping works with old keymap.libary.kmod v53.7 and a UBoot variable but not with the input Prefs setting and keymap.libary.kmod v53.9. (The key swap checkbox is disabled in input prefs with the v53.7 library.) If I remember the UBoot variable support was removed in newer versions of the keymap.libary.kmod so it won't work. Do you have access to the old library v53.7 ? I have made a bug report long time ago. I don't have this problem on X1000 and a Ducky Shine 3 USB keyboard. It's interesting that the problem exists with some keyboards only. I can't remember if I've been using the same Keytronic Wings PS2 keyboard all the time with my SE or if I swapped keyboards around the time AOS and the keymap.library were updated.

Do you have multiple keyboards you could test ?

I have reset broken on the SE and PS2 is not hot swappable and I don't want to power on and off the machine too frequently. It will take time for me to make any tests. I hope you could make some more testing !

Re: Swapping ALT and AMIGA keys doesn't work

Posted: Mon May 01, 2017 6:24 pm
by IamSONIC
broadblues wrote:So if you suspect there is something "special" about this particular keyboard, have you tried a more generic one?
Yes! As i wrote this problem only exists with the new Keyboard. With my old one i don't experience this kind of problem.