Page 1 of 1

Mageia 4 -> 5 migration polish keyboard problem

PostPosted: Jun 21st, '15, 17:39
by pawko
Hi guys,
I had a little problem with my keyboard encoding configuration after upgrade Mageia 4 to 5.
In Mageia 4 everything worked fine, but after migration to version 5 I had a problem with polish characters (ą, ę, ń, ó etc.).

I checked my system language and localization settings but everything looks normal. Then i checked my localectl status and saw that:

System Locale: LANG=pl_PL
LANGUAGE=pl_PL:pl
VC Keymap: n/a
X11 Layout: n/a

so... after that I just set my keymap: "set-keymap --no-convert pl-latin2", and layout: "setxkbmap -layout pl".
It solved the problem but... If anyone else has this issue then maybe need to report a bug?

Re: Mageia 4 -> 5 migration polish keyboard problem

PostPosted: Jun 21st, '15, 17:52
by doktor5000
Can you show the contents of /etc/sysconfig/keyboard please?
And please check if you have either
/etc/locale.conf
/etc/vconsole.conf
and something in /etc/X11/xorg.conf.d/ and please post the contents of those here.

Re: Mageia 4 -> 5 migration polish keyboard problem

PostPosted: Jun 22nd, '15, 20:40
by pawko
Sorry for one day delay:
/etc/sysconfig/keyboard:
XkbModel=pc105
KEYTABLE=pl
XkbOptions=compose:rwin
XkbLayout=pl
KEYBOARD=pl

/etc/locale.conf:

LANGUAGE=pl_PL:pl
LANG=pl_PL

/etc/vconsole.conf:
FONT=lat2-16
FONT_UNIMAP=8859-2
KEYMAP=pl-latin2

/etc/X11/xorg.conf.d/
: empty dir

Re: Mageia 4 -> 5 migration polish keyboard problem

PostPosted: Jun 22nd, '15, 20:58
by doktor5000
To understand it, this is after your fix described in the first post? And is it currently permanently fixed, or do you need to run this fix for every session?

Re: Mageia 4 -> 5 migration polish keyboard problem

PostPosted: Jun 22nd, '15, 23:16
by pawko
Aww... I did not notice that because I just start my computer and paste here content of this files.

But it is true, I have to type this "setxkbmap -layout pl" for every session. The strange is that all of this files looks exactly the same before and after I type this command. I am new with linux but if I good understand this:
"setxkbmap -layout" command should be connected with XkbLayout param in /etc/sysconfig/keyboard file?

Re: Mageia 4 -> 5 migration polish keyboard problem

PostPosted: Jun 23rd, '15, 20:11
by doktor5000
Actually the X server should do this for you. Can you show the output of
Code: Select all
grep -i xkb /var/log/Xorg.0.log | sort -u


And please check if you have some setting related to keyboard in /etc/X11/xorg.conf

Does it help in any way if you run keyboarddrake via MCC http://doc.mageia.org/mcc/5/en/content/ ... drake.html
and change the keyboard layout to something else, and then back to your current polish latin2 layout?

Re: Mageia 4 -> 5 migration polish keyboard problem

PostPosted: Jun 24th, '15, 00:46
by pawko
Here is an output from Xorg.0.log
Code: Select all

[    11.306] (**) Option "xkb_layout" "pl"
[    11.306] (**) Option "xkb_model" "pc105"
[    11.306] (**) Option "xkb_options" "compose:rwin"
[    11.306] (**) Option "xkb_rules" "evdev"
[    11.354] (**) Option "xkb_layout" "pl"
[    11.354] (**) Option "xkb_model" "pc105"
[    11.354] (**) Option "xkb_options" "compose:rwin"
[    11.354] (**) Option "xkb_rules" "evdev"
[    11.358] (**) Option "xkb_layout" "pl"
[    11.358] (**) Option "xkb_model" "pc105"
[    11.358] (**) Option "xkb_options" "compose:rwin"
[    11.358] (**) Option "xkb_rules" "evdev"
[    11.362] (**) Option "xkb_layout" "pl"
[    11.362] (**) Option "xkb_model" "pc105"
[    11.362] (**) Option "xkb_options" "compose:rwin"
[    11.362] (**) Option "xkb_rules" "evdev"
[    11.416] (**) Option "xkb_layout" "pl"
[    11.416] (**) Option "xkb_model" "pc105"
[    11.416] (**) Option "xkb_options" "compose:rwin"
[    11.416] (**) Option "xkb_rules" "evdev"
[    11.419] (**) Option "xkb_layout" "pl"
[    11.419] (**) Option "xkb_model" "pc105"
[    11.419] (**) Option "xkb_options" "compose:rwin"
[    11.419] (**) Option "xkb_rules" "evdev"


I didn/t find anything connected with keyboard in Xorg.conf. There is only info about ServerFlags, Monitor and GraphicCard.

Changing layout using keyboarddrake did not help me too :(.

I have another strange problem. I can't open my console window normal way. I'm using Gnome and when I try to click "terminal" then mouse changes to carousel icon, terminal appears in "gnome task bar" and... disappears. I could only open my console window using Mageia Control Center -> System -> Open console as administrator.

I know this probably isn't connected with keyboard problem but don't makes my life easier.

Re: Mageia 4 -> 5 migration polish keyboard problem

PostPosted: Jun 24th, '15, 21:12
by doktor5000
IMHO the issue is that there is some confusion between the settings in /etc/sysconfig/keyboard which has normal pl layout and /etc/vconsole.conf which has your expected pl-latin2 layout. But re-reading your first post also confuses me. You write that you select pl-latin2 layout via localectl set-keymap and via loadkeys you load the normal pl layout ... now which is the one you want? Or do you want a different layout under X compared to console keyboard layout?

Can you also try the following please
Code: Select all
cp /etc/sysconfig/keyboard /etc/sysconfig/keyboard.old && rm -f /etc/sysconfig/keyboard
cp /etc/vconsole.conf /etc/vconsole.conf.old && rm -f /etc/vconsole.conf

Then run keyboarddrake again, select your layout, save and reboot an show the two newly created files here.

Re: Mageia 4 -> 5 migration polish keyboard problem

PostPosted: Jun 24th, '15, 21:23
by doktor5000
FWIW and for a pretty similar issue with polish layout, please see http://unix.stackexchange.com/questions ... yout-to-pl
Especially http://unix.stackexchange.com/questions ... 483_172401 - please provide one test case what you enter, what you expect to get and what you get.

Re: Mageia 4 -> 5 migration polish keyboard problem

PostPosted: Jun 27th, '15, 00:34
by pawko
Hi, I'm changing my apartment so I'm in the middle of relocation and did not check forum for few days but... Before you write this last two posts I was 'fighting' with keyboarddrake little more and now everything is ok. I added english keyboard configuration, and now i have this language switch on my bar.

Image

But polish is set as default and works fine permanently.

I had to do something wrong before. As you said above it could be some mixed up between pl and pl-latin2. I'm new with linux so at this moment I make a lot of basic mistakes.

Sorry for bothering you, and thanks for your help.

Re: Mageia 4 -> 5 migration polish keyboard problem

PostPosted: Jun 27th, '15, 11:59
by doktor5000
You're welcome :)
Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks