Page 1 of 1

Adding a 2nd keyboard layout - SOLVED!

Posted: Thu 22 Nov 2012, 10:58
by wimpy
I've added the Spanish Keyboard via the mouse/keyboard wizard in setup Via setup I've also added the scroll lock light as a keyboard indicator and a switch toggle using the Right Alt key.
The only snag is that pressing the Right Alt key toggles the 2nd keyboard but untoggles as soon as it is released. This make typing on the 2nd keyboard somewhat difficult
This is my xorg. conf keyboard section

Code: Select all

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "XkbRules" "xorg"
	Option      "XkbModel" "pc102"
	Option      "XkbLayout" "gb,es" #xkeymap0
	Option 		"XkbOptions"   "compose:menu,grp_led:scroll,grp:toggle"
EndSection
I would add that I have not manually altered the conf file.
Any help would be greatly appreciated.

Posted: Thu 22 Nov 2012, 12:55
by darkcity
I'm not sure if you mean a second physical keyboard, or a second keyboard layout.

If its the later I use fbxkb, which toggles via flag on the panel bar.

http://puppylinux.org/wikka/fbxkb

; -)

Posted: Thu 22 Nov 2012, 13:33
by wimpy
Hi, darkcity
Thanks for the reply. I've changed the thread topic to "Adding a 2nd keyboard layout" after your post.
fbxkb is super. I was hoping to get rid of it since I had the Scroll Lock light as an indicator. I'm keeping it running until I can sort out the so-called keyboard toggling.
EDIT For some reason the xorg.conf seemed to have the wrong setting for the toggle. I went in and re-ran the ketboard/mouse setup. Even though it said I was on Right Alt as the toggle I chose that again and saved. This time xorg.conf had the right phrase (grp:toggle). Now hitting the Right Alt key will change to the 2nd keyboard permanently, since hitting it again has no effect, so I'll still need to use fbxkb to switch back. Nearly there, :)

Posted: Thu 22 Nov 2012, 17:19
by Jim1938
Hi Wimpy,

I think we are working on the same issue,
just different languages and different Pups.

I hope you get your answer and if so
please post it.

see my post "Duel Languages"

Jim1938

Posted: Thu 22 Nov 2012, 18:03
by wimpy
I went in and changed the group toggle key to Alt Shift (elsewhere I read that the Shift has to be pressed first). This time the toggle keys do a real toggle and will toggle to the 2nd keyboard and back to the first when required. YAY!. I'll mark this thread as solved.

Posted: Fri 23 Nov 2012, 14:33
by darkcity
nice work, link thread to wiki ; -)

http://puppylinux.org/wikka/InputDevices