Page 1 of 1

Problem with keyboard layout [Porteus v1.1 x86_64]

Posted: 26 Jan 2012, 09:29
by Blaze
Hello everybody.

I have problem with keyboard layout (alt+shift does not work) in my Russian localization for Porteus v1.1 x86_64.

Download my Russian localization for Porteus v1.1 x86_64

Can you help me to fix it?

Thanks.

Re: Problem with keyboard layout [Porteus v1.1 x86_64]

Posted: 26 Jan 2012, 17:13
by Hamza

Code: Select all

setxkbmap ru

Re: Problem with keyboard layout [Porteus v1.1 x86_64]

Posted: 27 Jan 2012, 07:46
by Blaze
Hi Hamza.

Code: Select all

[Desktop Entry]
Type=Application
Name=~/.config/autostart/xkb.desktop
Comment=Keyboard Layout Switcher settings
Exec=setxkbmap -layout ru,us -option grp:alt_shift_toggle
OnlyShowIn=LXDE
It does not work for me.

Re: Problem with keyboard layout [Porteus v1.1 x86_64]

Posted: 27 Jan 2012, 08:24
by fanthom
@Blaze
this is a bug in 'kmap=' cheat implementation. please update 002/opt/porteus-scripts/paths with following code:

Code: Select all

KMAP=`egrep -o " kmap=[^ ]+" /proc/cmdline | cut -d= -f2`                                                                                   
[ "$KMAP" = "" ] || setxkbmap $KMAP -option "grp:alt_shift_toggle"
during boot time you will have to provide more than one (and less than four as setxkbmap supports only 3 maps) keyboard mappings (separated by comma) to be able to switch between them. example:
'kmap=ru,us' or 'kmap=pl,de,us'

@Ahau
please update chetcode description on your side.