debugging XKB?
Rune Petersen
rune at megahurts.dk
Thu Jun 8 15:01:09 PDT 2006
rune at megahurts.dk wrote:
>> Rune Petersen [2006-06-08 00:55]:
>>> Daniel Stone wrote:
>>>> On Sun, Jun 04, 2006 at 10:47:53PM +0200, Rune Petersen wrote:
>>>>> I can seam to figure out out why it doesn't work since I compiled the
>>> Xorg
>>>>> again.
>>>>>
>>>>> I get the warning:
>>>>> (WW) Couldn't load XKB keymap, falling back to pre-XKB keymap
>>>>>
>>>>> Then later the error:
>>>>> (EE) Error loading keymap /xorg7/share/X11/xkb/compiled/server-0.xkm
>>>>>
>>>>> I know that one reason it fails is that in XkbDDXLoadKeymapByNames():
>>>>> keybd->key is NULL
>>>>> names->keycodes is NULL
>>>>> names->types is NULL
>>>>> names->compat is NULL
>>>>> names->symbols is NULL
>>>>> names->geometry is NULL
>>>>> names->keymap is NULL
>>>>>
>>>>> I don't know why these are NULL.
>>>>> Is there any easy way to debug this or do I have to crawl through it
>>> all?
>>>> The short answer is 'no'. Your server's probably looking in
>>>> /xorg7/share/X11/xkb for data files, so if they're not installed there,
>>>> symlink that to either /usr/share/X11/xkb (Fedora/RHEL/SUSE) or
>>>> /etc/X11/xkb (Debian, Ubuntu).
>>>> The functions you want to hook into are mostly in xkbInit.c,
>>>> particularly XkbInitKeyboardDeviceStruct, though.
>>> turned out it was a build problem, did a clean rebuild and i ran into
>>> another
>>> problem:
>>>
>>> [...]
>>>
>>> But when I press a key (with the exception of the number-pad (Num lock))
>>> I get
>>> this message and nothing else:
>>> RADEONHandleMessage(0, "KeyEventMessage", "-VMode", retmsg)
>> It seems mode switching is broken, at least for the ATI driver.
>> When I hit ctrl-alt-+/-, I'm seeing these RADEONHandleMessage() log
>> entries too. It's -VMode when I hit -, and +VMode for + ;)
>>
>> I think my XKB setup is working fine, so this seems to be a separate
>> problem.
>>
>
> The problem Is it happends no matter what key I press (with the exception
> of the number-pad (Num lock)).
>
> In other words it interprets almost avery key as -VMode.
>
> If I break XKB resulting in pre_XKB setup the keys work more or less as
> expected (for a US keyboard)
>
A question:
when XKB is working properly, does it create this file?
/xorg7/share/X11/xkb/compiled/server-0.xkm
I don't have it...
Rune Petersen
More information about the xorg
mailing list