• You are not logged in.

    Grub2 default Keytable=colemak? Fedora 16.

    • Started by Spinifex
    • 3 Replies:
    • Reputation: 0
    • Registered: 29-Dec-2010
    • Posts: 30

    Does anyone know if I can specify Colemak to be the default keytable (keyboard layout) for Grub 2.  ie: so that no matter what happens, whether I get to log in, or I get dropped at a shell due to errors, the keyboard layout will always be Colemak?

    I want to know if I can just change it in my kernel boot configuration in grub2 when booting a Fedora 16 installation.

    I could just experiment but my system is 'essential' as more than one person uses it so I don't have the luxury of hosing it just to experiment for keyboard layout support.

    This is badly worded.  But I want to remove the "Keytable=us" from my boot parameters in Grub2 and replace it with "Keytable=colemak" if that is at all possible.

    I'm not even sure if grub2 has colemak keyboard layout support built into it or if it is just virtualised from the Gnome 3 desktop once you log on.

    Any tips will be much appreciated.

    Offline
    • 0
    • Reputation: 0
    • Registered: 04-Nov-2011
    • Posts: 90

    @Spinifex

    I think  Linux kernel only provides code pages for different languages.
    Setting keyboard layout is done by user space programs above the kernel.

    In Debian Squeeze, the user can switch back and forth Qwerty, Dvorak, Colemak with 'setxkbmap' command under Xorg environment. 

    'setxkbmap -print' displays default keyboard layout, which is Colemak in my Linux system.

    xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)"    };
        xkb_types     { include "complete"    };
        xkb_compat    { include "complete"    };
        xkb_symbols   { include "pc+us(colemak)+inet(evdev)+terminate(ctrl_alt_bksp)"    };
        xkb_geometry  { include "pc(pc104)"    };
    };

    'setxkbmap us' change it to Qwerty

    $ setxkbmap us
    $ setxkbmap -print
    xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)"    };
        xkb_types     { include "complete"    };
        xkb_compat    { include "complete"    };
        xkb_symbols   { include "pc+us+inet(evdev)+terminate(ctrl_alt_bksp)"    };
        xkb_geometry  { include "pc(pc104)"    };
    };

    'setxkbmap dvorak' to change to Dvorak.

    'setxkbmap us -variant colemak' switches back to Colemak

    Check your distribution's Xorg about keyboard layout feature.  I think it will probably supports it unless Xorg is an old version.

    Last edited by penguin (25-Nov-2011 08:56:37)

    Debian GNU/Linux Jessie NitroType TypeTest

    Offline
    • 0
    • Reputation: 0
    • Registered: 29-Dec-2010
    • Posts: 30

    Hi Penguin.

    I've been looking at man xorg.  Intimidating stuff!

    I have a similar thread over at Fedora Forum http://forums.fedoraforum.org/showthread.php?p=1534169 and was pointed in the direction of (this is for Fedora) /etc/sysconfig and noticed that my keyboard entry is:

    root@study sysconfig]# cat keyboard
    KEYTABLE="us"
    MODEL="pc105+inet"
    LAYOUT="us"
    [root@study sysconfig]#

    Currently stexkbmap -print gives me:

    [spinifex@study ~]$ setxkbmap -print
    xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)"    };
        xkb_types     { include "complete"    };
        xkb_compat    { include "complete+ledscroll(group_lock)"    };
        xkb_symbols   { include "pc+us(colemak)+us:2+inet(evdev)+altwin(meta_alt)+group(sclk_toggle)+capslock(backspace)+shift(both_capslock)"    };
        xkb_geometry  { include "pc(pc104)"    };
    };
    [spinifex@study ~]$

    What I don't understand is the formal that KEYTABLE="us" should be in for it to be accepted as a correct boot parameter. 

    I think I'm in over my head. I really appreciate your help.

    Offline
    • 0
    • dwg
    • New member
    • Reputation: 0
    • Registered: 07-Dec-2011
    • Posts: 1

    I recently encountered this problem while installing Fedora 16.

    The solution is here: https://docs.fedoraproject.org/en-US/Fe … onfig-kybd

    Since the colemak keymap file is /lib/kbd/keymaps/i386/colemak/en-latin9.map.gz, you must set KEYTABLE to en-latin9.

    This also works for the grub.conf kernel boot parameter, although so far that has only applied to entering the LUKS password for encrypted volumes on boot. Modifying the /etc/sysconfig/keyboard file takes care of the rest.

    Offline
    • 0