You are not logged in.

#1 2012-03-25 11:38:37

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

[Solved] Xkeyboard/xkbcomp gives warnings

I am getting some warnings, but no symptoms of anything being wrong, upon starting X after these upgrades:
    xorg-setxkbmap (1.2.0-3 -> 1.3.0-1)
    xorg-xkbcomp (1.2.3-1 -> 1.2.4-1)
    xorg-xmodmap (1.0.5-3 -> 1.0.6-1).

The warnings after starting X with either 'xinit' or 'startx':

(==) Using config directory: "/etc/X11/xorg.conf.d"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Compat map for group 2 redefined
>                   Using new definition
> Warning:          Compat map for group 3 redefined
>                   Using new definition
> Warning:          Compat map for group 4 redefined
>                   Using new definition
Errors from xkbcomp are not fatal to the X server

I don't see any problems with this output:

$ setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+us+inet(evdev)+terminate(ctrl_alt_bksp)"    };
        xkb_geometry  { include "pc(pc104)"     };
};
$ xmodmap
xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3      
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

I haven't found anything through Google or forum searches yet.  I'd appreciate any help to point me in a direction to silence and cure these warnings.

Solution provided by voxsim in post #11.  Thank you.
Comment out the following lines in the file '/usr/share/X11/xkb/compat/basic'.  The double forward-slash is the comment symbol.

 //    group 2 = AltGr;                                                                
 //    group 3 = AltGr;
 //    group 4 = AltGr;

Last edited by thisoldman (2012-05-23 00:12:17)

Offline

#2 2012-03-28 21:12:08

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,024

Re: [Solved] Xkeyboard/xkbcomp gives warnings

I had recently switched my window manager from using keysym.h to XKBlib.h and today I noticed the same warnings in the tty I startx from. The only return from a web search was this thread. Since everything is still working as it should be here and it seems no-one is reporting it elsewhere I think it is just xkbcomp being more verbose then it needs to be. At least that's how it seems to me...


You're just jealous because the voices only talk to me.

Offline

#3 2012-03-28 21:51:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [Solved] Xkeyboard/xkbcomp gives warnings

I get these errors too but I was too busy / lazy to do any research regarding them.

Offline

#4 2012-04-08 20:08:15

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [Solved] Xkeyboard/xkbcomp gives warnings

karol wrote:

I get these errors too but I was too busy / lazy to do any research regarding them.

The solution depends on the error. In my case xkbcomp reported

The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server

-- so I added 'compose:ralt' to my /etc/X11/xorg.conf.d/20-xkmap.conf:

Option           "XkbOptions" "compose:ralt, caps:escape, terminate:ctrl_alt_bksp"

The same can be done in $HOME/.xinitrc:

setxkbmap -option compose:ralt

Last edited by bohoomil (2012-04-08 20:08:48)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2012-04-08 21:23:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [Solved] Xkeyboard/xkbcomp gives warnings

'setxkbmap -option compose:ralt' didn't change anything although both 'setxkbmap -print' and 'setxkbmap -query' listed it.
Using /etc/X11/xorg.conf.d/20-xkmap.conf made these errors go away.


Edit: Any idea about the errors OP got or how to lower the verbosity level?
Using 'setxkbmap -v 3'  or even 'setxkbmap -v 0' in my .xinitrc doesn't seem to change anything.

Last edited by karol (2012-04-08 21:28:30)

Offline

#6 2012-04-08 21:36:34

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [Solved] Xkeyboard/xkbcomp gives warnings

For some general insight into setxkbmap troubleshooting: http://forums.gentoo.org/viewtopic-t-44 … eymap.html


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#7 2012-04-08 22:06:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [Solved] Xkeyboard/xkbcomp gives warnings

bohoomil wrote:

For some general insight into setxkbmap troubleshooting: http://forums.gentoo.org/viewtopic-t-44 … eymap.html

Thanks, I've already had it bookmarked but my /usr/share/X11/xkb/symbols/pc doesn't even have a pc104 section and the pc105 one doesn't mention <RALT>.
/usr/share/X11/xkb/geometry/pc has pc104 section, but it looks different from the one from the Gentoo forum thread.

Offline

#8 2012-04-09 01:32:46

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [Solved] Xkeyboard/xkbcomp gives warnings

I think my clue to solving this is the message:  include "pc+us+inet(evdev)+terminate(ctrl_alt_bksp)".

As far as I can tell, inet is used for international variations of the US keyboard or for keyboards with extra keys.  I use a plain 104‑key US keyboard.

Offline

#9 2012-04-09 01:39:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [Solved] Xkeyboard/xkbcomp gives warnings

/usr/share/X11/xkb/symbols/inet has indeed some multimedia keys defined but XkbModel is defined in xkb_geometry.

Last edited by karol (2012-04-09 01:52:19)

Offline

#10 2012-04-09 14:56:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [Solved] Xkeyboard/xkbcomp gives warnings

bohoomil, can you type Polish accented letters (ogonki) like ą, ę, ś etc. when using your fix?
I can't.

I've created /etc/X11/xorg.conf.d/20-xkmap.conf from scratch and I might have misconfigured something:

Section "InputClass"
    Identifier                "xkmap keyboard settings"
    MatchIsKeyboard   "yes"
    Option                   "XkbModel"      "pc104"
    Option                   "XkbLayout"     "pl"
    Option           "XkbOptions" "compose:ralt, caps:escape, terminate:ctrl_alt_bksp"
EndSection

Offline

#11 2012-05-22 20:09:58

voxsim
Member
Registered: 2012-05-22
Posts: 3

Re: [Solved] Xkeyboard/xkbcomp gives warnings

To Resolve this annoying warning:

(==) Using config directory: "/etc/X11/xorg.conf.d"
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Compat map for group 2 redefined
>                   Using new definition
> Warning:          Compat map for group 3 redefined
>                   Using new definition
> Warning:          Compat map for group 4 redefined
>                   Using new definition
Errors from xkbcomp are not fatal to the X server

I'll comment this line in /usr/share/X11/xkb/compat/basic

//   group 2 = AltGr;
//    group 3 = AltGr;
//    group 4 = AltGr;

All it's works well.

Offline

#12 2012-05-23 00:11:58

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [Solved] Xkeyboard/xkbcomp gives warnings

Thank you, voxsim.  It works for me.

I've edited the first post to put your solution up higher in the thread.

Offline

#13 2012-05-23 01:19:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [Solved] Xkeyboard/xkbcomp gives warnings

It didn't help me, but now I noticed that I get these warnings only on one of my computers (running testing with Intel graphics).
Even removing these lines altogether didn't change anything.

Offline

#14 2012-05-25 14:55:45

voxsim
Member
Registered: 2012-05-22
Posts: 3

Re: [Solved] Xkeyboard/xkbcomp gives warnings

@thisoldman: You're welcome, I'm glad to be useful smile
@karol: depend on which file build your xkeyboard chain, let me explain.

In /usr/share/X11/xkb/compat there are one file named complete: This file describe how the keyboard should behave, in the first line in my complete file is written "basic" and infact in the file basic, these three groups are redefined, maybe in your complete file you have another chain of file..

I suggest you try a grep and search in the directory "group 2".

Offline

#15 2012-05-25 21:28:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,432

Re: [Solved] Xkeyboard/xkbcomp gives warnings

Hmm, that's weird, I'm not sure why it didn't work the last time (I even did reboot the whole computer to make sure it didn't work), but now I get only the warnings bohomil posted:

The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server

3 times on one computer and just once on the other.
Do you know how to fix them? :-)


Thanks for the explanation (I had 'basic' in my /usr/share/X11/xkb/compat/complete too).

Offline

#16 2012-06-01 20:51:05

voxsim
Member
Registered: 2012-05-22
Posts: 3

Re: [Solved] Xkeyboard/xkbcomp gives warnings

No, i don't know, i have the same problem smile and the solution in the web disable the alt-gr commands in vim sad

Offline

#17 2014-12-07 01:11:04

oromux
Member
Registered: 2014-12-07
Posts: 1

Re: [Solved] Xkeyboard/xkbcomp gives warnings

Hi, i have same error but different details.

Need your help please, here are the details:


X.Org X Server 1.15.0
Release Date: 2013-12-27
X Protocol Version 11, Revision 0
Build Operating System: c6b8 2.6.32-220.el6.x86_64
Current Operating System: Linux localhost.localdomain 2.6.32-504.1.3.el6.x86_64                                #1 SMP Tue Nov 11 17:57:25 UTC 2014 x86_64
Kernel command line: ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.                               UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=                               129M@0M rd_LVM_LV=VolGroup/lv_root  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb qu                               iet
Build Date: 18 October 2014  11:46:15AM
Build ID: xorg-x11-server 1.15.0-22.el6.centos
Current version of pixman: 0.32.4
        Before reporting problems, check https://wiki.centos.org/
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Dec  7 16:05:26 2014
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
xf86TokenToOptinfo: table is NULL
xf86TokenToOptinfo: table is NULL
Setting DAC:
00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 07 C9 FF BF 20 1F 20
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40
30: 00 B0 00 C2 34 14 02 83 00 93 00 77 00 00 00 3A
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
OPTION  = 00000000
OPTION2 = 00000000
CRTCEXT: 10 40 00 83 00 00
Setting DAC:
00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 07 C9 FF BF 20 1F 20
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40
30: 00 B0 00 C2 34 14 02 83 00 93 00 77 00 00 00 3A
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
OPTION  = 00000000
OPTION2 = 00000000
CRTCEXT: 10 40 00 83 00 00
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Internal error:   Could not resolve keysym XF86AudioMicMute
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Internal error:   Could not resolve keysym XF86AudioMicMute
Errors from xkbcomp are not fatal to the X server
xinit:  No such file or directory (errno 2):  no program named "xterm" in PATH

Specify a program on the command line or make sure that /usr/bin
is in your path.


waiting for X server to shut down Setting DAC:
00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 00 00 03 07 09 00 00 20 1F 00
20: 51 FA 76 D3 00 00 00 00 00 00 00 03 14 F1 01 40
30: 00 00 00 00 00 00 00 00 00 00 07 00 00 00 00 00
40: 00 00 00 00 11 90 07 00 0C 75 07 00 00 00 00 40
OPTION  = 00049120
OPTION2 = 00008000
CRTCEXT: 10 00 00 83 00 38
(EE) Server terminated successfully (0). Closing log file.

Offline

#18 2014-12-07 01:13:34

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 19,356
Website

Re: [Solved] Xkeyboard/xkbcomp gives warnings

Please don't necrobump, particularly solved threads Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.

And use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code



Closing


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB