[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Configuring a US keyboard with umlauts in sid (hal etc?)



Frank Küster wrote:
> Howard Eisenberger <howarde@gmx.net> wrote:
> 
>> On 2009-11-25, Kelly Clowers wrote:

>>> In newer versions, you can put stuff like that in /etc/default/console-setup
>>> or most recently in /etc/default/keyboard  This works on TTYs and X.
>> I thought the OP said he tried this, but it didn't work. It just
>> worked for me using XKBOPTIONS in /etc/default/console-setup after
>> I rebooted.
> 
> I tried /etc/default/keyboard.  I'm not sure whether the reason for the
> failure was that I tried the wrong options, or whether I only restarted
> X and did not reboot (I don't know whether I rebooted).

I think the config file has a note that you have to restart hal, in order for X
to pick up the changes.
The way it (currently) works:
1.) configure your keyboard layout in /etc/default/console-setup (or since 1.47,
in /etc/default/keyboard).
2.) hal starts. For input devices it runs the tool that is specified in
/usr/share/hal/fdi/policy/10osvendor/debian-x11-keymap.fdi, i.e.
debian-setup-keyboard, which reads the values from
/etc/default/{keyboard,console-setup} and pokes those values into the hal db.
3.) Xorg starts and gets the input properties from hal.

So, if you change keyboard or console-setup, you need to restart hal.

FWIW, Xorg will be dropping the hal dependency and use udev/libudev directly to
get the input devices. The equivalent for 2.) will be a udev rules file, which
reads /etc/default/keyboard and store the properties in the udev db.

I thus stongly recommend *not* to manually craft hal fdi files and use
/etc/default/keyboard instead, as the latter will still be working when Xorg
switches to udev.

Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: