[Localization] Switching between keyboard layouts

Coordination of teachers and educational content for the XO.

[Localization] Switching between keyboard layouts

Postby Alexander Todorov » Thu Jan 10, 2008 4:24 am

Hello list,
I've been playing with an emulated XO to find out how to enable
Bulgarian keyboard layout.
According to:
http://wiki.laptop.org/go/Customizing_N ... s#Keyboard

the /etc/sysconfig/keyboard file settings work but I don't know which
key to use to switch between layouts.

and according to:
http://wiki.laptop.org/go/Keyboard_layouts#Greek_el

setxkbmap -layout "bg,us" -option "grp:alt_shift_toggle" -variant
"phonetic," also does the trick but it's not persistent. After a reboot
the settings are gone.

Can someone tell me which keys do I use to switch layouts if using the
/etc/sysconfig/keyboard file or how do I make setxkbmap persistent (edit
xorg.conf ???)

Thanks,
Alexander.
_______________________________________________
Localization mailing list
Localization@lists.laptop.org
http://lists.laptop.org/listinfo/localization
Alexander Todorov
 

[Localization] Switching between keyboard layouts

Postby Sayamindu Dasgupta » Thu Jan 10, 2008 5:17 am

Hello Alexander,
AFAIK, the key used to switch layouts is a special key, found only on
the XO keyboard[1].

For the emulation images, the method outlined in
http://gentoo-wiki.com/HOWTO_X11_Keyboard _may_ work (you will have to
use Alt-Shift to switch between layouts.

Let us if this works - we can put this information in the wiki in that case.
Cheers,
Sayamindu




[1] http://www.laptop.org/en/laptop/start/keyboard.shtml (the key
sandwiched between the arrow keys and the enter key)

On Jan 10, 2008 1:54 PM, Alexander Todorov <atodorov@redhat.com> wrote:
Hello list,
I've been playing with an emulated XO to find out how to enable
Bulgarian keyboard layout.
According to:
http://wiki.laptop.org/go/Customizing_N ... s#Keyboard

the /etc/sysconfig/keyboard file settings work but I don't know which
key to use to switch between layouts.

and according to:
http://wiki.laptop.org/go/Keyboard_layouts#Greek_el

setxkbmap -layout "bg,us" -option "grp:alt_shift_toggle" -variant
"phonetic," also does the trick but it's not persistent. After a reboot
the settings are gone.

Can someone tell me which keys do I use to switch layouts if using the
/etc/sysconfig/keyboard file or how do I make setxkbmap persistent (edit
xorg.conf ???)

Thanks,
Alexander.
_______________________________________________
Localization mailing list
Localization@lists.laptop.org
http://lists.laptop.org/listinfo/localization




--
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]
_______________________________________________
Localization mailing list
Localization@lists.laptop.org
http://lists.laptop.org/listinfo/localization
Sayamindu Dasgupta
 

[Localization] Switching between keyboard layouts

Postby walter » Thu Jan 10, 2008 12:44 pm

As Sayamindu suggests, we simply map the standard X Window System methods for switching between keyboard symbol tables. What we have done to make it easier is to assign a key to ISO_Next_Group, ISO_Prev_Group to the "olpc" or "olpc2" sections we add the the symbol files. This is one of the reasons why you need to specify the olpc option for your keyboard layout. We typically assign that mapping to key <I219>, but it could be assigned to any key.

-walter

On Jan 10, 2008 4:17 AM, Sayamindu Dasgupta <sayamindu@gmail.com (sayamindu@gmail.com)> wrote:
Hello Alexander,
AFAIK, the key used to switch layouts is a special key, found only on
the XO keyboard[1].

For the emulation images, the method outlined in
http://gentoo-wiki.com/HOWTO_X11_Keyboard _may_ work (you will have to
use Alt-Shift to switch between layouts.

Let us if this works - we can put this information in the wiki in that case.
Cheers,
Sayamindu




[1] http://www.laptop.org/en/laptop/start/keyboard.shtml (the key
sandwiched between the arrow keys and the enter key)


On Jan 10, 2008 1:54 PM, Alexander Todorov <atodorov@redhat.com (atodorov@redhat.com)> wrote:
Hello list,
I've been playing with an emulated XO to find out how to enable
Bulgarian keyboard layout.
According to:
http://wiki.laptop.org/go/Customizing_NAND_images#Keyboard

the /etc/sysconfig/keyboard file settings work but I don't know which
key to use to switch between layouts.

and according to:
http://wiki.laptop.org/go/Keyboard_layouts#Greek_el

setxkbmap -layout "bg,us" -option "grp:alt_shift_toggle" -variant
"phonetic," also does the trick but it's not persistent. After a reboot
the settings are gone.

