Keyboard layout switcher is unrealible

The standard panel of LXDE - http://wiki.lxde.org/en/LXPanel
bmarkus
Posts: 33
Joined: Tue Sep 08, 2009 6:23 pm

Keyboard layout switcher is unrealible

Post by bmarkus »

Using lxpanel 0.5.5 Keyboard Layout Switcher plugin is unrealible. I have four layouts defined in xorg.conf:
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbLayout" "us,de,fr,hu"
Option "XkbModel" "pc105"
EndSection
When plugin is added to the panel in few cases randomly works properly but in most of the time displays "UNKNOWN" and doesn't work. When system restarted with a plugin it always shows "UNKNOWN",

Defining only one layout result is the same, randomly display selected layout or "UNKNOWN".

Any idea?

P.S. It is on Tiny Core Linux 2.10
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Keyboard layout switcher is unrealible

Post by Marty Jack »

This commit which is post 0.5.5 could very well solve your problem.

http://lxde.git.sourceforge.net/git/git ... 8a02b7c04b
bmarkus
Posts: 33
Joined: Tue Sep 08, 2009 6:23 pm

Re: Keyboard layout switcher is unrealible

Post by bmarkus »

Marty, thanks. Unfortunately patched lxpanel behaves the same way :(
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Keyboard layout switcher is unrealible

Post by Marty Jack »

In this forum post is a program I would like to have you run and post the output. We'll get to the bottom of this yet.

http://forum.lxde.org/viewtopic.php?f=21&t=1397
bmarkus
Posts: 33
Joined: Tue Sep 08, 2009 6:23 pm

Re: Keyboard layout switcher is unrealible

Post by bmarkus »

Marty Jack wrote:In this forum post is a program I would like to have you run and post the output. We'll get to the bottom of this yet.

http://forum.lxde.org/viewtopic.php?f=21&t=1397
Sorry but do not understand your post :(
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Keyboard layout switcher is unrealible

Post by Marty Jack »

The second post down in that topic has a little program that dumps out what the X server says your Xkb configuration looks like. This is actually chopped out of LXPanel, so is the same code you are running to initialize the keyboard applet. If you compile that according to the instructions there and run it, it will be a start on seeing why we're apparently mishandling what your server is reporting.
bmarkus
Posts: 33
Joined: Tue Sep 08, 2009 6:23 pm

Re: Keyboard layout switcher is unrealible

Post by bmarkus »

OK, it's clear. I was in hurry when read your previous post, sorry. Will try it in few days. :(
bmarkus
Posts: 33
Joined: Tue Sep 08, 2009 6:23 pm

Re: Keyboard layout switcher is unrealible

Post by bmarkus »

Marty, this is the output of xkbtest:

Code: Select all

4
USA
Germany
France
Hungary
pc+us+de:2+fr:3+hu:4
Marty Jack
Posts: 381
Joined: Mon Mar 23, 2009 5:14 am

Re: Keyboard layout switcher is unrealible

Post by Marty Jack »

Hopefully fixed in git commit 7f4490c5db477662685f49bc0253be52354c3008. Thanks for the help tracking it down.
bmarkus
Posts: 33
Joined: Tue Sep 08, 2009 6:23 pm

Re: Keyboard layout switcher is unrealible

Post by bmarkus »

Marty Jack wrote:Hopefully fixed in git commit 7f4490c5db477662685f49bc0253be52354c3008. Thanks for the help tracking it down.
Just built lxpanel from git. Unfortunately no change, still doesn't work :(

BTW, "Keyboard LED" plugin now shows all three LED's correctly; in 0.5.5 ScrollLock status did not work. :)

Let me know how can I help.
Locked