Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 696204 - genkernel-4.0.0_beta17's colemak, bepo keymaps are actually qwerty
Summary: genkernel-4.0.0_beta17's colemak, bepo keymaps are actually qwerty
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2019-10-04 11:49 UTC by James Wah
Modified: 2019-10-15 12:46 UTC (History)
1 user (show)

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


Attachments
colemak binary map (colemak.map,2.76 KB, application/octet-stream)
2019-10-12 05:01 UTC, James Wah
Details
correct bepo.map (bepo.map,2.76 KB, application/octet-stream)
2019-10-12 05:02 UTC, James Wah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Wah 2019-10-04 11:49:40 UTC
The recently added bepo and colemak keymaps can be built in to the initramfs, but seem to do nothing when loaded.

On examination, both files genkernel/defaults/keymaps/{bepo,colemak}.map are identical.

Reproducible: Always

Steps to Reproduce:
1. Select bepo or colemak as keymap
2. Build and install initramfs
3. Reboot
Actual Results:  
Receive message saying eg. Colemak keymap loaded.

On typing, eg. in the initramfs shell or entering ZFS passphrase, QWERTY mapping is in effect.

Expected Results:  
Colemak keymap should be in effect.
Comment 1 Larry the Git Cow gentoo-dev 2019-10-04 12:46:28 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=8376cbfaf4c091427853d81ec0f956d9a285148b

commit 8376cbfaf4c091427853d81ec0f956d9a285148b
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-10-04 12:45:22 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-10-04 12:45:22 +0000

    keymaps: Really add bepo and colemak keymap
    
    Fixes a5ea613 ("keymaps: Add bepo and colemak keymap")
    Bug: https://bugs.gentoo.org/696204
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 defaults/keymaps/bepo.map    | Bin 2823 -> 2823 bytes
 defaults/keymaps/colemak.map | Bin 2823 -> 3642 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-04 12:48:30 UTC
Thanks, should be in beta19.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-07 22:06:13 UTC
Hopefully released with genkernel-4.0.0_beta19! Please give it a try...
Comment 4 James Wah 2019-10-11 05:28:54 UTC
Thanks for the prompt change! Apologies for the delay in testing.

Unfortunately the colemak map did not quite make it in to the tree; the committed file contains busybox help text and so loadkmap barfs.

Also, the bepo.map still seems to implement qwerty? hexdump suggests, and testing in the initrd seems to confirm this.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-11 14:05:20 UTC
You are right, sorry: I see it in my bash history. I used

> busybox < en-latin9.map > colmark.map

instead of

> busybox dumpkmap < en-latin9.map > colmark.map

Regarding bepo: I see nothing wrong here, source is coming from latest sys-apps/kbd package:

cp /usr/share/keymaps/i386/bepo/fr-bepo-latin9.map.gz .
gzip -d fr-bepo-latin9.map.gz
busbox dumpkmap < fr-bepo-latin9.map > bepo.map
Comment 6 James Wah 2019-10-11 23:14:35 UTC
Aha, I think I see the issue (after getting distracted by some other problem with sys-apps/kbd).

dumpkeys reads from the console's loaded keymap - it's not smart enough to parse the (complicated) kbd map files.

So it needs:

> sudo loadkeys /usr/share/keymaps/colemak/en-latin9.map
> busybox dumpkmap > colemak.map

Switching your keymap back can be a fun game... except I ran into a problem where loadkeys failed when called a second time. (If that happens for you too I'll file a kbd bug.)

Thanks again!
Comment 7 James Wah 2019-10-12 05:01:35 UTC
Created attachment 592552 [details]
colemak binary map
Comment 8 James Wah 2019-10-12 05:02:28 UTC
Created attachment 592554 [details]
correct bepo.map

I tried reproducing my loadkeys issue, couldn't, and since I was there, retrieved the maps for you
Comment 9 Larry the Git Cow gentoo-dev 2019-10-13 16:00:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=0a228ed66f8bab1038e55ba9a25ee40a95ca0622

commit 0a228ed66f8bab1038e55ba9a25ee40a95ca0622
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-10-13 14:40:04 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-10-13 14:40:04 +0000

    keymaps: regenerate bepo and colemak keymap
    
    Used command:
    
      $ loadkeys /usr/share/keymaps/colemak/en-latin9.map
      $ busybox dumpkmap > colemak.map
    
    Fixes a5ea613 ("keymaps: Add bepo and colemak keymap")
    Bug: https://bugs.gentoo.org/696204
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 defaults/keymaps/bepo.map    | Bin 2823 -> 2823 bytes
 defaults/keymaps/colemak.map | Bin 3642 -> 2823 bytes
 2 files changed, 0 insertions(+), 0 deletions(-)
Comment 10 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-14 15:08:08 UTC
Released with v4.0.0_beta20! I didn't use your attached files, I followed your guide and created files on my own. Would be nice if you tell us if this now working for you as expected.
Comment 11 James Wah 2019-10-15 03:22:57 UTC
Looks great to me! Thanks for fixing this, and thank you for adding them in the first instance, as well.
Comment 12 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-15 12:46:05 UTC
Thank you for your assistance and testing!