Can someone tell me which keys do I use to switch layouts if using the
/etc/sysconfig/keyboard file or how do I make setxkbmap persistent (edit
xorg.conf ???)

Thanks,
Alexander.
_______________________________________________
Localization mailing list
Localization@lists.laptop.org (Localization@lists.laptop.org)
http://lists.laptop.org/listinfo/localization






--
Sayamindu Dasgupta
[http://sayamindu.randomink.org/ramblings]

_______________________________________________
Localization mailing list
Localization@lists.laptop.org (Localization@lists.laptop.org)
http://lists.laptop.org/listinfo/localization





--
Walter Bender
One Laptop per Child
http://laptop.org
walter
Support Team
 
Posts: 18
Joined: Wed Dec 19, 2007 10:55 pm

Re: [Localization] Switching between keyboard layouts

Postby skyc » Tue Feb 17, 2009 3:08 am

Did anyone figure out how to get switching to persist?

I can get it to work temporarily by entering
setxkbmap -layout "us,gr" -option "grp:alt_shift_toggle"

But my attempts to edit /etc/sysconfig/keyboard have led to no results.

Currently my /etc/sysconfig/keyboard reads:
KEYTABLE="us,gr"
XKB_MODEL="olpc,olpc2"
XKB_LAYOUT="us,gr"
XKB_VARIANT="olpc,olpc2"
XKB_OPTIONS="grp:alt_shift_toggle"

(I've fiddled around with various parts of it, but nothing makes a difference: no matter how many times I press alt_shift it remains in US layout.)
skyc
 
Posts: 2
Joined: Sun Jan 25, 2009 10:47 am

Re: [Localization] Switching between keyboard layouts

Postby johannesponader » Sat Apr 17, 2010 5:48 pm

To change the keyboard layout when you are using an Emulation do:

  1. Enter Console (Alt-Ctrl-F1)
  2. Login as root (just hit Return, no password needed)
  3. type
    Code: Select all
    loadkeys xy
    where xy is your keyboard layout shortcut, e.g. "de" for german layout.
    (be careful: as you havn't changed your keyboard layout when you type the command, you might have to hit the key "z" to get an "y" and/or the key "q" to get an "a".)

  4. Edit /etc/sysconfig/keyboard (this changes the keyboard layout within SUGAR)
    Code: Select all
    vi /etc/sysconfig/keyboard
    "a" starts edit-mode (insert after cursor)
    change "us" to your keycode two times.
    Leave edit-mode (ESCAPE)
    type ":wq" and hit Enter to write the changes and quit the editor
    If you produced a chaos and want to quit without writing the changes, type ":q!"

  5. Edit /etc/rc.d/rc.local (this changes the keyboard layout permanently for the console)
    Code: Select all
    vi /etc/rc.d/rc.local
    "a" starts edit-mode (insert after cursor)
    move the cursor to the end of the file, hit RETURN to create a new line.
    type "loadkeys de" (or whatever keycode you want)
    Leave edit-mode (ESCAPE)
    type ":wq" and hit Enter to write the changes and quit the editor
    If you produced a chaos and want to quit without writing the changes, type ":q!"

If you don't know the mapname/code for your keyboard layout, go to /lib/kdb/keymaps, switch to the subdirectory that covers your architecture (eg "i386" for Intel-platforms), and then enter the subdirectory which covers your keyboard type (look at the first six letters on the upper left of your keyboard to distinguish the "azerty", "qwerty" or "qwertz" layout type). In the subdirectory, you find some keymaps for your keyboard layout - find out which one fits your keyboard exactly. The keymap code is the filename without "map.gz".

Valid examples (among others) are:
"by", "cf", "cz", "dk", "emacs", "es", "et", "fi", "gr", "hu101", "il", "is-latin1", "it", "jp106", "ko", la-latin1", "lt", "nk", "nl", "no", "pc110", "pl", "pt", "ro", "ru", "se-latin1", "sk-qwerty", "sr-latin", "sv-latin", "trq", "ua", "uk", "us" (QWERTY)
"cz-us-qwertz", "de", "croat", "fr", "fr_CH", "sg", "sk-qwertz", "slovene", "hu" (QWERTZ)
"azerty", "be-latin1", "fr", "wangbe" (AZERTY)

If those examples don't fit your keyboard layout exactly, please have a look into the directories for yourself to look for alternatives or define your own keymap (see http://wiki.linuxquestions.org/wiki/Con ... eys_Method for instructions)
johannesponader
 
Posts: 1
Joined: Sat Apr 17, 2010 4:38 pm


Return to Teachers, Students & Educatiors

Who is online

Users browsing this forum: No registered users and 1 guest