Bug 448196 - LTSP keyboard layout problem
LTSP keyboard layout problem
Product: Fedora
Classification: Fedora
Component: ltsp (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Kristian Høgsberg
Fedora Extras Quality Assurance
Depends On:
Blocks: K12LTSP
  Show dependency treegraph
Reported: 2008-05-24 06:05 EDT by Zoltan Boszormenyi
Modified: 2009-03-09 03:53 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-08-08 00:29:45 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Zoltan Boszormenyi 2008-05-24 06:05:59 EDT
Description of problem:

ltsp-build-client created an en_US.UTF-8 client with US keyboard layout.
I would like all-Hungarian clients. Changing "i18n" and "keyboard" under
/opt/ltsp/i386/etc/sysconfig is only giving me a hu_HU.UTF-8 client
with Hungarian messages on the login screen but still with US keyboard.
Changing /var/lib/tftpboot/ltsp/i386/lts.conf so it contains an "XKBLAYOUT=hu"
line didn't help. The lts.conf in /opt/ltsp/i386/etc is empty by default
and modifying it (actually, copying the lts.conf from the tftpboot area to
the ltsp chroot) didn't help either.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. ltsp-build-client
2. modify lts.conf, .../sysconfig/{i18n,keyboard}
Actual results:

Locale can be modified on the client but not the keyboard layout.

Expected results:

Both locale and keyboard should follow some of the settings.

Additional info:

For ltsp-build-client, it would be best to parse the host configuration
and build the client with the proper locale and keyboard layout by default.
Comment 1 Warren Togami 2008-05-24 23:06:35 EDT
It appears that XKBLAYOUT is only recognized by ltsp-trunk/client/configure-x.sh
which Fedora does not use.  This is an unfortunate side-effect of Fedora's
default of X autoconfiguration which is to run without an xorg.conf.

Our choices are either:
1) Figure out a way to use an externally specified layout during X
autoconfiguration.  Is this possible with current X code?
2) Configure X separately into an xorg.conf file then mangle that xorg.conf
file, like ltsp-trunk/client/configure-x.sh.  It would be unfortunate if we have
to take this path. =(

Any suggestions from the X team?
Comment 2 Jeremy Katz 2008-05-27 10:49:36 EDT
Have your greeter read the locale config and set up keyboard/language
Comment 3 Warren Togami 2008-05-27 14:03:53 EDT
> Have your greeter read the locale config and set up keyboard/language
> appropriately.

How do you define appropriately?  You cannot easily assume a certain keyboard
layout by the locale alone.

I asked Ray Strode about how gdm and GNOME handle keyboard layout.  It is a bit
complicated.  GNOME desktop's gnome-settings-daemon reads a layout option from
gconf and sets it during login.  gdm also runs gnome-settings-daemon but Ray
thinks gdm uses only whatever layout is defined by the X server (meaning this
isn't a solved problem in gdm either.)
Comment 4 Warren Togami 2008-05-27 14:45:40 EDT
<jeremy> warren: you'd have to use the specified keyboard mapping and then use
the bits in rhpl.keyboard_models to do mapping
<warren> jeremy: is there a canonical place in /etc that contains the system's
keyboard mapping?
<jeremy> warren: /etc/sysconfig/keyboard is as much as there is
Comment 5 Zoltan Boszormenyi 2008-06-06 11:05:36 EDT
Another data point: the console is conforming to the keyboard setting found
/etc/sysconfig/keyboard. I pressed Ctrl-Alt-F2 to go to the console on the
thin client and I got my hungarian keyboard. Only X doesn't follow currently.
Comment 6 Warren Togami 2008-06-16 16:22:36 EDT
Talked with Matthias Clasen of the desktop team.  He suggested looking at gdm's
greeter implementation of keyboard layout chooser.  The chooser sets the gconf
option which is used by gnome-settings-daemon to set the keyboard layout.  We
either need to implement much of this ourselves for ldm, or attempt to use
gnome-settings-daemon which pulls in a lot of extra stuff into the client
chroot.  Not sure what is the best way forward yet.  Investigating.
Comment 7 Warren Togami 2008-08-08 00:29:45 EDT
A fix using lts.conf XKB* options in a standard upstream LTSP fashion has been pushed as part of ltsp-5.1.15 to Fedora 9.
Comment 8 Keir Stitt 2009-03-08 17:34:53 EDT
I've got the same problem on Fedora10 using xfce.

I'm using a UK English layout keyboard. Works fine when I boot into run level 3, or if I press Ctrl + Alt + 2 to get a bash shell in tty2. Its only when i'm using X that every time I log-on I get the default US keyboard layout.

I can go to [fedorabutton]|Settings|Keyboard and change it to UK layout, but this only lasts until the next login (plus requires the root password).
Comment 9 Warren Togami 2009-03-09 03:53:41 EDT
Keir, please file that as a bug against XFCE.  XFCE isn't respecting the keyboard layout set in hal.

Note You need to log in before you can comment on or make changes to this bug.