[Pkg-kbd-devel] Bug#633622: remap doesn't take effect

Michael Schutte michi at debian.org
Thu Jul 14 19:06:23 UTC 2011


Hi,

On Thu, Jul 14, 2011 at 09:27:19AM +0300, Volkan YAZICI wrote:
> How do I know I use console-setup, but not kbd? Is it documented
> somewhere?

kbd’s init script should say “Skipping font and keymap setup (handled by
console-setup)”.  But yes, we could really do a better job at
communicating this (the instructions in README.Debian are more or less
obsolete, for instance) …

> On Tue, 12 Jul 2011 17:49:30 +0200, Michael Schutte writes:
> > Try setting
> >
> > 	XKBOPTIONS="ctrl:nocaps"
> >
> > in /etc/default/keyboard and run
> >
> > 	invoke-rc.d console-setup restart
> >
> > to make the changes effective. Can you confirm that this works?
> 
> This works for X, but not for console. CapsLock still types Caps_Lock in
> the console. OTOH, I think it is quite couter-intuitive to configure
> console keymappings in an X.org/XFree86 style. (Moreover, I realized
> that my system is missing console-data package. Might this be a problem
> as well?)

There’s actually a simple reason behind this: console-setup features a
utility called ckbcomp which converts XKB definitions to the format
needed by loadkeys (so you get the exact same keyboard layout, except
for some minor things that the console simply doesn’t support).  That’s
also the reason you don’t need console-data; xkb-data is used instead.

The ctrl:nocaps setting works for me.  Would you mind attaching your
/etc/default/keyboard file and the output of

	$ . /etc/default/keyboard
	$ diff <(ckbcomp -model $XKBMODEL $XKBLAYOUT $XKBVARIANT) \
		<(ckbcomp -model $XKBMODEL $XKBLAYOUT $XKBVARIANT ctrl:nocaps)

(bash/zsh/… required) so we can figure out where the problem is?

All the best,
-- 
Michael Schutte                   | michi@{uiae.at,debian.org}
Innsbruck, Austria                | happily accepting encrypted mail
OpenPGP: 0x16fb 517b a866 c3f6 8f11 1485 f3e4 122f 1D8C 261A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-kbd-devel/attachments/20110714/1dfe862f/attachment.pgp>


More information about the Pkg-kbd-devel mailing list