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

Bug#586371: x11-xkb-utils: setxkbmap does not work with per user configuration



Package: x11-xkb-utils
Version: 7.5+2
Severity: minor

Hello,

I have two keybords, 10 is my typematrix and I want to specify a
different layout for it.

I define the following configuration:

~/.xkb/keymap/persotm:
--8<---------------cut here---------------start------------->8---
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(azerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+fr(bepo)+inet(evdev)+ctrl(nocaps)+compose(menu)+terminate(ctrl_alt_bksp)+jpmods(muhenkan_mod3)+jpmods(henkan_ctrl)+jpmods(lwin_mod4)" };
        xkb_geometry  { include "typematrix(tm2030USB-106)"     };
};

--8<---------------cut here---------------end--------------->8---

~/.xkb/symbols/jpmods
--8<---------------cut here---------------start------------->8---
partial modifier_keys
xkb_symbols "muhenkan_mod3" {
  replace key <MUHE> {
    [ VoidSymbol, VoidSymbol ]
  };
  modifier_map Mod3 { <MUHE> };
};

partial modifier_keys
xkb_symbols "henkan_ctrl" {
  replace key <HENK> { [ VoidSymbol, VoidSymbol ] };
  modifier_map Control { <HENK> };
};

partial modifier_keys
xkb_symbols "lwin_mod4" {
  modifier_map Mod4 { <LWIN> };
};
--8<---------------cut here---------------end--------------->8---

and try:
--8<---------------cut here---------------start------------->8---
setxkbmap -device 10 -I/home/dad/.xkb/ -keymap persotm
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  144 (XKEYBOARD)
  Minor opcode of failed request:  23 (XkbGetKbdByName)
  Serial number of failed request:  9
  Current serial number in output stream:  9
--8<---------------cut here---------------end--------------->8---

"xkbcomp -i 10 -I/home/dad/.xkb ~/.xkb/keymap/persotm $DISPLAY" works
but change the configuration for all keyboards.

It does not works even in two steps:

--8<---------------cut here---------------start------------->8---
xkbcomp -i 10 -I/home/dad/.xkb -xkb -o /home/dad/.xkb/persotm.xkb ~/.xkb/keymap/persotm
setxkbmap -v 10 -device 10 -I/home/dad/.xkb/ -config persotm.xkb
Setting verbose level to 10
locale is C
Didn't find file ./persotm.xkb
Didn't find file /usr/share/X11/xkb/persotm.xkb
Didn't find file /home/dad/.xkb/persotm.xkb
--8<---------------cut here---------------end--------------->8---

Regards.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (90, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.33.2+hati.1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages x11-xkb-utils depends on:
ii  cpp                           4:4.4.4-2  The GNU C preprocessor (cpp)
ii  libc6                         2.11.1-3   Embedded GNU C Library: Shared lib
ii  libx11-6                      2:1.3.3-3  X11 client-side library
ii  libxaw7                       2:1.0.7-1  X11 Athena Widget library
ii  libxkbfile1                   1:1.0.6-2  X11 keyboard file manipulation lib
ii  libxmu6                       2:1.0.5-1  X11 miscellaneous utility library
ii  libxt6                        1:1.0.7-1  X11 toolkit intrinsics library
ii  x11-common                    1:7.5+6    X Window System (X.Org) infrastruc

x11-xkb-utils recommends no packages.

x11-xkb-utils suggests no packages.

-- no debconf information

-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1

Attachment: pgpdXUAsXZ68q.pgp
Description: PGP signature


Reply to: